Hi everyone, I have a query about testing whether the coefficient difference is statistically significant from zero using permutation test. Here is my codes:
However, the result only gives two regression results without comparing their coefficients and test the statistical significance of the mean difference. Any suggestions will be appreciated!
Code:
program define permute, rclass reg Y X controls i.year i.sic2 if cf_indicator, vce(robust) return scalar small = _b[X] reg Y X controls i.year i.sic2 if !cf_indicator, vce(robust) return scalar d = _b[X] - small end permute cf_indicator d = r(d), strata(row) reps(3000) nodots seed(69): permute
Comment