Hi everyone,
I am working with a two-wave household panel dataset. I want to estimate the following regressions:
I would like to compare the coefficients in A1 and B1. My code is as follows:
However, I get error r(322) "xtreg is not supported by suest". I have also read about this error in previous Stata Forum threads, but I think they don't apply to my case because I am not looking at different subgroups, but at different variables in the same sample. I'd be grateful if anyone could help. I am using Stata 18 on Windows 11.
Many thanks.
Maria
I am working with a two-wave household panel dataset. I want to estimate the following regressions:
migrationit = A0 + A1subjectiveit + A2controlsit + e1where subjective, objective, and controls are vectors that contain 3 continuous variables each, called subjective1, subjective2, subjective3, objective1, objective2, etc.
migrationit = B0 + B1objectiveit + B2controlsit + e2
I would like to compare the coefficients in A1 and B1. My code is as follows:
Code:
xtset household_id wave, yearly
xtreg y1 subjective1 subjective2 subjective3 controls, fe vce(robust)
est store betas1
xtreg y1 objective1 objective2 objective3 controls, fe vce(robust)
est store betas2
suest betas1 betas2, vce(robust)
test [betas1_mean]subjective1 = [betas2_mean]objective1
test [betas1_mean]subjective2 = [betas2_mean]objective2
test [betas1_mean]subjective3 = [betas2_mean]objective3
Many thanks.
Maria

Comment