| Title: | Inference with Available Complete-Case Missing Values |
|---|---|
| Description: | Implements inverse probability weighted, regression adjustment, and multiply robust estimators under the available complete-case missing value assumption of Cheng, Chen, Smith, and Zhao (2022) <doi:10.48550/arXiv.2207.02289>. Supports one or two primary variables, exponential-tilt sensitivity analysis, regression weights, and nonparametric bootstrap confidence intervals. |
| Authors: | Gang Cheng [aut, cre], Yen-Chi Chen [aut], Maureen A. Smith [aut], Ying-Qi Zhao [aut] |
| Maintainer: | Gang Cheng <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.1 |
| Built: | 2026-09-30 10:57:49 UTC |
| Source: | https://github.com/mathcg/accmv |
Implements inverse-probability-weighted, regression-adjustment, and multiply-robust estimators under the available complete-case missing value assumption of Cheng, Chen, Smith, and Zhao (2022).
Cheng G, Chen Y-C, Smith MA, Zhao Y-Q (2022). Handling Nonmonotone Missing Data with Available Complete-Case Missing Value Assumption. https://arxiv.org/abs/2207.02289.
Validates data and identifies observed-value patterns.
accmv_data(x, y) single_data_preparation(x, y) multiple_data_preparation(x, y)accmv_data(x, y) single_data_preparation(x, y) multiple_data_preparation(x, y)
x |
Numeric secondary-variable matrix with missing values represented by |
y |
Numeric primary-variable vector or matrix. |
An object containing the data and stable missing-pattern encodings.
x <- matrix(c(1, NA, 2, 3, NA, 4), ncol = 2) y <- c(1, NA, 2) accmv_data(x, y)x <- matrix(c(1, NA, 2, 3, NA, 4), ncol = 2) y <- c(1, NA, 2) accmv_data(x, y)
Performs a nonparametric row bootstrap, retrying draws lacking estimable pattern comparisons.
bootstrap_accmv_single(data, method = "mr", n_B = 999, seed = NULL, ...) bootstrap_accmv_multiple(data, method = "mr", target = "average", threshold = NULL, n_B = 999, seed = NULL, delta = NULL) single_bootstrap(data, method, n_B = 1000, ...) multiple_bootstrap(data, method, n_B = 1000, ...) bootstrap_regression(data, method, fm, n_B = 1000, ...)bootstrap_accmv_single(data, method = "mr", n_B = 999, seed = NULL, ...) bootstrap_accmv_multiple(data, method = "mr", target = "average", threshold = NULL, n_B = 999, seed = NULL, delta = NULL) single_bootstrap(data, method, n_B = 1000, ...) multiple_bootstrap(data, method, n_B = 1000, ...) bootstrap_regression(data, method, fm, n_B = 1000, ...)
data |
An object from |
method |
Estimator name or a function; for regression bootstrap, a model-fitting function. |
n_B |
Number of accepted bootstrap replicates. |
seed |
Optional random seed. |
target |
Built-in multiple-primary target. |
threshold |
Threshold for the indicator target. |
delta |
Optional exponential-tilt sensitivity parameter. |
... |
Additional estimator arguments. |
fm |
Regression formula using primary-variable columns. |
A numeric vector of bootstrap estimates.
Fits the estimators described in Cheng et al. (2022).
estimate_accmv_single(x, y, method = "mr", fun = identity, binary = FALSE, delta = NULL, n_boot = 0, level = 0.95, seed = NULL) estimate_accmv_multiple(x, y, method = "mr", target = "average", threshold = NULL, delta = NULL, n_boot = 0, level = 0.95, seed = NULL) single_regression_adjustment(data, fun = identity, binary = FALSE) single_ipw(data, fun = identity, delta = NULL) single_ipw_sensitivity(data, delta, fun = identity) single_multiply_robust(data, fun = identity, binary = FALSE) multiple_ipw(data, fun = NULL, target = "average", threshold = NULL, delta = NULL) multiple_ipw_sensitivity(data, delta, fun = NULL, target = "average", threshold = NULL) multiple_ra_average(data) multiple_ra_product(data) multiple_ra_indicator(data, a) multiple_mr_average(data) multiple_mr_product(data) multiple_mr_indicator(data, a) accmv_ipw_weights(data) ipw_regression(data)estimate_accmv_single(x, y, method = "mr", fun = identity, binary = FALSE, delta = NULL, n_boot = 0, level = 0.95, seed = NULL) estimate_accmv_multiple(x, y, method = "mr", target = "average", threshold = NULL, delta = NULL, n_boot = 0, level = 0.95, seed = NULL) single_regression_adjustment(data, fun = identity, binary = FALSE) single_ipw(data, fun = identity, delta = NULL) single_ipw_sensitivity(data, delta, fun = identity) single_multiply_robust(data, fun = identity, binary = FALSE) multiple_ipw(data, fun = NULL, target = "average", threshold = NULL, delta = NULL) multiple_ipw_sensitivity(data, delta, fun = NULL, target = "average", threshold = NULL) multiple_ra_average(data) multiple_ra_product(data) multiple_ra_indicator(data, a) multiple_mr_average(data) multiple_mr_product(data) multiple_mr_indicator(data, a) accmv_ipw_weights(data) ipw_regression(data)
x |
Numeric secondary-variable matrix. |
y |
Numeric primary-variable vector or two-column matrix. |
method |
One of |
fun |
Transformation defining the estimand. |
binary |
Whether the transformed outcome is binary. |
delta |
Optional exponential-tilt sensitivity parameter. |
n_boot |
Number of bootstrap replicates; zero disables bootstrap. |
level |
Confidence level. |
seed |
Optional random seed. |
target |
One of |
threshold |
Threshold for the indicator target. |
data |
An object from |
a |
Threshold for the indicator target. |
High-level functions return an accmv_result; low-level functions return an estimate or weights.
sim <- simulate_accmv_single(500, seed = 1) estimate_accmv_single(sim$x, sim$y, method = "ra") sim2 <- simulate_accmv_multiple(500, seed = 2) estimate_accmv_multiple(sim2$x, sim2$y, method = "mr", target = "product")sim <- simulate_accmv_single(500, seed = 1) estimate_accmv_single(sim$x, sim$y, method = "ra") sim2 <- simulate_accmv_multiple(500, seed = 2) estimate_accmv_multiple(sim2$x, sim2$y, method = "mr", target = "product")
Fits a weighted least-squares marginal model using the ACCMV IPW weights from Section 5.
fit_accmv_regression(x, y, response = 2, predictors = 1, n_boot = 0, level = 0.95, seed = NULL)fit_accmv_regression(x, y, response = 2, predictors = 1, n_boot = 0, level = 0.95, seed = NULL)
x |
Numeric secondary-variable matrix. |
y |
Numeric primary-variable matrix. |
response |
One-based response column in |
predictors |
One-based predictor columns in |
n_boot |
Number of bootstrap replicates; zero disables bootstrap. |
level |
Confidence level. |
seed |
Optional bootstrap seed. |
An accmv_regression_result with coefficients, weights, and optional bootstrap inference.
sim <- simulate_accmv_regression(500, seed = 3) fit_accmv_regression(sim$x, sim$y)sim <- simulate_accmv_regression(500, seed = 3) fit_accmv_regression(sim$x, sim$y)
Prints the ACCMV-weighted regression coefficients.
## S3 method for class 'accmv_regression_result' print(x, ...)## S3 method for class 'accmv_regression_result' print(x, ...)
x |
An |
... |
Unused. |
The input object, invisibly.
Prints the method, target, point estimate, and bootstrap standard error when available.
## S3 method for class 'accmv_result' print(x, ...)## S3 method for class 'accmv_result' print(x, ...)
x |
An |
... |
Unused. |
The input object, invisibly.
Generates data from Sections 7.1 and 7.2 of the ACCMV paper.
simulate_accmv_single(n = 2000, seed = NULL) simulate_accmv_multiple(n = 2000, seed = NULL) simulate_accmv_regression(n = 2000, seed = NULL)simulate_accmv_single(n = 2000, seed = NULL) simulate_accmv_multiple(n = 2000, seed = NULL) simulate_accmv_regression(n = 2000, seed = NULL)
n |
Sample size. |
seed |
Optional random seed. |
A list containing x and y.