This function delivers a bootstrap estimate of network degree distribution based on a LSMI sample. Default is one bootstrap replication.
bootdeg(sam.out, num.sam = sam.out$num.sam, n.boot = 1, method = "w")
A list that is the output of Oempdegreedistrib
.
A vector of integers containing the numeric ids of the LSMI
samples when sam.out$num.sam
is greater than one. When num.sam
is an
integer, N, LSMI from 1 to N are taken from the input sam.out
.
A positive integer number, the number of bootstrap replications.
Can be either "w" for weighted bootstrap or "nw" for non-weighted bootstrap. "w" is recommended and set as the default method.
A list consisting of:
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 contains an
estimate of degree distribution for each LSMI. The method of
estimation is set with the method
parameter. If
method="w"
the object empd.w.p0s is returned, which is
a weighted bootstrap with a proportion of isolated nodes, p0,
being estimated by simple random sampling of bootstrapped
seeds; If method="nw"
the object empd.nw.p0sEkb, which
is - non-weighted bootstrap with a proportion of isolated nodes,
p0, being estimated by simple random sampling of bootstrapped seeds
(see Thompson et al. for details).
Numeric indices corresponding to LSMI samples used for bootstrap.
The same object as input argument n.boot
.
The number of waves carried out by the snowball sample.
This is the same value from sam.out$n.neigh
.
A matrix of dimension lenght(num.sam)
x n.seeds
with
the numeric seed ids. Each row corresponds to one LSMI. The rows are
present in the same order as the ids in num.sam
.
A list of length length(num.sam)
where each
element is vector containing the numeric ids of the nodes sampled
using the respective LSMI. The elements are present in the same
order as the ids in num.sam
.
Note: nodes_of_LSMI is unreported when n.neigh equals zero.
Efron, B. (1979). Bootstrap methods: another look at the jackknife. The annals of Statistics, 1-26.
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)
a <- bootdeg(sam.out = sam.out, n.boot = 50)
# }
Run the code above in your browser using DataLab