bootstrap_hype: Bootstrap A Hypergraph

View source: R/resamples.R

bootstrap_hypeR Documentation

Bootstrap A Hypergraph

Description

Bootstrapping is a common statistical technique used to quantify uncertainty of calculations. This is an approximation of the bootstrap algorithm for hypergraphs. Bootstrapping is achieved by creating a new hypergraph where the vertices, hyperedges or both have themselves been bootstrapped, achieved using the "vertex", "hyperedge" or "both" methods.

Usage

bootstrap_hype(hype, n = 1, method = "both")

Arguments

hype

A hypergraph object.

n

The number of bootstrapped hypergraphs required.

method

What method to use to calculate the bootstrapped hypergraphs

Value

A list of bootstrapped hypergraphs.

Examples

hype <- example_hype()
resamples <- bootstrap_hype(hype, n = 5)
lapply(resamples, incidence_matrix)

hwarden162/hyper documentation built on Sept. 15, 2022, 5:21 a.m.