Skip to contents

The share of a column mean's total variance attributable to the missing data, read from proxy_pool().

Usage

proxy_fmi(object, column, method = c("analytic", "rubin"))

Arguments

object

A gmm_imputation.

column

Name of a single numeric column whose mean is pooled.

method

"analytic" (the default) for the closed-form pooling, or "rubin" for Rubin's rules over the drawn completions.

Value

A named numeric scalar.

Examples

set.seed(1)
x1 <- rnorm(150); x2 <- x1 + rnorm(150); x2[runif(150) < 0.3] <- NA
imp <- gmm_impute(cbind(x1, x2), N = 1L, m = 10L, seed = 1L)
proxy_fmi(imp, "x2")
#>        x2 
#> 0.1765858