Description Usage Arguments Value Examples
View source: R/sample_size_curve.R
Plot the probability of selecting the superior treatment as a function of the sample size n.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
cens_prop |
Expected censoring proportion. |
med1 |
Median for treatment arm 1, assuming shape1 is 1. Overwrites shape and rate if supplied. |
shape1 |
Shape parameter for treatment arm 1. |
rate1 |
Rate parameter for treatment arm 1. |
med2 |
Median for treatment arm 2, assuming shape2 is 1. Overwrites shape and rate if supplied. |
shape2 |
Shape parameter for treatment arm 2. |
rate2 |
Rate parameter for treatment arm 2. |
info_reps |
Replicates used for estimating the observed information matrix. |
delta |
Increment between consecutive sample sizes to evaluate. |
min_n |
Minimum allowable sample size. |
max_n |
Maximum allowable sample size. |
margin |
Margin of practical equivalence. |
target_prob |
Probability of selecting the more effective treatment. |
use_exp_calc |
If both shape parameters are 1, should the calculations be performed assuming an exponential distribution for the time to event in each arm? |
ggplot object.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.