Description Usage Arguments Details Value
View source: R/utils.R View source: R/utils.R
Simulates a covariance matrix for an LD block
1 2 3 |
config |
An object created by setConfiguration |
config |
An object created by setConfiguration |
Covariance matrix is drawn from Wishart distribution using the rWishart function. The most important parameter to simulate a covariance matrix is the "population" covariance matrix specified in the configuration object. This function also ensures that the resulting covariance matrix is positive definite using the nearPD function from the matrix package.
a matrix representing the LD of the block
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.