50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

gmodels (version 2.13.0)

ci: Compute Confidence Intervals

Description

Compute and display confidence intervals for model estimates. Methods are provided for the mean of a numeric vector ci.default, the probability of a binomial vector ci.binom, and for lm, lme, and lmer objects are provided.

Arguments

x
object from which to compute confidence intervals.
confidence
confidence level. Defaults to 0.95.
alpha
type one error rate. Defaults to 1.0-confidence
na.rm
boolean indicating whether missing values should be removed. Defaults to FALSE.
...
Arguments for methods
sim.lmer
Logical value. If TRUE confidence intervals will be estimated using [Matrix]{mcmcsamp}. This option only takes effect for lmer objects. n.sim{Number of samples to take in [Matrix]{mcmcsamp}

synopsis

ci(x, confidence = 0.95, alpha = 1 - confidence,...) ## S3 method for class 'default': ci(x, confidence = 0.95, alpha = 1 - confidence, na.rm=FALSE)...) ## S3 method for class 'binom': ci(x, confidence = 0.95, alpha = 1 - confidence,...) ## S3 method for class 'lm': ci(x, confidence = 0.95, alpha = 1 - confidence,...) ## S3 method for class 'lme': ci(x, confidence = 0.95, alpha = 1 - confidence,...) ## S3 method for class 'lmer': ci(x, confidence = 0.95, alpha = 1 - confidence, sim.lmer=TRUE, n.sim=1000, ...)