obtain_bootstrapped_samples function

To obtain bootstrapped versions of a network's adjacency matrix

To obtain bootstrapped versions of a network's adjacency matrix

obtain_bootstrapped_samples( network, n_nodes = igraph::gorder(network), n_versions = 1000, seed = 12345 )

Arguments

  • network: An igraph object
  • n_nodes: Number of nodes to be selected in bootstrapped versions (default : All nodes)
  • n_versions: Number of bootstrapped versions required
  • seed: seed number

Returns

A list of class bootstrapped_pvalue_matrix consisting of two elements. The first element contains the adjacency matrix of the original network and the second element contains bootstrapped versions of the adjacency matrices.

Examples

data(elk_network_2010) obtain_bootstrapped_samples(elk_network_2010, n_versions = 100)
  • Maintainer: Prabhleen Kaur
  • License: MIT + file LICENSE
  • Last published: 2024-03-25

Useful links