ord.expand {repolr}R Documentation

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.

Details

Mainly for internal use with repolr.

Value

An expanded dataframe.


[Package repolr version 1.0 Index]