Get the matrices M and H to approximate the true covariance matrix of the GEE case
getMH(y, X, id, beta, rho, linkv, corstrv)
A matrix containing current response variable
A data frame containing the covariate for the current samples
The id for each subject in the X
The paramters that we estimate when we use the current samples
A numeric number indicating the estimate of correlation coefficient
A specification for the model link function.
A character string specifying the correlation structure. The following are permitted: "independence", "exchangeable" and "ar1".
a list contains several components
the sandwich information matrix for covariance
the matrix for calculating the sandwich information matrix for covariance
the matrix for calculating the sandwich information matrix for covariance
getMH uses the current samples to obtain the covariance matrix.