model_matrix_PLR {LorenzRegression} | R Documentation |
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)
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
Value
The design matrix
[Package LorenzRegression version 2.2.0 Index]