I am using the balance table command to create a balance table.
I would like to report p values associated with differences in means across different subsamples but I do not know how to do it.
Code:
sysuse auto,clear codebook foreign generate u1 = runiform() gen sampled=1 replace sampled=0 if u1<0.5 balancetable (mean) (mean if sampled==1) (mean if foreign==1) (mean if foreign==0) (diff foreign if sampled==1) price mpg rep78 using tst1.tex, /// pval replace varlabel nostars wide(mean pval)
thanks a lot in advance for your help
0 Response to balancetable testing differences across multiple subsamples
Post a Comment