R Under development (unstable) (2024-11-06 r87293 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(Amelia) Loading required package: Rcpp ## ## Amelia II: Multiple Imputation ## (Version 1.8.3, built: 2024-11-07) ## Copyright (C) 2005-2024 James Honaker, Gary King and Matthew Blackwell ## Refer to http://gking.harvard.edu/amelia/ for more information ## > data(africa) > af2 <- na.omit(africa) > > oi <- matrix(c(1:10,rep(4, 10)), nrow = 10) > > a.out <- amelia(af2, cs = 2, overimp = oi) -- Imputation 1 -- 1 2 3 -- Imputation 2 -- 1 2 3 -- Imputation 3 -- 1 2 3 -- Imputation 4 -- 1 2 3 -- Imputation 5 -- 1 2 3 > > if (a.out$imputations[[1]][1,4] == a.out$imputations[[2]][1,4]) { + stop("overimp is broken") + } > > proc.time() user system elapsed 0.23 0.06 0.28