check_factors: Check factor levels

check_factorsR Documentation

Check factor levels

Description

Check factor levels before log-RSS calculation

Usage

check_factors(model, x1, x2)

Arguments

x1

⁠[data.frame]⁠
A data.frame representing the habitat values at location x_1. Must contain all fitted covariates as expected by predict().

x2

⁠[data.frame]⁠
A 1-row data.frame representing the single hypothetical location of x_2. Must contain all fitted covariates as expected by predict().

object

⁠[glm, clogit]⁠
The model object from a fitted RSF/(i)SSF. I.e., it will be object$model when called within log_rss().

Details

This function is meant for internal use by log_rss() and is not meant to be called by the user.


amt documentation built on March 31, 2023, 5:29 p.m.