[Limdep Nlogit List] NLOGIT command or data construction

H. KAMEYAMA in KU kameyama at ag.kagawa-u.ac.jp
Mon Aug 13 07:23:31 EST 2007


Greeting, NLOGIT experts,

This is the first time to use choice modeling by NLOGIT.
I received the following erro message for NLOGIT.
>> Error: 1099: Obs. 278 responses should sum to 1.0. Sum is .0000.
>> Error: 1099: Obs. 278 responses should sum to 1.0. Sum is .0000.
I am wondering if the following NOGIT code has something wrong.
Any suggestion would be great help for me.

Looking forward to receiving some suggestions.
Sincerely yours.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I designed choice model for same peti tomato. There are four
alternatives in each question and they are unlabeled.

Attribute and attribute levels
1. place: (place to production): Kagawa(place=1),Tokushima(place=2),
Kumamoto(place=3), Korea(place=4),
2. do: (practice): organic (do=1), no_pest_no_chem(do=2),
less_pest_less_chem(do=3), ordinary(do=4)
3. traceability: with_tr(tr=1), without_tr(tr=2),
4. price(yen): 98, 118, 138, 158, 178, 198, 218, 238


Id, Alti, Cset,choice,place, do tr, price
1st respondent
Qestion 10 (choose the 3rd alternative.)
Id, Alti, Cset,choice,place, do tr, price
1 1 4 0 4 2 2 2
1 2 4 0 1 1 1 6
1 3 4 1 2 3 2 2
1 4 4 0 0 0 0 0

Q11 (choose the 1st alternative.)
1 1 4 1 3 2 2 4
1 2 4 0 4 1 2 3
1 3 4 0 1 3 1 7
1 4 4 0 0 0 0 0
......
......
2nd respondent
Q10
2 1 4 0 4 2 2 2
2 2 4 1 1 1 1 6
2 3 4 0 2 3 2 2
2 4 4 0 0 0 0 0
Q11
2 1 4 0 3 2 2 4
2 2 4 0 4 1 2 3
2 3 4 1 1 3 1 7
2 4 4 0 0 0 0 0
......
...
CREATE; Dkagawa = (place=1) $
CREATE; Dtoku = (place=2) $
CREATE; Dkuma = (place=3) $
CREATE; Dkorea = (place=4) $
CREATE; Dyuki = (do=1) $
CREATE; Dmumu = (do=2) $
CREATE; Dgengen = (do=3) $
CREATE; Dord = (do=4) $
CREATE; Dwtr = (tr=1) $

NLOGIT ;Lhs=Choice, cset, alti
;Choices=opt1,opt2,opt3 ,opt4
;Model:

U(opt1,opt2,opt3)=ASC+Bkagawa*Dkagawa+Btoku*Dtoku+Bkuma*Dkuma+Bkorea*Dkorea
+Byuki*Dyuki+Bwtr*Dwtr +Bprice*price
/
U(opt4)=0 $
stop$
end$

************************************************
KAMEYAMA, Hiroshi
Kagawa University, Japan 






More information about the Limdep mailing list