Hi ,

 

I’m trying to use the mi.meld() function in Amelia but I’m having issues. I know this is a new feature (as of March 30th? ) and I have downloaded the most recent version of Amelia.

Unfortunately, I receive the following error message when I attempt to use meld. I’m pasting my code below. It’s basically the same thing that’s in the guide. This is ultimately just a test run for something else.

 

#The imputation process...

bgdata.mi <- amelia(bg.data, m=10, ts= "year", cs="ccode", noms = c("imf_ede","imf_euro","imf_cee","imf_mena",

                     "imf_ssa","imf_wh"), polytime = 1, ords = c("p_polity2", "wdi_trsb","fh_cl","fh_pr") ,

                     bounds = bds.cpi, max.resample=1000)

 

b.out<-NULL

se.out<-NULL

for(i in 1:bgdata.mi$m) {

ols.out <- lm(ti_cpi ~ lngdpc + p_polity2, data = bgdata.mi$imputations[[i]])

b.out <- rbind(b.out, ols.out$coef)

se.out <- rbind(se.out, coef(summary(ols.out))[,2])

}

combined.results <- mi.meld(q = b.out, se = se.out)

combined.results

 

From R.

 

combined.results <- mi.meld(q = b.out, se = se.out)

Error: could not find function "mi.meld"

combined.results

Error: object 'combined.results' not found

 

I’m just sending this initial e-mail to make sure I haven’t done the equivalent of “not plugged the cord in” with the syntax or something. Would be very grateful for any suggestions. I’ve been at it for some time and have hit a dead end.

 

Cheers,

 

Kyle