perm.repl {MethComp}R Documentation

Randomly permute replicates within methods

Description

Replicates are randomly permuted within (item,method) in a dataframe representing a method comparison study.

Usage

  perm.repl( data )
  

Arguments

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

Value

A dataframe where the rows (i.e. replicates) are randomly permuted within (meth,item), and subsequently ordered by (meth,item,repl)

Author(s)

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

Examples

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

[Package MethComp version 0.1.4 Index]