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 values more than 50% of trading daysHi all, I have a panel dataset of companies with trading days for the period from 2010 until 2020. …
Why cant I reproduce results after sortingDear Statlisters, Why can't I reproduce the results after this lines of code. I am working with lon…
Export handmade matrix to latex with math underscores in (long) row titlesI always have trouble exporting handmade Stata matrices to Latex when I want to use math in the rowt…
PPML , endogeneityDear Prof. Joao Santos Silva , Prof. Tom Zylkin and dear Statalisters The purpose of my work is to …
Fixed-Effects Logit (melogit) with class weightsI have a datasample with some low-probability dependent binary variable. In order to get better esti…
Subscribe to:
Post Comments (Atom)
0 Response to Coding linear time trend with missing years
Post a Comment