powered by
Construct an AR(1) correlation matrix
ar1_cor(n, rho)
A n by n matrix
number of events for each subject
autoregressive correlation
## Generate AR(1) structure ar1_cor(n = 5, rho = 0.3) ## first derivative of the AR(1) structure with respect to rho dar1_cor.drho(n = 5, rho = 0.3)
Run the code above in your browser using DataLab