get_ICC_pre_subjects: Calculate the subject-level ICC at pretest

Description Usage Arguments Value Examples

Description

Calculate the subject-level ICC at pretest

Usage

1

Arguments

object

An object created by study_parameters

...

Optional named arguments.

Value

Returns the proportion of baseline variance at the subject level (which also includes cluster-level variance), as a numeric vector.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
paras <- study_parameters(n1 = 11,
                          n2 = 10,
                          n3 = 3,
                          T_end = 10,
                          sigma_subject_intercept = 1.2,
                          sigma_subject_slope = 0.2,
                          sigma_cluster_intercept = 0.5,
                          sigma_cluster_slope = 0.2,
                          sigma_error = 1.2,
                          cohend = -0.8)

get_ICC_pre_subjects(paras)

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