analyze {mlmpower} | R Documentation |
Analyzes a single mp_data
using lme4::lmer
Description
Analyzes a single mp_data
based on the data generating model.
Usage
analyze(data, alpha = 0.05, no_lrt = FALSE, ...)
Arguments
data |
a |
alpha |
the significance level to determine if an effect is statistically significant.
If |
no_lrt |
do not perform additional likelihood ratio tests.
Setting to |
... |
other arguments passed to |
Value
A list
that with the following named elements:
-
estimates
: The estimates from fitting the model. -
sig_test
: The logical if the estimates were statistically siginificant based onalpha
. -
parameters
: Themp_parameters
extracted fromdata
.
Examples
# Create Model
model <- (
outcome('Y')
+ within_predictor('X')
+ effect_size(icc = 0.1)
)
# Set seed
set.seed(198723)
# Create data set and analyze
model |> generate(5, 50) |> analyze() -> results
[Package mlmpower version 1.0.8 Index]