# Nested Logit

**URL:** https://discourse.julialang.org/t/nested-logit/87495
**Category:** New to Julia
**Created:** [September 19, 2022, 9:56pm UTC](https://discourse.julialang.org/t/nested-logit/87495 "2022-09-19T21:56:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Alina-Elena](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Alina-Elena](https://discourse.julialang.org/u/Alina-Elena)
#### Post date: [September 19, 2022, 9:56pm UTC](https://discourse.julialang.org/t/nested-logit/87495/1 "2022-09-19T21:56:16Z")

</div>

Hi,

I was wondering if anyone could help me with estimating a nested logit with a specific nesting structure.  
The choice set represents possible occupations as follows: 1. professional/technical, 2. managers/ admin, 3. sales, 4. clerical / unskilled, 5. craftsmen, 6. operatives, 7. transport, 8. others.  
The task is asking me to estimate a nested logit with the following nesting structures:

1. white collar occupations (indexed by WC): including 1 2 3 above
2. blue collar occupations (indexed by BC): 4 5 6 7
3. other occupations (indexed by other): other

I have to specify the parameters s.t there are only nest level coefficients and print them.

While I have attempted for a couple of days, the code is still not functioning properly.

Thank you for any help.

---

<div class="post-metadata">

### Author: ![samerb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/samerb/32/9242_2.png) [@samerb](https://discourse.julialang.org/u/samerb)
#### Post date: [September 20, 2022, 3:17am UTC](https://discourse.julialang.org/t/nested-logit/87495/2 "2022-09-20T03:17:53Z")

</div>

It would probably help if you post the code that you tried.
