get_ICC_slope: Calculate the amount of slope variance at the third level

View source: R/helpers.R

get_ICC_slopeR Documentation

Calculate the amount of slope variance at the third level

Description

Calculate the amount of slope variance at the third level

Usage

get_ICC_slope(object, ...)

Arguments

object

An object created by study_parameters.

...

Optional named arguments.

Value

Returns the proportion of slope variance at the third level as a numeric vector. NA is returned for models with no slope variance as either level two or three.

Examples

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,
                          sigma_cluster_slope = 0.2,
                          sigma_error = 1.2,
                          cohend = -0.8)

get_ICC_slope(paras)

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