Description Usage Arguments Value Examples
View source: R/qlr_functions.R
Create a correlation matrix, checking for positive definite
1 | fill_matrix(size = 6, cors = c("high", "mid", "low"), check.pd = TRUE)
|
size |
Number of variables in the variance/covariance matrix |
cors |
The size of the correlations between variables. Current options include "high", "mid", and "low". Future iterations may include "toeplitz" and maybe other options |
check.pd |
Should the matrix be checked for a positive definite matrix? Defaults to TRUE. Probably should be FALSE if the number of variables is high. |
A randomly-generated correlation matrix
1 2 | fill_matrix(size=5, cors="high")
fill_matrix(size=25, cors="high", check.pd=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.