DataFrame2Matrix4Regression: Prepares a matrix for regression from a data frame

Description Usage Arguments Details Value Author(s) Examples

View source: R/DataFrame2Matrix4Regression.R

Description

Prepares a matrix for regression from a data frame

Usage

1
DataFrame2Matrix4Regression(X, last = TRUE, Intercept = FALSE)

Arguments

X

A data frame

last

Logical to use the last category of nominal variabless as baseline.

Intercept

Logical to tell the function if a constant must be present

Details

Nominal variables are converted to a matrix of dummy variables for regression.

Value

A matrix ready to use as independent variables in a regression

Author(s)

Jose Luis Vicente Vilardon

Examples

1
##---- Should be DIRECTLY executable !! ----

villardon/MultBiplotR documentation built on June 5, 2021, 8:55 a.m.