# Set ICCs
(
outcome('Y')
+ within_predictor('X')
+ effect_size(
icc = c(0.1, 0.2),
within = 0.3
)
)
# With cross-sectional ICC
(
outcome('Y')
+ within_predictor('X')
+ effect_size(
icc = cross_sectional,
within = 0.3
)
)
# With longitudinal ICC
(
outcome('Y')
+ within_predictor('X')
+ effect_size(
icc = longitudinal,
within = 0.3
)
)
Run the code above in your browser using DataLab