generate_sig | R Documentation |
Creates an n × n covariance matrix with entries \rho^{|i - j|}
.
generate_sig(n, rho)
n |
Dimension of the covariance matrix. |
rho |
Correlation decay parameter. |
An n × n positive definite covariance matrix.
S <- generate_sig(5, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.