I am trying to implement, IV regression in which the second stage is probit. I use correlated random effect approach suggested by @Jeff Wooldridge.
This is the code that I am using
Everything is correct?
Any other suggestions?
This is the code that I am using
Code:
by pid, sort : egen x1_bar = mean(x1) by pid, sort : egen x2_bar = mean(x2) by pid, sort : egen iv_bar = mean(iv) program drop my2sls program my2sls reg x1 x2 iv x1_bar x2_bar iv_bar i.time predict x1_hat, xb probit y x1_hat x2 x1_bar x2_bar i.date, cluster(pid) drop follow_hat end bootstrap, reps(100): my2sls
Any other suggestions?
Comment