View source: R/general_functions.R
gen.cov.mat | R Documentation |
Generate population covariance matrix with dimension p.
gen.cov.mat(p, sigma2, type)
p |
A |
sigma2 |
A positive |
type |
Specify the type of a covariance matrix: Diagonal structure ("diagonal"); Equal correlation structure ("equal"); Power decay structure ("power"). |
A numeric
p-by-p matrix.
Haotian Xu
gen.cov.mat(p = 5, sigma2 = 1, type = "diagonal")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.