Check whether a [pk()] object has a particular required status level
# S3 method for pk
check_required_status(obj, required_status, ...)
If the [pk()] object has the required status or greater, returns TRUE. If the [pk()] object has less than the required status, returns FALSE. Returned value has an attribute `msg`, containing an informative message as a string.
A [pk()] object
Integer: The required status. 1 = initialized; 2 = pre-processed; 3 = pre-fitted; 4 = fitted.
Additional arguments. Not in use.
Caroline Ring
This is a helper function to check whether a [pk()] object has the status required for certain operations. For example, status 4 (fitting complete) is required for any fit evaluation functions: [predict.pk()], [residuals.pk()], [coef.pk()], [coef_sd.pk()], [rmse.pk()], [fold_error.pk()]