ord.expand {repolr} | R Documentation |
Expands ordinal score data into appropriate form, K-1 new binary variables for ordinal score with K categories, for model fitting using GEE.
ord.expand(scores, data, subjects, categories)
scores |
a character string identifying the response variable. |
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. |
Mainly for internal use with repolr
.
An expanded dataframe.