Description Usage Arguments Value Examples
View source: R/iddplacebo.hist.R
iddplacebo.spaghetti
takes an output object after iddplacebo
and plots a histogram of post/pre-RMSE ratios using ggplot2
.
1 2 | iddplacebo.hist(x, binwidth = NULL, convert = FALSE, mult = 100000,
alpha = 0.05, quantile = FALSE)
|
x |
Name of the |
binwidth |
Control the binwidth (optional). Defaults to 2*IQR(RMSE)/(length(RMSE)^(1/3)). |
convert |
Convert to effect sizes? Defaults to FALSE, presenting RMSE Ratios. |
mult |
Multiplier for the effect size (only used with convert=TRUE). |
alpha |
Alpha for the acceptance region reference line. |
quantile |
Add reference line for the acceptance region? Defaults to FALSE. |
Returns a ggplot containing a histogram of the post/pre-RMSE ratios from the placebo studies.
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.hist(placebo.out)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.