Hi,
After updating to R 2.13.1 and updating Zelig to 3.5-1, the following error
appears when I try to use the mi() command in Zelig. I ran the exact same code
in R 2.8 and it worked fine.
Error in attach(data) : all elements of a list must be named
Any ideas? Complete code and SessionInfo is below:
Thank you,
Audrey
library(Zelig)
Loading required package: MASS
Loading required package: boot
Loading required package: MNP
MNP: R Package for Fitting the Multinomial Probit Model
Version: 2.6-2
##
## Zelig (Version 3.5-1, built: 2011-03-25)
## Please refer to
http://gking.harvard.edu/zelig for full
## documentation or help.zelig() for help with commands and
## models supported by Zelig.
##
## Zelig project citations:
## Kosuke Imai, Gary King, and Olivia Lau. (2009).
## ``Zelig: Everyone's Statistical Software,''
##
http://gking.harvard.edu/zelig.
## and
## Kosuke Imai, Gary King, and Olivia Lau. (2008).
## ``Toward A Common Framework for Statistical Analysis
## and Development,'' Journal of Computational and
## Graphical Statistics, Vol. 17, No. 4 (December)
## pp. 892-913.
## To cite individual Zelig models, please use the citation format printed
with
## each model run and in the documentation.
##
Warning message:
'.readRDS' is deprecated.
Use 'readRDS' instead.
See help("Deprecated")
library(Amelia)
Loading required package:
foreign
##
## Amelia II: Multiple Imputation
## (Version 1.2-18, built: 2010-11-04)
## Copyright (C) 2005-2011 James Honaker, Gary King and Matthew Blackwell
## Refer to
http://gking.harvard.edu/amelia/ for more information
##
sessionInfo()
R version 2.13.1 (2011-07-08)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Amelia_1.2-18 foreign_0.8-45 Zelig_3.5-1 MNP_2.6-2 boot_1.3-2
[6] MASS_7.3-14
data(turnout)
data(immi1, immi2, immi3, immi4, immi5)
z.out <- zelig(as.factor(ipip) ~ wage1992 + prtyid + ideol,
+ model =
"ologit",
+ data = mi(immi1, immi2, immi3, immi4, immi5))
Error in attach(data) : all elements of a list must be named
-
Zelig Mailing List, served by Harvard-MIT Data Center
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options:
http://lists.gking.harvard.edu/?info=zelig
Zelig program information:
http://gking.harvard.edu/zelig/