Learn R Programming

mlmpower (version 1.0.9)

subset.mp_model: Subset a mp_model by Global ICC

Description

Subsets a mp_model with multiple ICC values specified in effect_size into a model with only the single ICC value.

Usage

# S3 method for mp_model
subset(x, icc, ...)

Value

A new mp_model with only the subset ICC

Arguments

x

a mp_model object

icc

a single numeric value to subset out of x

...

other arguments not used by this method.

Examples

Run this code
# Create Model
model <- (
    outcome('Y')
    + within_predictor('X')
    + effect_size(icc = cross_sectional)
)
# Obtain Model with only 0.15 ICC
model |> subset(icc = 0.15)

Run the code above in your browser using DataLab