/MezzichKappa

Ruby implementation of Mezzich's Kappa

Primary LanguageRubyMIT LicenseMIT

MezzichKappa

###A Ruby implementation of Mezzich's Kappa

mkappa computes Mezzich's Kappa for measuring the inter-rater reliability for N raters with 1+ codes allowed per segment. For more details, see:

Mezzich JE et al. Assessment of Agreement Among Several Raters Formulating Multiple Diagnoses. J Psych Res 1981 16(29):29-39.

Version: 0.2a

Developer: Jared Shenson

Email: jared [dot] shenson [at] gmail

###Usage ruby mkappa.rb rater1.csv rater2.csv [rater3.csv...]

###Output mkappa_r[# of raters]_[timestamp].csv

###Notes

  • Files must be saved as CSV, one column per possible code, one row per segment. See sample datafile.
  • Cell contents must be 0 or 1, indicating absence (0) or presence (1) of given code.
  • A single header row containing the codes used may be included. It will be auto-detected and used in the program's output.
  • May use as many raters as desired
  • Requires gem "Statsample" for calculation of kappa significance