placebo.pplot: Plot time-varying placebo-based p-values.

Description Usage Arguments Value Examples

View source: R/placebo.pplot.R

Description

placebo.pplot takes the results from placeboci and plots the time-varying p-values.

Usage

1
placebo.pplot(object, alpha = 0.05)

Arguments

object

An R object obtained using placeboci.

alpha

Alpha value for the significance region on the plot, defaults to 0.05.

Value

Returns a plot containing time-specific placebo-based confidence intervals.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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)
placebo.pplot(ci.out)

## End(Not run)

carlbona/idd documentation built on May 19, 2019, 10:48 p.m.