multord.data: Data preparation for multord

Description Usage Arguments

Description

This function is an (internally) used to transforms the data, into a "multivariate setting", where all repeated measurements are matched accordingly to their ID. A matrix of all ordinal responses with J columns as well as a list of length J of matrices with all the covariates are created.

Usage

1
2
multord.data(data, index, y.names, x.names, y.levels = NULL,
  response.names = NULL)

Arguments

data

a data.frame, where each row corresponds to a single measurement.

index

is an (optional) argument that specifies the index for the subjects and the response index of the multiple measurement. This is usually performed by a character vector of length two specifying the column names of the subject index and the multiple response index in data. The default value of index is NULL assuming that the first column of data contains the subject index and the second column the multiple response index.

y.names

column name of data where the ordinal observations are stored.

x.names

column names of all the covariates in data.

y.levels

(optional) list of length J that specifies the levels of each repeated measurement. If the categories differ across repeated measurements (either the number of categories or the category labels) it is recommended to set them.

response.names

(optional) vector of names of the repeated measurements in data which specifies the ordering of the repeated measurements.


MultOrd documentation built on May 2, 2019, 4:49 p.m.