Dear All,
I ran an rdrobust regression and would like to create a dummy variable that switches to 1 if the observation was used in the previous analysis. I believe it should be something similar to:
However, after trying that option above, running:
I realize that the number of observations used in the analysis, and reported by the rdrobust command ("Number of obs") is different from the number of observations when used_s=1.
Could I please ask anyone the solution to this problem?
Thank you!
Cat
I ran an rdrobust regression and would like to create a dummy variable that switches to 1 if the observation was used in the previous analysis. I believe it should be something similar to:
Code:
gen byte used_s=e(sample)
Code:
rdrobust dv1, c(0) all kernel(tri) covs(c1 c2 c3) weights(w) gen byte used_s=e(sample)
Could I please ask anyone the solution to this problem?
Thank you!
Cat
Comment