Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 13 Dec 2007 08:48:16 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2007/Dec/13/t11975600021blsod22k2pk9j9.htm/, Retrieved Sun, 05 May 2024 16:13:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=14365, Retrieved Sun, 05 May 2024 16:13:34 +0000
QR Codes:

Original text written by user:WTC 9-11
IsPrivate?No (this computation is public)
User-defined keywordsmultiple regression
Estimated Impact190
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [paper] [2007-12-13 15:48:16] [86c3c3756fd3370194023d68fb964304] [Current]
Feedback Forum

Post a new message
Dataseries X:
103.1	98.6	98.1	98.6	0
100.6	98	101.1	98	0
103.1	106.8	111.1	106.8	0
95.5	96.6	93.3	96.7	0
90.5	100.1	100	100.2	0
90.9	107.7	108	107.7	0
88.8	91.5	70.4	92	0
90.7	97.8	75.4	98.4	0
94.3	107.4	105.5	107.4	1
104.6	117.5	112.3	117.7	1
111.1	105.6	102.5	105.7	1
110.8	97.4	93.5	97.5	1
107.2	99.5	86.7	99.9	1
99	98	95.2	98.2	1
99	104.3	103.8	104.5	1
91	100.6	97	100.8	1
96.2	101.1	95.5	101.5	1
96.9	103.9	101	103.9	1
96.2	96.9	67.5	99.6	1
100.1	95.5	64	98.4	1
99	108.4	106.7	112.7	1
115.4	117	100.6	118.4	1
106.9	103.8	101.2	108.1	1
107.1	100.8	93.1	105.4	1
99.3	110.6	84.2	114.6	1
99.2	104	85.8	106.9	1
108.3	112.6	91.8	115.9	1
105.6	107.3	92.4	109.8	1
99.5	98.9	80.3	101.8	1
107.4	109.8	79.7	114.2	1
93.1	104.9	62.5	110.8	1
88.1	102.2	57.1	108.4	1
110.7	123.9	100.8	127.5	1
113.1	124.9	100.7	128.6	1
99.6	112.7	86.2	116.6	1
93.6	121.9	83.2	127.4	1
98.6	100.6	71.7	105	1
99.6	104.3	77.5	108.3	1
114.3	120.4	89.8	125	1
107.8	107.5	80.3	111.6	1
101.2	102.9	78.7	106.5	1
112.5	125.6	93.8	130.3	1
100.5	107.5	57.6	115	1
93.9	108.8	60.6	116.1	1
116.2	128.4	91	134	1
112	121.1	85.3	126.5	1
106.4	119.5	77.4	125.8	1
95.7	128.7	77.3	136.4	1
96	108.7	68.3	114.9	1
95.8	105.5	69.9	110.9	1
103	119.8	81.7	125.5	1
102.2	111.3	75.1	116.8	1
98.4	110.6	69.9	116.8	1
111.4	120.1	84	125.5	1
86.6	97.5	54.3	104.2	1
91.3	107.7	60	115.1	1
107.9	127.3	89.9	132.8	1
101.8	117.2	77	123.3	1
104.4	119.8	85.3	124.8	1
93.4	116.2	77.6	122	1
100.1	111	69.2	117.4	1
98.5	112.4	75.5	117.9	1
112.9	130.6	85.7	137.4	1
101.4	109.1	72.2	114.6	1
107.1	118.8	79.9	124.7	1
110.8	123.9	85.3	129.6	1
90.3	101.6	52.2	109.4	1
95.5	112.8	61.2	120.9	1
111.4	128	82.4	134.9	1
113	129.6	85.4	136.3	1
107.5	125.8	78.2	133.2	1
95.9	119.5	70.2	127.2	1
106.3	115.7	70.2	122.7	1
105.2	113.6	69.3	120.5	1
117.2	129.7	77.5	137.8	1
106.9	112	66.1	119.1	1
108.2	116.8	69	124.3	1
110	126.3	75.3	134.3	1
96.1	112.9	58.2	121.7	1
100.6	115.9	59.7	125	1




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\begin{tabular}{lllllllll}
\hline
Summary of compuational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 6 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14365&T=0

[TABLE]
[ROW][C]Summary of compuational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14365&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14365&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Multiple Linear Regression - Estimated Regression Equation
intermediaire-goederen[t] = + 56.8144233107686 + 0.48733032890477`totale-consumptiegoederen`[t] + 0.0859384873333898`duurzame-consumptiegoederen`[t] -0.217827808454171`niet-duurzame-consumptiegoederen`[t] + 4.37494881242500`aanslagen-WTC9-11`[t] + 5.07926127284946M1[t] + 3.14424194856741M2[t] + 7.55592006481916M3[t] + 4.50318240294593M4[t] + 3.04115642517979M5[t] + 5.31492909401468M6[t] -0.439082047915904M7[t] -0.456107112610295M8[t] + 4.16331921146515M9[t] + 7.47935716091545M10[t] + 5.807952030928M11[t] + 0.0365005072086118t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
intermediaire-goederen[t] =  +  56.8144233107686 +  0.48733032890477`totale-consumptiegoederen`[t] +  0.0859384873333898`duurzame-consumptiegoederen`[t] -0.217827808454171`niet-duurzame-consumptiegoederen`[t] +  4.37494881242500`aanslagen-WTC9-11`[t] +  5.07926127284946M1[t] +  3.14424194856741M2[t] +  7.55592006481916M3[t] +  4.50318240294593M4[t] +  3.04115642517979M5[t] +  5.31492909401468M6[t] -0.439082047915904M7[t] -0.456107112610295M8[t] +  4.16331921146515M9[t] +  7.47935716091545M10[t] +  5.807952030928M11[t] +  0.0365005072086118t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14365&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]intermediaire-goederen[t] =  +  56.8144233107686 +  0.48733032890477`totale-consumptiegoederen`[t] +  0.0859384873333898`duurzame-consumptiegoederen`[t] -0.217827808454171`niet-duurzame-consumptiegoederen`[t] +  4.37494881242500`aanslagen-WTC9-11`[t] +  5.07926127284946M1[t] +  3.14424194856741M2[t] +  7.55592006481916M3[t] +  4.50318240294593M4[t] +  3.04115642517979M5[t] +  5.31492909401468M6[t] -0.439082047915904M7[t] -0.456107112610295M8[t] +  4.16331921146515M9[t] +  7.47935716091545M10[t] +  5.807952030928M11[t] +  0.0365005072086118t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14365&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14365&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Estimated Regression Equation
intermediaire-goederen[t] = + 56.8144233107686 + 0.48733032890477`totale-consumptiegoederen`[t] + 0.0859384873333898`duurzame-consumptiegoederen`[t] -0.217827808454171`niet-duurzame-consumptiegoederen`[t] + 4.37494881242500`aanslagen-WTC9-11`[t] + 5.07926127284946M1[t] + 3.14424194856741M2[t] + 7.55592006481916M3[t] + 4.50318240294593M4[t] + 3.04115642517979M5[t] + 5.31492909401468M6[t] -0.439082047915904M7[t] -0.456107112610295M8[t] + 4.16331921146515M9[t] + 7.47935716091545M10[t] + 5.807952030928M11[t] + 0.0365005072086118t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)56.814423310768618.9218323.00260.0038350.001918
`totale-consumptiegoederen`0.487330328904770.9033220.53950.5914530.295726
`duurzame-consumptiegoederen`0.08593848733338980.1477050.58180.562760.28138
`niet-duurzame-consumptiegoederen`-0.2178278084541710.826739-0.26350.7930420.396521
`aanslagen-WTC9-11`4.374948812425002.5957251.68540.0968510.048425
M15.079261272849463.359791.51180.135590.067795
M23.144241948567413.3874850.92820.356850.178425
M37.555920064819163.3163112.27840.0261030.013052
M44.503182402945933.3825451.33130.1878880.093944
M53.041156425179793.3500490.90780.3674460.183723
M65.314929094014683.3003471.61040.1123070.056153
M7-0.4390820479159044.496348-0.09770.9225180.461259
M8-0.4561071126102954.153569-0.10980.9129080.456454
M94.163319211465153.695281.12670.264160.13208
M107.479357160915453.6756442.03480.046080.02304
M115.8079520309283.2988531.76060.083160.04158
t0.03650050720861180.0876510.41640.6785110.339256

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 56.8144233107686 & 18.921832 & 3.0026 & 0.003835 & 0.001918 \tabularnewline
`totale-consumptiegoederen` & 0.48733032890477 & 0.903322 & 0.5395 & 0.591453 & 0.295726 \tabularnewline
`duurzame-consumptiegoederen` & 0.0859384873333898 & 0.147705 & 0.5818 & 0.56276 & 0.28138 \tabularnewline
`niet-duurzame-consumptiegoederen` & -0.217827808454171 & 0.826739 & -0.2635 & 0.793042 & 0.396521 \tabularnewline
`aanslagen-WTC9-11` & 4.37494881242500 & 2.595725 & 1.6854 & 0.096851 & 0.048425 \tabularnewline
M1 & 5.07926127284946 & 3.35979 & 1.5118 & 0.13559 & 0.067795 \tabularnewline
M2 & 3.14424194856741 & 3.387485 & 0.9282 & 0.35685 & 0.178425 \tabularnewline
M3 & 7.55592006481916 & 3.316311 & 2.2784 & 0.026103 & 0.013052 \tabularnewline
M4 & 4.50318240294593 & 3.382545 & 1.3313 & 0.187888 & 0.093944 \tabularnewline
M5 & 3.04115642517979 & 3.350049 & 0.9078 & 0.367446 & 0.183723 \tabularnewline
M6 & 5.31492909401468 & 3.300347 & 1.6104 & 0.112307 & 0.056153 \tabularnewline
M7 & -0.439082047915904 & 4.496348 & -0.0977 & 0.922518 & 0.461259 \tabularnewline
M8 & -0.456107112610295 & 4.153569 & -0.1098 & 0.912908 & 0.456454 \tabularnewline
M9 & 4.16331921146515 & 3.69528 & 1.1267 & 0.26416 & 0.13208 \tabularnewline
M10 & 7.47935716091545 & 3.675644 & 2.0348 & 0.04608 & 0.02304 \tabularnewline
M11 & 5.807952030928 & 3.298853 & 1.7606 & 0.08316 & 0.04158 \tabularnewline
t & 0.0365005072086118 & 0.087651 & 0.4164 & 0.678511 & 0.339256 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14365&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]56.8144233107686[/C][C]18.921832[/C][C]3.0026[/C][C]0.003835[/C][C]0.001918[/C][/ROW]
[ROW][C]`totale-consumptiegoederen`[/C][C]0.48733032890477[/C][C]0.903322[/C][C]0.5395[/C][C]0.591453[/C][C]0.295726[/C][/ROW]
[ROW][C]`duurzame-consumptiegoederen`[/C][C]0.0859384873333898[/C][C]0.147705[/C][C]0.5818[/C][C]0.56276[/C][C]0.28138[/C][/ROW]
[ROW][C]`niet-duurzame-consumptiegoederen`[/C][C]-0.217827808454171[/C][C]0.826739[/C][C]-0.2635[/C][C]0.793042[/C][C]0.396521[/C][/ROW]
[ROW][C]`aanslagen-WTC9-11`[/C][C]4.37494881242500[/C][C]2.595725[/C][C]1.6854[/C][C]0.096851[/C][C]0.048425[/C][/ROW]
[ROW][C]M1[/C][C]5.07926127284946[/C][C]3.35979[/C][C]1.5118[/C][C]0.13559[/C][C]0.067795[/C][/ROW]
[ROW][C]M2[/C][C]3.14424194856741[/C][C]3.387485[/C][C]0.9282[/C][C]0.35685[/C][C]0.178425[/C][/ROW]
[ROW][C]M3[/C][C]7.55592006481916[/C][C]3.316311[/C][C]2.2784[/C][C]0.026103[/C][C]0.013052[/C][/ROW]
[ROW][C]M4[/C][C]4.50318240294593[/C][C]3.382545[/C][C]1.3313[/C][C]0.187888[/C][C]0.093944[/C][/ROW]
[ROW][C]M5[/C][C]3.04115642517979[/C][C]3.350049[/C][C]0.9078[/C][C]0.367446[/C][C]0.183723[/C][/ROW]
[ROW][C]M6[/C][C]5.31492909401468[/C][C]3.300347[/C][C]1.6104[/C][C]0.112307[/C][C]0.056153[/C][/ROW]
[ROW][C]M7[/C][C]-0.439082047915904[/C][C]4.496348[/C][C]-0.0977[/C][C]0.922518[/C][C]0.461259[/C][/ROW]
[ROW][C]M8[/C][C]-0.456107112610295[/C][C]4.153569[/C][C]-0.1098[/C][C]0.912908[/C][C]0.456454[/C][/ROW]
[ROW][C]M9[/C][C]4.16331921146515[/C][C]3.69528[/C][C]1.1267[/C][C]0.26416[/C][C]0.13208[/C][/ROW]
[ROW][C]M10[/C][C]7.47935716091545[/C][C]3.675644[/C][C]2.0348[/C][C]0.04608[/C][C]0.02304[/C][/ROW]
[ROW][C]M11[/C][C]5.807952030928[/C][C]3.298853[/C][C]1.7606[/C][C]0.08316[/C][C]0.04158[/C][/ROW]
[ROW][C]t[/C][C]0.0365005072086118[/C][C]0.087651[/C][C]0.4164[/C][C]0.678511[/C][C]0.339256[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14365&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14365&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)56.814423310768618.9218323.00260.0038350.001918
`totale-consumptiegoederen`0.487330328904770.9033220.53950.5914530.295726
`duurzame-consumptiegoederen`0.08593848733338980.1477050.58180.562760.28138
`niet-duurzame-consumptiegoederen`-0.2178278084541710.826739-0.26350.7930420.396521
`aanslagen-WTC9-11`4.374948812425002.5957251.68540.0968510.048425
M15.079261272849463.359791.51180.135590.067795
M23.144241948567413.3874850.92820.356850.178425
M37.555920064819163.3163112.27840.0261030.013052
M44.503182402945933.3825451.33130.1878880.093944
M53.041156425179793.3500490.90780.3674460.183723
M65.314929094014683.3003471.61040.1123070.056153
M7-0.4390820479159044.496348-0.09770.9225180.461259
M8-0.4561071126102954.153569-0.10980.9129080.456454
M94.163319211465153.695281.12670.264160.13208
M107.479357160915453.6756442.03480.046080.02304
M115.8079520309283.2988531.76060.083160.04158
t0.03650050720861180.0876510.41640.6785110.339256







Multiple Linear Regression - Regression Statistics
Multiple R0.752262475930964
R-squared0.565898832693784
Adjusted R-squared0.455650917187443
F-TEST (value)5.13296627963218
F-TEST (DF numerator)16
F-TEST (DF denominator)63
p-value1.18416107863784e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.55899397910031
Sum Squared Residuals1946.85208575943

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.752262475930964 \tabularnewline
R-squared & 0.565898832693784 \tabularnewline
Adjusted R-squared & 0.455650917187443 \tabularnewline
F-TEST (value) & 5.13296627963218 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 63 \tabularnewline
p-value & 1.18416107863784e-06 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.55899397910031 \tabularnewline
Sum Squared Residuals & 1946.85208575943 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14365&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.752262475930964[/C][/ROW]
[ROW][C]R-squared[/C][C]0.565898832693784[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.455650917187443[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5.13296627963218[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]63[/C][/ROW]
[ROW][C]p-value[/C][C]1.18416107863784e-06[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.55899397910031[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1946.85208575943[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14365&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14365&T=3

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Regression Statistics
Multiple R0.752262475930964
R-squared0.565898832693784
Adjusted R-squared0.455650917187443
F-TEST (value)5.13296627963218
F-TEST (DF numerator)16
F-TEST (DF denominator)63
p-value1.18416107863784e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.55899397910031
Sum Squared Residuals1946.85208575943







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1103.196.93369921466126.16630078533878
2100.695.13129434731765.46870565268241
3103.1102.8104800240770.289519975922891
495.595.49382930543660.00617069456338041
590.595.5873505215899-5.0873505215899
690.9100.655133532570-9.75513353257048
788.887.23148103858631.56851896141371
890.789.35673201576081.3432679842392
994.3103.692277009603-9.39227700960314
10104.6110.307607074989-5.70760707498932
11111.1104.6452080638276.45479193617345
12110.895.890389486411714.9096105135882
13107.2100.9223765030136.27762349698723
149999.393646609288-0.393646609288089
1599106.278762102654-7.27876210265437
1691101.680983908455-10.6809839084555
1796.2100.217736405432-4.01773640543233
1896.9103.842409442453-6.94240944245283
1996.292.77130675608193.42869324391815
20100.192.06912840260758.03087159739247
2199103.566252225004-4.56625222500421
22115.4109.3439882293226.05601177067831
23106.9103.5715127844783.32848721552211
24107.196.2301036094710.86989639053
2599.3103.352834237749-4.05283423774927
2699.2100.052710954735-0.852710954734891
27108.3107.2471110546891.05288894531093
28105.6103.0283358808002.57166411920034
2999.598.21200241834141.28799758165859
30107.4103.0815482622154.31845173778486
3193.194.2385915824697-1.13859158246969
3288.193.0009940456307-4.90099404563074
33110.7107.8269897691432.87301023085725
34113.1111.4186541166741.68134588332648
3599.6105.206145116372-5.60614511637239
3693.6101.307776825272-7.70777682527167
3798.699.9344529046976-1.33445290469759
3899.699.6186677632067-0.018667763206698
39114.3109.3321836750504.96781632495012
40107.8102.1318622811325.66813771886757
41101.299.43803754099581.76196245900420
42112.5108.9240785007023.57592149929751
43100.594.60768114068435.8923188593157
4493.995.2788908834753-1.37889088347529
45116.2108.1999044048988.00009559510177
46112109.1387906461582.86120935384172
47106.4106.1977229131160.202277086884048
4895.7102.592141796973-6.89214179697288
4996101.871148494700-5.87114849469974
5095.899.4219854386811-3.62198543868115
51103108.672775912583-5.67277591258282
52102.2102.842138879379-0.64213887937857
5398.4100.628602044454-2.22860204445407
54111.4106.8851440829424.5148559170576
5586.692.2413272612448-5.64132726124481
5691.395.3470983242375-4.04709832423754
57107.9108.268708163685-0.368708163684588
58101.8107.659967992119-5.85996799211924
59104.4107.678669956679-3.27866995667867
6093.4100.101020760107-6.70102076010669
61100.1102.962789455149-2.86278945514869
6298.5102.179031664515-3.67903166451519
63112.9112.1255525799870.774447420013413
64101.4102.438017807624-1.03801780762376
65107.1104.2012620145222.89873798547751
66110.8108.3936314381552.40636856184481
6790.393.3642122688959-3.06421226889589
6895.597.110213983921-1.61021398392107
69111.4107.9458684276673.45413157233291
70113112.0309919407380.969008059262034
71107.5108.600741165529-1.10074116552854
7295.9100.378567521767-4.478567521767
73106.3104.6226991900311.67730080996927
74105.2102.1026632222563.09733677774361
75117.2111.3331346509605.86686534903983
76106.9102.7848319371734.11516806282651
77108.2102.8150090546645.384990945336
78110108.1180547409611.88194525903854
7996.197.1453999520372-1.04539995203718
80100.698.0369423443672.56305765563297

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 103.1 & 96.9336992146612 & 6.16630078533878 \tabularnewline
2 & 100.6 & 95.1312943473176 & 5.46870565268241 \tabularnewline
3 & 103.1 & 102.810480024077 & 0.289519975922891 \tabularnewline
4 & 95.5 & 95.4938293054366 & 0.00617069456338041 \tabularnewline
5 & 90.5 & 95.5873505215899 & -5.0873505215899 \tabularnewline
6 & 90.9 & 100.655133532570 & -9.75513353257048 \tabularnewline
7 & 88.8 & 87.2314810385863 & 1.56851896141371 \tabularnewline
8 & 90.7 & 89.3567320157608 & 1.3432679842392 \tabularnewline
9 & 94.3 & 103.692277009603 & -9.39227700960314 \tabularnewline
10 & 104.6 & 110.307607074989 & -5.70760707498932 \tabularnewline
11 & 111.1 & 104.645208063827 & 6.45479193617345 \tabularnewline
12 & 110.8 & 95.8903894864117 & 14.9096105135882 \tabularnewline
13 & 107.2 & 100.922376503013 & 6.27762349698723 \tabularnewline
14 & 99 & 99.393646609288 & -0.393646609288089 \tabularnewline
15 & 99 & 106.278762102654 & -7.27876210265437 \tabularnewline
16 & 91 & 101.680983908455 & -10.6809839084555 \tabularnewline
17 & 96.2 & 100.217736405432 & -4.01773640543233 \tabularnewline
18 & 96.9 & 103.842409442453 & -6.94240944245283 \tabularnewline
19 & 96.2 & 92.7713067560819 & 3.42869324391815 \tabularnewline
20 & 100.1 & 92.0691284026075 & 8.03087159739247 \tabularnewline
21 & 99 & 103.566252225004 & -4.56625222500421 \tabularnewline
22 & 115.4 & 109.343988229322 & 6.05601177067831 \tabularnewline
23 & 106.9 & 103.571512784478 & 3.32848721552211 \tabularnewline
24 & 107.1 & 96.23010360947 & 10.86989639053 \tabularnewline
25 & 99.3 & 103.352834237749 & -4.05283423774927 \tabularnewline
26 & 99.2 & 100.052710954735 & -0.852710954734891 \tabularnewline
27 & 108.3 & 107.247111054689 & 1.05288894531093 \tabularnewline
28 & 105.6 & 103.028335880800 & 2.57166411920034 \tabularnewline
29 & 99.5 & 98.2120024183414 & 1.28799758165859 \tabularnewline
30 & 107.4 & 103.081548262215 & 4.31845173778486 \tabularnewline
31 & 93.1 & 94.2385915824697 & -1.13859158246969 \tabularnewline
32 & 88.1 & 93.0009940456307 & -4.90099404563074 \tabularnewline
33 & 110.7 & 107.826989769143 & 2.87301023085725 \tabularnewline
34 & 113.1 & 111.418654116674 & 1.68134588332648 \tabularnewline
35 & 99.6 & 105.206145116372 & -5.60614511637239 \tabularnewline
36 & 93.6 & 101.307776825272 & -7.70777682527167 \tabularnewline
37 & 98.6 & 99.9344529046976 & -1.33445290469759 \tabularnewline
38 & 99.6 & 99.6186677632067 & -0.018667763206698 \tabularnewline
39 & 114.3 & 109.332183675050 & 4.96781632495012 \tabularnewline
40 & 107.8 & 102.131862281132 & 5.66813771886757 \tabularnewline
41 & 101.2 & 99.4380375409958 & 1.76196245900420 \tabularnewline
42 & 112.5 & 108.924078500702 & 3.57592149929751 \tabularnewline
43 & 100.5 & 94.6076811406843 & 5.8923188593157 \tabularnewline
44 & 93.9 & 95.2788908834753 & -1.37889088347529 \tabularnewline
45 & 116.2 & 108.199904404898 & 8.00009559510177 \tabularnewline
46 & 112 & 109.138790646158 & 2.86120935384172 \tabularnewline
47 & 106.4 & 106.197722913116 & 0.202277086884048 \tabularnewline
48 & 95.7 & 102.592141796973 & -6.89214179697288 \tabularnewline
49 & 96 & 101.871148494700 & -5.87114849469974 \tabularnewline
50 & 95.8 & 99.4219854386811 & -3.62198543868115 \tabularnewline
51 & 103 & 108.672775912583 & -5.67277591258282 \tabularnewline
52 & 102.2 & 102.842138879379 & -0.64213887937857 \tabularnewline
53 & 98.4 & 100.628602044454 & -2.22860204445407 \tabularnewline
54 & 111.4 & 106.885144082942 & 4.5148559170576 \tabularnewline
55 & 86.6 & 92.2413272612448 & -5.64132726124481 \tabularnewline
56 & 91.3 & 95.3470983242375 & -4.04709832423754 \tabularnewline
57 & 107.9 & 108.268708163685 & -0.368708163684588 \tabularnewline
58 & 101.8 & 107.659967992119 & -5.85996799211924 \tabularnewline
59 & 104.4 & 107.678669956679 & -3.27866995667867 \tabularnewline
60 & 93.4 & 100.101020760107 & -6.70102076010669 \tabularnewline
61 & 100.1 & 102.962789455149 & -2.86278945514869 \tabularnewline
62 & 98.5 & 102.179031664515 & -3.67903166451519 \tabularnewline
63 & 112.9 & 112.125552579987 & 0.774447420013413 \tabularnewline
64 & 101.4 & 102.438017807624 & -1.03801780762376 \tabularnewline
65 & 107.1 & 104.201262014522 & 2.89873798547751 \tabularnewline
66 & 110.8 & 108.393631438155 & 2.40636856184481 \tabularnewline
67 & 90.3 & 93.3642122688959 & -3.06421226889589 \tabularnewline
68 & 95.5 & 97.110213983921 & -1.61021398392107 \tabularnewline
69 & 111.4 & 107.945868427667 & 3.45413157233291 \tabularnewline
70 & 113 & 112.030991940738 & 0.969008059262034 \tabularnewline
71 & 107.5 & 108.600741165529 & -1.10074116552854 \tabularnewline
72 & 95.9 & 100.378567521767 & -4.478567521767 \tabularnewline
73 & 106.3 & 104.622699190031 & 1.67730080996927 \tabularnewline
74 & 105.2 & 102.102663222256 & 3.09733677774361 \tabularnewline
75 & 117.2 & 111.333134650960 & 5.86686534903983 \tabularnewline
76 & 106.9 & 102.784831937173 & 4.11516806282651 \tabularnewline
77 & 108.2 & 102.815009054664 & 5.384990945336 \tabularnewline
78 & 110 & 108.118054740961 & 1.88194525903854 \tabularnewline
79 & 96.1 & 97.1453999520372 & -1.04539995203718 \tabularnewline
80 & 100.6 & 98.036942344367 & 2.56305765563297 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14365&T=4

[TABLE]
[ROW][C]Multiple Linear Regression - Actuals, Interpolation, and Residuals[/C][/ROW]
[ROW][C]Time or Index[/C][C]Actuals[/C][C]InterpolationForecast[/C][C]ResidualsPrediction Error[/C][/ROW]
[ROW][C]1[/C][C]103.1[/C][C]96.9336992146612[/C][C]6.16630078533878[/C][/ROW]
[ROW][C]2[/C][C]100.6[/C][C]95.1312943473176[/C][C]5.46870565268241[/C][/ROW]
[ROW][C]3[/C][C]103.1[/C][C]102.810480024077[/C][C]0.289519975922891[/C][/ROW]
[ROW][C]4[/C][C]95.5[/C][C]95.4938293054366[/C][C]0.00617069456338041[/C][/ROW]
[ROW][C]5[/C][C]90.5[/C][C]95.5873505215899[/C][C]-5.0873505215899[/C][/ROW]
[ROW][C]6[/C][C]90.9[/C][C]100.655133532570[/C][C]-9.75513353257048[/C][/ROW]
[ROW][C]7[/C][C]88.8[/C][C]87.2314810385863[/C][C]1.56851896141371[/C][/ROW]
[ROW][C]8[/C][C]90.7[/C][C]89.3567320157608[/C][C]1.3432679842392[/C][/ROW]
[ROW][C]9[/C][C]94.3[/C][C]103.692277009603[/C][C]-9.39227700960314[/C][/ROW]
[ROW][C]10[/C][C]104.6[/C][C]110.307607074989[/C][C]-5.70760707498932[/C][/ROW]
[ROW][C]11[/C][C]111.1[/C][C]104.645208063827[/C][C]6.45479193617345[/C][/ROW]
[ROW][C]12[/C][C]110.8[/C][C]95.8903894864117[/C][C]14.9096105135882[/C][/ROW]
[ROW][C]13[/C][C]107.2[/C][C]100.922376503013[/C][C]6.27762349698723[/C][/ROW]
[ROW][C]14[/C][C]99[/C][C]99.393646609288[/C][C]-0.393646609288089[/C][/ROW]
[ROW][C]15[/C][C]99[/C][C]106.278762102654[/C][C]-7.27876210265437[/C][/ROW]
[ROW][C]16[/C][C]91[/C][C]101.680983908455[/C][C]-10.6809839084555[/C][/ROW]
[ROW][C]17[/C][C]96.2[/C][C]100.217736405432[/C][C]-4.01773640543233[/C][/ROW]
[ROW][C]18[/C][C]96.9[/C][C]103.842409442453[/C][C]-6.94240944245283[/C][/ROW]
[ROW][C]19[/C][C]96.2[/C][C]92.7713067560819[/C][C]3.42869324391815[/C][/ROW]
[ROW][C]20[/C][C]100.1[/C][C]92.0691284026075[/C][C]8.03087159739247[/C][/ROW]
[ROW][C]21[/C][C]99[/C][C]103.566252225004[/C][C]-4.56625222500421[/C][/ROW]
[ROW][C]22[/C][C]115.4[/C][C]109.343988229322[/C][C]6.05601177067831[/C][/ROW]
[ROW][C]23[/C][C]106.9[/C][C]103.571512784478[/C][C]3.32848721552211[/C][/ROW]
[ROW][C]24[/C][C]107.1[/C][C]96.23010360947[/C][C]10.86989639053[/C][/ROW]
[ROW][C]25[/C][C]99.3[/C][C]103.352834237749[/C][C]-4.05283423774927[/C][/ROW]
[ROW][C]26[/C][C]99.2[/C][C]100.052710954735[/C][C]-0.852710954734891[/C][/ROW]
[ROW][C]27[/C][C]108.3[/C][C]107.247111054689[/C][C]1.05288894531093[/C][/ROW]
[ROW][C]28[/C][C]105.6[/C][C]103.028335880800[/C][C]2.57166411920034[/C][/ROW]
[ROW][C]29[/C][C]99.5[/C][C]98.2120024183414[/C][C]1.28799758165859[/C][/ROW]
[ROW][C]30[/C][C]107.4[/C][C]103.081548262215[/C][C]4.31845173778486[/C][/ROW]
[ROW][C]31[/C][C]93.1[/C][C]94.2385915824697[/C][C]-1.13859158246969[/C][/ROW]
[ROW][C]32[/C][C]88.1[/C][C]93.0009940456307[/C][C]-4.90099404563074[/C][/ROW]
[ROW][C]33[/C][C]110.7[/C][C]107.826989769143[/C][C]2.87301023085725[/C][/ROW]
[ROW][C]34[/C][C]113.1[/C][C]111.418654116674[/C][C]1.68134588332648[/C][/ROW]
[ROW][C]35[/C][C]99.6[/C][C]105.206145116372[/C][C]-5.60614511637239[/C][/ROW]
[ROW][C]36[/C][C]93.6[/C][C]101.307776825272[/C][C]-7.70777682527167[/C][/ROW]
[ROW][C]37[/C][C]98.6[/C][C]99.9344529046976[/C][C]-1.33445290469759[/C][/ROW]
[ROW][C]38[/C][C]99.6[/C][C]99.6186677632067[/C][C]-0.018667763206698[/C][/ROW]
[ROW][C]39[/C][C]114.3[/C][C]109.332183675050[/C][C]4.96781632495012[/C][/ROW]
[ROW][C]40[/C][C]107.8[/C][C]102.131862281132[/C][C]5.66813771886757[/C][/ROW]
[ROW][C]41[/C][C]101.2[/C][C]99.4380375409958[/C][C]1.76196245900420[/C][/ROW]
[ROW][C]42[/C][C]112.5[/C][C]108.924078500702[/C][C]3.57592149929751[/C][/ROW]
[ROW][C]43[/C][C]100.5[/C][C]94.6076811406843[/C][C]5.8923188593157[/C][/ROW]
[ROW][C]44[/C][C]93.9[/C][C]95.2788908834753[/C][C]-1.37889088347529[/C][/ROW]
[ROW][C]45[/C][C]116.2[/C][C]108.199904404898[/C][C]8.00009559510177[/C][/ROW]
[ROW][C]46[/C][C]112[/C][C]109.138790646158[/C][C]2.86120935384172[/C][/ROW]
[ROW][C]47[/C][C]106.4[/C][C]106.197722913116[/C][C]0.202277086884048[/C][/ROW]
[ROW][C]48[/C][C]95.7[/C][C]102.592141796973[/C][C]-6.89214179697288[/C][/ROW]
[ROW][C]49[/C][C]96[/C][C]101.871148494700[/C][C]-5.87114849469974[/C][/ROW]
[ROW][C]50[/C][C]95.8[/C][C]99.4219854386811[/C][C]-3.62198543868115[/C][/ROW]
[ROW][C]51[/C][C]103[/C][C]108.672775912583[/C][C]-5.67277591258282[/C][/ROW]
[ROW][C]52[/C][C]102.2[/C][C]102.842138879379[/C][C]-0.64213887937857[/C][/ROW]
[ROW][C]53[/C][C]98.4[/C][C]100.628602044454[/C][C]-2.22860204445407[/C][/ROW]
[ROW][C]54[/C][C]111.4[/C][C]106.885144082942[/C][C]4.5148559170576[/C][/ROW]
[ROW][C]55[/C][C]86.6[/C][C]92.2413272612448[/C][C]-5.64132726124481[/C][/ROW]
[ROW][C]56[/C][C]91.3[/C][C]95.3470983242375[/C][C]-4.04709832423754[/C][/ROW]
[ROW][C]57[/C][C]107.9[/C][C]108.268708163685[/C][C]-0.368708163684588[/C][/ROW]
[ROW][C]58[/C][C]101.8[/C][C]107.659967992119[/C][C]-5.85996799211924[/C][/ROW]
[ROW][C]59[/C][C]104.4[/C][C]107.678669956679[/C][C]-3.27866995667867[/C][/ROW]
[ROW][C]60[/C][C]93.4[/C][C]100.101020760107[/C][C]-6.70102076010669[/C][/ROW]
[ROW][C]61[/C][C]100.1[/C][C]102.962789455149[/C][C]-2.86278945514869[/C][/ROW]
[ROW][C]62[/C][C]98.5[/C][C]102.179031664515[/C][C]-3.67903166451519[/C][/ROW]
[ROW][C]63[/C][C]112.9[/C][C]112.125552579987[/C][C]0.774447420013413[/C][/ROW]
[ROW][C]64[/C][C]101.4[/C][C]102.438017807624[/C][C]-1.03801780762376[/C][/ROW]
[ROW][C]65[/C][C]107.1[/C][C]104.201262014522[/C][C]2.89873798547751[/C][/ROW]
[ROW][C]66[/C][C]110.8[/C][C]108.393631438155[/C][C]2.40636856184481[/C][/ROW]
[ROW][C]67[/C][C]90.3[/C][C]93.3642122688959[/C][C]-3.06421226889589[/C][/ROW]
[ROW][C]68[/C][C]95.5[/C][C]97.110213983921[/C][C]-1.61021398392107[/C][/ROW]
[ROW][C]69[/C][C]111.4[/C][C]107.945868427667[/C][C]3.45413157233291[/C][/ROW]
[ROW][C]70[/C][C]113[/C][C]112.030991940738[/C][C]0.969008059262034[/C][/ROW]
[ROW][C]71[/C][C]107.5[/C][C]108.600741165529[/C][C]-1.10074116552854[/C][/ROW]
[ROW][C]72[/C][C]95.9[/C][C]100.378567521767[/C][C]-4.478567521767[/C][/ROW]
[ROW][C]73[/C][C]106.3[/C][C]104.622699190031[/C][C]1.67730080996927[/C][/ROW]
[ROW][C]74[/C][C]105.2[/C][C]102.102663222256[/C][C]3.09733677774361[/C][/ROW]
[ROW][C]75[/C][C]117.2[/C][C]111.333134650960[/C][C]5.86686534903983[/C][/ROW]
[ROW][C]76[/C][C]106.9[/C][C]102.784831937173[/C][C]4.11516806282651[/C][/ROW]
[ROW][C]77[/C][C]108.2[/C][C]102.815009054664[/C][C]5.384990945336[/C][/ROW]
[ROW][C]78[/C][C]110[/C][C]108.118054740961[/C][C]1.88194525903854[/C][/ROW]
[ROW][C]79[/C][C]96.1[/C][C]97.1453999520372[/C][C]-1.04539995203718[/C][/ROW]
[ROW][C]80[/C][C]100.6[/C][C]98.036942344367[/C][C]2.56305765563297[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14365&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14365&T=4

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1103.196.93369921466126.16630078533878
2100.695.13129434731765.46870565268241
3103.1102.8104800240770.289519975922891
495.595.49382930543660.00617069456338041
590.595.5873505215899-5.0873505215899
690.9100.655133532570-9.75513353257048
788.887.23148103858631.56851896141371
890.789.35673201576081.3432679842392
994.3103.692277009603-9.39227700960314
10104.6110.307607074989-5.70760707498932
11111.1104.6452080638276.45479193617345
12110.895.890389486411714.9096105135882
13107.2100.9223765030136.27762349698723
149999.393646609288-0.393646609288089
1599106.278762102654-7.27876210265437
1691101.680983908455-10.6809839084555
1796.2100.217736405432-4.01773640543233
1896.9103.842409442453-6.94240944245283
1996.292.77130675608193.42869324391815
20100.192.06912840260758.03087159739247
2199103.566252225004-4.56625222500421
22115.4109.3439882293226.05601177067831
23106.9103.5715127844783.32848721552211
24107.196.2301036094710.86989639053
2599.3103.352834237749-4.05283423774927
2699.2100.052710954735-0.852710954734891
27108.3107.2471110546891.05288894531093
28105.6103.0283358808002.57166411920034
2999.598.21200241834141.28799758165859
30107.4103.0815482622154.31845173778486
3193.194.2385915824697-1.13859158246969
3288.193.0009940456307-4.90099404563074
33110.7107.8269897691432.87301023085725
34113.1111.4186541166741.68134588332648
3599.6105.206145116372-5.60614511637239
3693.6101.307776825272-7.70777682527167
3798.699.9344529046976-1.33445290469759
3899.699.6186677632067-0.018667763206698
39114.3109.3321836750504.96781632495012
40107.8102.1318622811325.66813771886757
41101.299.43803754099581.76196245900420
42112.5108.9240785007023.57592149929751
43100.594.60768114068435.8923188593157
4493.995.2788908834753-1.37889088347529
45116.2108.1999044048988.00009559510177
46112109.1387906461582.86120935384172
47106.4106.1977229131160.202277086884048
4895.7102.592141796973-6.89214179697288
4996101.871148494700-5.87114849469974
5095.899.4219854386811-3.62198543868115
51103108.672775912583-5.67277591258282
52102.2102.842138879379-0.64213887937857
5398.4100.628602044454-2.22860204445407
54111.4106.8851440829424.5148559170576
5586.692.2413272612448-5.64132726124481
5691.395.3470983242375-4.04709832423754
57107.9108.268708163685-0.368708163684588
58101.8107.659967992119-5.85996799211924
59104.4107.678669956679-3.27866995667867
6093.4100.101020760107-6.70102076010669
61100.1102.962789455149-2.86278945514869
6298.5102.179031664515-3.67903166451519
63112.9112.1255525799870.774447420013413
64101.4102.438017807624-1.03801780762376
65107.1104.2012620145222.89873798547751
66110.8108.3936314381552.40636856184481
6790.393.3642122688959-3.06421226889589
6895.597.110213983921-1.61021398392107
69111.4107.9458684276673.45413157233291
70113112.0309919407380.969008059262034
71107.5108.600741165529-1.10074116552854
7295.9100.378567521767-4.478567521767
73106.3104.6226991900311.67730080996927
74105.2102.1026632222563.09733677774361
75117.2111.3331346509605.86686534903983
76106.9102.7848319371734.11516806282651
77108.2102.8150090546645.384990945336
78110108.1180547409611.88194525903854
7996.197.1453999520372-1.04539995203718
80100.698.0369423443672.56305765563297



Parameters (Session):
par1 = FALSE ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = 3 ; par7 = 0 ; par8 = 2 ; par9 = 0 ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')