summarise_nonparametric_edges: Summarise Nonparametric Edges

View source: R/summarise_nonparametric_edges.R

summarise_nonparametric_edgesR Documentation

Summarise Nonparametric Edges

Description

Summarises nonparametric bootstrap results for network edges from bootnet.

Usage

summarise_nonparametric_edges(
  nonParametricBoot,
  stat_type = "edge",
  probs = c(0.025, 0.975),
  quiet = TRUE
)

Arguments

nonParametricBoot

A bootnet nonparametric bootstrap object.

stat_type

Character, type of statistic to summarise (default "edge").

probs

Numeric vector of length 2 for confidence interval quantiles.

quiet

Logical, suppress printing.

Value

A data frame with edge bootstrap summary statistics.

Examples


set.seed(123)
n <- 300
f1 <- rnorm(n)
f2 <- 0.3 * f1 + rnorm(n)
items <- data.frame(
  sapply(1:4, function(i) 0.7 * f1 + rnorm(n, 0, 0.7)),
  sapply(1:4, function(i) 0.7 * f2 + rnorm(n, 0, 0.7))
)
names(items) <- c(paste0("A", 1:4), paste0("B", 1:4))

net <- bootnet::estimateNetwork(items, default = "EBICglasso")
edge_boot <- bootnet::bootnet(net, nBoots = 20, nCores = 1, verbose = FALSE)
summarise_nonparametric_edges(edge_boot)


InterconectaR documentation built on Oct. 16, 2026, 1:06 a.m.