make.repl {MethComp}R Documentation

Generate a numbering of replicates within (item,method)

Description

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).

Usage

  make.repl( data )
  

Arguments

data A data frame with columns meth, item and y.

Value

A dataframe with a column, repl added or replaced.

Author(s)

Bendix Carstensen, Steno Diabetes Center, http://www.biostat.ku.dk/~bxc

See Also

perm.repl

Examples

  data(ox)
  xx <- subset( ox, item<4 )[,-3]
  cbind( xx, make.repl(xx) )
  cbind( make.repl(xx), perm.repl(xx) )
  

[Package MethComp version 0.3.0 Index]