ord.expand {repolr} | R Documentation |
Expand Ordinal Data for Model Fitting with repolr
Description
Expands ordinal score data into an appropriate form, K-1 new binary variables for an ordinal score with K categories, for model fitting using repolr
.
Usage
ord.expand(space, formula, times, poly, data, subjects, categories)
Arguments
space |
a vector indicating the category spacing when fitting the polynomial model. |
formula |
a formula, as for other regression models. |
times |
a vector of times which occur within subject clusters. |
poly |
a numeric variable indicating the order of the polynomial contrasts used for the cut-point model. |
data |
a dataframe in which to interpret the variables occurring in the formula. |
subjects |
a character string specifying the name of the subject variable. |
categories |
a numeric variable indicating the number of ordinal score categories. |
Details
For internal use with repolr
.
Value
An expanded dataframe.
[Package repolr version 3.4 Index]