I have age-specific suicide rates (1992-2000) for Russia grouped by 5 year age groups from 15-19 to 65-69. I also have Russian economic data (GDP, Inflation, Unemployment) for 1992 to 2000.
My data on Stata is described as a panel, for other regressions I have been doing on the dataset.
I want to find the correlation between the economic variables (GDP, Inflation, Unemployment) and the Suicide Rates for each age group. How would I do this?
My data looks like this:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str6 AgeGroup int(Year SuicideRate) float(Unemployment GDPGrowthRate InflationRate) "15to19" 1992 254 5.2 0 . "15to19" 1993 323 5.9 -8.7 874.6 "15to19" 1994 354 8.1 -12.7 307.6 "15to19" 1995 366 9.4 -4.1 197.5 "15to19" 1996 351 9.7 -3.6 47.7 "15to19" 1997 347 11.8 1.4 14.8 "15to19" 1998 335 13.3 -5.3 27.2 "15to19" 1999 339 13 6.4 85.7 "15to19" 2000 363 10.6 10 20.8 "20to24" 1992 429 5.2 0 . "20to24" 1993 534 5.9 -8.7 874.6 "20to24" 1994 649 8.1 -12.7 307.6 "20to24" 1995 725 9.4 -4.1 197.5 "20to24" 1996 734 9.7 -3.6 47.7 "20to24" 1997 724 11.8 1.4 14.8 "20to24" 1998 709 13.3 -5.3 27.2 "20to24" 1999 757 13 6.4 85.7 "20to24" 2000 796 10.6 10 20.8 "25to29" 1992 600 5.2 0 . "25to29" 1993 747 5.9 -8.7 874.6 "25to29" 1994 863 8.1 -12.7 307.6 "25to29" 1995 847 9.4 -4.1 197.5 "25to29" 1996 828 9.7 -3.6 47.7 "25to29" 1997 767 11.8 1.4 14.8 "25to29" 1998 722 13.3 -5.3 27.2 "25to29" 1999 800 13 6.4 85.7 "25to29" 2000 867 10.6 10 20.8 "30to34" 1992 742 5.2 0 . "30to34" 1993 901 5.9 -8.7 874.6 "30to34" 1994 1022 8.1 -12.7 307.6 "30to34" 1995 989 9.4 -4.1 197.5 "30to34" 1996 949 9.7 -3.6 47.7 "30to34" 1997 855 11.8 1.4 14.8 "30to34" 1998 808 13.3 -5.3 27.2 "30to34" 1999 837 13 6.4 85.7 "30to34" 2000 877 10.6 10 20.8 end
0 Response to How to do a correlation between two variables for each unit of a panel?
Post a Comment