Learn R Programming

powerlmm (version 0.4.0)

get_ICC_pre_clusters: Calculate the amount of baseline variance at the cluster level

Description

Calculate the amount of baseline variance at the cluster level

Usage

get_ICC_pre_clusters(object, ...)

Arguments

object

An object created by study_parameters

...

Optional named arguments.

Value

Returns the proportion of baseline variance at the cluster level, as a numeric vector.

Details

The proportion of variance at the cluster level at baseline can be interpreted as the correlation between two subjects belonging to the same cluster.

Examples

Run this code
# NOT RUN {
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_clusters(paras)
# }

Run the code above in your browser using DataLab