iddplacebo.ecdf: Plot the inverse empirical cumulative distribution function...

Description Usage Arguments Value Examples

View source: R/iddplacebo.ecdf.R

Description

iddplacebo.ecdf takes an output object after iddplacebo and plots the E.C.D.F. using ggplot2.

Usage

1
iddplacebo.ecdf(x, alpha = 0.05, convert = FALSE, mult = 100000, quantile = FALSE)

Arguments

x

Name of the iddplacebo output object.

alpha

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

convert

Convert x-axis to effect size? Defaults to FALSE.

mult

Multiplier for the effect size (only used with convert=TRUE).

quantile

Add reference line for the acceptance region? Defaults to FALSE.

Value

Returns a ggplot containing the E.C.D.F. 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.ecdf(placebo.out)

## End(Not run)

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