jackknife_hype: Jackknife A Hypergraph

View source: R/resamples.R

jackknife_hypeR Documentation

Jackknife A Hypergraph

Description

Jackknifing is a resampling technique similar to bootstrapping, where many resamples are taken, each time leaving out one observation. For the abstraction to hypergraphs, the "vertex" method recreates the hypergraph leaving out one vertex, the "hyperedge" method recreates the hypergraph leaving out one hyperedge and the "both" method leaves out one of each.

Usage

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

Arguments

hype

A hypergraph object.

n

The number of hypergraphs to create.

method

The method to use to jackknife the hypergraphs.

Value

A list of jackknifed hypergraphs.

Examples

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

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