confint.boot | R Documentation |
This is a wrapper for getting CIs for multiple parameters after running
bootstrap_mer
, to be consistent with a similar method for the
bootMber
class.
## S3 method for class 'boot'
confint(
object,
parm,
level = 0.95,
type = c("norm", "basic", "perc", "bca"),
L = NULL,
...
)
object |
an object returned by |
parm |
a specification of which parameters are to be given confidence intervals as a vector of numbers. If missing, all parameters are considered. |
level |
the confidence level required. |
type |
character indicating the type of intervals required, as described
in |
L |
empirical influence values required for |
... |
additional argument(s) passed to |
A matrix (or vector) with columns giving lower and upper confidence limits for each parameter.
library(lme4)
fm01ML <- lmer(Yield ~ (1 | Batch), Dyestuff, REML = FALSE)
mySumm <- function(x) {
c(getME(x, "beta"), sigma(x))
}
# residual bootstrap
boo_resid <- bootstrap_mer(fm01ML, mySumm, type = "residual", nsim = 100)
confint(boo_resid, type = "bca", L = empinf_merm(fm01ML, mySumm))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.