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

View source: R/VPC.r

get_sdsR Documentation

Calculate the model implied standard deviations per time point

Description

Calculate the model implied standard deviations per time point

Usage

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

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))


rpsychologist/powerlmm documentation built on May 11, 2023, 12:24 a.m.