per_treatment: Setup parameters that differ per treatment group

Description Usage Arguments Details Value See Also Examples

Description

Helps specifying unequal cluster sizes with study_parameters, e.g. different number of clusters in the treatment and control arm, or different dropout patterns.

Usage

1
per_treatment(control, treatment)

Arguments

control

Value used for control group

treatment

Value used for treatment group

Details

The type of object passed to control and treatment will depend on the parameters in study_parameters that should have different values per treatment group.

Value

An object of class "plcp_per_treatment"

See Also

unequal_clusters, study_parameters, dropout_weibull

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
n2 <- per_treatment(control = 10,
                    treatment = 20)
p <- study_parameters(n1 = 11,
                      n2 = n2,
                      n3 = 6,
                      T_end = 10,
                      icc_pre_subject = 0.5,
                      icc_pre_cluster = 0,
                      var_ratio = 0.03,
                      icc_slope = 0.05,
                      cohend = -0.8)

powerlmm documentation built on May 2, 2019, 3:10 a.m.