Description Usage Arguments Value
This function gets a design matrix for a generalized additive model (GAM) from the mgcv package or a linear model.
1 |
form |
A formula or string beginning with ~ that can be interpreted as an mgcv or lm formula without the outcome variable. |
data |
A data frame containing the variables specified in form. |
Returns a design matrix constructed from form and data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.