Hi,

I'm trying to run a nested logit using three levels with -nlogit-.

Level 1 is whether the individual participates or not, denoted by P.

Level 2 is achieved if P=1, and has two major occupation levels, denoted by the dummy B.

Level 3 is achieved if B=0, and has 4 options under it.

I can't find any three level example online.

Can someone tell me what the nlogitgen and nlogit commands should look like please?

​​​​​