CorrR: This function obtains the correlation matrix of longitudinal data
Description
This function obtains the correlation matrix of longitudinal data
Usage
CorrR(y, x, beta, n, k, corre)
Arguments
y
the longitudinal response.
x
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.
beta
the coefficient vector.
n
the sample size.
k
a vector that contains the number of repeated measurements for each subject.
corre
the working correlation structure that is used in estimation algorithm. interep provides three choices
for the working correlation structure: "a" as "AR-1", "i" as "independence" and "e" as "exchangeable".