I am trying to create a small table where I test if covariates are balanced across two groups, called "gain" and "loss". I have done it for these two groups, which together add to my whole sample (as a test as I expect the covariates to be balanced). Here is the code I used.
Code:
label define loss 0 "Gain" 1 "Loss" label values loss loss *table1 table1 , by(loss) vars(DonationCont conts \ DonationDic bin \donation_miss contn\ USA bin\ visit bin \ pasthighdonors bin) saving(table1_loss.xlsx, replace)
Sorry in advance!
0 Response to table checking balance across covariates for two groups.
Post a Comment