cov_grid: Grid of covariates

View source: R/utility.R

cov_gridR Documentation

Grid of covariates

Description

Grid of covariates

Usage

cov_grid(var, data, covs = NULL, formulas)

Arguments

var

Name of variable

data

Data frame containing the covariates

covs

Optional data frame with a single row and one column for each covariate, giving the values that should be used. 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

Value

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


TheoMichelot/smoothSDE documentation built on Jan. 26, 2024, 6:41 p.m.