Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Basic understanding of NLogit syntax

    Hello all,

    I am here with a fundamental doubt since I don't understand the syntax for the nlogit command. I tried the GUI/ model builder, but still can't wrap my head around the different terms. Would be of great help if someone can shed some light on this:


    I am trying to estimate a nested logit model for the following structure:
    Dep Var: "Consider" which takes on 3 values: 0--> NonCon; 1--> NonWork; 2-->Work)

    Level A -------NonCon / Con ......................modeled on Indep var: "income"
    Level B---------------------- Con: NonWork / Work ......................modeled on Indep var: "distance"



    The syntax for nested logit is shown in stata documentation as follows:
    Code:
     nlogit depvar [indepvars] [if] [in] [weight] [|| lev1_equation [|| lev2_equation ...]] || altvar:  [byaltvarlist], case(varname) [options]

    In my example,
    (i) which are lev1_ and lev2_?
    (ii) which is "altvar"? What is "byaltvarlist"?
    (iii) what does "case" in case(varname) refer to? (So that I can figure out what should be 'varname'...)


    Thank you for your immense patience, in advance.
    Last edited by Aravinda Devaraj; 15 Oct 2018, 05:34.
Working...
X