Description Usage Arguments See Also Examples
Fits a specified model on the bootstrap resamples.
1 |
boot_resamples |
A list of bootstrap resamples. |
fitFUN |
Function to use to fit the model. |
cluster |
Logical.
If |
cores |
Integer. Number of cores to use. Defaults to total number of threads minus 1. |
... |
Arguments to pass to |
Other bootstrap functions:
boot_lav()
,
boot_nb()
,
boot_pb_med_simple()
,
boot_pb_vm()
,
boot_pb()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | B <- 5
Sigma <- matrix(
data = c(
225, 112.50, 56.25,
112.5, 225, 112.5,
56.25, 112.50, 225
),
ncol = 3
)
mu <- c(100, 100, 100)
data <- gendat_mvn(
n = 100,
Sigma = Sigma,
mu = mu
)
boot_nb_resamples <- boot_nb(data = data, B = B)
nb <- boot_fit(boot_resamples = boot_nb_resamples, fitFUN = med_simple)
n <- nrow(data)
est_Sigma <- cov(data)
est_mu <- colMeans(data)
boot_pb_resamples <- boot_pb(n = n, Sigma = est_Sigma, mu = est_mu, B = B)
pb <- boot_fit(boot_resamples = boot_pb_resamples, fitFUN = med_simple)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.