ar1_cor | R Documentation |
Construct an AR(1) correlation matrix
ar1_cor(n, rho)
n |
number of events for each subject |
rho |
autoregressive correlation |
A n by n matrix
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.