Learn R Programming

mlmpower (version 1.0.9)

print.mp_power: Prints a mp_power

Description

Prints a mp_power in a human readable format.

Usage

# S3 method for mp_power
print(x, ...)

Value

Invisibly returns the original variable.

Arguments

x

a mp_power.

...

other arguments not used by this method.

Examples

Run this code
# Create Model
model <- (
    outcome('Y')
    + within_predictor('X')
    + effect_size(icc = 0.1)
)
# Set seed
set.seed(19723)
# Create data set and analyze
# Note: Generally Use more than 50 replications
model |> power_analysis(50, 5, 50) -> powersim
# Print results
print(powersim)

Run the code above in your browser using DataLab