lsmi_dd: Network Degree Distribution Estimated from Labeled Snowball...

Description Usage Arguments Details Value References See Also Examples

View source: R/lsmi_dd.R

Description

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.

Usage

1
lsmi_dd(x = NULL, net, ...)

Arguments

x

the LSMI sample obtained from the network net, for example, with lsmi function or as a subset of the output by lsmi_union.

net

a network object that is a list containing:

degree

the degree sequence of the network, which is an integer vector of length n;

edges

the edgelist, which is a two-column matrix, where each row is an edge of the network;

n

the network order (i.e., number of nodes in the network).

The network object can be simulated by random_network, selected from the networks available in artificial_networks, converged from an igraph object with igraph_to_network, etc.

...

arguments passed to the lsmi function (ignored if x is specified, see Details).

Details

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.

Value

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, …, max(c(ds, dns)) (i.e., k ranges from 0 to the maximum node degree observed in the LSMI sample). The names of the vector elements are k.

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).

References

\insertAllCited

See Also

lsmi, lsmi_union, boot_dd

Examples

 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

snowboot documentation built on April 26, 2020, 1:05 a.m.

Related to lsmi_dd in snowboot...