BA.est( data, linked=TRUE, IxR=has.repl(data), MxI=has.repl(data), corMxI=FALSE, varMxI=TRUE, IxR.pr=FALSE, bias=TRUE, alpha=0.05, Transform = NULL, trans.tol = 1e-6, random.raters = FALSE, lmecontrol = lmeControl(msMaxIter=300), weightfunction = c("mean", "median") ) "bias"( obj, ref=1, ... ) VC.est( data, IxR = has.repl(data), linked = IxR, MxI = has.repl(data), matrix = MxI, corMxI = FALSE, varMxI = TRUE, bias = TRUE, print = FALSE, random.raters = FALSE, lmecontrol = lmeControl(msMaxIter=300) )
Meth
object representing method comparison data
with replicate measurements, i.e. with columns meth
,
item
, repl
and y
.linked
argument.
If linked=
is given, this is ignored.MxI
.FALSE
no bias between methods are assumed, i.e.
$alpha_m=0, m=1,...,M$.y
) before analysis.
See check.trans
for possible values.FALSE
which corresponds to a fixed effect
of methods/raters.lme
.mean
but can also be median
.BA.est
object from which to extract the biases between
methods.BA.est
returns an object of class c("MethComp","BA.est")
,
a list with four elements
Conv
, VarComp
, LoA
, RepCoef
;
VC.est
returns (invisibly!) a list with elements
Bias
, VarComp
, Mu
, RanEff
.
These list components are:
c("alpha","beta","sd.pred","LoA: lower","upper")
.
It represents the
mean conversions between methods and the prediction standard
deviation.Where "To" and "From" take the same value the value
of the "sd" component is $sqrt(2)$ times the
residual variation for the method. If IxR.pr=TRUE
the
variation between replicates are included too,
i.e. $\sqrt{2(\sigma_m^2+\omega^2)} $
sqrt[2(sigma_m^2+omega^2)]. MxI
and IxR
according to whether these random
effects are in the model.Transform
with the
transformation applied to data before analysis, and its inverse --- see
choose.trans
.
nM
> 2), hence varMxI is ignored when
nM
==2. The function VC.est
is the workhorse; BA.est
just calls
it. VC.est
figures out which model to fit by lme
,
extracts results and returns estimates. VC.est
is also used as
part of the fitting algorithm in AltReg
, where each
iteration step requires fit of this model. The function VC.est
is actually just a wrapper for the functions VC.est.fixed
that
handles the case with fixed methods (usually 2 or three) i.e. the
classical method comparison problem, and VC.est.random
that
handles the situation where "methods" are merely a random sample of
raters from some population of raters; and therefore are regarded as
random.
BA.plot
,
perm.repl
data( ox )
ox <- Meth( ox )
summary( ox )
BA.est( ox )
BA.est( ox, linked=FALSE )
BA.est( ox, linked=TRUE, Transform="pctlogit" )
## Not run:
# data( sbp )
# BA.est( sbp )
# BA.est( sbp, linked=FALSE )
# # Check what you get from VC.est
# str( VC.est( sbp ) )## End(Not run)
Run the code above in your browser using DataLab