Displaying 1 result from an estimated 1 matches for "freetrad".
Did you mean:
freerad
2011 Jul 14
1
Amelia_Multiple_Imputation_with_observational_priors_noms
...ber of
nominal variables, it does not occur when I change to specifying the
variables as ordinal, 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...