magree {magree} | R Documentation |
O'Connell-Dobson-Schouten estimators for multiobserver agreement.
Description
Use the O'Connell-Dobson-Schouten estimators of agreement for nominal or ordinal data.
Usage
magree(X, weights=c("unweighted","linear","quadratic"), score = NULL)
Arguments
X |
A matrix or data-frame with observations/subjects as rows and raters as columns. |
weights |
|
score |
The scores that are to be assigned to the categories. Currently, this defaults to a sorted list of the unique values. |
Details
The Fortran code from Professor Dianne O'Connell was adapted for R.
The output object is very similar to the Fortan code. Not
all of the variance terms are currently used in the print
and summary
methods.
Value
oconnell |
object from the |
schouten |
object from the |
call |
As per |
See Also
Examples
## Table 1 (O'Connell and Dobson, 1984)
summary(fit <- magree(landis, weights="unweighted"))
update(fit, weights="linear")
update(fit, weights="quadratic")
## Table 5, O'Connell and Dobson (1984)
magree(landis==1)
magree(landis==2)
magree(landis==3)
magree(landis==4)
magree(landis==5)
## Plot of the marginal distributions
plot(fit)
## Plot of the average agreement by observer
plot(fit, type="kappa by observer")