Hello All,
I want to test the equality of a coefficient (x1) in the two models using the "mi estimate" command.
The variables are the same in the two models, but the two models use different samples (model 1 is only for male, and model 2 is only for female).
Here is my command:
mi estimate (diff: [est1_depress]x1 - [est2_depress]x1): mysuest "regress depress x1 x3 x4 x5 if x2==1" "regress depress x1 x3 x4 x5 if x2==2"
x2 is sex with 1=male, 2=female.
Is it okay to use this command for two different sample sets (male and female)?
I appreciate your reply!
My Stata version is Stata/MP 16.1

Comment