Takes the results from BA.est, DA.reg, AltReg or MCmcmc and returns a MethComp object, suitable for displaying the relationship between methods in print pr graphic form.

MethComp(obj)

Arguments

obj

A MethComp or MCmcmc object.

Value

MethComp returns a MethComp object, which is a list with three elements, Conv, a three-way array giving the linear conversion equations between methods, VarComp, a two-way array classified by methods and variance components and data, a copy of the original Meth object supplied — see the description under BA.est.

A MethComp object has an attribute Transform, which is either NULL, or a named list with elements trans and inv, both of which are functions. The first is the transformation applied to measurements before analysis; the results are all given on the transformed scale. The second is the inverse transformation; this is only used when plotting the resulting relationship between methods.

The methods print, plot, lines and points return nothing.

Details

Using MethComp on the results from BA.est or AltReg is not necessary, as these two functions already return objetcs of class MethComp.

See also

Author

Bendix Carstensen, Steno Diabetes Center, bendix.carstensen@regionh.dk .

Examples


data( ox )
BA.ox <- BA.est( ox, linked=TRUE )
print( BA.ox )
#> 
#>  Conversion between methods:
#>                alpha    beta sd.pred  LoA-lo  LoA-up
#> To:   From:                                         
#> CO    CO       0.000   1.000   3.146  -6.293   6.293
#>       pulse    2.470   1.000   6.169  -9.867  14.808
#> pulse CO      -2.470   1.000   6.169 -14.808   9.867
#>       pulse    0.000   1.000   5.649 -11.298  11.298
#> 
#>  Variance components (sd):
#>         IxR   MxI   res
#> CO    3.416 2.928 2.225
#> pulse 3.416 2.928 3.994
if (FALSE) { # \dontrun{
AR.ox <- AltReg( ox, linked=TRUE  )
print( AR.ox )
plot( AR.ox ) } # }