placeboci: Estimate placebo-based confidence intervals.

Description Usage Arguments Value Examples

View source: R/placeboci.R

Description

placeboci takes the results from a set of placebo studies obtained using iddplacebo and estimates non-parametric placebo-based confidence intervals for a selected alpha level.

Usage

1
placeboci(object, alpha = 0.05, mult = 100000)

Arguments

object

An R object containing the results from a set of placebo studies obtained using iddplacebo.

alpha

The significance level, defaults to 0.05 for 95 percent CI.

mult

Multiplier for the rate, defaults to 100000.

Value

The code prints the CI for the average post-intervention effect, and returns a data frame containing the time-varying CI. To be used with iddplacebo.ciplot or iddplacebo.pplot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
data(simpanel)
placebo.out <- iddplacebo(eventvar="y",
             popvar="pop",
             idvar="age",
             timevar="time",
             postvar="post",
             treatvar="treat",
             data=simpanel,
             iter=50)
ci.out <- placeboci(placebo.out, alpha=0.05)

## End(Not run)

carlbona/idd documentation built on June 12, 2018, 2:23 p.m.