Description Usage Arguments Value References
View source: R/covariance_matrix.R
Constructs a covariance matrix and its associated precision matrix of the following types: first-order autoregressive [AR(1)], fractional gaussian noise [FGN], or scale free network [SFN].
1 2 3 | covariance_matrix(q, type = "AR1", rho = 0.7, h = 0.9, n_edge = 1,
shift = 1, power = 1, zero_appeal = 1, g = 1, diag_val = 1,
edge_val = 0.3)
|
q |
dimension of covariance matrix (positive integer) |
type |
type of covariance matrix (string: 'AR1', 'FGN', or 'SFN') |
rho |
autoregression parameter for AR(1) covariance matrix (0 < |
h |
Hurst parameter for FGN covariance matrix (0 < |
n_edge |
Barabasi algorithm number of edges per step for SFN covariance matrix (positive integer) |
shift |
eigenvalue shift parameter for SFN covariance matrix ( |
power |
scaling power for SFN covariance matrix (positive numeric) |
zero_appeal |
Barabasi algorithm baseline attractiveness for SFN covariance matrix (positive numeric) |
g |
number of hub nodes for HUB graph precision matrix (positive integer-valued numeric less than q) |
diag_val |
values of diagonal entries HUB graph precision matrix (non-negative numeric) |
edge_val |
values of HUB graph network edges |
A list of two matrices, the covariance
matrix and the
precision
matrix.
MRCEtsmvr \insertRefchen2016hightsmvr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.