View source: R/corrmat_blockAR1.R
corrmat_blockAR1 | R Documentation |
An easy function to generate a block AR(1) design correlation matrix. Each diagonal
element R_i
is an AR(1) correlation matrix with dimension
d_i \times d_i
. Correlation coefficient in each block is \rho_i
.
All the off-diagonal elements are 0
.
corrmat_blockAR1(d, rho)
d |
An integer vector. Length |
rho |
A numeric vector. A length |
A correlation matrix
corrmat_blockAR1(
d = c(2,3,4),
rho = c(0.1, 0.3, 0.5)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.