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)
Create Distribution of P-values Across RegressionsI am regressing 100 repetitions with my randomly assigned treatment variable x1 as my variable of in…
inquire a code problem about operator operation Code: * first generation undergraduates label define q28 1 "High School or equivalent" /// …
MM-estimatorusing MM-estimator with MS-estimator give p value 1 for one dependent variable and same equation usi…
Plotting Interaction of Regression Results using PCSE estimatorI want to draw interaction plots to show my moderator working. I have unbalanced panel data for 20 f…
looping renaming variables in panel datasetHello, I am curious about how to use "foreach" or "forvalues" command in this situation below: gen …
Subscribe to:
Post Comments (Atom)
0 Response to Semykina and Wooldridge Estimator (2010)
Post a Comment