Grid of covariates
cov_grid(var, data = NULL, obj = NULL, covs = NULL, formulas, n_grid = 1000)
Data frame of covariates, with 'var' defined over a grid, and other covariates fixed to their mean (numeric) or first level (factor).
Name of variable
Data frame containing the covariates. If not provided, data are extracted from obj
HMM model object containing data and formulas
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.
List of formulas used in the model
Grid size (number of points). Default: 1000.