Hello everyone!
I am planning to use Semykina and Wooldridge Estimator (2010) for my thesis as my sample consists of unobserved heterogeneity, endogeneity and sample selection too. However, I am unsure about the codes to be used in STATA.
I tried to implement the model as follows:
Stage I- to account for participation in an activity, in my case
probit y x xbar , vce (cluster id)
where xbar is the mean of the explanatory variables in stage one generated by the command - by id: egen xbar = mean(x)
Calculate inverse mills ratio (imr) from stage one for each year.
Stage II
z is the outcome variable where impact of hours(h) in the activity is to be estimated. In my case, z affects h and h affects z indicating endogeneity (reverse causality).
what i understood is we have to use:
ivregress 2sls z x' (h= x'bar imr) if z>0
where x' is a subset of x.
I would be grateful if anyone could confirm if the codes are correct.
Related Posts with Semykina and Wooldridge Estimator (2010)
What does 'egen newvar=cut(var), group(#)' meanDear Stata users, In the funtion -egen-, we can invoke -egen newvar=cut(var), group(#)- to generate…
Kernel matching - propensity scoresHi I have a few questions regarding Propensity Scores Matching with Kernel Matching. 1) If there ar…
Smoothed plot using margins, marginsplotHi there! Does anyone know how to smooth a plot using margins and marginsplot? I ran the following…
how to obtain probability of point estimates in a two equation poisson models Code: * Example generated by -dataex-. To install: ssc install dataex clear input byte(y1 y2) float…
Rolling regression for two independent variables from panel dataHello everyone, I am new to stata and for my dissertation I have panel data that looks like this. es…
Subscribe to:
Post Comments (Atom)
0 Response to Semykina and Wooldridge Estimator (2010)
Post a Comment