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

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:

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 (zuti@mail.uc.edu)

-Yichen Qin (qinyn@ucmail.uc.edu)