Oempdegreedistrib is used to obtain the empirical network degree distribution from labeled snowball sampling with multiple inclusion (LSMI).
Oempdegreedistrib(net, n.seeds, n.neigh, num.sam = 1, seeds = NULL)
A network object that is list containing:
The edgelist of the network. A two column
matrix
where each row is an edge.
The degree sequence of the network, which is
an integer
vector of length n.
The network order.
The object can be created by local.network.MR.new5
or
it can be imported.
A number of seeds in the snowball sample. It must be a positive integer.
A number of waves to be sampled around each seed in LSMI. For example, n.neigh = 0 corresponds to seeds only, and n.neigh = 1 corresponds to sampling seeds and their first neighbors). Note that the algorithm allows for multiple inclusions.
A number for the LSMI repetitions. Default value is one.
A matrix of dimension num.sam
x n.seeds
containing the
numeric ids of the seeds to initiate sampling. Each row of the matrix
corresponds to one LSMI sample. Note that this is an optional parameter.
WARNING: As of now, this feature is only supported when
parameter n.neigh
is greater than zero.
A list consisting of
A list of length num.sam
where each element
is a list containing three tables:
the frequency of degrees sampled from seeds,
non-seeds including duplicated nodes,
and non-seeds without duplications.
A list of length num.sam
where each element is a
vector containing the unique degree values sampled in each LSMI.
A list of length num.sam
where each element
is a list containing two tables based on different methods to
estimating the empirical distribution from the network sample
(One list per LSMI).
A number for the LSMI repetitions.
A list of length num.sam
where each element
is a vector of unique degree values sampled solely from seeds
(One vector per LSMI).
a list of length num.sam
where each
element is a vector of unique degree values sampled
solely from non-seeds
(One vector per LSMI).
Note: This item is unreported when n.neigh equals zero.
the number of seeds in the snowball sample.
the number of waves carried out by the snowball sample. See input argument for details.
proportion of nodes from the network with degree zero. Note: p0.real is unreported when n.neigh equals zero.
a list of length num.sam
where each
element is the proportion of seeds with degree zero.
(One element per LSMI).
a list of length num.sam
where each
element is the sample mean of the seeds.
Note that This is unreported when n.neigh equals zero.
a matrix of dimension num.sam
x n.seeds
with
the numeric seed ids. Each row corresponds to one LSMI.
a list of length num.sam
where each element is
vector containing the numeric ids of the nodes sampled using LSMI
(One element per LSMI). Note: nodes_of_LSMI is unreported when
n.neigh equals zero.
Thompson, M. E., Ramirez Ramirez, L. L., Lyubchich, V. and Gel, Y. R. (2015), Using the bootstrap for statistical inference on random graphs. Can J Statistics. doi: 10.1002/cjs.11271
# NOT RUN {
net <- artificial_networks[[1]]
sam.out <- Oempdegreedistrib(net = net, n.seeds = 40, n.neigh = 1, num.sam = 1)
# }
Run the code above in your browser using DataLab