is_valid | 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.