[Limdep Nlogit List] Re: Limdep Digest, Vol 23, Issue 9

Santa Dutta send2santa83 at gmail.com
Thu Feb 21 15:04:51 EST 2008


Sir,

I was using NLOGIT 3.0 and gave the following commands as per given in
Pg:687(Applied Choice Analysis - A primer).  I was using the follwing
commands:


CALC;RAN(12345)$

NLOGIT;

Lhs=C21CHOIC;

Choices=a,b,c,d;

Rhs=C21FREQ,TTPERKM,FARECODE,DLE1,DLE2,DLE3;

RPL;

Fcn=TTPERKM(T,1),C21FREQ(T,1),DLE1(T,1),DLE2(T,1),DLE3(T,1);

Halton$

;PTS=20

;PARAMETERS

;WTP=Q/T

;MODEL:

U(a)=Q*TTPERKM+R*C21FREQ+S*DLE1+T*FARECODE/

U(b)=Q*TTPERKM+R*C21FREQ+U*DLE2+T*FARECODE/

U(c)=Q*TTPERKM+R*C21FREQ+V*DLE1+T*FARECODE/

U(d)=Q*TTPERKM+R*C21FREQ+W*DLE1+T*FARECODE$
 The error coming is as follows:

*

;PTS=20

;PARAMETERS

;WTP=Q/T

;MODEL:

U(a)=Q*TTPERKM+R*C21FREQ+S*DLE1+T*FARECODE/

U(b)=Q*TTPERKM+R*C21FREQ+U*DLE2+T*FARECODE/

U(c)=Q*TTPERKM+R*C21FREQ+V*DLE1+T*FARECODE/

U(d)=Q*TTPERKM+R*C21FREQ+W*DLE1+T*FARECODE$
*

Error: 1: Unrecognized command. (Missing ; ?)
However, I have used a 4 sign after ;Halton. Beacuse else it was
giving error 999:

*

--> CALC;RAN(12345)$

--> NLOGIT;

Lhs=C21CHOIC;

Choices=a,b,c,d;

Rhs=C21FREQ,TTPERKM,FARECODE,DLE1,DLE2,DLE3;

RPL;

Fcn=TTPERKM(T,1),C21FREQ(T,1),DLE1(T,1),DLE2(T,1),DLE3(T,1);

Halton

;PTS=20

;PARAMETERS

;WTP=Q/T

;MODEL:

U(a)=Q*TTPERKM+R*C21FREQ+S*DLE1+T*FARECODE/

U(b)=Q*TTPERKM+R*C21FREQ+U*DLE2+T*FARECODE/

U(c)=Q*TTPERKM+R*C21FREQ+V*DLE1+T*FARECODE/

U(d)=Q*TTPERKM+R*C21FREQ+W*DLE1+T*FARECODE$
*

Error: 999: The specification ;WTP is not recognized.
 And in the matrix given in the output are only for* CO-EFFICIENT, STANDARD
DEVIATION, T-RATIO AND P-VALUE.*

Regards,

S.S.Dutta


On 2/16/08, limdep-request at limdep.itls.usyd.edu.au <
limdep-request at limdep.itls.usyd.edu.au> wrote:
>
> Send Limdep mailing list submissions to
>        limdep at limdep.itls.usyd.edu.au
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://limdep.itls.usyd.edu.au/mailman/listinfo/limdep
> or, via email, send a message with subject or body 'help' to
>        limdep-request at limdep.itls.usyd.edu.au
>
> You can reach the person managing the list at
>        limdep-owner at limdep.itls.usyd.edu.au
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Limdep digest..."
>
>
> Today's Topics:
>
>   1. Fwd: Problem in WTP calculation (Santa Dutta)
>   2. Re: Fwd: Problem in WTP calculation (William Greene)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 15 Feb 2008 23:43:15 +0530
> From: "Santa Dutta" <send2santa83 at gmail.com>
> Subject: [Limdep Nlogit List] Fwd: Problem in WTP calculation
> To: limdep at limdep.itls.usyd.edu.au
> Message-ID:
>        <c3a4e58f0802151013l74a7b9d1h33462011d746ab56 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> I was using NLOGIT  for modeling utility equations. However, after
> getting a model I cannot find the WTP for aparticular attribute for the
> same. Can anyone please suggest me the suitable commands for the same.
>
> The following is one of my utility model output:
>
>
>
> *+---------------------------------------------+*
>
> *| Random Parameters Logit Model |*
>
> *| Maximum Likelihood Estimates |*
>
> *| Model estimated: Nov 28, 2007 at 08:23:56PM.|*
>
> *| Dependent variable C21CHOIC |*
>
> *| Weighting variable None |*
>
> *| Number of observations 520 |*
>
> *| Iterations completed 12 |*
>
> *| Log likelihood function -97.69504 |*
>
> *| Restricted log likelihood -180.2183 |*
>
> *| Chi squared 165.0465 |*
>
> *| Degrees of freedom 6 |*
>
> *| Prob[ChiSqd > value] = .0000000 |*
>
> *| R2=1-LogL/LogL* Log-L fncn R-sqrd RsqAdj |*
>
> *| No coefficients -180.2183 .45791 .44944 |*
>
> *| Constants only -172.2408 .43280 .42394 |*
>
> *| At start values -98.9398 .01258 -.00285 |*
>
> *| Response data are given as ind. choice. |*
>
> *+---------------------------------------------+*
>
> *- mailed.xls*
>
> *+---------------------------------------------+*
>
> *| Random Parameters Logit Model |*
>
> *| Replications for simulated probs. = 500 |*
>
> *| Halton sequences used for simulations |*
>
> *| Number of obs.= 130, skipped 0 bad obs. |*
>
> *+---------------------------------------------+*
>
> *+---------+--------------+----------------+--------+---------+*
>
> *|Variable | Coefficient | Standard Error |b/St.Er.|P[|Z|>z] |*
>
> *+---------+--------------+----------------+--------+---------+*
>
> *Random parameters in utility functions*
>
> *TTPERKM -5.250336426 1.3999099 -3.750 .0002 - mailed.xls*
>
> *C21FREQ -.6108245638E-01 .20781952E-01 -2.939 .0033 - mailed.xls*
>
> *DLE1 1.384725948 .34722051 3.988 .0001 - mailed.xls*
>
> *DLE2 .1047650348 .25099881 .417 .6764 - mailed.xls*
>
> *DLE3 .2431614261 .44647020 .545 .5860 - mailed.xls*
>
> *Nonrandom parameters in utility functions*
>
> *FARECODE -.5696933158E-01 .75963494E-01 -.750 .4533 - mailed.xls*
>
> *Derived standard deviations of parameter distributions*
>
> *TsTTPERK 5.250336426 1.3999099 3.750 .0002 - mailed.xls*
>
> *TsC21FRE .6108245638E-01 .20781952E-01 2.939 .0033 - mailed.xls*
>
> *TsDLE1 1.384725948 .34722051 3.988 .0001 - mailed.xls*
>
> *TsDLE2 .1047650348 .25099881 .417 .6764 - mailed.xls*
>
> *TsDLE3 .2431614261 .44647020 .545 .5860 - mailed.xls*
>
> *(Note: E+nn or E-nn means multiply by 10 to + or -nn power.)*
>
> *- mailed.xls*
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 15 Feb 2008 14:09:10 -0500 (EST)
> From: William Greene <wgreene at stern.nyu.edu>
> Subject: Re: [Limdep Nlogit List] Fwd: Problem in WTP calculation
> To: Limdep and Nlogit Mailing List <limdep at limdep.itls.usyd.edu.au>
> Message-ID:
>        <14596819.736411203102550114.JavaMail.root at calliope.stern.nyu.edu>
> Content-Type: text/plain; charset=utf-8
>
> M. Dutta? Did you request them?  They are saved as matrices, not
> listed with the output, when you do.
> /B. Greene
> ----- Original Message -----
> From: "Santa Dutta" <send2santa83 at gmail.com>
> To: limdep at limdep.itls.usyd.edu.au
> Sent: Friday, February 15, 2008 1:13:15 PM (GMT-0500) America/New_York
> Subject: [Limdep Nlogit List] Fwd: Problem in WTP calculation
>
> Hi,
>
> I was using NLOGIT  for modeling utility equations. However, after
> getting a model I cannot find the WTP for aparticular attribute for the
> same. Can anyone please suggest me the suitable commands for the same.
>
> The following is one of my utility model output:
>
>
>
> *+---------------------------------------------+*
>
> *| Random Parameters Logit Model |*
>
> *| Maximum Likelihood Estimates |*
>
> *| Model estimated: Nov 28, 2007 at 08:23:56PM.|*
>
> *| Dependent variable C21CHOIC |*
>
> *| Weighting variable None |*
>
> *| Number of observations 520 |*
>
> *| Iterations completed 12 |*
>
> *| Log likelihood function -97.69504 |*
>
> *| Restricted log likelihood -180.2183 |*
>
> *| Chi squared 165.0465 |*
>
> *| Degrees of freedom 6 |*
>
> *| Prob[ChiSqd > value] = .0000000 |*
>
> *| R2=1-LogL/LogL* Log-L fncn R-sqrd RsqAdj |*
>
> *| No coefficients -180.2183 .45791 .44944 |*
>
> *| Constants only -172.2408 .43280 .42394 |*
>
> *| At start values -98.9398 .01258 -.00285 |*
>
> *| Response data are given as ind. choice. |*
>
> *+---------------------------------------------+*
>
> *- mailed.xls*
>
> *+---------------------------------------------+*
>
> *| Random Parameters Logit Model |*
>
> *| Replications for simulated probs. = 500 |*
>
> *| Halton sequences used for simulations |*
>
> *| Number of obs.= 130, skipped 0 bad obs. |*
>
> *+---------------------------------------------+*
>
> *+---------+--------------+----------------+--------+---------+*
>
> *|Variable | Coefficient | Standard Error |b/St.Er.|P[|Z|>z] |*
>
> *+---------+--------------+----------------+--------+---------+*
>
> *Random parameters in utility functions*
>
> *TTPERKM -5.250336426 1.3999099 -3.750 .0002 - mailed.xls*
>
> *C21FREQ -.6108245638E-01 .20781952E-01 -2.939 .0033 - mailed.xls*
>
> *DLE1 1.384725948 .34722051 3.988 .0001 - mailed.xls*
>
> *DLE2 .1047650348 .25099881 .417 .6764 - mailed.xls*
>
> *DLE3 .2431614261 .44647020 .545 .5860 - mailed.xls*
>
> *Nonrandom parameters in utility functions*
>
> *FARECODE -.5696933158E-01 .75963494E-01 -.750 .4533 - mailed.xls*
>
> *Derived standard deviations of parameter distributions*
>
> *TsTTPERK 5.250336426 1.3999099 3.750 .0002 - mailed.xls*
>
> *TsC21FRE .6108245638E-01 .20781952E-01 2.939 .0033 - mailed.xls*
>
> *TsDLE1 1.384725948 .34722051 3.988 .0001 - mailed.xls*
>
> *TsDLE2 .1047650348 .25099881 .417 .6764 - mailed.xls*
>
> *TsDLE3 .2431614261 .44647020 .545 .5860 - mailed.xls*
>
> *(Note: E+nn or E-nn means multiply by 10 to + or -nn power.)*
>
> *- mailed.xls*
> _______________________________________________
> Limdep site list
> Limdep at limdep.itls.usyd.edu.au
> http://limdep.itls.usyd.edu.au
>
>
> --
> Professor William Greene
> Department of Economics
> Stern School of Business
> New York University
> 44 West 4th St., Rm. 7-78
> New York, NY   10012
> http://www.stern.nyu.edu/~wgreene
> 212.998.0876
>
>
>
> ------------------------------
>
> _______________________________________________
> Limdep mailing list
> Limdep at limdep.itls.usyd.edu.au
> http://limdep.itls.usyd.edu.au/mailman/listinfo/limdep
>
>
> End of Limdep Digest, Vol 23, Issue 9
> *************************************
>



More information about the Limdep mailing list