MCResult.calcBias {mcr} | R Documentation |
Systematical Bias Between Reference Method and Test Method
Description
Calculate systematical bias between reference and test methods
at the decision point Xc as
with corresponding confidence intervals.
Usage
MCResult.calcBias(
.Object,
x.levels,
type = c("absolute", "proportional"),
percent = TRUE,
alpha = 0.05,
...
)
Arguments
.Object |
object of class "MCResult". |
x.levels |
a numeric vector with decision points for which bias schould be calculated. |
type |
One can choose between absolute (default) and proportional bias ( |
percent |
logical value. If |
alpha |
numeric value specifying the 100(1- |
... |
further parameters |
Value
response and corresponding confidence interval for each decision point from x.levels.
See Also
Examples
#library("mcr")
data(creatinine,package="mcr")
x <- creatinine$serum.crea
y <- creatinine$plasma.crea
# Deming regression fit.
# The confidence intervals for regression coefficients
# are calculated with analytical method
model <- mcreg( x,y,error.ratio = 1,method.reg = "Deming", method.ci = "analytical",
mref.name = "serum.crea", mtest.name = "plasma.crea", na.rm=TRUE )
# Now we calculate the systematical bias
# between the testmethod and the reference method
# at the medical decision points 1, 2 and 3
calcBias( model, x.levels = c(1,2,3))
calcBias( model, x.levels = c(1,2,3), type = "proportional")
calcBias( model, x.levels = c(1,2,3), type = "proportional", percent = FALSE)
[Package mcr version 1.3.3 Index]