This function delivers bootstrap estimates of network degree distribution based on an LSMI sample. The bootstrap scheme is non-weighted for seeds (resampling with replacement) and weighted for non-seeds (resampling with replacement, with weights proportional to inverse of the degrees), as described in Section 3.3 by thompson_etal_2016;textualsnowboot and in Algorithm 1 by gel_etal_2017;textualsnowboot.
boot_dd(x, B = 100, cl = 1)
a list that is the output of lsmi_dd
, i.e., an estimate
of the degree distribution together with all degrees of seeds and non-seeds
from an LSMI.
a positive integer, the number of bootstrap replications to perform. Default is 100.
parameter to specify computer cluster for bootstrapping, passed to
the package parallel
(default is 1
, meaning no cluster is used).
Possible values are:
cluster object (list) produced by makeCluster. In this case, new cluster is not started nor stopped;
NULL
. In this case, the function will attempt to detect
available cores (see detectCores) and, if there are
multiple cores (\(>1\)), a cluster will be started with
makeCluster. If started, the cluster will be stopped
after computations are finished;
positive integer defining the number of cores to start a cluster.
If cl = 1
, no attempt to create a cluster will be made.
If cl > 1
, cluster will be started (using makeCluster)
and stopped afterwards (using stopCluster).
A list object of class "snowboot
" consisting of:
A matrix of dimensions length(x$fk)
\(\times\)B
with B
bootstrap estimates of the degree distribution.
The bootstrap estimates are computed according to
Equation 1 by gel_etal_2017;textualsnowboot, also
see chen_etal_2018_snowboot;textualsnowboot.
A vector of length B
with bootstrapped estimates
of the network mean degree.
The bootstrap estimates are computed according to
Equation 2 by gel_etal_2017;textualsnowboot.
A vector with an estimate of the degree distribution, copied
from the input x$fk
.
An estimate of the mean degree, copied from the input x$mu
.
The number of bootstrap replications performed.
# NOT RUN {
net <- artificial_networks[[1]]
lsmiEstimate <- lsmi_dd(net = net, n.seed = 5, n.wave = 3)
bootEstimates <- boot_dd(lsmiEstimate, B = 10)
# }
Run the code above in your browser using DataLab