Learn R Programming

amt (version 0.2.2.0)

check_factors: Check factor levels

Description

Check factor levels before log-RSS calculation

Usage

check_factors(model, x1, x2)

Arguments

model

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

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().

Details

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