get_sds: Calculate the model implied standard deviations per time...

Description Usage Arguments Value See Also Examples

Description

Calculate the model implied standard deviations per time point

Usage

1
get_sds(object, treatment = "treatment", n = 1)

Arguments

object

An object created by study_parameters

treatment

character; either "treatment" or "control". Indicates for which group SDs should be calculated for. This only makes a difference for 3-level partially nested designs.

n

Optional; selects row n if object is a data.frame of parameters

Value

data.frame with class plcp_sds containing the model implied standard deviations per time point.

See Also

get_VPC, get_correlation_matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
paras <- study_parameters(n1 = 11,
                          n2 = 10,
                          n3 = 6,
                          T_end = 10,
                          icc_pre_subject = 0.5,
                          icc_pre_cluster = 0,
                          icc_slope = 0.05,
                          var_ratio = 0.03)

get_sds(paras)

# plot
plot(get_sds(paras))

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