| make_corr | R Documentation |
Build a correlation matrix with a given structure
make_corr(
d,
type = c("exchangeable", "ar1", "toeplitz", "random", "identity"),
rho = 0.5,
names = NULL
)
d |
Dimension. |
type |
Structure: |
rho |
Correlation parameter (see |
names |
Optional variable names. |
A d x d correlation matrix.
make_corr(4, "ar1", rho = 0.7)
make_corr(3, "toeplitz", rho = c(0.5, 0.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.