[R] Reformatting dataframe for use with icc()
Chad Danyluck
c.danyluck at gmail.com
Fri Oct 9 23:01:31 CEST 2015
Hello,
I want to determine the inter-rater reliability of ratings made from a
random selection of observers and observations. I plan to use the irr
package to calculate the ICC, however, my dataframe is not organized in a
way that the icc() function can handle. The icc() function works with
dataframes in the following format:
rater1 rater2 rater3...
observation
1 6 7 NA
2 4 NA 6
3 NA 2 4
...
My dataframe is organized in the following format:
rater.id 1 2 1 3 2 3 ...
observation 1 1 2 2 3 3 ...
rating 6 7 4 6 2 4 ...
I would like to reformat my dataframe as it is organized in the first
example but I am not sure how to go about doing this. Any suggestions would
be appreciated.
Kind regards,
Chad
--
Chad M. Danyluck, MA
PhD Candidate, Psychology
University of Toronto
“There is nothing either good or bad but thinking makes it so.” - William
Shakespeare
[[alternative HTML version deleted]]
More information about the R-help
mailing list