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