powered by
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
mp_model
is_valid(x)
Invisibly returns the original model.
a mp_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))
Run the code above in your browser using DataLab