Tests whether an object specifies a model with random effects.
egf_has_random(object, check = TRUE)
object
an egf object.
egf
check
a logical. If TRUE, then an error is thrown if object does not actually inherit from class egf.
TRUE
TRUE or FALSE.
FALSE