Description Usage Arguments Details Value See Also Examples
Used as input to the dropout
-argument in study_parameters
.
1 |
... |
The proportion of dropout per time point, either as
a vector of length |
Specifying dropout manually requires that the dropout is 0 at the first time point. Moreover, dropout can't decrease over time and can never be 1.
A list of class plcp_dropout_manual
dropout_weibull
, per_treatment
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | dropout <- dropout_manual(0, 0, 0, 0, 0.2, 0.2, 0.3, 0.3, 0.4, 0.4, 0.45)
p <- study_parameters(n1 = 11,
n2 = 5,
n3 = 6,
T_end = 10,
icc_pre_subject = 0.5,
icc_pre_cluster = 0,
var_ratio = 0.03,
icc_slope = 0.05,
dropout = dropout,
cohend = -0.8)
plot(p, plot = 2)
get_power(p)
# Can also use a vector as input
dropout <- dropout_manual(seq(0, 0.5, length.out = 11))
p <- study_parameters(n1 = 11,
n2 = 5,
n3 = 6,
T_end = 10,
icc_pre_subject = 0.5,
icc_pre_cluster = 0,
var_ratio = 0.03,
icc_slope = 0.05,
dropout = dropout,
cohend = -0.8)
plot(p, plot = 2)
get_power(p)
## Not run:
# Decreasing dropout will throw an error
dropout_manual(0, 0.1, 0.1, 0.2, 0.1)
# Dropout at the first time point will throw an error
dropout_manual(0.1, 0.1, 0.1, 0.2, 0.2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.