bootstrap_missing: Bootstrap missing values in data from fitted multivariate...

Description Usage Arguments Value Author(s)

View source: R/bootstrap_missing.R

Description

Bootstrap missing values in data from fitted multivariate model

Usage

1
bootstrap_missing(fit, dat, n = 500, progress = TRUE)

Arguments

fit

Fitting result, as returned by fit_mvnorm() or fit_mvnorm_hier(). Or, a matrix of samples, as returned by coda:::as.matrix.mcmc.list(fit)

dat

Data with partially missing values

n

Number of bootstrap samples (default = 500)

progress

(Logical) If TRUE (default), display a progress bar

Value

If missing_only, matrix of bootstrapped missing values (nmissing x n). Otherwise, an array of bootstraps of the full imputed dataset, with dimensions c(nrow(dat), ncol(dat), n).

Author(s)

Alexey Shiklomanov


ashiklom/mvtraits documentation built on Sept. 4, 2019, 7:43 a.m.