Management of longitudinal data
data.manag.long(formGroup, formFixed, formRandom, data.long1)
A list with the following components :
data_long
a clean dataframe for the longitudinal data
y.new.prog
the vector of responses variable
X
a matrix with the fixed effects
U
a matrix with the random effects
id
a vector with the identification of individuals
offset
a vector with the number of measurements for each individual
I
an integer, the number of individuals
A formula which indicates the group variable
A formula which indicates the fixed effects for the longitudinal submodel
A formula which indicates the random effects for the longitudinal submodel
A dataframe with the longitudinal data