Description Usage Arguments Details Value
View source: R/covariance-matrices.r
This function generates a p \times p autocorrelated
covariance matrix with autocorrelation parameter
rho
. The variance sigma2
is constant for
each feature and defaulted to 1.
1 | cov_autocorrelation(p = 100, rho = 0.9, sigma2 = 1)
|
p |
the size of the covariance matrix |
rho |
the autocorrelation value |
sigma2 |
the variance of each feature |
The autocorrelated covariance matrix is defined as: The (i,j)th entry of the autocorrelated covariance matrix is defined as: ρ^{|i - j|}.
The value of rho
must be such that |ρ| <
1 to ensure that the covariance matrix is positive
definite.
autocorrelated covariance matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.