constructs the design matrix for the correlation structures:
independence, echangeable, ar1 and unstructured
The user will need this function only as a basis to construct a user defined
correlation structure: use genZcor to get the design matrix Z for
the unstructured correlation and define the specific correlation structure by
linear combinations of the columns of Z.
Usage
genZcor(clusz, waves, corstrv)
Arguments
clusz
integer vector giving the number of observations in each cluster
waves
integer vector, obervations in the same cluster with
values of wave i and j have the correlation sigma_ij