as.list.mp_parameters {mlmpower} | R Documentation |
mp_parameters
to a list
A wrapper to coerce mp_parameters
to a list
.
## S3 method for class 'mp_parameters'
as.list(x, ...)
x |
the |
... |
additional arguments passed to |
a list
# Specify model
model <- (
outcome('Y')
+ within_predictor('X')
+ effect_size(
icc = c(0.1, 0.2),
within = 0.3
)
)
# Obtain parameters and convert to a list
model |> summary() |> as.list() -> param_list