
invest(x, analyte=NULL, yvalue, ci.method = c("delta", "bootstrap"), level = 0.95, seed.boot = 123, nboot = 100)
scluminex
object.NULL
(all analytes).data.frame
with the following components:
yvalue
response vector
yvalue
vector
ci.method
'bootstrap' is NA
deltamethod
from the msm
package.
Bootstrap method generates nboot
response vectors
(assuming normality) and fit the same model with
original concentration data. The confidence interval is calculated
by the percentile method specified in the level
argument
(1-level
/2, 1-(1-level)
/2).
# Load data
data(ecdata)
data(mfidata)
dat <- mfidata[mfidata$plate=="plate_1" & mfidata$analyte=="FGF",]
# Estimate models
sdf <- data_selection(dat, ecdata)[[1]]
igmodels <- scluminex("plate_1",sdf$standard, sdf$background,
lfct="SSl4", bkg="ignore", fmfi="mfi", verbose=FALSE)
# Delta
invest(igmodels, "FGF", c(2, 2.5, 3), "delta")
# Bootstrap
invest(igmodels, "FGF" ,c(2, 2.5, 3), "bootstrap", nboot=10)
Run the code above in your browser using DataLab