Description Usage Arguments Value References See Also Examples
View source: R/sample_about_one_seed.R
This function obtains a labeled snowball with multiple inclusions (LSMI) sample, starting from a single network node called seed. See Figure 1 by \insertCitethompson_etal_2016;textualsnowboot illustrating the algorithm of sampling around one seed.
1 | sample_about_one_seed(net, seed, n.wave = 1)
|
net |
a network object that is a list containing:
The network object can be simulated by |
seed |
numeric ID of a seed to start the LSMI. |
n.wave |
an integer defining the number of waves (order of the neighborhood)
to be recorded around the seed in the LSMI. For example, |
sample_about_one_seed
returns a list of length n.wave + 1
containing ID of the seed (1st element of the output list), IDs of nodes in the
1st wave (2nd element of the list), ..., IDs of nodes in the wave n.wave
((n.wave + 1
)th element of the list). If a wave has no nodes in it, the
corresponding element of the output contains NA
.
1 2 | net <- artificial_networks[[1]]
a <- sample_about_one_seed(net, seed = 1, n.wave = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.