@Joseph Coveney Hi Joseph, thank you a million for all the suggestions! Apart from cfi indicator, I have other indicator variables so when I applied the two permutation methods to those (the rest of codes remains unchanged), the mean difference T was different from true mean difference from two beta coefficients. Also, I found that the p-values changes every time when you have different
, so does it mean having the higher number of Monte Carlo permutations, we can obtain the more accurate approximation of mean differences and the lower approximation of p-values?
Many thanks to you!
-reps()-
Many thanks to you!

Comment