is_valid {mlmpower} | R Documentation |
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
is_valid(x)
x |
a |
Invisibly returns the original model.
# 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))