Description Usage Arguments Details
Given a correlation matrix an a vector of standard deviations for the individual variables, produce a covariance matrix.
1 | cor2cov(cormat, scales)
|
cormat |
Correlation matrix |
scales |
Vector of scale factors (i.e., standard deviations) |
This is a convenience function, meant for producing covariance matrices for proposal distributions in cases where you have an idea of what the correlation should be, and you want to specify the scale independently. No checks are performed to see, for example, whether the correlation matrix is valid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.