ord.expand: Expand data for model fitting

View source: R/ord.expand.R

ord.expandR Documentation

Expand data for model fitting

Description

This function expand each response value into indicator for model fitting

Usage

ord.expand(formula, times, data, subjects, categories)

Arguments

formula

an R formula

times

a vector of times which occur within subject clusters

data

a data frame including response data and covariates

subjects

a character string specifying the subject variable

categories

a numeric variable indicating the number of ordinal levels

Value

an expanded data frame


YuqiTian35/cpmgee documentation built on Aug. 6, 2023, 4:30 a.m.