getDesign: Gets a Design Matrix for a GAM or Linear Model

Description Usage Arguments Value

View source: R/getDesign.R

Description

This function gets a design matrix for a generalized additive model (GAM) from the mgcv package or a linear model.

Usage

1
getDesign(form, data)

Arguments

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.

Value

Returns a design matrix constructed from form and data.


neuroconductor/pbj documentation built on May 23, 2021, 6:14 p.m.