Hi all,
I have data on people moving from one place to another at different ages during childhood. I run a regression like this:
areg child_income_rank treatment_age9 treatment_age10 treatment_age11 ... treatment_age18, a(control variables)
where the treatment_ageX is an interaction between a treatment and the indicator of age that is equal to 1 if age = X and zero otherwise.
The regression produces something like:
Variable coefficient
treatment_age 9 0.9
treatment_age 10 0.7
treatment_age 11 0.8
treatment_age 12 0.4
treatment_age 13 0.5
treatment_age 14 0.5
treatment_age 15 0.4
treatment_age 16 0.3
treatment_age 17 0.2
treatment_age 18 0.3
After the regression, I would like to draw a graph similar to the one attached with both the scatterplot, a linear trendline, and a slope equation.
How do I make that post-regression code?
Unfortunately, I am working on a secure server and cannot provide any data.
Best regards,
Matthew
I have data on people moving from one place to another at different ages during childhood. I run a regression like this:
areg child_income_rank treatment_age9 treatment_age10 treatment_age11 ... treatment_age18, a(control variables)
where the treatment_ageX is an interaction between a treatment and the indicator of age that is equal to 1 if age = X and zero otherwise.
The regression produces something like:
Variable coefficient
treatment_age 9 0.9
treatment_age 10 0.7
treatment_age 11 0.8
treatment_age 12 0.4
treatment_age 13 0.5
treatment_age 14 0.5
treatment_age 15 0.4
treatment_age 16 0.3
treatment_age 17 0.2
treatment_age 18 0.3
After the regression, I would like to draw a graph similar to the one attached with both the scatterplot, a linear trendline, and a slope equation.
How do I make that post-regression code?
Unfortunately, I am working on a secure server and cannot provide any data.
Best regards,
Matthew
Comment