This function changes the format of the longitudinal data from wide format to long format
reformat(k, y, x)
the number of repeated measurement.
the longitudinal response.
a matrix of predictors, consisting of omics and environment factors, as well as their interactions. In the case study, the omics measurements are lipidomics data.