Dear all,
I am running a regression on per capita real GDP-growth (dlrgdp) as the dependent variable. I am trying to show that there is a negative correlation between initial government debt (pubgdp) and subsequent growth of real per capita GDP (dlrgdp). With my data, I would like to gain the same scatter as shown below.

I tried to use the following code, but I am pretty sure there is the 'initial' und 'subsequent' perspective missing. Maybe someone could help?
My work consists on the paper Kumar, Manmohan S.; Woo, Jaejoon (2010): Public Debt and Growth which is available at http://onlinelibrary.wiley.com/doi/1...12138/abstract
I work with the following data :
I am running a regression on per capita real GDP-growth (dlrgdp) as the dependent variable. I am trying to show that there is a negative correlation between initial government debt (pubgdp) and subsequent growth of real per capita GDP (dlrgdp). With my data, I would like to gain the same scatter as shown below.
I tried to use the following code, but I am pretty sure there is the 'initial' und 'subsequent' perspective missing. Maybe someone could help?
Code:
* (1) growth rate of real GDP per capita (annual, in percent) gen lrgdp = log(rgdppc) *growth in percent gen dlrgdp = 100*d.lrgdp *average for subsequent 5 years tssmooth ma dlrgdp5 = dlrgdp, window (0 0 5) graph twoway scatter dlrgdp5 pubgdp || lfit dlrgdp5 pubgdp
I work with the following data :
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int year str11 country str3 iso double pubgdp float dlrgdp 1970 "Australia" "AUS" 33.905 2.61116 1971 "Australia" "AUS" 31.326500000000003 .4861593 1972 "Australia" "AUS" 29.7352 1.0321617 1973 "Australia" "AUS" 26.466100000000004 2.728677 1974 "Australia" "AUS" 23.0131 -1.4009476 1975 "Australia" "AUS" 22.8612 1.5191555 1976 "Australia" "AUS" 22.2987 2.402687 1977 "Australia" "AUS" 21.4885 -.12106895 1978 "Australia" "AUS" 22.3799 2.942228 1979 "Australia" "AUS" 22.8866 2.0715237 1980 "Australia" "AUS" 21.3488 2.1464348 1981 "Australia" "AUS" 18.9447 1.5575886 1982 "Australia" "AUS" 17.3873 -4.133749 1983 "Australia" "AUS" 18.8926 3.366375 1984 "Australia" "AUS" 20.3591 4.125023 1985 "Australia" "AUS" 21.9957 2.9996395 1986 "Australia" "AUS" 23.4131 .6216049 1987 "Australia" "AUS" 22.0637 3.871918 1988 "Australia" "AUS" 24.8187 2.3539066 1989 "Australia" "AUS" 22.77 2.203226 1990 "Australia" "AUS" 21.5777 -2.0908356 1991 "Australia" "AUS" 22.9141 -1.1769772 1992 "Australia" "AUS" 27.1514 2.507448 1993 "Australia" "AUS" 30.3218 3.115463 1994 "Australia" "AUS" 31.4529 3.350067 1995 "Australia" "AUS" 31.098 2.862406 1996 "Australia" "AUS" 29.281000000000002 2.578783 1997 "Australia" "AUS" 25.891 3.2987595 1998 "Australia" "AUS" 23.724 4.045248 1999 "Australia" "AUS" 22.552 2.792215 2000 "Australia" "AUS" 19.545 .7367611 2001 "Australia" "AUS" 17.161 2.3859024 2002 "Australia" "AUS" 15.045999999999998 2.0503044 2003 "Australia" "AUS" 13.205 2.760935 2004 "Australia" "AUS" 11.931 1.2185097 2005 "Australia" "AUS" 10.884 1.8460274 2006 "Australia" "AUS" 9.957 1.471567 2007 "Australia" "AUS" 9.675 3.066492 2008 "Australia" "AUS" 11.735 1.631403 2009 "Australia" "AUS" 16.739 -.344038 2010 "Australia" "AUS" 20.469 .3876209 2011 "Australia" "AUS" 24.191 .9057522 2012 "Australia" "AUS" 27.766999999999996 1.936817 2013 "Australia" "AUS" 30.75 .7319927 2014 "Australia" "AUS" 34.205 1.2648582 2015 "Australia" "AUS" 37.626 1.0016441 2016 "Australia" "AUS" 41.091 1.3181686 1970 "Belgium" "BEL" 60.1221 5.914164 1971 "Belgium" "BEL" 59.7697 3.333759 1972 "Belgium" "BEL" 59.9781 4.76799 end
Comment