| make.repl {MethComp} | R Documentation |
Replicate numbers are generated within (item,method) in a dataframe representing a method comparison study. The function assumes that observations are in the correct order within each (item,method), i.e. if replicate observations are non-exchangeable within method, linked observations are assumed to be in the same order within each (item,method).
make.repl( data )
data |
A data frame with columns meth, item
and y. |
A dataframe with a column, repl added or replaced.
Bendix Carstensen, Steno Diabetes Center, http://www.biostat.ku.dk/~bxc
data(ox) xx <- subset( ox, item<4 )[,-3] cbind( xx, make.repl(xx) ) cbind( make.repl(xx), perm.repl(xx) )