Hello,
I am working on a national dataset with about 100 variables. I would like to compare the trends in the number of hospitalizations of disease 1 (dx1) with disease 2 (dx2). I would like to see if for example dx1 is growing faster than dx2 over the years. Previously I have used nptrend command to see the direction of each trend individually, but I have never compared two trends together.
I would appreciate any advice and help regarding how to proceed and the best methodology to use. Thank you so much!
Below is the sample data created with dataex:
I am working on a national dataset with about 100 variables. I would like to compare the trends in the number of hospitalizations of disease 1 (dx1) with disease 2 (dx2). I would like to see if for example dx1 is growing faster than dx2 over the years. Previously I have used nptrend command to see the direction of each trend individually, but I have never compared two trends together.
I would appreciate any advice and help regarding how to proceed and the best methodology to use. Thank you so much!
Below is the sample data created with dataex:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(year dx1 dx2) 2000 411406 1.22e+08 2001 445924 1.25e+08 2002 462794 1.29e+08 2003 479691 1.29e+08 2004 504995 1.39e+08 2005 516516 1.34e+08 2006 527392 1.35e+08 2007 537801 1.38e+08 end
Comment