Dear Statalist,
I posted a similar question before, but I think I am a bit closer now where I might get some useful help.
I want to have Annual hrs difference: migrants minus natives on the vertical axis, and years since migration on the horizontal axis.
I run the following regression:
reg annualhrs ysm ysm2 spysm spysm2 cohort2-cohort8 spcohort2-spcohort8 plus other controls.
This is a regression of women only, so "sp" is the variable for the male spouse. Outcome is annualhrs being a function of years since migration(2), spouse years since migration(2), and seven cohort decades of arrival for the women and their spouse. I would like to graph the relationship (annual hrs difference over years since migration) using the arrival decade cohort6 and spcohort6.
So this is what I have done:
I run the regression. Then,
gen y = _b[ysm]*ysm + _b[ysm2]*ysm2 + _b[spysm]+ _b[spysm2] + _b[cohort6] + _b[spcohort6]
duplicates drop ysm ysm2 spysm spysm2, force
sort ysm ysm2 spysm spysm2
graph twoway line y ysm
The concave graph intersects the y axis at -400 (which is great because the Net cohort effect estimate = _b[cohort6] + _b[spcohort6] = -1000 + 600 = -400). The y is zero when ysm =10, and then the graph continues to go upwards in a concave manner.
It looks all good, but I am not sure if I have done it right, and I am not sure how to move the x axis upwards where y is equal zero, so that the graph crosses the xaxis when ysm=10.
Let me write a few more words on the following:
gen y = _b[ysm]*ysm + _b[ysm2]*ysm2 + _b[spysm]+ _b[spysm2] + _b[cohort6] + _b[spcohort6]
The rough estimates for the _b's are as follows:
gen y = +48[ysm]*ysm - 0.11[ysm2]*ysm2 -22[spysm] - 0.09 [spysm2] -1000[cohort6] + 600[spcohort6]
I am writing this long equation because I want to have Net years since migration: Net ysm = ysm-spysm= 48-22 and Net ysm2 = ysm2 - spysm2 = -0.11 - 0.09.
So two questions I got:
Is my approach somewhat correct or do I need to use margins and marginsplot?
How do I move a xaxis upwards?
Thank you very much.
Best wishes
Nico
Related Posts with Difference in annual hour worked between migrant and native married women by years since migration: a graphical illustration of assimilation
one sided test of proportions using svyI am trying to do a one sided test of proportions with survey data. I've svyset the data. Normally I…
endogeneityDear researchers, I am using the generalized DID model “Two way-fixed effect”. I have more than two …
Is beta regression model best for panel data type of data?Hello everyone, I am a newly registered member here, but I have been using this site already for th…
Checking merges over a very large number of filesMy apologies in advance if this has been covered - I have looked but haven't found anything quite th…
How to construct a new variable by singling out one or more words from a longer phrase?I want to have a new variable which is constructed by taking out one or more words after "Battle of …
Subscribe to:
Post Comments (Atom)
0 Response to Difference in annual hour worked between migrant and native married women by years since migration: a graphical illustration of assimilation
Post a Comment