Hi everyone,
I would like to compare the regression coefficients across two regression models. When I use the svy prefix then the usual test command is not working. However, without using the svy prefix the below test command works.
Error: equation [NH_RCF0_mean] not found
I would like to compare the regression coefficients across two regression models. When I use the svy prefix then the usual test command is not working. However, without using the svy prefix the below test command works.
svy: regress overallsatis i.BQ4 i.BQ5 BQ1 BQ2 i.Race i.BQ6 i.BQ8 i.BQ7 ADLs i.BQ10 Help if NH_RCF==0, eform(exp(Coef.))
eststo NH
est store NH_RCF0
svy: regress overallsatis i.BQ4 i.BQ5 BQ1 BQ2 i.Race i.BQ6 i.BQ8 i.BQ7 ADLs i.BQ10 Help if NH_RCF==1, eform(exp(Coef.))
*vif
eststo RCF
est store NH_RCF1
esttab NH RCF, r2 ar2 aic l title(Satisfaction NH vs. RCF)
suest NH_RCF0 NH_RCF1
test [NH_RCF0_mean]2.BQ4=[NH_RCF1_mean]2.BQ4
eststo NH
est store NH_RCF0
svy: regress overallsatis i.BQ4 i.BQ5 BQ1 BQ2 i.Race i.BQ6 i.BQ8 i.BQ7 ADLs i.BQ10 Help if NH_RCF==1, eform(exp(Coef.))
*vif
eststo RCF
est store NH_RCF1
esttab NH RCF, r2 ar2 aic l title(Satisfaction NH vs. RCF)
suest NH_RCF0 NH_RCF1
test [NH_RCF0_mean]2.BQ4=[NH_RCF1_mean]2.BQ4
Comment