prepareData {OrdFacReg} | R Documentation |
Prepare input data to be used in active set algorithm
Description
This function takes a matrix consisting of quantitative variables, unordered, and ordered factors
and generates the corresponding matrix of dummy variables, and some further quantities that are used
by the active set algorithm in ordFacReg
and ordFacRegCox
.
Usage
prepareData(Z, fact = NA, ordfact, ordering = NA, intercept = TRUE)
Arguments
Z |
Matrix with quantitative variables in the first |
fact |
Specify columns in |
ordfact |
Specify columns in |
ordering |
Vector of the same length as |
intercept |
If |
Value
Quantities that are used by the active set algorithm. The names of the objects roughly correspond to those in Rufibach (2010).
Author(s)
Kaspar Rufibach (maintainer)
kaspar.rufibach@gmail.com
http://www.kasparrufibach.ch
References
Rufibach, K. (2010). An Active Set Algorithm to Estimate Parameters in Generalized Linear Models with Ordered Predictors. Comput. Statist. Data Anal., 54, 1442-1456.
See Also
This function is used by the ordered factor computation functions ordFacReg
and ordFacRegCox
.