MyNixOS website logo
Description

Local Bootstrap Methods for Various Networks.

Network analysis usually requires estimating the uncertainty of graph statistics. Through this package, we provide tools to bootstrap various networks via local bootstrap procedure. Additionally, it includes functions for generating probability matrices, creating network adjacency matrices from probability matrices, and plotting network structures. The reference will be updated soon.

localboot

Overview

localboot is an R package that offers tools for bootstrapping various networks through a local bootstrap procedure. It's particularly useful in network analysis for estimating the uncertainty of graph statistics. The package also includes utility functions that generating probability matrices, creating network adjacency matrices, and plotting network.

Installation

To install the latest version of localboot from CRAN:

install.packages("localboot")

To install the development version from GitHub:

# install.packages("devtools")
devtools::install_github("zzz1990771/localboot")

Features

  • Local bootstrap methods for network analysis.
  • Tools for generating probability matrices and network adjacency matrices.
  • Functions for plotting network structures.
  • Several simulation scripts included in the inst\sim folder for advanced analysis.

Usage

After installing the localboot package, you can load it into your R session:

library(localboot)
?localboot

Example usage:

# Example usage
P = generate_graphon(100, 1)
A = generate_network_P(P, replicate = 1, symmetric.out = TRUE)
result <- localboot(A = A, B = 100, returns = "boot")

Included Simulation Scripts

The localboot package comes with several simulation scripts located in the inst\sim folder. These scripts can be loaded and used for various simulations and analyses:

  • Fit_local_boot.R: Demonstrates the application of local bootstrap procedures to networks. It generates random networks by generate_graphon() and generate_network_P() and fit local boostrap procedures on it using the main function localboot().

  • Generate_various_networks.R: Generates a variety of synthetic networks for testing network analysis algorithms.

  • Sim1_truese.R: Obtains true simulated standard errors for graph statistics in various network simulations.

  • Sim1_estimates_local.R: Generates various simulated networks and obtains estimated standard errors for different graph statistics by applying local bootstrap procedure.

  • Sim1_estimate_others.R: Generates various simulated networks and obtains estimated standard errors for different graph statistics by applying other alternative procedures.

  • sup_funcs_sim.R: Support functions for simulations in Sim1_estimate_others.R.

  • Optimal_local_size.R: Generates plots to visualize the optimal neighbor set size of local bootstrap procedure for standard error estimation in relation to the number of blocks (K) in a Stochastic Block Model (SBM).

To load a script, use the system.file() function to find its path and then load it with file.edit(). For example:

scriptPath <- system.file("sim/Generate_various_networks.R", package = "localboot")
file.edit(scriptPath)

Results from Paper XXX

This package, along with the scripts Sim1_truese.R, Sim1_estimates_local.R, and Sim1_estimate_others.R, can be used to replicate the results presented in Paper XXX. Detailed instructions and data required for replication are provided within each script, ensuring a comprehensive understanding of the proposed local boostrap procedure.

License

This package is free and open source software, licensed under GPL-3.

Authors

-Tianhai Zu ([email protected])

-Yichen Qin ([email protected])

Metadata

Version

0.9.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows