I am familiar with creating linear time trends. For example, if I have study years 1996, 1997, 1998 and 1999; then the linear time trend variable will be coded 1 for 1996, 2 for 1997, 3 for 1998 and 4 for 1999.
However, I am uncertain what to do when I have one year of data missing, for example, if I have data on only study years: 1996, 1998 and 1999 with the 1997 data missing.
Do I code 1998 as 2 or 3 in the linear time trend variable?
Related Posts with Coding linear time trend with missing years
Create a table comparing output from diffrent regression modelsHello All, A frequent problem I have in Stata is that I have to run different regression models (fo…
XTSET and TTSET Error MessageHello, I have a panel dataset which is evenly balanced but when I run xtset (or ttset) command to s…
Lagged Variable generationI have an individual level cross-sectional dataset. The observations are individuals belonging to a …
Median, SD, & FrequencyFor the attached file, find: For variable PAY, calculate median and SD by denial code, but only for…
How to create a poverty headcount variable (by municipality)Hi all, I am using South Africa Census 2011 data, and I want to use the derived household annual in…
Subscribe to:
Post Comments (Atom)
0 Response to Coding linear time trend with missing years
Post a Comment