Hi Dan,
Can you try this without attaching the data? In general, it's a good idea
not to attach it since it may mask some of the important objects in your
workspace. Also, please make sure to update VGAM from CRAN.
Thanks!
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 Tue, 14 Nov 2006, B. Dan Wood wrote:
I have the latest version of R with the latest release
of Zelig installed. I
have no libraries installed at startup. These commands worked fine two
releases ago. Running a multinomial logit, I get the following output.
Help.
Spector <- read.table("c:/Documents and
Settings/B. Dan Wood/My
Documents/My Teaching/Maximum
Likelihood/Data/Letters.txt", header=TRUE)
attach(Spector)
The following object(s) are masked from package:base :
LETTERS
summary(Spector)
OBS GPA TUCE PSI
Min. : 1.00 Min. :2.060 Min. :12.00 Min. :0.0000
1st Qu.: 8.75 1st Qu.:2.813 1st Qu.:19.75 1st Qu.:0.0000
Median :16.50 Median :3.065 Median :22.50 Median :0.0000
Mean :16.50 Mean :3.117 Mean :21.94 Mean :0.4375
3rd Qu.:24.25 3rd Qu.:3.515 3rd Qu.:25.00 3rd Qu.:1.0000
Max. :32.00 Max. :4.000 Max. :29.00 Max. :1.0000
GRADE LETTERS
Min. :0.0000 Min. :0.000
1st Qu.:0.0000 1st Qu.:1.000
Median :0.0000 Median :1.000
Mean :0.3438 Mean :1.344
3rd Qu.:1.0000 3rd Qu.:2.000
Max. :1.0000 Max. :2.000
library(Zelig)
Loading required package: MASS
Loading required package: boot
##
## Zelig (Version 2.7-4, built: 2006-11-10)
## 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
Attaching package: 'VGAM'
The following object(s) are masked from package:splines :
bs
The following object(s) are masked from package:splines :
ns
The following object(s) are masked from package:boot :
logit
The following object(s) are masked from package:boot :
simplex
The following object(s) are masked from package:stats :
glm
The following object(s) are masked from package:stats :
lm
The following object(s) are masked from package:stats :
poly
The following object(s) are masked from package:stats :
predict.glm
The following object(s) are masked from package:stats :
predict.lm
The following object(s) are masked from package:stats :
predict.mlm
The following object(s) are masked from package:base :
scale.default
Error in dimnames(xbig) <- list(vlabel(yn, rep(M, n), M), vlabel(xn,
ncolBlist, :
length of 'dimnames' [1] not equal to array extent
summary(mlogit.out)
Error: object "mlogit.out" not found
Error in summary(mlogit.out) : error in evaluating the argument 'object' in
selecting a method for function 'summary'
B. Dan Wood
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: