ord.expand: Expand Ordinal Data for Model Fitting with repolr

Description Usage Arguments Details Value

View source: R/ord.expand.R

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

1
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.


repolr documentation built on May 1, 2019, 9:20 p.m.