Description Usage Arguments Value Author(s) References See Also
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
.
1 | prepareData(Z, fact = NA, ordfact, ordering = NA, intercept = TRUE)
|
Z |
Matrix with quantitative variables in the first c columns, unordered factors in the next columns, and finally unordered factors. The latter two need to have levels from 1 to j. |
fact |
Specify columns in Z that correspond to unordered factors. |
ordfact |
Specify columns in Z that correspond to ordered factors. |
ordering |
Vector of the same length as |
intercept |
If |
Quantities that are used by the active set algorithm. The names of the objects roughly correspond to those in Rufibach (2010).
Kaspar Rufibach (maintainer)
kaspar.rufibach@gmail.com
http://www.kasparrufibach.ch
Rufibach, K. (2010). An Active Set Algorithm to Estimate Parameters in Generalized Linear Models with Ordered Predictors. Comput. Statist. Data Anal., 54, 1442-1456.
This function is used by the ordered factor computation functions ordFacReg
and ordFacRegCox
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.