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.
1 2 | multord.data(data, index, y.names, x.names, y.levels = NULL,
response.names = NULL)
|
data |
a |
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 |
x.names |
column names of all the covariates in data. |
y.levels |
(optional) list of length |
response.names |
(optional) vector of names of the repeated measurements in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.