| perm.repl {MethComp} | R Documentation |
Replicates are randomly permuted within (item,method) in a dataframe representing a method comparison study.
perm.repl( data )
data |
A data frame with columns meth, item, repl
and y. |
A dataframe where the rows (i.e. replicates) are randomly permuted within
(meth,item), and subsequently ordered by
(meth,item,repl)
Bendix Carstensen, Steno Diabetes Center, http://www.biostat.ku.dk/~bxc
# Replicates are linked, so randomly permuting them inflates the # limits of agreement. data(ox) par( mfrow=c(1,2), mar=c(4,4,1,4) ) BA.plot( ox, ymax=30, digits=1 ) BA.plot( perm.repl(ox), ymax=30, digits=1 )