Learn R Programming

snowboot (version 0.5.2)

bootdeg: Bootstrapping Empirical Degree Distribution

Description

This function delivers a bootstrap estimate of network degree distribution based on a LSMI sample. Default is one bootstrap replication.

Usage

bootdeg(sam.out, num.sam = sam.out$num.sam, n.boot = 1, method = "w")

Arguments

sam.out

A list that is the output of Oempdegreedistrib.

num.sam

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.

n.boot

A positive integer number, the number of bootstrap replications.

method

Can be either "w" for weighted bootstrap or "nw" for non-weighted bootstrap. "w" is recommended and set as the default method.

Value

A list consisting of:

values

A list of length num.sam where each element is a vector containing the unique degree values sampled in each LSMI.

empd

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

num.sam

Numeric indices corresponding to LSMI samples used for bootstrap.

n.boot

The same object as input argument n.boot.

n.neigh

The number of waves carried out by the snowball sample. This is the same value from sam.out$n.neigh.

seeds1

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.

nodes_of_LSMI

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.

References

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

Examples

Run this code
# 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