Learn R Programming

LorenzRegression (version 2.2.0)

model_matrix_PLR: Design matrix in the Penalized Lorenz Regression

Description

model_matrix_PLR is a utilitary function that provides the design matrix for the Penalized Lorenz Regression

Usage

model_matrix_PLR(mt, mf)

Value

The design matrix

Arguments

mt

Model terms

mf

Model frame

Details

This function ensures that the design matrix is constructed according to the requirements of the PLR. In PLR, one must exclude the intercept and use one-hot encoding for all variables, except when binary