View source: R/summarise_case_drop_stability.R
| summarise_case_drop_stability | R Documentation |
Summarises case-dropping bootstrap stability results from bootnet.
summarise_case_drop_stability(
caseDroppingBoot,
probs = c(0.025, 0.975),
correlation_use = "pairwise.complete.obs",
quiet = TRUE
)
caseDroppingBoot |
A bootnet case-dropping bootstrap object. |
probs |
Numeric vector of length 2 for confidence interval quantiles. |
correlation_use |
Character string for cor() use argument. |
quiet |
Logical, suppress printing. |
A data frame with stability 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")
case_boot <- bootnet::bootnet(net, nBoots = 20, type = "case",
statistics = c("strength", "expectedInfluence"),
nCores = 1, verbose = FALSE)
summarise_case_drop_stability(case_boot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.