Description Usage Arguments Value Examples
Takes a valid k by k covariance matrix and produces a valid k+1 by k+1 covariance matrix, uniformly drawn from that set, with the upper k by k submatrix being the input. Currently implimented in both R and C++. The C++ version is faster while the R version is easier for the expected user base to read and modify as needed.
1 2 |
covm |
A valid k by k covariance matrix. |
buff |
numeric. A buffer to avoid numeric positive non-definiteness. |
A valid k by k covariance matrix.
1 2 3 | set.seed(1234)
corm <- RandomCormCPP(5)
augmentcpp(corm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.