Dear Professor King, Miya and Patrick
Just wanted to mention the following thing that happen to me: this piece of
R code using Amelia only runs on one of the HMDC computers, I have tried 4
other computers and get an error message about unused
arguments...(concerning that variable with NAs)
I will stick to the working computer hoping that it is because it has the
right Amelia package that it runs ( and not because there is something wrong
that, for weird reasons, still goes our way!)
Thought i would mention it just in case anyone had the same issue...really
weird!
model.1.new <- scrugg.f[, c("uercovch", "laguercov",
"lagleftc",
"lagtradeopen", "lagopenn",
"laguerate", "laggrow", "hrsveto", "siaroff",
"ggdeflag", "bbb",
"blaguercov",
"blagleftc", "blagtradeopen", "blagopenn",
"blaguerate", "blaggrow",
"bhrsveto",
"bsiaroff", "bggdef", "dum1", "dum2",
"dum3", "dum4", "dum5", "dum6",
"dum7", "dum8",
"dum10", "dum12", "dum13", "dum14",
"dum18", "dum19", "dum20", "dum21",
"counter", "year")]
## use amelia to impute missing data
model.1.new.am.list <- amelia(x=model.1.new, m=5, idvars=c("dum1",
"dum2",
"dum3", "dum4",
"dum5", "dum6", "dum7", "dum8", "dum10",
"dum12", "dum13", "dum14", "dum18",
"dum19",
"dum20", "dum21"), ts="year", cs="counter",
polytime=3)$imputations
best regards
Charlotte