Description Usage Arguments Value References
Creates a random synthetic dataset for sparse multivariate regression according to the model:
Y = BX + E,
where X is the design matrix, B is the regressor matrix, Y is the response matrix, and E is the matrix error term.
1 2 3 4 |
n |
number of observations (positive integer) |
p |
number of regressor features (positive integer) |
q |
number of responses (positive integer) |
b1 |
Bernoulli parameter for controlling regressor matrix sparsity (positive integer) |
b2 |
another Bernoulli parameter for controlling regressor matrix sparsity (positive integer) |
sigma |
scale of error term (positive numeric) |
rho_x |
autoregression parameter for design matrix covariance matrix (0 < |
type |
type of covariance matrix (string: 'AR1', 'FGN', or 'SFN') |
rho_err |
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 |
reps |
number of randomly drawn datasets to return (positive integer) |
seed |
seed for pseudo-random number generator |
Returns a list of length reps
. Each entry is itself
a comprising a synthetic sparse multivariate dataset: a regressor
matrix B
, a design matrix X
, and a response matrix
Y
. B
has an expected sparsity of b1
x
b2
.
See also regressor_matrix
,
covariance_matrix
, and
tsmvr_solve
.
MRCEtsmvr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.