iddplacebo.hist: Plot a histogram of placebo effects.

Description Usage Arguments Value Examples

View source: R/iddplacebo.hist.R

Description

iddplacebo.spaghetti takes an output object after iddplacebo and plots a histogram of post/pre-RMSE ratios using ggplot2.

Usage

1
2
iddplacebo.hist(x, binwidth = NULL, convert = FALSE, mult = 100000,
alpha = 0.05, quantile = FALSE)

Arguments

x

Name of the iddplacebo output object.

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.

Value

Returns a ggplot containing a histogram of the post/pre-RMSE ratios from the placebo studies.

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.hist(placebo.out)

## End(Not run)

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