Dear Statalist
I have gone through Tobit model in very a detailed way but reached a dead-end in trying to calculate the marginal effect for an IV Tobit model manually (NOT margins command) and I need your kind assistance please. As far as I know, if I want to calculate marginal effect manually (whether using nlcom or predictnl or whatsoever) for a tobit model with no endogenous variable I could simply do the following:
tobit Y X1 X2
predict xbeta, xb
egen avxbeta=mean(xbeta)
gen avxbsig=avxbeta/_b[/sigma]
gen lambda=normalden(avxbsig)/normal(avxbsig)
gen partial=_b[X1]*(1-lambda*(avxbsig+lambda))
sum partial
which satisfies:
margins, dydx(X1) predict(e(0,.)) atmeans
My question is: how can I do it if X1 is endogenous instrumented by Z1 as follows.
reg X1 Z1 X2
predict res, residual
tobit Y X1 X2 res
OR Simply put, for the code:
ivtobit Y (X1 = Z1) X2
how can I obtain [margins, dydx(X1) predict(e(0,.)) atmeans] mannually using nlcom or predictnl or any other way.
I know the ME calculation codes I posted above are not using nlcom or predictnl, but again please feel to provide codes using them.
Thanks in advance
Kind Regards
Thaer
Related Posts with Marginal effect manually for IV-Tobit
Annual and Monthly Stock PricesDear All Hope you are well. I am working on some share prices and I would really appreciate some h…
New Stata module for nonparametric errors-in-variables regressionA new Stata module for estimation of nonparametric errors-in-variables (EIV) regression (and constru…
Computing percentilesThis may be widely known, but in case not I thought I would share... Stata has several commands tha…
Issues with unbalanced Panel DataHello everyone: I have a few questions concerning the choices I have to make with respect to unbala…
Get latitude using IP addressHi all, I want to pull latitude/longitude from IP addresses using: Code: geocode_ip ip_address, …
Subscribe to:
Post Comments (Atom)
0 Response to Marginal effect manually for IV-Tobit
Post a Comment