Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[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" <[email protected]>
To
<[email protected]>
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: [email protected]
[mailto:[email protected]] Im Auftrag von Andreas Schmid
Gesendet: Freitag, 30. Juli 2010 11:23
An: [email protected]
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/