R version 4.4.0 RC (2024-04-16 r86468 ucrt) -- "Puppy Cup" 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.2, built: 2024-04-10) ## 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.21 0.09 0.29