Learn R Programming

snowboot (version 0.5.1)

vertboot: Bootstrapping a network with vertex bootstrap

Description

This function bootstraps the the original network using a vertex bootstrap technique.

Usage

vertboot(m1, n.boot)

Arguments

m1
An adjacency matrix,the matrix represents the original network.
n.boot
A positive integer number, the number of bootstrap replications.

Value

A list of bootstrapped networks as adjacency matricies.

References

Tom A.B.Snijders., Stephen P.Borgatti. (1999). Non-Parametric Standard Errors and Tests for Network Statistics.

Examples

Run this code
graph_ex <- igraph::graph_from_edgelist(artificial_networks[[1]]$edges)
m1 <- igraph::as_adjacency_matrix(graph_ex)
m1 <- as.matrix(m1)
vertboot_out <- vertboot(m1,20)

Run the code above in your browser using DataLab