fct: Generate design for a factor covariate

View source: R/terms.R

fctR Documentation

Generate design for a factor covariate

Description

Generate design for a factor covariate

Usage

fct(x, contr = "contr.sum")

Arguments

x

a covariate that can be treated as a factor

contr

(character) name of the contrasts associated with the factor. Defaults to "contr.sum".

Value

design matrix for a factor

Author(s)

Fabian Scheipl


spikeSlabGAM documentation built on June 10, 2022, 5:10 p.m.