Learn R Programming

subtee (version 1.0.1)

confint.subtee: 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 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab