View source: R/MCResultMethods.r
MCResult.calcBias | R Documentation |
Calculate systematical bias between reference and test methods
at the decision point Xc as
Bias(Xc) = Intercept + (Slope-1) * Xc
with corresponding confidence intervals.
MCResult.calcBias(
.Object,
x.levels,
type = c("absolute", "proportional"),
percent = TRUE,
alpha = 0.05,
...
)
.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 |
response and corresponding confidence interval for each decision point from x.levels.
plotBias
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.