Check factor levels before log-RSS calculation
check_factors(model, x1, x2)
[glm, clogit]
The model object from a fitted RSF/(i)SSF.
I.e., it will be object$model
when called within log_rss()
.
[data.frame]
A data.frame
representing the habitat values
at location x_1. Must contain all fitted covariates as expected by
predict()
.
[data.frame]
A 1-row data.frame
representing the single
hypothetical location of x_2. Must contain all fitted covariates as expected
by predict()
.
This function is meant for internal use by log_rss()
and is
not meant to be called by the user.