[Limdep Nlogit List] NLOGIT command or data construction

William Greene wgreene at stern.nyu.edu
Mon Aug 13 12:37:56 EST 2007


Hiroshi.  The message means exactly what it says.  For observation 
(group), 278 the LHS variable does not consist of (0,0,...,1,0,0...).  This
usually occurs when your counter, in this case, CSET, is incorrect, so
the data set is not correctly blocked for the estimator.
/B. Greene

************************************************
Professor William Greene
Department of Economics
Stern School of Business
New York University
44 West 4th St., Rm. 7-78
New York, NY   10012
Ph. 212.998.0876
Fax. 212.995.4218
URL. http://www.stern.nyu.edu/~wgreene
Email. wgreene at stern.nyu.edu
************************************************

----- Original Message -----
From: "H. KAMEYAMA in KU" <kameyama at ag.kagawa-u.ac.jp>
Date: Sunday, August 12, 2007 4:23 pm
Subject: [Limdep Nlogit List] NLOGIT command or data construction

> 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 
> 
> 
> 
> _______________________________________________
> Limdep site list
> Limdep at limdep.itls.usyd.edu.au
> http://limdep.itls.usyd.edu.au
> 




More information about the Limdep mailing list