Hello,
I have a logit regression that contains both categorical variables and continuous variables as regressors. I am interested in DISCRETE EFFECTS/INCREASES at the MEDIANS and therefore I have computed those. Now I want to compute robust standard errors and I was suggested to use the DELTA METHOD, although I am finding to understand how to apply it in my case. Could you please provide me with a code that can make me obtain the correct robust standard errors?
logit repair sav_rate inc_a age HighEd1 fam price_ratio c.year [pweight=weighta]
For example, this is the way I have computed the Discrete effect at the median of HIghEd1, for a discrete increase of delta_increase=+4
*median of HighEd1
gen educ=4
gen double xb0 = _b[sav_rate]*savr + _b[inc_a]* ina + _b[age]* ag + _b[fam]*siz+ _b[HighEd1]*4 + _b[price_ratio]* pri + _b[year]*2009 + _b[_cons]
generate double pe = logistic(xb0 -_b[HighEd1]*educ + _b[HighEd1]*(educ+4)) - logistic(xb0)
di pe
*.01164981
Thank you in advance!
I have a logit regression that contains both categorical variables and continuous variables as regressors. I am interested in DISCRETE EFFECTS/INCREASES at the MEDIANS and therefore I have computed those. Now I want to compute robust standard errors and I was suggested to use the DELTA METHOD, although I am finding to understand how to apply it in my case. Could you please provide me with a code that can make me obtain the correct robust standard errors?
logit repair sav_rate inc_a age HighEd1 fam price_ratio c.year [pweight=weighta]
For example, this is the way I have computed the Discrete effect at the median of HIghEd1, for a discrete increase of delta_increase=+4
*median of HighEd1
gen educ=4
gen double xb0 = _b[sav_rate]*savr + _b[inc_a]* ina + _b[age]* ag + _b[fam]*siz+ _b[HighEd1]*4 + _b[price_ratio]* pri + _b[year]*2009 + _b[_cons]
generate double pe = logistic(xb0 -_b[HighEd1]*educ + _b[HighEd1]*(educ+4)) - logistic(xb0)
di pe
*.01164981
Thank you in advance!
Comment