# Create Model with random and fixed correlations
(
outcome('Y')
+ within_predictor('X')
+ between_predictor('Z')
+ effect_size(icc = 0.1)
# Defaults
+ correlations(
within = random(0.1, 0.3),
between = fixed(0.2)
)
)
Run the code above in your browser using DataLab