Announcement

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

  • prediction command after selmlog

    Dear Statalist,

    I am running selmlog to study impact of different adaptation strategies on yield. As in my case I have more than one strategy so I had to work with multinomial endogenous switching regression model and had to use selmlog command rather than movestay command as used for simple endogenous switching regression model. After estimation, model allow to estimate treatment effect by using estimates of regression. However in the help file of "movestay" I have found the following command to estimate treatment effect for both both adapters and non-adapters

    mspredict newvarname [if exp] [in range] [, statistic]

    where statistic is one of

    Psel the probability of being in regime 1; this is the default statistic

    xb1 the linear prediction for the regression equation in regime 1

    xb2 the linear prediction for the regression equation in regime 2

    yc1_1 the expected value of the dependent variable in the first regime conditional on the dependent variable being observed in that regime. For example, if earning function is
    modeled for two sectors (regimes), then this option predicts the wage rate in sector one for the individual who is currently employed in that sector.

    yc2_1 the expected value of the dependent variable in the first equation conditional on the dependent variable not being observed. I.E., that option predicts the wage rate in
    sector two for the individual currently working in sector one.

    yc1_2 the expected value of the dependent variable in the second equation conditional on the dependent variable not being observed. I.E., that option predicts the wage rate in
    sector one for the individual currently working in sector two.

    yc2_2 the expected value of the dependent variable in the second equation conditional on the dependent variable being observed in that regime. I.E., that option predicts the
    wage rate in sector two for the individual currently working in sector


    But I didn't find any such prediction command in the help file of selmlog. As syntax for selmlog is:

    selmlog depvar varlist [ifexp][inrange],select(depvar_m=varlist_m) [lee dmf(#) dhl(# [all]) showmlogit wls bootstrap(number_of_replications[sample_size]) mloptions (mlogit options) gen(variable generic name)]

    I use "gen" command for prediction of yield but it did not report results of yield and give same results that I have when I use gen(rho_1). I am unable to understand what is going on there and how to do predictions of depend variable. My base paper is "How African Agriculture Can Adapt to Climate Change? A Counterfactual Analysis from Ethiopia" by Salvatore Di Falco and Marcella Veronesi

    Your help will be highly appreciated.

    Regards
    Ayesha

  • #2
    How do I use mspredict to get the conditional expected value

    Comment


    • #3
      I also ask this similar question. After I run semlog conmmand, How to calculate the ATT, my topic is land rental participation and household income.

      Comment

      Working...
      X