Data fx;
Input year GDP I @@;
Label year='年份' GDP='国内生产总值' I='固定资产投资总额';
Cards;
1978 3645.2 667.73 1986 10275.2 3120.6 1994 48197.9 16370.33 2002 120332.7 43499.9
1979 4062.6 708.36 1987 12058.6 3791.69 1995 60793.7 20019.3 2003 135822.8 55566.6
1980 4545.6 910.9 1988 15042.8 4753.8 1996 71176.6 22913.5 2004 159878.3 70477.4
1981 4891.6 961 1989 16992.3 4410.38 1997 78973 24941.1 2005 184937.4 88773.6
1982 5323.4 1200.4 1990 18667.8 4517 1998 84402.3 28406.2 2006 216314.4 109998.2
1983 5962.7 1369.06 1991 21781.5 5594.5 1999 89677.1 29854.7 2007 265810.3 137323.9
1984 7208.1 1832.87 1992 26923.5 8080.09 2000 99214.6 32917.7 2008 314045.4 172828.4
1985 9016 2543.19 1993 35333.9 12457.88 2001 109655.2 37213.5 2009 340506.9 224598.8
;
Proc GLM;
Model GDP=I;
Output out=out1 p=predict r=residual;
Proc Plot;
Plot GDP*I predict*I="p" /overlay;
Plot residual*I/verf=0;
Run;
看不来它们的关系