DataFrame2Matrix4Regression {MultBiplotR}R Documentation

Prepares a matrix for regression from a data frame

Description

Prepares a matrix for regression from a data frame

Usage

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

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

[Package MultBiplotR version 23.11.0 Index]