Learn R Programming

mlmpower (version 1.0.11)

as.list.mp_parameters: Convert mp_parameters to a list

Description

A wrapper to coerce mp_parameters to a list.

Usage

# S3 method for mp_parameters
as.list(x, ...)

Value

a list

Arguments

x

the mp_parameters to be coered.

...

additional arguments passed to as.list

Examples

Run this code
# 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

Run the code above in your browser using DataLab