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)
Coding a variable according to the substring of many variablesHello everyone. I have 96 variables called moisx, where x takes values between 1 & 96. Each of …
three dimension panel dataHi everybody I have a panel data with 3 variables: year, country and product. for each year I have 9…
Changing structure of Data setI have an excel data set in the format having first Column as Date, and following Columns have daily…
What is the base category when two variables will interact with year dummy?Dear Stata User, I have one continuous independent variable (i.e., hhi), and other two variables d_n…
Is beta regression model best for panel data type of data?Hello everyone, I am a newly registered member here, but I have been using this site already for th…
Subscribe to:
Post Comments (Atom)
0 Response to Semykina and Wooldridge Estimator (2010)
Post a Comment