Description Usage Arguments Value
View source: R/cov_mat_generators.R
Generates a random correlation matrix by R rcor_mat
, then
scales it to a covariance matrix by CRC, where
C is a diagonal matrix of uniformly generated standard deviations in
a specified range.
1 |
d |
An integer specifying the dimension of the correlation matrix. |
k0 |
An integer. d - k0 are the number of independent dimensions. |
range_sd |
A vector of length 2 specifying the lower and upper bound of the uniform distribution for generating standard deviations. |
... |
Other arguments to |
A covariance matrix with an attribute 'which_dims_cor', indicating which dimensions that are the correlated ones.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.