ar1 {binarySimCLF} | R Documentation |
This function constructs an AR(1) correlation matrix.
ar1(n, rho)
n |
The dimension of the correlation matrix. This usually corresponds to cluster size. |
rho |
The correlation parameter. |
Returns an AR(1) correlation matrix satisfying n
and rho
.
# Example ar1(5,0.75) ar1(3,0.25)