# NOT RUN {
## Two clusters, three timepoints,
## residual standard error sd=3, random slope sd=1.
construct_CovMat(SumCl=2, timepoints=3, sigma=3, tau=1)
##
##
## ... with random slope as AR-1 process
construct_CovMat(SumCl=2, timepoints=3, sigma=3, tau=1, tauAR=.8)
##
##
## ... with sigma and tau variing over time and between clusters:
construct_CovMat(SumCl=2,timepoints=3,
sigma=matrix(c(1,2,2,1,1,2),nrow=2, byrow=TRUE),
tau=matrix(c(.2,.1,.1,.2,.2,.1),nrow=2, byrow=TRUE),
N=c(3,4))
# }
Run the code above in your browser using DataLab