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
Missing value generated from exp() function !?Hello Stata experts ! I have an issue with exponentiation of big numbers with Stata so i can make s…
inquire about reversing codesHi, I have variables that are currently coded as 1=agree, 2=neutral, 3=disagree. I want these varia…
create unique county ID for each stateI have a panel data. I want to assign a unique ID to each county within each state. For example, for…
RE model with AR(1), heteroskedasticity, and serial correlationHello everyone! My name is Evgeny and i want to ask you to help me. In my panel data a RE model was …
Reshaping to wide with a string j variableI am looking to reshape a dataset with courses done by each of the observation. Each individual has …
Subscribe to:
Post Comments (Atom)
0 Response to Coding linear time trend with missing years
Post a Comment