Announcement

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

  • A multinomial endogenous switching specification

    Dear all,

    I have been using Stata user written command "movestay" to run a normal Endogenous Switching Regression (ESR). Currently I have 8 treatments and I do not have an idea on how to run a multinomial ESR in STATA. I am kindly requesting anyone who is using stata 13 to help me on how I can Implement a multinomial ESR in STATA. Please find sample data here.Assume farmrevenue is the outcome variable and all the variables starting with an a are treatment variables.



    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input int household_id double farm_revenue float(amintillage afertilizer aminvar afertvar) byte(sex yrsschol) float land_size double tlu
     1 54000000 0 0 0 0 1 7 3   54.26999855041504
     2 27280000 0 0 0 0 1 7 3   94.93999862670898
     3 16000000 0 0 0 0 1 7 1  .03999999910593033
     4 18000000 0 0 0 0 1 7 3  16.780000686645508
     5 50400000 0 0 0 0 1 4 2   8.499999523162842
     6 22000000 0 0 0 0 2 7 3  10.750000476837158
     7 30600000 0 0 0 0 1 4 3   29.57999897003174
     8     5000 0 0 0 0 2 7 1 .029999999329447746
     9        0 0 0 0 0 1 7 1  2.9099998474121094
    10 12800000 0 0 0 0 1 0 3    68.1500015258789
    end
    label values amintillage yesno
    label values afertilizer yesno
    label values aminvar yesno
    label values afertvar yesno
    label def yesno 0 "No", modify
    label values sex M1_1_4
    label def M1_1_4 1 "male", modify
    label def M1_1_4 2 "female", modify
    label values land_size land_size
    label def land_size 1 "Less than 6 acres", modify
    label def land_size 2 "6-10 acres", modify
    label def land_size 3 "Above 10 acres", modify







  • #2
    Please use the data below. Ignore the above

    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input int household_id double farm_revenue float(amintillage afertilizer aminvar afertvar) byte(sex yrsschol) float land_size double tlu
     1 54000000 0 0 1 0 1 7 3   54.26999855041504
     2 27280000 0 0 1 0 1 7 3   94.93999862670898
     3 16000000 1 0 0 0 1 7 1  .03999999910593033
     4 18000000 1 0 1 1 1 7 3  16.780000686645508
     5 50400000 1 0 0 0 1 4 2   8.499999523162842
     6 22000000 1 1 0 1 2 7 3  10.750000476837158
     7 30600000 0 0 0 0 1 4 3   29.57999897003174
     8     5000 0 1 0 1 2 7 1 .029999999329447746
     9        0 0 0 1 0 1 7 1  2.9099998474121094
    10 12800000 0 0 0 1 1 0 3    68.1500015258789
    end
    label values amintillage yesno
    label values afertilizer yesno
    label values aminvar yesno
    label values afertvar yesno
    label def yesno 0 "No", modify
    label def yesno 1 "Yes", modify
    label values sex M1_1_4
    label def M1_1_4 1 "male", modify
    label def M1_1_4 2 "female", modify
    label values land_size land_size
    label def land_size 1 "Less than 6 acres", modify
    label def land_size 2 "6-10 acres", modify
    label def land_size 3 "Above 10 acres", modify

    Comment


    • #3
      Hallo Maxwell Agisu. Did you ever get the MESRM Command? I'm in need of the same. Kindly assist. Thank you.

      Comment

      Working...
      X