Hello Beiting,
There was a small bug in the code that caused this behavior. It
happened when one or more of the imputation chains ended up with a
non-invertible covariance matrix. This often happens when there are
highly collinear variables in the dataset (e.g. the same variable
twice). I just uploaded a new version of Amelia (1.1-32) that fixes
the bug. You can install this version by typing the following at the R
prompt:
install.packages("Amelia", repos="http://gking.harvard.edu")
You should see that now a warning message will be issued about the colliearity.
good luck,
matt.
On Tue, Jul 15, 2008 at 2:17 PM, Beiting Cheng <beiting.cheng(a)gmail.com> wrote:
Hi, Dear Friends,
I am running Amelia, and sometimes it works well, while sometimes it
produces error information but with the error code unspecified ("NA"). What
usually causes the error in such cases?
In the end of this email is a sample error message. Thanks,
-----------------------------------
The Screen Output
-- Imputation 1 --
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
41 42 43 44 45 46 47 48
-- Imputation 2 --
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26
-- Imputation 3 --
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
-- Imputation 4 --
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
-- Imputation 5 --
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
120
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
140
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
160
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
180
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
200
201 202 203 204
{Amelia Error Code: c("Afghanistan", "Afghanistan",
"Afghanistan",
"Afghanistan", "Afghanistan", "Afghanistan",
"Afghanistan", "Afghanistan",
"Afghanistan", "Albania", "Albania", "Albania",
"Albania", "Albania",
"Albania", "Albania", "Albania", "Albania",
"Algeria", "Algeria", "Algeria",
"Algeria", "Algeria", "Algeria", "Algeria",
"Algeria", "Algeria", "Angola",
"Angola", "Angola", "Angola", "Angola",
"Angola", "Angola", "Angola",
"Angola", "Antigua & barbuda", "Antigua & barbuda",
"Antigua & barbuda",
"Antigua & barbuda",
NA} {Amelia Error Code: c(1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005, 1997, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005, 1997, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 1997, 1998, 1999,
NA} {Amelia Error Code: c(-2.30999994277954, -2.54999995231628,
-2.63999986648560, -2.73000001907349, -2.34000015258789, -1.95000004768372,
-2.02999997138977, -2.13000011444092, -2.01999998092651, -0.479999989271164,
-0.839999973773956, -0.899999976158142, -0.959999978542328,
-0.789999961853027, -0.620000004768372, -0.430000007152557,
-0.800000011920929, -0.589999973773956, -2.38499999046326,
-2.32999992370605, -2.11500000953674, -1.89999997615814, -1.88999998569489,
-1.87999999523163, -1.85000002384186, -1.48000001907349,
NA} {Amelia Error Code: c(0.683606843282501, 0.949869567053888,
0.314149388888694, 0.788216345665737, 0.654315955791907, 0.583891040180185,
0.86803925037384, 0.562205970287323, 0.492482900619507, -0.0354861058294773,
-0.0320079848170280, 0.332790017127991, -0.0403876751661301,
0.089854396879673, 0.00846398994326591, 0.124031849205494,
0.180556565523148, 0.0058201476931572, 0.0384468100965023,
0.264602214097977, -0.0772869288921356, -0.0246779303997755,
0.182814359664917, -0.0075388615950942, 0.0664758607745171,
0.0225828327238560,
NA} {Amelia Error Code: c(0.345765967112898, 0.188846624606092,
0.3387213802189, 0.232999158514471, 0.331881795678462, 0.267808965645248,
0.396222084760666, 0.0528905726969242, 0.0757967680692673,
0.00211735581979156, 0.0157708954066038, 0.0399903506040573,
0.0313358865678310, 0.154329180717468, 0.0975607261061668,
0.0453599616885185, 0.000821814581286162, 0.0353519208729267,
0.0599707812070847, 0.130652114748955, -0.0292763058096170,
-0.170913085341454, 0.107809089124203, 0.100384339690208,
0.0248577166348696, -0.0154843768104911,
NA} {Amelia Error Code: c(0.209458683383840, 0.121953694702180,
0.0975304680921757, 0.0608510139058813, 0.201016385307409,
0.139832821978670, 0.156719043850899, 0.0799155458807945, 0.140002176165581,
-0.101999267935753, 0.127001196146011, 0.100996226072311,
0.0730065703392029, 0.069992259144783, 0.0290067009627819,
0.0569957830011845, 0.0593774989247322, 0.0551550127565861,
0.01100102532655, 0.0509919263422489, 0.0288270991295576,
0.0246516223996878, 0.0264875162392855, 0.0470034368336201,
0.069081962108612, 0.0517816171050072,
NA} {Amelia Error Code: c(0.0259972177445889, 0.0185250788927078,
0.0192921347916126, 0.0255937241017818, 0.0326368436217308,
0.0373492240905762, 0.040555689483881, 0.041601050645113,
0.0411606393754482, -0.00659833429381251, -0.00428838608786464,
-0.00220200116746128, -0.000389446009648964, 0.00168825685977936,
0.00401905830949545, 0.00558478850871325, 0.00622792914509773,
0.00615747831761837, 0.0158484559506178, 0.0147420736029744,
0.0143423825502396, 0.0144488485530019, 0.0146888652816415,
0.0148509731516242, 0.0150029128417373,
NA} {Amelia Error Code: c(0.0915858457553138, 0.0919809735795558,
0.0467363104534567, 0.116857695370917, 0.0733265987055065,
0.0776541903614998, 0.0937327817082405, 0.091387115418911,
0.0862401500344276, 0.108230963349342, 0.097549021244049,
0.0921438559889793, 0.0885654166340828, 0.0955461487174034,
0.101911582052708, 0.100789695978165, 0.0952186807990074,
0.0934316217899323, 0.165383785963058, 0.177919089794159, 0.167871028184891,
0.135831221938133, 0.146592199802399, 0.154066130518913, 0.147692948579788,
0.138247340917587,
NA} {Amelia Error Code: c(7.04383740039706, 7.70515764690494,
7.38127786491018, 7.32281996273583, 7.11205752448771, 7.19393677441066,
7.3992522947876, 7.48967576810485, 7.03819907217015, 6.79439401626587,
6.91822910308838, 7.01665496826172, 7.08752250671387, 7.15347480773926,
7.17807626724243, 7.22793197631836, 7.27904081344604, 7.32643365859985,
7.43355560302734, 7.46866226196289, 7.48592042922974, 7.49333906173706,
7.50442266464233, 7.53560876846313, 7.5874433517456, 7.62317609786987,
7.6598424911499, 6.43054151535034,
NA} {Amelia Error Code: c(0.000288200011709705, 0.000734700006432831,
0.000348100002156571, 0.000634299998637289, 0.00108069996349514,
0.00138040003366768, 0.00277270004153252, 0.00258459988981485,
0.00673400005325675, 0.00127120001707226, 0.000289299990981817,
0.00567519990727305, 0.00382110010832548, 0.00315609993413091,
0.00179300003219396, 0.00243080011568964, 0.00161689997185022,
0.00122049998026341, 1.10999999378691e-05, 1.30999997054460e-05,
2.75000002147863e-05, 3.57999997504521e-05, 4.95999993290752e-05,
1.78999998752261e-05,
NA}
You have recieved an error. You can close this window and reset
various options to correct the error.
-
Amelia mailing list served by Harvard-MIT Data Center
[Un]Subscribe/View Archive:
http://lists.gking.harvard.edu/?info=amelia