Hi all, I am new to STATA and I would like to correlate two variables taking YEAR as the sorting variable.
YEAR VAR1 VAR2
2005 1 1
2006 3 3
2007 2 5
What I am after is to find how does VAR2 changes when VAR1 is decreased. I am thinking of finding the slope between each two consecutive years but I don't know how to proceed afterwards.
Thank you
YEAR VAR1 VAR2
2005 1 1
2006 3 3
2007 2 5
What I am after is to find how does VAR2 changes when VAR1 is decreased. I am thinking of finding the slope between each two consecutive years but I don't know how to proceed afterwards.
Thank you
Comment