View source: R/summarise_nonparametric_edges.R
| summarise_nonparametric_edges | R Documentation |
Summarises nonparametric bootstrap results for network edges from bootnet.
summarise_nonparametric_edges(
nonParametricBoot,
stat_type = "edge",
probs = c(0.025, 0.975),
quiet = TRUE
)
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. |
A data frame with edge bootstrap summary statistics.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.