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:
Cheers,
Matt
~~~~~~~~~~~
Matthew Blackwell
Assistant Professor of Government
Harvard University
url:
On Tue, Dec 8, 2015 at 8:22 AM, Vincent Audigier <
vincent.audigier(a)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/
<https://urldefense.proofpoint.com/v2/url?u=http-3A__vincentaudigier.weebly.com_&d=CwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=EwICq0J5pL8CwgEJz8qkmauGonk0XmiLpxcYOEgk2a0&m=FXpCFO6P5ad6FfRsV0Ok0x6YB5-_Gicd4NdG0FzUAtk&s=hp7cTyqA159HN2feIubmqiH_eza7Th9oANR_anImwi0&e=>
--
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(a)lists.gking.harvard.edu
To unsubscribe from this list or get other information:
https://lists.gking.harvard.edu/mailman/listinfo/amelia