Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: suest error message: number of score variables does not match...


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: suest error message: number of score variables does not match...
Date   Fri, 30 Jul 2010 11:34:03 +0200

<> 

You may want to tell listers that your "standard textbook example" can be
found in the support material for the MUS book at
http://www.stata-press.com/data/musr.html

At the very least, you have to add the following lines to make the example
work:

*************
u mus15data.dta
generate id = _n
reshape long d p q, i(id) j(fishmode beach pier private charter) string

asclogit d p q, case(id) alternatives(fishmode) casevars(income)  ///
basealternative(beach) nolog
estimates store full
asclogit d p q if fishmode!="private", case(id) alternatives(fishmode)  ///
casevars(income) basealternative(beach) nolog
estimates store reduced
suest full reduced
*************

This is after you -cd-ed to the -dir- where the files by Cameron and Trivedi
reside...

HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Andreas Schmid
Gesendet: Freitag, 30. Juli 2010 11:23
An: statalist@hsphsun2.harvard.edu
Betreff: st: suest error message: number of score variables does not
match...

Hi All,

I cannot make sense from an error message I obtain when running the 
following code using the standard textbook example mus15data.dta (choice 
of fishing mode) in a long format:

asclogit d p q, case(id) alternatives(fishmode) casevars(income) 
basealternative(beach) nolog
estimates store full
asclogit d p q if fishmode!="private", case(id) alternatives(fishmode) 
casevars(income) basealternative(beach) nolog
estimates store reduced
suest full reduced

In return I get:
. suest full reduced
number of score variables does not match number of equations in model full
r(198);

Background: I have to run the suest syntax on a different dataset for a 
model that doesn't fit with the hausman-test assumptions... So I tried 
to use it on a textbook example first...
Neither help files nor google could give me a hint... Any ideas? Thanks 
for your help!

Andreas


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index