reformat {springer} | R Documentation |
This function changes the format of the longitudinal data from wide format to long format
reformat(k, y, x)
k |
the number of repeated measurements/time points. |
y |
the longitudinal response. |
x |
a matrix of predictors, consisting of clinical covariates, genetic and environment factors, as well as gene-environment interactions. |