Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: AW: NLOGIT in Stata 10


From   "Stephan Brunow" <[email protected]>
To   <[email protected]>
Subject   st: AW: NLOGIT in Stata 10
Date   Tue, 7 Aug 2007 12:54:21 +0200

Hi again!

I identified the mistake! So, just change the order from

nlogit chosen distance rating cost || lev1: kids || lev2: income || restaurant:, noconstant case(family_id) constraint(1 2)

to

nlogit chosen distance rating cost || lev2: income || lev1: kids || restaurant:, noconstant case(family_id) constraint(1 2)

then it works perfectly fine.

Thats it...

Stephan
------------------------------------------------------


Dear all,

since the nested logit gets a bit easier in data handling, we are triing the following. (Hopefully, now I make all right in posting ?)

webuse restaurant, clear
nlogitgen lev1=restaurant(R1: 1 2, R2: 3 4 5, R3: 6 7)
nlogitgen lev2=lev1(N1: R1 R2, N2: R3)
nlogittree  restaurant lev1 lev2, choice(chosen)
constraint 1 [N2_tau]_cons=1
constraint 2[R3_tau]_cons=1

We probably face the problem of a degenerate nest. However, we still get the error message:

"at least one alternative of vkms is contained in muliple alternatives of profiles; this is not allowed"

and do not know how to deal with it.

Do you have some advice?

Thank you very much in advance,

Stephan

---
Stephan Brunow
MSc. in Economics und Diplom-Verkehrswirtschaftler
Professur fr VWL, insb. Makrokonomik und Raumwirtschaftslehre/Regionalwissenschaften
Institut fr Wirtschaft und Verkehr
Fakultt fr Verkehrswissenschaften Friedrich List"
Technische Universitt Dresden
D-01062 Dresden

 

http://tu-dresden.de/regionalscience 

Phone: ++49-(0)351-463-36806
Fax: ++49-(0)351-463-36819



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index