cov_grid | R Documentation |
Grid of covariates
cov_grid(var, data = NULL, obj = NULL, covs = NULL, formulas, n_grid = 1000)
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. |
Data frame of covariates, with 'var' defined over a grid, and other covariates fixed to their mean (numeric) or first level (factor).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.