iddplacebo.spaghetti: Plot the estimated effects from the placebo studies.

Description Usage Arguments Value Examples

View source: R/iddplacebo.spaghetti.R

Description

iddplacebo.spaghetti takes an output object after iddplacebo and plots the estimated placebo effects using ggplot2.

Usage

1
iddplacebo.spaghetti(x, mult = 1e+05, rm = TRUE, alpha = 0.05)

Arguments

x

Name of the iddplacebo output object.

mult

Multiplier for the rates. Defaults to 100000.

rm

Remove placebo studies with poor pre-intervention fit? Default=TRUE.

alpha

controls the shaded significance region on the plot. Defaults to 0.05.

Value

Returns a ggplot containing the estimated effects from the placebo studies along with the results from the main analysis.

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)
plot.out <- iddplacebo.spaghetti(placebo.out)

## End(Not run)

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