confint.subtee: Confidence intervals for treatment effect estimates

View source: R/generic-funcs-subtee-add.R

confint.subteeR Documentation

Confidence intervals for treatment effect estimates

Description

Computes confidence intervals for subtee objects. This allows the recalculation of confidence intervals at a desired levels without fitting the models again, which is particularly useful for the results of the bagged function.

Usage

## S3 method for class 'subtee'
confint(object, parm, level = 0.95, ...)

Arguments

object

An object of class subtee, usually a result of a call to modav, unadj or bagged.

parm

Not used.

level

the confidence level required. Note that this is 1 - the significance level used in modav, unadj or bagged.

...

Not used.

Value

An object of class subtee

See Also

plot.subtee, summary.subtee

Examples

data(datnorm)
cand.groups <- subbuild(datnorm, height, labvalue, region, smoker)
fitd <- cbind(datnorm, cand.groups)
subgr <- colnames(cand.groups)
res <- modav(resp = "y", trt = "treat", subgr = subgr, data = fitd, 
             covars = ~ x1 + x2, fitfunc = "lm")
confint(res, level = 0.80)

subtee documentation built on March 22, 2022, 5:07 p.m.