| correlation_structure | R Documentation |
Create a tidy correlation structure
correlation_structure(
n_variables,
rho = 0,
structure = c("independent", "exchangeable", "ar1", "custom"),
correlation = NULL,
variable_names = NULL
)
n_variables |
Number of variables. |
rho |
Correlation coefficient used by exchangeable and AR(1) structures. |
structure |
Correlation structure: one of |
correlation |
Custom correlation matrix. |
variable_names |
Optional variable names. |
A base data.frame with one row per matrix cell and columns row,
column, and correlation.
correlation_structure(
n_variables = 3,
rho = 0.5,
structure = "ar1"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.