Description Usage Arguments Value Examples
View source: R/iddplacebo.spaghetti.R
iddplacebo.spaghetti
takes an output object after iddplacebo
and plots the estimated placebo effects using ggplot2
.
1 | iddplacebo.spaghetti(x, mult = 1e+05, rm = TRUE, alpha = 0.05)
|
x |
Name of the |
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. |
Returns a ggplot containing the estimated effects from the placebo studies along with the results from the main analysis.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.