tests/overimp.R

library(Amelia)
data(africa)
af2 <- na.omit(africa)

oi <- matrix(c(1:10,rep(4, 10)), nrow = 10)

a.out <- amelia(af2, cs = 2, overimp = oi)

if (a.out$imputations[[1]][1,4] == a.out$imputations[[2]][1,4]) {
  stop("overimp is broken")
}

Try the Amelia package in your browser

Any scripts or data that you put into this service are public.

Amelia documentation built on May 29, 2024, 2:17 a.m.