Hi Dan,
Thanks for the bug report. We have identified the source of this problem
and fixed it. We hope to release a new version with this and other bug
fixes in a few days.
Thanks for your patience,
Kosuke
-----------------------------------------------------
Kosuke Imai Office: Corwin Hall 041
Assistant Professor Phone: 609-258-6601
Department of Politics eFax: 973-556-1929
Princeton University Email: kimai(a)Princeton.Edu
Princeton, NJ 08544-1012
-----------------------------------------------------
On Wed, 23 Aug 2006, B. Dan Wood wrote:
I'm teaching MLE with R 2.3.1 using Zelig.
I've updated both Zelig and VGAM
to the current version of R.
I have a set of commands that worked fine under R 2.1.1 with Zelig to
estimate a multinomial logit.
They are as follows:
Spector <- read.table("c:/Data/Letters.txt", header=TRUE)
attach(Spector)
summary(Spector)
library(Zelig)
mlogit.out <- zelig(LETTERS ~ GPA + TUCE + PSI, model = "mlogit", data =
Spector)
summary(mlogit.out)
Here's the output:
library(Zelig)
Loading required package: MASS
Loading required package: boot
##
## Zelig (Version 2.6-3, built: 2006-06-19)
## Please refer to
http://gking.harvard.edu/zelig for full documentation
## or help.zelig() for help with commands and models supported by Zelig.
##
mlogit.out <- zelig(LETTERS ~ GPA + TUCE +
PSI, model = "mlogit", data =
Spector)
Loading required package: VGAM
Loading required package: splines
Loading required package: stats4
Creating a new generic function for 'print' in 'VGAM'
Creating a new generic function for 'coefficients' in 'VGAM'
Creating a new generic function for 'fitted.values' in 'VGAM'
Attaching package: 'VGAM'
The following object(s) are masked from package:splines :
bs ns
The following object(s) are masked from package:boot :
logit simplex
The following object(s) are masked from package:stats :
poly
The following object(s) are masked from package:base :
scale.default
Error in lm2vlm.model.matrix(x, Blist, xij = control$xij) :
length of 'dimnames' [1] not equal to array extent
summary(mlogit.out)
Error: object "mlogit.out" not found
Error in summary(mlogit.out) : unable to find the argument 'object' in
selecting a method for function 'summary'
Has anyone seen this before?
Thanks,
Dan
B. Dan Wood
Professor and University Faculty Fellow
Department of Political Science
Texas A&M University
4348 TAMUS
College Station, TX 77843-4348
Phone Numbers
Office: 979-845-1610
Home: 979-690-0390
Cell: 979-204-9147
FAX: 979-847-8924
Email: bdanwood(a)polisci.tamu.edu
Homepage:
http://www-polisci.tamu.edu/faculty/wood/
-
Zelig Mailing List, served by Harvard-MIT Data Center
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options: