Hi All,
I'm trying to use the -lincom- command with a survey population. This is what I have now:
As written right now, each -Lincom- outputs a coefficient that is the difference between two subpopulations (red below). It also outputs std error, t value, p value, and 95% confidence intervals. As shown below:
I am trying to run a lincom between the expansion and nonexpansion sets of lincoms (bolded above) to find a difference-in-difference. I could just manually subtract the two outputs, but I am looking for a confidence interval, as well.
Ultimately my question is: is there a way to create a variable that captures only the coefficient outputs of each lincom and then run a lincom on that?
Thanks!
I'm trying to use the -lincom- command with a survey population. This is what I have now:
Code:
svy, subpop(expansion): proportion hlthpln1, over(race acaint) lincom _b[_prop_2:_subpop_2] - _b[_prop_2:_subpop_1] lincom _b[_prop_2:_subpop_4] - _b[_prop_2:_subpop_3] lincom _b[_prop_2:_subpop_6] - _b[_prop_2:_subpop_5] svy, subpop(nonexpansion): proportion hlthpln1, over(race acaint) lincom _b[_prop_2:_subpop_2] - _b[_prop_2:_subpop_1] lincom _b[_prop_2:_subpop_4] - _b[_prop_2:_subpop_3] lincom _b[_prop_2:_subpop_6] - _b[_prop_2:_subpop_5]
As written right now, each -Lincom- outputs a coefficient that is the difference between two subpopulations (red below). It also outputs std error, t value, p value, and 95% confidence intervals. As shown below:
Code:
. lincom _b[_prop_2:_subpop_2] - _b[_prop_2:_subpop_1] ( 1) - [_prop_2]_subpop_1 + [_prop_2]_subpop_2 = 0 ------------------------------------------------------------------------------ Proportion | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- (1) | .0439819 .0031052 14.16 0.000 .0378958 .050068 ------------------------------------------------------------------------------
Ultimately my question is: is there a way to create a variable that captures only the coefficient outputs of each lincom and then run a lincom on that?
Thanks!
Comment