Description Usage Arguments Details Value References See Also Examples
Compute bootstrap confidence intervals for the proportion of explained variance for the covariance of an incomplete data imputed using multiple imputation. For multiple imputation, Multivariate Imputation by Chained Equations (MICE) from the mice package is used.
1 2 3 4 5 6 7 8 9 | mifa_ci_boot(
data,
cov_vars = dplyr::everything(),
n_pc,
conf = 0.95,
n_boot = 1000,
progress = FALSE,
...
)
|
data |
A data frame with missing values coded as |
cov_vars |
Variables in |
n_pc |
Integer or integer vector indicating number of principal components (eigenvectors) for which explained variance (eigenvalues) should be obtained and for which confidence intervals should be computed. Defaults to all principal components, i.e., the number of variables in the data. |
conf |
Confidence level for constructing confidence intervals. The
default is |
n_boot |
Number of bootstrap samples to use for bootstrapped confidence intervals. The default is 1000. |
progress |
Logical. Whether to show progress bars for computation of bootstrap confidence intervals. Default is FALSE. |
... |
Arguments passed on to
|
This function uses the Shao and Sitter (1996) method to combine multiple
imputation and bootstrapping. The imputations are done using mice::mice()
.
Normally, this function does not need to be called directly. Instead,
use mifa(..., ci = "boot")
.
A data frame containing bootstrapped confidence intervals for variance explained by different number of principal components.
Shao, J. & Sitter, R. R. (1996). Bootstrap for imputed survey data. Journal of the American Statistical Association 91.435 (1996): 1278-1288. doi: 10.1080/01621459.1996.10476997
Other mifa confidence intervals:
mifa_ci_fieller()
1 2 3 4 | if(requireNamespace("psych")) {
data <- psych::bfi[, 1:25]
mifa_ci_boot(data, n_pc = 3:8, n_boot = 10, print = FALSE)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.