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
Command collapse AND keeping the original datasetDear all, I was just thinking about this: When you analyze hierarchical structured dataset (for exa…
RIF regression and decomposition of income inequalityI need help to have the command which is used in this paper of Rios Avila (2019) to have the results…
putexcel for multiple tables extending beyond Excel column ZI recently found myself with need to produce over 1000 cross-tabulations with their respective chi-s…
Overall title when using a by option with marginsplotI am using marginsplot (in V16.1) with a by option and getting a graph I like, but I can't figure ou…
How to interpret the outcome of command “gllamm”?Dear statalists, I have gotten the outcome of “gllamm”,but I don't know how to illustrate,could you …
Subscribe to:
Post Comments (Atom)
0 Response to Coding linear time trend with missing years
Post a Comment