Description Usage Arguments Details Value References See Also Examples
lsmi_dd computes an empirical network degree distribution and estimates mean degree based on data from an LSMI sample from a network; see Equations 6 and 7 by \insertCitethompson_etal_2016;textualsnowboot and Equation 1 by \insertCitechen_etal_2018_snowboot;textualsnowboot on the details of the calculations.
1 |
x |
the LSMI sample obtained from the network |
net |
a network object that is a list containing:
The network object can be simulated by |
... |
arguments passed to the |
The samples produced with lsmi
or lsmi_union
contain
just node IDs arranged into lists of seeds and waves (no details on the
node degrees or other node features). This information is
sufficient to study some properties of a network (e.g., network motifs –
not yet implemented in the package). To estimate a degree distribution or
mean degree, both the LSMI sample and the original network object are required.
If the LSMI object x
is not supplied, the function will attempt
sampling an LSMI automatically, using the arguments supplied in "...
"
that will be passed to the lsmi
function.
A list object of class "snowboot
" consisting of:
fk |
A named numeric vector with estimated probabilities \hat{f}(k)
of degrees k, where k = 0, 1, …, |
mu |
An estimate of the mean degree. |
ds |
An integer vector of degrees of seed nodes. |
dns |
An integer vector of degrees of non-seed nodes (i.e., nodes recorded in the waves of neighbors). |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | net <- artificial_networks[[1]]
#Obtain an LSMI sample and, at the next step,
#use it to estimate the degree distribution:
lsmiSample <- lsmi(net, n.seed = 5, n.wave = 3)
fkEstimate1 <- lsmi_dd(lsmiSample, net)$fk
#Obtain an LSMI sample and estimate the degree
#distribution in a single step:
fkEstimate2 <- lsmi_dd(net = net, n.seed = 5, n.wave = 3)$fk
#Use the output of lsmi_union to get the estimate:
lsmiUnionSample <- lsmi_union(net, n.seeds = c(5, 10), n.wave = 3)
fkEstimate3 <- lsmi_dd(lsmiUnionSample$lsmi_big, net)$fk
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.