svykappa | R Documentation |
Computes the unweighted kappa measure of agreement between two raters and the standard error. The measurements must both be factor variables in the survey design object.
svykappa(formula, design, ...)
formula |
one-sided formula giving two measurements |
design |
survey design object |
... |
passed to |
Object of class svystat
svycontrast
data(api)
dclus1<-svydesign(id=~dnum, weights=~pw, data=apiclus1, fpc=~fpc)
svykappa(~comp.imp+sch.wide, dclus1)
dclus1<-update(dclus1, stypecopy=stype)
svykappa(~stype+stypecopy,dclus1)
(kappas<-svyby(~comp.imp+sch.wide,~stype,design=dclus1, svykappa, covmat=TRUE))
svycontrast(kappas, quote(E/H))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.