Using test command, one can compare regression coefficients from subpopulations. However, test command does not work after mi impute command. Are there any ways to fix this? Below, please see my code:
mi estimate, svy, subpop(if NH_RCF == 0) : regress overallsatis i.BQ4 i.BQ5 BQ1 BQ2 i.Race i.BQ6 i.BQ8 i.BQ7 ADLs i.BQ10 Help i.size_cat form_payement i.Ownership i.urban
est store NH_RCF0
mi estimate, svy, subpop(if NH_RCF == 1) : regress overallsatis i.BQ4 i.BQ5 BQ1 BQ2 i.Race i.BQ6 i.BQ8 i.BQ7 ADLs i.BQ10 Help i.size_cat form_payement i.Ownership i.urban
est store NH_RCF1
test [NH_RCF0]2.BQ5=[NH_RCF1]2.BQ5
est store NH_RCF0
mi estimate, svy, subpop(if NH_RCF == 1) : regress overallsatis i.BQ4 i.BQ5 BQ1 BQ2 i.Race i.BQ6 i.BQ8 i.BQ7 ADLs i.BQ10 Help i.size_cat form_payement i.Ownership i.urban
est store NH_RCF1
test [NH_RCF0]2.BQ5=[NH_RCF1]2.BQ5
Comment