Learn R Programming

repolr (version 1.0)

ord.expand: Expand Ordinal Data for GEE Modeling

Description

Expands ordinal score data into appropriate form, K-1 new binary variables for ordinal score with K categories, for model fitting using GEE.

Usage

ord.expand(scores, data, subjects, categories)

Arguments

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.

Value

  • An expanded dataframe.

Details

Mainly for internal use with repolr.