Hello Everyone,
I am trying to generate the growth in income and consumption over education group given the age cohort (refereed in data as cbin). For example i want to construct data in a way that i can generate growth by changing the education group across the cbin. In particular growth in income of edu_group=1 across the cbin mentioned in the example cbin1 and cbin 2 followed by cbin 2 and cbin3. Next same process but now i want to generate growth wrt to edu_group 2.
After constructing the growth in such a way i want to regress growth in consumption on growth in income. Please suggest me if it is possible and here is the data example.
I am trying to generate the growth in income and consumption over education group given the age cohort (refereed in data as cbin). For example i want to construct data in a way that i can generate growth by changing the education group across the cbin. In particular growth in income of edu_group=1 across the cbin mentioned in the example cbin1 and cbin 2 followed by cbin 2 and cbin3. Next same process but now i want to generate growth wrt to edu_group 2.
After constructing the growth in such a way i want to regress growth in consumption on growth in income. Please suggest me if it is possible and here is the data example.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float cbin byte edu_group float(c_age consumption year income ln_consumption ln_income) 1 1 28 21.870466 2014 44.33569 3.085137 3.79179 1 2 28 27.506866 2014 52.84018 3.314436 3.967272 1 3 28 42.82582 2014 96.49571 3.757141 4.5694985 2 1 34 22.46051 2014 45.76359 3.111759 3.823489 2 2 34 28.74256 2014 59.81278 3.358379 4.0912194 2 3 34 43.57341 2014 108.69667 3.774447 4.688561 3 1 38 24.04302 2014 53.68461 3.1798446 3.9831264 3 2 38 30.22904 2014 71.952835 3.408803 4.276011 3 3 38 45.09255 2014 120.06631 3.808717 4.788044 4 1 43 23.76835 2014 55.13097 3.168355 4.0097117 4 2 43 32.20723 2014 84.55011 3.472191 4.4373446 4 3 43 44.01722 2014 129.79472 3.784581 4.865954 5 1 48 26.04756 2014 58.91539 3.259924 4.0761023 5 2 48 34.204468 2014 91.61779 3.532356 4.5176253 5 3 48 52.10867 2014 165.1864 3.953331 5.107074 end
Comment