is_valid {mlmpower} | R Documentation |
Check if a Model is Properly Specified
Description
This function is used to validate if a mp_model
is correct.
If the model is incorrect an appopriate error message describing while will be supplied
Usage
is_valid(x)
Arguments
x |
a |
Value
Invisibly returns the original model.
Examples
# Create Model
model <- outcome('Y') + within_predictor('X')
# Throws error
tryCatch(
is_valid(model),
error = print
)
# Succeeds
is_valid(model + effect_size(icc = 0.1))
[Package mlmpower version 1.0.8 Index]