cov_grid {hmmTMB}R Documentation

Grid of covariates

Description

Grid of covariates

Usage

cov_grid(var, data = NULL, obj = NULL, covs = NULL, formulas, n_grid = 1000)

Arguments

var

Name of variable

data

Data frame containing the covariates. If not provided, data are extracted from obj

obj

HMM model object containing data and formulas

covs

Optional named list for values of covariates (other than 'var') that should be used in the plot (or dataframe with single row). If this is not specified, the mean value is used for numeric variables, and the first level for factor variables.

formulas

List of formulas used in the model

n_grid

Grid size (number of points). Default: 1000.

Value

Data frame of covariates, with 'var' defined over a grid, and other covariates fixed to their mean (numeric) or first level (factor).


[Package hmmTMB version 1.0.2 Index]