Learn R Programming

STAR (version 0.3-7)

mkDummy: Generates a Data Frame of Dummy Variables for Use in gam

Description

Using argument by in s or te of gam requires dummy variables to be set up. This is the job of this function.

Usage

mkDummy(x)

Arguments

x
a factor.

Value

A data.frame with as many variables as there are levels in x and as many rows as elements in x.

See Also

mkGLMdf, gam, s, te

Examples

Run this code
## coming soon

Run the code above in your browser using DataLab