Displaying 1 result from an estimated 1 matches for "newtrade".
Did you mean:
etrade
2011 Jul 14
1
Amelia_Multiple_Imputation_with_observational_priors_noms
..., or if I do not use priors. Using a doctored version of
the example from the Amelia User Guide this is what I came up with:
library(Amelia)
library(MatchIt)
library(Zelig)
library(foreign)
data(freetrade)
a.out = amelia(freetrade, m=5, ts = "year", cs = "country")
newtrade = which(is.na(freetrade), arr.ind = TRUE)
newtrade
newtradeMean =
c(30,29,28,31,32,34,30,34,26,32,30,29,28,31,32,34,30,34,26,32,30,29,28,31,32,34,30,34,26,
32,30,29,28,31,32,34,30,34,26,32,30,29,28,31,32,34,30,34,26,32,31,31,32,33,34,35,20,21,
7,8,2.0,2.1,2.2,2.0,2.5,2.3,2.5,2.1,1.9,1.8,1.7,2.9...