[Limdep Nlogit List] Nlogit and calculating choice probabilities

James Tang James.Tang at health.nsw.gov.au
Fri May 28 08:16:21 AEST 2021


Thanks, Prof Greene for quick reply.

The output that I get is below.
I'm I correct to interpret --- 

the percentage of mode_0 is the average of the mean of all 259 observations. (0.228+0.236)/2 x100 

or would it be the chose A mode_0 +chose B mode_0 = (0.252+0.242)/2 x100?


NLOGIT
    ;lhs = choice, cset, altij
    ;choices =A, B
	;describe
    ;model:
    U(A) = MODE_0*MODE_0 + MODE_1*MODE_1 + MODE_2*MODE_2 + freq_0*FREQ_0 + freq_1*FREQ_1 + freq_2*FREQ_2 +cost*COST + share_0*SHARE_0 + share_1*SHARE_1/
    U(B) = MODE_0*MODE_0 + MODE_1*MODE_1 + MODE_2*MODE_2 + freq_0*FREQ_0 + freq_1*FREQ_1 + freq_2*FREQ_2 +cost*COST + share_0*SHARE_0 + share_1*SHARE_1$



+-------------------------------------------------------------------------+
|             Descriptive Statistics for Alternative A                    |
|     Utility Function          | (CBS wt = 1.00000) |    131.0 observs.  |
|     Coefficient               | All      259.0 obs.|that chose A        |
| Name          Value  Variable | Mean      Std. Dev.|Mean      Std. Dev. |
| -------------------  -------- | -------------------+------------------- |
| MODE_0        .0149  MODE_0   |     .228       .420|     .252      .436 |
| MODE_1       -.3864  MODE_1   |     .255       .437|     .267      .444 |
| MODE_2        .4979  MODE_2   |     .282       .451|     .275      .448 |
| FREQ_0       -.3217  FREQ_0   |     .282       .451|     .313      .465 |
| FREQ_1       -.2259  FREQ_1   |     .232       .423|     .229      .422 |
| FREQ_2       -.3758  FREQ_2   |     .232       .423|     .206      .406 |
| COST         -.1906  COST     |    4.938      3.189|    3.565     2.810 |
| SHARE_0       .6877  SHARE_0  |     .309       .463|     .359      .481 |
| SHARE_1       .5938  SHARE_1  |     .367       .483|     .466      .501 |
+-------------------------------------------------------------------------+
+-------------------------------------------------------------------------+
|             Descriptive Statistics for Alternative B                    |
|     Utility Function          | (CBS wt = 1.00000) |    128.0 observs.  |
|     Coefficient               | All      259.0 obs.|that chose B        |
| Name          Value  Variable | Mean      Std. Dev.|Mean      Std. Dev. |
| -------------------  -------- | -------------------+------------------- |
| MODE_0        .0149  MODE_0   |     .236       .425|     .242      .430 |
| MODE_1       -.3864  MODE_1   |     .251       .434|     .195      .398 |
| MODE_2        .4979  MODE_2   |     .232       .423|     .289      .455 |
| FREQ_0       -.3217  FREQ_0   |     .216       .412|     .227      .420 |
| FREQ_1       -.2259  FREQ_1   |     .255       .437|     .273      .447 |
| FREQ_2       -.3758  FREQ_2   |     .278       .449|     .188      .392 |
| COST         -.1906  COST     |    4.969      3.208|    3.563     2.783 |
| SHARE_0       .6877  SHARE_0  |     .344       .476|     .375      .486 |
| SHARE_1       .5938  SHARE_1  |     .317       .466|     .375      .486 |
+-------------------------------------------------------------------------+






________________________________________
From: Limdep <limdep-bounces at mailman.sydney.edu.au> on behalf of William Greene via Limdep <limdep at mailman.sydney.edu.au>
Sent: Friday, 28 May 2021 02:00
To: Limdep and Nlogit Mailing List
Cc: William Greene
Subject: Re: [Limdep Nlogit List] Nlogit and calculating choice probabilities

James.  Just fit your MNL model and add ;Describe to the command.
This should get you what you are looking for.
/B. Greene

On Thu, May 27, 2021 at 12:44 AM James Tang via Limdep <
limdep at mailman.sydney.edu.au> wrote:

> Dear Nlogit expert,
>
> I have been using Nlogit for MNL model and 2 way interactions for a model
> building about preferences.
>
> I wanted to know how I can get percentages of a choice of a specific
> attribute's level.
>
> For example,
>
> attribute
> mode of screen (4 levels)
> frequency of screen (4 levels)
> cost (3 levels)
> sharing information (3 levels)
>
> I wanted to know how many participants (percentage) picked a specific mode
> of screen (i.e. percentages of each of the 4 levels).
>
> How would I code this in nlogit coding?
>
> Thank you
>
> James?
>
> ?
>
>
> This message is intended for the addressee named and may contain
> confidential information. If you are not the intended recipient, please
> delete it and notify the sender.
>
> Views expressed in this message are those of the individual sender, and
> are not necessarily the views of NSW Health or any of its entities.
> _______________________________________________
> Limdep site list
> Limdep at mailman.sydney.edu.au
> https://protect-au.mimecast.com/s/Ty_cC6XQ4LfrZgM8KSp1uZp?domain=limdep.itls.usyd.edu.au
>
>

--
William Greene
Department of Economics, emeritus
Stern School of Business, New York University
44 West 4 St.
New York, NY, 10012
URL: https://protect-au.mimecast.com/s/o2VuC71R2NTAn0yokSWbKmy?domain=people.stern.nyu.edu
Email: wgreene at stern.nyu.edu
Editor in Chief: Journal of Productivity Analysis
<https://protect-au.mimecast.com/s/UZbWC81V0PT6BAQLRu2zCjA?domain=springer.com>
<https://protect-au.mimecast.com/s/UZbWC81V0PT6BAQLRu2zCjA?domain=springer.com>
Editor in Chief: Foundations and Trends in Econometrics
Associate Editor: Economics Letters
Associate Editor: Journal of Business and Economic Statistics
_______________________________________________
Limdep site list
Limdep at mailman.sydney.edu.au
https://protect-au.mimecast.com/s/Ty_cC6XQ4LfrZgM8KSp1uZp?domain=limdep.itls.usyd.edu.au


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender.

Views expressed in this message are those of the individual sender, and are not necessarily the views of NSW Health or any of its entities.



More information about the Limdep mailing list