Hello,
I am having trouble running an ei.RxC model through Zelig. At first I got
the error that has been discussed in previous posts (i.e. November 2012)
where R replied that ei.RxC wasn't an available model:
** The model "ei.RxC" is not available with the currently loaded packages,
** and is not an official Zelig package.
** The model's name may be a typo.
So, following Matt Owen's November 2012 post, I upgraded to R version
3.0.2 and rolled back Zelig 4.0 to Zelig 3.5.
Now, however, I get an error--> Error: could not find function "zelig"
A February 2007 post recommended that the user switch from
library(zelig) to library(Zelig), but that is not the problem in my
case.
But when I do run library(Zelig) I get a response that:
Error : .onAttach failed in attachNamespace() for 'Zelig', details:
call: NULL
error: '.readRDS' is defunct.
Use 'readRDS' instead.
See help("Defunct")
Error: package or namespace load failed for 'Zelig'
Any idea about what is going on here? Did my installation of Zelig 3.5
work? I'm pasting the full documentation below. It shows that I first
removed Zelig, installed the 3.5 version, (unsuccessfully) tried to open
library(Zelig), and (unsuccessfully) tried to run the model.
Much Thanks,
Jennifer Boylan
remove.packages("Zelig")
Removing
package from 'C:/Users/Jenny/Documents/R/win-library/3.0'
(as 'lib' is unspecified)
install.packages("Zelig", repos =
"http://r.iq.harvard.edu/archived",
type = "source")
Installing package into 'C:/Users/Jenny/Documents/R/win-library/3.0'
(as 'lib' is unspecified)
trying URL 'http://r.iq.harvard.edu/archived/src/contrib/Zelig_3.5.4.tar.gz'
Content type 'application/x-gzip' length 5711031 bytes (5.4 Mb)
opened URL
downloaded 5.4 Mb
* installing *source* package 'Zelig' ...
files 'inst/doc/figs/icon_minus.gif', 'inst/doc/figs/icon_plus.gif',
'inst/doc/figs/increase.eps', 'inst/doc/figs/increase.pdf',
'inst/doc/figs/roc.eps', 'inst/doc/figs/roc.pdf',
'inst/doc/figs/sample1.eps', 'inst/doc/figs/sample1.pdf',
'inst/doc/figs/sample2.eps', 'inst/doc/figs/sample2.pdf',
'inst/doc/figs/ternary.eps', 'inst/doc/figs/ternary.pdf',
'inst/doc/figs/vertci.eps', 'inst/doc/figs/vertci.pdf' are missing
files 'DESCRIPTION', 'R/zelig2probit.R',
'inst/doc/blogit.pdf',
'inst/doc/bprobit.pdf', 'inst/doc/gamma.mixed.pdf',
'inst/doc/gamma.pdf',
'inst/doc/gamma.survey.pdf', 'inst/doc/logit.mixed.pdf',
'inst/doc/logit.pdf', 'inst/doc/logit.survey.pdf',
'inst/doc/ls.mixed.pdf',
'inst/doc/ls.pdf', 'inst/doc/negbin.pdf',
'inst/doc/normal.survey.pdf',
'inst/doc/poisson.mixed.pdf', 'inst/doc/poisson.pdf',
'inst/doc/poisson.survey.pdf', 'inst/doc/probit.mixed.pdf',
'inst/doc/probit.pdf', 'inst/doc/probit.survey.pdf',
'inst/doc/vigpics/blogit-BasicExamplePlot.pdf',
'inst/doc/vigpics/blogit-JointExamplePlot.pdf',
'inst/doc/vigpics/bprobit-BasicExamplePlot.pdf',
'inst/doc/vigpics/bprobit-JointEstimationPlot.pdf',
'inst/doc/vigpics/gamma-ExamplePlot.pdf',
'inst/doc/vigpics/gammasurvey-ExistingPlot.pdf',
'inst/doc/vigpics/gammasurvey-ReplicatePlot.pdf',
'inst/doc/vigpics/lmmixed-ExamplesPlot.pdf',
'inst/doc/vigpics/logit-ExamplePlot.pdf',
'inst/doc/vigpics/logit-FirstDifferencesPlot.pdf',
'inst/doc/vigpics/logit-ROCPlot.pdf',
'inst/doc/vigpics/logitsurvey-ExistingPlot.pdf',
'inst/doc/vigpics/logitsurvey-ReplicatePlot.pdf',
'inst/doc/vigpics/ls-DummyPlot.pdf',
'inst/doc/vigpics/ls-Example4Plot.pdf',
'inst/doc/vigpics/ls-ExamplesPlot.pdf',
'inst/doc/vigpics/negbin-Example1Plot.pdf',
'inst/doc/vigpics/normal-ExistingPlot.pdf',
'inst/doc/vigpics/normal-ReplicatePlot.pdf',
'inst/doc/vigpics/poisson-ExamplePlot.pdf',
'inst/doc/vigpics/poissonsurvey-ExistingPlot.pdf',
'inst/doc/vigpics/poissonsurvey-ReplicatePlot.pdf',
'inst/doc/vigpics/probitsurvey-ExistingPlot.pdf',
'inst/doc/vigpics/probitsurvey-ReplicatePlot.pdf',
'inst/doc/vigpics/weibull-ExamplePlot.pdf', 'inst/doc/weibull.pdf',
'man/Zelig-package.Rd' have the wrong MD5 checksums
** R
** data
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
'blogit.Rnw'
'bprobit.Rnw'
'gamma.Rnw'
'gamma.mixed.Rnw'
'gamma.survey.Rnw'
'logit.Rnw'
'logit.mixed.Rnw'
'logit.survey.Rnw'
'ls.Rnw'
'ls.mixed.Rnw'
'negbin.Rnw'
'normal.survey.Rnw'
'poisson.Rnw'
'poisson.mixed.Rnw'
'poisson.survey.Rnw'
'probit.Rnw'
'probit.mixed.Rnw'
'probit.survey.Rnw'
'weibull.Rnw'
** testing if installed package can be loaded
##
## Zelig (Version 3.5.4, built: 2010-01-20)
## 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.
##
* DONE (Zelig)
The downloaded source packages are in
'C:\Users\Jenny\AppData\Local\Temp\RtmpCMxAyF\downloaded_packages'
library(Zelig)
##
## Zelig (Version 3.5.4, built: 2010-01-20)
## 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.
##
Error : .onAttach failed in attachNamespace() for 'Zelig', details:
call: NULL
error: '.readRDS' is defunct.
Use 'readRDS' instead.
See help("Defunct")
Error: package or namespace load failed for 'Zelig'
STATA <- read.dta("C:/R/aggvote2.dta",
convert.factors = FALSE)
z.out <- zelig(cbind(ndc, npp, thirdparty, reject, novote12) ~ allakan +
allga +
allewe + allguan + allgurma + allmole + allgrusi + allmande +
allothers + allmissing, model = "ei.RxC", data=STATA)
Error: could not find function "zelig"
--
PhD Candidate
Department of Political Science
University of Florida
PO Box 117325
Gainesville, FL 32611-7325