IQSS / Amelia

Amelia: A Package for Missing Data
http://gking.harvard.edu/amelia
61 stars 17 forks source link

Crash when the number of missingness patterns == rows of the data #9

Closed mattblackwell closed 7 years ago

mattblackwell commented 7 years ago

If each row of the data has its own pattern of missingness, there is an out of bounds error in the ameliaImpute() function in the C++ code. Here is the error:

error: Mat::operator(): index out of bounds libc++abi.dylib: terminating with uncaught exception of type std::logic_error: Mat::operator(): index out of bounds Probably has to do with the looping over patterns and the last iteration of that loop.

mattblackwell commented 7 years ago

Ah, nevermind, fixed in https://github.com/IQSS/Amelia/commit/51ca8462404112f4afeb5e9c0e7eb34ff35cc356