mp_corr_func | R Documentation |
Specify a random correlation that is uniform between lower
and upper
random(lower, upper)
fixed(value)
lower |
the lower bound of the distribution. |
upper |
the upper bound of the distribution. |
value |
the fixed value for the correlation. |
A mp_corr_func
that generates the desired correlation
correlations()
# 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)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.