Hi Vincent, 

We just released an update to Amelia and now the vignette shows how to use the latest version of Zelig. See Section 4.10 here: https://cran.r-project.org/web/packages/Amelia/vignettes/amelia.pdf

Or see the Zelig documentation here: http://docs.zeligproject.org/en/latest/using-Zelig-with-Amelia.html

Cheers,
Matt

~~~~~~~~~~~
Matthew Blackwell
Assistant Professor of Government
Harvard University
url: http://www.mattblackwell.org

On Tue, Dec 8, 2015 at 8:22 AM, Vincent Audigier <vincent.audigier@agrocampus-ouest.fr> wrote:
Dear list members,

I would like to analyse a multiply imputed data set with zelig,
but I don't know how to do with the last version of the Zelig package.
For instance, the following code, which runs well using a previous version
of the package (4.2.1 for instance), produces an error with the version 5.0.9:

library("Amelia")
data(freetrade)
amelia.out <- amelia(freetrade, m = 15, ts = "year", cs = "country")

is.list(amelia.out$imputations)
#TRUE
is.data.frame(amelia.out$imputations[[1]])
#TRUE

library("Zelig")
zelig.fit <- zelig(tariff ~ pop + gdp.pc + year + polity, data = amelia.out$imputations, model = "ls", cite = FALSE)

#Error: data is not a data frame

Could you give me an example to show me how to use the last version
of Zelig?

Thank you very much for your help,

Best,

--
AUDIGIER Vincent
Applied Mathematic Department, Agrocampus Ouest
65 rue de Saint-Brieuc, 35042 Rennes Cedex, France
Tel: (+33)2 23 48 54 76
Website: http://vincentaudigier.weebly.com/


--
Amelia mailing list served by HUIT
[Un]Subscribe/View Archive: http://lists.gking.harvard.edu/?info=amelia
More info about Amelia: http://gking.harvard.edu/amelia
Amelia mailing list
Amelia@lists.gking.harvard.edu

To unsubscribe from this list or get other information:

https://lists.gking.harvard.edu/mailman/listinfo/amelia