Description Usage Arguments Value Examples
View source: R/Bootstrap_Edge_distn.R
Estimates MRFs from bootstrapped subsamples of data to approximate penalized partial correlation distibutions
1 2 3 4 5 6 7 8 9 10 11 |
x |
dataset for estimating MRFs. Supplied as data.frame. |
L1 |
Regularization penalty for inducing sparsity in networks |
vertices |
Vertices to include in MRF. Must be a subset of names(x) |
subset |
An expression to select a subset of records/rows |
B |
The number of subsamples to draw |
n_b |
The size of the subsamples. May be provided as an integer less than the number of rows in x, or as a proportion. |
replace |
Logical. Is subsampling done with (T) or without (F) replacement. |
seed |
Random seed value for reproducibility. |
... |
other arguments to be passed to Rnet(). |
A numeric matrix containing the estimated penalized partial correlations corresponding to the MRF edges (column) in each subsample (row).
1 2 3 4 5 6 | BootstrapEdgeDistn(
x = NARMS_EC_DATA,
L1 = 0.25,
vertices = c('AMP', 'AMC', 'AXO', 'FOX', 'TIO', 'TET', 'CHL', 'GEN', 'STR'),
subset = expression(Year == 2009)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.