hello everyone, I want to keep variable maternal labor supply only in 2009 as covariance at baseline. could you please give me any code or advice?
thank you!
thank you!
use "C:\Program Files\Stata17\ado\base\a\auto.dta" (1978 automobile data) . regress price mpg i.rep78 if rep78==3 note: 3.rep78 omitted because of collinearity. Source | SS df MS Number of obs = 30 -------------+---------------------------------- F(1, 28) = 14.65 Model | 123788982 1 123788982 Prob > F = 0.0007 Residual | 236582733 28 8449383.33 R-squared = 0.3435 -------------+---------------------------------- Adj R-squared = 0.3201 Total | 360371715 29 12426610.9 Root MSE = 2906.8 ------------------------------------------------------------------------------ price | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- mpg | -498.8875 130.3389 -3.83 0.001 -765.8747 -231.9003 3.rep78 | 0 (omitted) _cons | 16124.28 2587.92 6.23 0.000 10823.17 21425.39 ------------------------------------------------------------------------------ .
gen mother_work_2009=mother_work if year==2009
Comment