lsmi {snowboot} | R Documentation |
Labeled Snowball with Multiple Inclusions (LSMI)
Description
Obtain LSMI samples around several seeds, which can be selected randomly or pre-specified. See Figure 1 by Gel et al. (2017) or Figure 2 by Chen et al. (2018) illustrating the algorithm of sampling around multiple seeds.
Usage
lsmi(net, n.seed = 10, n.wave = 1, seeds = NULL)
Arguments
net |
a network object that is a list containing:
The network object can be simulated by |
n.seed |
an integer defining the number of nodes to randomly sample from the network to start an LSMI sample around each of them. |
n.wave |
an integer defining the number of waves (order of the neighborhood)
to be recorded around the seed in the LSMI. For example, |
seeds |
a vector of numeric IDs of pre-specified seeds. If specified, LSMIs are constructed around each such seed. |
Details
If seeds
specified, n.seed
is not used.
Value
A list of length n.seed
(or, if seeds
are specified,
of length length(unique(seeds))
), where each element is a list
of length n.wave + 1
representing an LSMI produced by
sample_about_one_seed
.
References
Chen Y, Gel YR, Lyubchich V, Nezafati K (2018).
“Snowboot: bootstrap methods for network inference.”
The R Journal, 10(2), 95–113.
doi: 10.32614/RJ-2018-056.
Gel YR, Lyubchich V, Ramirez Ramirez LL (2017).
“Bootstrap quantification of estimation uncertainties in network degree distributions.”
Scientific Reports, 7, 5807.
doi: 10.1038/s41598-017-05885-x.
See Also
sample_about_one_seed
, lsmi_union
Examples
net <- artificial_networks[[1]]
a <- lsmi(net, n.seed = 20, n.wave = 2)