Hello All,
I am using the NYLS 1979 data set and I have 12,686 individuals over 26 years. I am looking at the impact of working alternate and night shifts on self-reported health outcomes over time and the survey is administered once per year.
I am working under the assumption that the incremental effect of working an additional year in alternate or night shift hours, should increase exponentially over time. For example, the effect of the 1st year to the 2nd year should not be the same as the 8th year to the 9th year. I have included my outcome variable squared and my outcome variable cubed in my model to see how these transformations fit my data. I am unsure if this is the best method to address the issues of the non-linear relationship between health outcomes and alternate shifts over time and I am unsure how to interpret my results. My equation is listed below:
Yit= β0 HealthOutcome+ β1HealthOutcome^2 + β2HealthOutcome^3 + Xit + θt
Yit – health outcomes for individual I in year t
Xit - Vector of demographic controls for individual I in year t
θt – Year fixed effects
stata code is listed below:
xtlogit Health_Limitation_ CumulativeNightShiftYears CumulativeNightShiftYears2 CumulativeNightShiftYears3 i.year Health_Insurance_ Age_at_Interview_ Hours_per_Wk_1 Low_Wage_Worker Some_college Nonwhite Male Ever_Smoke_1998 Aerobic_2002 Married_ weight, vce(cluster id) or
I first ran the code but the results are linear and each additional year of night shift work has the same effect on worker outcomes (contrary to my hypothesis):
xtlogit Health_Limitation_ CumulativeNightShiftYears i.year Health_Insurance_ Age_at_Interview_ Hours_per_Wk_1 Low_Wage_Worker Some_college Nonwhite Male Ever_Smoke_1998 Aerobic_2002 Married_ weight, vce(cluster id) or
Any advice or suggested readings would be greatly appreciated.
Related Posts with NYLS 1979 Panel Data set - nonlinear regression
type mismatch error when using "replace" functionHi everyone, I am using STATA version 14.0 and am hoping to replace missing observations using: "re…
Running a correlation for a subset of observationsHi all, Please consider the following example: Code: clear . input str4 id byte str3 shock byte s…
A quick question about weird question marks in a string variableHello, I am using Stata 15.1. I have a string variable - student-teacher ratio (see data below). for…
Replacing melogit by meqrlogit ?????I'm using melogit command for a multilevel mixed effect regression. When I run the following command…
Using loop for regression and saving results as a new variableHappy new year to Satatlist! I'm stuck with an old problem (using loop for regression). The variab…
Subscribe to:
Post Comments (Atom)
0 Response to NYLS 1979 Panel Data set - nonlinear regression
Post a Comment