Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 13:26:33 -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/2009/Nov/20/t1258748852d5neeajxj0xca6o.htm/, Retrieved Sat, 20 Apr 2024 00:39:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58456, Retrieved Sat, 20 Apr 2024 00:39:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact120
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [WS 7.5] [2009-11-20 20:26:33] [51118f1042b56b16d340924f16263174] [Current]
Feedback Forum

Post a new message
Dataseries X:
96,3	94,0	96,2	100,0
107,2	91,1	96,3	96,2
114,9	93,1	107,2	96,3
92,6	93,9	114,9	107,2
115,0	92,6	92,6	114,9
107,1	94,4	115,0	92,6
117,8	96,3	107,1	115,0
107,4	100,4	117,8	107,1
106,3	101,5	107,4	117,8
114,5	99,4	106,3	107,4
98,0	99,7	114,5	106,3
103,1	101,7	98,0	114,5
100,3	103,7	103,1	98,0
104,6	103,1	100,3	103,1
111,2	101,0	104,6	100,3
105,0	102,3	111,2	104,6
109,9	101,6	105,0	111,2
111,5	99,6	109,9	105,0
132,5	95,7	111,5	109,9
100,3	96,6	132,5	111,5
123,1	96,3	100,3	132,5
114,2	95,4	123,1	100,3
104,6	96,0	114,2	123,1
109,1	96,9	104,6	114,2
107,0	94,9	109,1	104,6
133,7	92,5	107,0	109,1
124,9	94,0	133,7	107,0
122,5	93,5	124,9	133,7
116,8	92,3	122,5	124,9
116,0	90,4	116,8	122,5
129,8	90,4	116,0	116,8
125,2	91,0	129,8	116,0
143,8	89,1	125,2	129,8
127,9	89,7	143,8	125,2
130,3	87,9	127,9	143,8
108,4	85,9	130,3	127,9
129,4	83,2	108,4	130,3
143,7	83,9	129,4	108,4
131,9	83,0	143,7	129,4
117,6	82,8	131,9	143,7
119,0	78,7	117,6	131,9
104,8	77,6	119,0	117,6
134,6	78,5	104,8	119,0
140,4	78,6	134,6	104,8
143,8	77,5	140,4	134,6
153,4	81,6	143,8	140,4
153,3	85,0	153,4	143,8
127,3	91,7	153,3	153,4
153,6	96,0	127,3	153,3
136,9	90,8	153,6	127,3
131,8	92,3	136,9	153,6
144,3	95,6	131,8	136,9
107,4	93,6	144,3	131,8
113,6	92,6	107,4	144,3
124,2	89,5	113,6	107,4
102,1	87,2	124,2	113,6
96,4	86,7	102,1	124,2
111,7	85,6	96,4	102,1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58456&T=0

[TABLE]
[ROW][C]Summary of computational 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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58456&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58456&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 computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 56.6688184694744 -0.414546054148085X[t] + 0.33464476226903Y1[t] + 0.436658336644705Y2[t] + 13.8710231589707M1[t] + 21.8094757766993M2[t] + 13.4085304100481M3[t] + 4.64011859452247M4[t] + 4.34174638169133M5[t] + 4.82811135206612M6[t] + 23.9529557196014M7[t] + 7.17288389240209M8[t] + 11.3657529755177M9[t] + 16.1462848792535M10[t] + 5.96354837739477M11[t] -0.0685256950949151t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  56.6688184694744 -0.414546054148085X[t] +  0.33464476226903Y1[t] +  0.436658336644705Y2[t] +  13.8710231589707M1[t] +  21.8094757766993M2[t] +  13.4085304100481M3[t] +  4.64011859452247M4[t] +  4.34174638169133M5[t] +  4.82811135206612M6[t] +  23.9529557196014M7[t] +  7.17288389240209M8[t] +  11.3657529755177M9[t] +  16.1462848792535M10[t] +  5.96354837739477M11[t] -0.0685256950949151t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58456&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  56.6688184694744 -0.414546054148085X[t] +  0.33464476226903Y1[t] +  0.436658336644705Y2[t] +  13.8710231589707M1[t] +  21.8094757766993M2[t] +  13.4085304100481M3[t] +  4.64011859452247M4[t] +  4.34174638169133M5[t] +  4.82811135206612M6[t] +  23.9529557196014M7[t] +  7.17288389240209M8[t] +  11.3657529755177M9[t] +  16.1462848792535M10[t] +  5.96354837739477M11[t] -0.0685256950949151t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58456&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58456&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
Y[t] = + 56.6688184694744 -0.414546054148085X[t] + 0.33464476226903Y1[t] + 0.436658336644705Y2[t] + 13.8710231589707M1[t] + 21.8094757766993M2[t] + 13.4085304100481M3[t] + 4.64011859452247M4[t] + 4.34174638169133M5[t] + 4.82811135206612M6[t] + 23.9529557196014M7[t] + 7.17288389240209M8[t] + 11.3657529755177M9[t] + 16.1462848792535M10[t] + 5.96354837739477M11[t] -0.0685256950949151t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)56.668818469474435.4952381.59650.1178710.058935
X-0.4145460541480850.284414-1.45750.1524030.076202
Y10.334644762269030.1414992.3650.0227260.011363
Y20.4366583366447050.1611092.71030.0096920.004846
M113.87102315897077.7877961.78110.0821250.041063
M221.80947577669938.0761362.70050.0099380.004969
M313.40853041004817.8593731.70610.0953830.047692
M44.640118594522477.6538530.60620.5476140.273807
M54.341746381691337.7077790.56330.576230.288115
M64.828111352066127.8727390.61330.5430050.271503
M723.95295571960148.0334312.98170.0047550.002378
M87.172883892402098.3355850.86050.3943920.197196
M911.36575297551777.7797511.46090.1514730.075737
M1016.14628487925358.0218622.01280.0505770.025289
M115.963548377394778.1066280.73560.4660390.23302
t-0.06852569509491510.145264-0.47170.639560.31978

\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.6688184694744 & 35.495238 & 1.5965 & 0.117871 & 0.058935 \tabularnewline
X & -0.414546054148085 & 0.284414 & -1.4575 & 0.152403 & 0.076202 \tabularnewline
Y1 & 0.33464476226903 & 0.141499 & 2.365 & 0.022726 & 0.011363 \tabularnewline
Y2 & 0.436658336644705 & 0.161109 & 2.7103 & 0.009692 & 0.004846 \tabularnewline
M1 & 13.8710231589707 & 7.787796 & 1.7811 & 0.082125 & 0.041063 \tabularnewline
M2 & 21.8094757766993 & 8.076136 & 2.7005 & 0.009938 & 0.004969 \tabularnewline
M3 & 13.4085304100481 & 7.859373 & 1.7061 & 0.095383 & 0.047692 \tabularnewline
M4 & 4.64011859452247 & 7.653853 & 0.6062 & 0.547614 & 0.273807 \tabularnewline
M5 & 4.34174638169133 & 7.707779 & 0.5633 & 0.57623 & 0.288115 \tabularnewline
M6 & 4.82811135206612 & 7.872739 & 0.6133 & 0.543005 & 0.271503 \tabularnewline
M7 & 23.9529557196014 & 8.033431 & 2.9817 & 0.004755 & 0.002378 \tabularnewline
M8 & 7.17288389240209 & 8.335585 & 0.8605 & 0.394392 & 0.197196 \tabularnewline
M9 & 11.3657529755177 & 7.779751 & 1.4609 & 0.151473 & 0.075737 \tabularnewline
M10 & 16.1462848792535 & 8.021862 & 2.0128 & 0.050577 & 0.025289 \tabularnewline
M11 & 5.96354837739477 & 8.106628 & 0.7356 & 0.466039 & 0.23302 \tabularnewline
t & -0.0685256950949151 & 0.145264 & -0.4717 & 0.63956 & 0.31978 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58456&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.6688184694744[/C][C]35.495238[/C][C]1.5965[/C][C]0.117871[/C][C]0.058935[/C][/ROW]
[ROW][C]X[/C][C]-0.414546054148085[/C][C]0.284414[/C][C]-1.4575[/C][C]0.152403[/C][C]0.076202[/C][/ROW]
[ROW][C]Y1[/C][C]0.33464476226903[/C][C]0.141499[/C][C]2.365[/C][C]0.022726[/C][C]0.011363[/C][/ROW]
[ROW][C]Y2[/C][C]0.436658336644705[/C][C]0.161109[/C][C]2.7103[/C][C]0.009692[/C][C]0.004846[/C][/ROW]
[ROW][C]M1[/C][C]13.8710231589707[/C][C]7.787796[/C][C]1.7811[/C][C]0.082125[/C][C]0.041063[/C][/ROW]
[ROW][C]M2[/C][C]21.8094757766993[/C][C]8.076136[/C][C]2.7005[/C][C]0.009938[/C][C]0.004969[/C][/ROW]
[ROW][C]M3[/C][C]13.4085304100481[/C][C]7.859373[/C][C]1.7061[/C][C]0.095383[/C][C]0.047692[/C][/ROW]
[ROW][C]M4[/C][C]4.64011859452247[/C][C]7.653853[/C][C]0.6062[/C][C]0.547614[/C][C]0.273807[/C][/ROW]
[ROW][C]M5[/C][C]4.34174638169133[/C][C]7.707779[/C][C]0.5633[/C][C]0.57623[/C][C]0.288115[/C][/ROW]
[ROW][C]M6[/C][C]4.82811135206612[/C][C]7.872739[/C][C]0.6133[/C][C]0.543005[/C][C]0.271503[/C][/ROW]
[ROW][C]M7[/C][C]23.9529557196014[/C][C]8.033431[/C][C]2.9817[/C][C]0.004755[/C][C]0.002378[/C][/ROW]
[ROW][C]M8[/C][C]7.17288389240209[/C][C]8.335585[/C][C]0.8605[/C][C]0.394392[/C][C]0.197196[/C][/ROW]
[ROW][C]M9[/C][C]11.3657529755177[/C][C]7.779751[/C][C]1.4609[/C][C]0.151473[/C][C]0.075737[/C][/ROW]
[ROW][C]M10[/C][C]16.1462848792535[/C][C]8.021862[/C][C]2.0128[/C][C]0.050577[/C][C]0.025289[/C][/ROW]
[ROW][C]M11[/C][C]5.96354837739477[/C][C]8.106628[/C][C]0.7356[/C][C]0.466039[/C][C]0.23302[/C][/ROW]
[ROW][C]t[/C][C]-0.0685256950949151[/C][C]0.145264[/C][C]-0.4717[/C][C]0.63956[/C][C]0.31978[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58456&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58456&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.668818469474435.4952381.59650.1178710.058935
X-0.4145460541480850.284414-1.45750.1524030.076202
Y10.334644762269030.1414992.3650.0227260.011363
Y20.4366583366447050.1611092.71030.0096920.004846
M113.87102315897077.7877961.78110.0821250.041063
M221.80947577669938.0761362.70050.0099380.004969
M313.40853041004817.8593731.70610.0953830.047692
M44.640118594522477.6538530.60620.5476140.273807
M54.341746381691337.7077790.56330.576230.288115
M64.828111352066127.8727390.61330.5430050.271503
M723.95295571960148.0334312.98170.0047550.002378
M87.172883892402098.3355850.86050.3943920.197196
M911.36575297551777.7797511.46090.1514730.075737
M1016.14628487925358.0218622.01280.0505770.025289
M115.963548377394778.1066280.73560.4660390.23302
t-0.06852569509491510.145264-0.47170.639560.31978







Multiple Linear Regression - Regression Statistics
Multiple R0.783083562088961
R-squared0.613219865213936
Adjusted R-squared0.475084102790342
F-TEST (value)4.43925493626692
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value6.60816942024134e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.3831582891788
Sum Squared Residuals5442.20429073303

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.783083562088961 \tabularnewline
R-squared & 0.613219865213936 \tabularnewline
Adjusted R-squared & 0.475084102790342 \tabularnewline
F-TEST (value) & 4.43925493626692 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 6.60816942024134e-05 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 11.3831582891788 \tabularnewline
Sum Squared Residuals & 5442.20429073303 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58456&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.783083562088961[/C][/ROW]
[ROW][C]R-squared[/C][C]0.613219865213936[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.475084102790342[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.43925493626692[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/C][/ROW]
[ROW][C]p-value[/C][C]6.60816942024134e-05[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]11.3831582891788[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]5442.20429073303[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58456&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58456&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.783083562088961
R-squared0.613219865213936
Adjusted R-squared0.475084102790342
F-TEST (value)4.43925493626692
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value6.60816942024134e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.3831582891788
Sum Squared Residuals5442.20429073303







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
196.3107.362646638182-11.0626466381815
2107.2114.808919914822-7.6089199148215
3114.9109.2016504871765.69834951282385
492.6107.369416672136-14.7694166721359
5115103.44111962816711.5588803718328
6107.1100.871337773636.22866222637008
7117.8126.277472062105-8.47747206210496
8107.4107.860333814589-0.460333814589034
9106.3112.720615217547-6.42061521754726
10114.5113.3938122002981.10618779970174
1198105.281949067397-7.28194906739706
12103.196.47974266965886.6202573303412
13100.3103.954973758173-3.65497375817286
14104.6113.36358049583-8.7635804958301
15111.2105.9809852829475.21901471705336
16105100.6914241804814.30857581951862
17109.9101.4218560062468.47814399375395
18111.5101.6012650377439.89873496225682
19132.5124.9493707905517.55062920944943
20100.3115.453875165804-15.1538751658042
21123.1118.0968460945455.00315390545463
22114.2116.751445891694-2.55144589169392
23104.6113.228927753556-8.62892775355634
24109.199.72491331841289.37508668158718
25107111.670484289006-4.67048428900626
26133.7121.79753025573211.9024697442685
27124.9120.7242727583934.17572724160745
28122.5120.8085119552921.69148804470785
29116.8116.2933285204250.506671479575255
30116114.5433501457051.45664985429479
31129.8130.843000489456-1.04300048945553
32125.2118.0144463846697.18555361533069
33143.8127.41294641483116.3870535851693
34127.9136.091989220621-8.1919892206211
35130.3129.3879032626480.912096737352066
36108.4118.045201175249-9.6452011752493
37129.4126.6862326995802.71376730041953
38143.7131.73069981944111.9693001805589
39131.9137.589565376414-5.68956537641419
40117.6131.130943095868-13.5309430958680
41119122.525695537094-3.52569553709440
42104.8117.623823925095-12.8238239250945
43134.6132.1664171958842.43358280411601
44140.4119.04823060343721.3517693965628
45143.8138.5819327041935.21806729580663
46153.4145.2647106350818.13528936491888
47153.3138.30121991639914.9987800836013
48127.3133.650142836679-6.35014283667909
49153.6136.92566261505916.6743373849411
50136.9144.399269514176-7.49926951417574
51131.8141.203526095070-9.40352609507046
52144.3121.99970409622322.3002959037774
53107.4124.418000308068-17.0180003080676
54113.6118.360223117827-4.76022311782716
55124.2124.663739462005-0.46373946200495
56102.1115.023114031500-12.9231140315002
5796.4116.587659568883-20.1876595688832
58111.7110.1980420523061.50195794769441

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 96.3 & 107.362646638182 & -11.0626466381815 \tabularnewline
2 & 107.2 & 114.808919914822 & -7.6089199148215 \tabularnewline
3 & 114.9 & 109.201650487176 & 5.69834951282385 \tabularnewline
4 & 92.6 & 107.369416672136 & -14.7694166721359 \tabularnewline
5 & 115 & 103.441119628167 & 11.5588803718328 \tabularnewline
6 & 107.1 & 100.87133777363 & 6.22866222637008 \tabularnewline
7 & 117.8 & 126.277472062105 & -8.47747206210496 \tabularnewline
8 & 107.4 & 107.860333814589 & -0.460333814589034 \tabularnewline
9 & 106.3 & 112.720615217547 & -6.42061521754726 \tabularnewline
10 & 114.5 & 113.393812200298 & 1.10618779970174 \tabularnewline
11 & 98 & 105.281949067397 & -7.28194906739706 \tabularnewline
12 & 103.1 & 96.4797426696588 & 6.6202573303412 \tabularnewline
13 & 100.3 & 103.954973758173 & -3.65497375817286 \tabularnewline
14 & 104.6 & 113.36358049583 & -8.7635804958301 \tabularnewline
15 & 111.2 & 105.980985282947 & 5.21901471705336 \tabularnewline
16 & 105 & 100.691424180481 & 4.30857581951862 \tabularnewline
17 & 109.9 & 101.421856006246 & 8.47814399375395 \tabularnewline
18 & 111.5 & 101.601265037743 & 9.89873496225682 \tabularnewline
19 & 132.5 & 124.949370790551 & 7.55062920944943 \tabularnewline
20 & 100.3 & 115.453875165804 & -15.1538751658042 \tabularnewline
21 & 123.1 & 118.096846094545 & 5.00315390545463 \tabularnewline
22 & 114.2 & 116.751445891694 & -2.55144589169392 \tabularnewline
23 & 104.6 & 113.228927753556 & -8.62892775355634 \tabularnewline
24 & 109.1 & 99.7249133184128 & 9.37508668158718 \tabularnewline
25 & 107 & 111.670484289006 & -4.67048428900626 \tabularnewline
26 & 133.7 & 121.797530255732 & 11.9024697442685 \tabularnewline
27 & 124.9 & 120.724272758393 & 4.17572724160745 \tabularnewline
28 & 122.5 & 120.808511955292 & 1.69148804470785 \tabularnewline
29 & 116.8 & 116.293328520425 & 0.506671479575255 \tabularnewline
30 & 116 & 114.543350145705 & 1.45664985429479 \tabularnewline
31 & 129.8 & 130.843000489456 & -1.04300048945553 \tabularnewline
32 & 125.2 & 118.014446384669 & 7.18555361533069 \tabularnewline
33 & 143.8 & 127.412946414831 & 16.3870535851693 \tabularnewline
34 & 127.9 & 136.091989220621 & -8.1919892206211 \tabularnewline
35 & 130.3 & 129.387903262648 & 0.912096737352066 \tabularnewline
36 & 108.4 & 118.045201175249 & -9.6452011752493 \tabularnewline
37 & 129.4 & 126.686232699580 & 2.71376730041953 \tabularnewline
38 & 143.7 & 131.730699819441 & 11.9693001805589 \tabularnewline
39 & 131.9 & 137.589565376414 & -5.68956537641419 \tabularnewline
40 & 117.6 & 131.130943095868 & -13.5309430958680 \tabularnewline
41 & 119 & 122.525695537094 & -3.52569553709440 \tabularnewline
42 & 104.8 & 117.623823925095 & -12.8238239250945 \tabularnewline
43 & 134.6 & 132.166417195884 & 2.43358280411601 \tabularnewline
44 & 140.4 & 119.048230603437 & 21.3517693965628 \tabularnewline
45 & 143.8 & 138.581932704193 & 5.21806729580663 \tabularnewline
46 & 153.4 & 145.264710635081 & 8.13528936491888 \tabularnewline
47 & 153.3 & 138.301219916399 & 14.9987800836013 \tabularnewline
48 & 127.3 & 133.650142836679 & -6.35014283667909 \tabularnewline
49 & 153.6 & 136.925662615059 & 16.6743373849411 \tabularnewline
50 & 136.9 & 144.399269514176 & -7.49926951417574 \tabularnewline
51 & 131.8 & 141.203526095070 & -9.40352609507046 \tabularnewline
52 & 144.3 & 121.999704096223 & 22.3002959037774 \tabularnewline
53 & 107.4 & 124.418000308068 & -17.0180003080676 \tabularnewline
54 & 113.6 & 118.360223117827 & -4.76022311782716 \tabularnewline
55 & 124.2 & 124.663739462005 & -0.46373946200495 \tabularnewline
56 & 102.1 & 115.023114031500 & -12.9231140315002 \tabularnewline
57 & 96.4 & 116.587659568883 & -20.1876595688832 \tabularnewline
58 & 111.7 & 110.198042052306 & 1.50195794769441 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58456&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]96.3[/C][C]107.362646638182[/C][C]-11.0626466381815[/C][/ROW]
[ROW][C]2[/C][C]107.2[/C][C]114.808919914822[/C][C]-7.6089199148215[/C][/ROW]
[ROW][C]3[/C][C]114.9[/C][C]109.201650487176[/C][C]5.69834951282385[/C][/ROW]
[ROW][C]4[/C][C]92.6[/C][C]107.369416672136[/C][C]-14.7694166721359[/C][/ROW]
[ROW][C]5[/C][C]115[/C][C]103.441119628167[/C][C]11.5588803718328[/C][/ROW]
[ROW][C]6[/C][C]107.1[/C][C]100.87133777363[/C][C]6.22866222637008[/C][/ROW]
[ROW][C]7[/C][C]117.8[/C][C]126.277472062105[/C][C]-8.47747206210496[/C][/ROW]
[ROW][C]8[/C][C]107.4[/C][C]107.860333814589[/C][C]-0.460333814589034[/C][/ROW]
[ROW][C]9[/C][C]106.3[/C][C]112.720615217547[/C][C]-6.42061521754726[/C][/ROW]
[ROW][C]10[/C][C]114.5[/C][C]113.393812200298[/C][C]1.10618779970174[/C][/ROW]
[ROW][C]11[/C][C]98[/C][C]105.281949067397[/C][C]-7.28194906739706[/C][/ROW]
[ROW][C]12[/C][C]103.1[/C][C]96.4797426696588[/C][C]6.6202573303412[/C][/ROW]
[ROW][C]13[/C][C]100.3[/C][C]103.954973758173[/C][C]-3.65497375817286[/C][/ROW]
[ROW][C]14[/C][C]104.6[/C][C]113.36358049583[/C][C]-8.7635804958301[/C][/ROW]
[ROW][C]15[/C][C]111.2[/C][C]105.980985282947[/C][C]5.21901471705336[/C][/ROW]
[ROW][C]16[/C][C]105[/C][C]100.691424180481[/C][C]4.30857581951862[/C][/ROW]
[ROW][C]17[/C][C]109.9[/C][C]101.421856006246[/C][C]8.47814399375395[/C][/ROW]
[ROW][C]18[/C][C]111.5[/C][C]101.601265037743[/C][C]9.89873496225682[/C][/ROW]
[ROW][C]19[/C][C]132.5[/C][C]124.949370790551[/C][C]7.55062920944943[/C][/ROW]
[ROW][C]20[/C][C]100.3[/C][C]115.453875165804[/C][C]-15.1538751658042[/C][/ROW]
[ROW][C]21[/C][C]123.1[/C][C]118.096846094545[/C][C]5.00315390545463[/C][/ROW]
[ROW][C]22[/C][C]114.2[/C][C]116.751445891694[/C][C]-2.55144589169392[/C][/ROW]
[ROW][C]23[/C][C]104.6[/C][C]113.228927753556[/C][C]-8.62892775355634[/C][/ROW]
[ROW][C]24[/C][C]109.1[/C][C]99.7249133184128[/C][C]9.37508668158718[/C][/ROW]
[ROW][C]25[/C][C]107[/C][C]111.670484289006[/C][C]-4.67048428900626[/C][/ROW]
[ROW][C]26[/C][C]133.7[/C][C]121.797530255732[/C][C]11.9024697442685[/C][/ROW]
[ROW][C]27[/C][C]124.9[/C][C]120.724272758393[/C][C]4.17572724160745[/C][/ROW]
[ROW][C]28[/C][C]122.5[/C][C]120.808511955292[/C][C]1.69148804470785[/C][/ROW]
[ROW][C]29[/C][C]116.8[/C][C]116.293328520425[/C][C]0.506671479575255[/C][/ROW]
[ROW][C]30[/C][C]116[/C][C]114.543350145705[/C][C]1.45664985429479[/C][/ROW]
[ROW][C]31[/C][C]129.8[/C][C]130.843000489456[/C][C]-1.04300048945553[/C][/ROW]
[ROW][C]32[/C][C]125.2[/C][C]118.014446384669[/C][C]7.18555361533069[/C][/ROW]
[ROW][C]33[/C][C]143.8[/C][C]127.412946414831[/C][C]16.3870535851693[/C][/ROW]
[ROW][C]34[/C][C]127.9[/C][C]136.091989220621[/C][C]-8.1919892206211[/C][/ROW]
[ROW][C]35[/C][C]130.3[/C][C]129.387903262648[/C][C]0.912096737352066[/C][/ROW]
[ROW][C]36[/C][C]108.4[/C][C]118.045201175249[/C][C]-9.6452011752493[/C][/ROW]
[ROW][C]37[/C][C]129.4[/C][C]126.686232699580[/C][C]2.71376730041953[/C][/ROW]
[ROW][C]38[/C][C]143.7[/C][C]131.730699819441[/C][C]11.9693001805589[/C][/ROW]
[ROW][C]39[/C][C]131.9[/C][C]137.589565376414[/C][C]-5.68956537641419[/C][/ROW]
[ROW][C]40[/C][C]117.6[/C][C]131.130943095868[/C][C]-13.5309430958680[/C][/ROW]
[ROW][C]41[/C][C]119[/C][C]122.525695537094[/C][C]-3.52569553709440[/C][/ROW]
[ROW][C]42[/C][C]104.8[/C][C]117.623823925095[/C][C]-12.8238239250945[/C][/ROW]
[ROW][C]43[/C][C]134.6[/C][C]132.166417195884[/C][C]2.43358280411601[/C][/ROW]
[ROW][C]44[/C][C]140.4[/C][C]119.048230603437[/C][C]21.3517693965628[/C][/ROW]
[ROW][C]45[/C][C]143.8[/C][C]138.581932704193[/C][C]5.21806729580663[/C][/ROW]
[ROW][C]46[/C][C]153.4[/C][C]145.264710635081[/C][C]8.13528936491888[/C][/ROW]
[ROW][C]47[/C][C]153.3[/C][C]138.301219916399[/C][C]14.9987800836013[/C][/ROW]
[ROW][C]48[/C][C]127.3[/C][C]133.650142836679[/C][C]-6.35014283667909[/C][/ROW]
[ROW][C]49[/C][C]153.6[/C][C]136.925662615059[/C][C]16.6743373849411[/C][/ROW]
[ROW][C]50[/C][C]136.9[/C][C]144.399269514176[/C][C]-7.49926951417574[/C][/ROW]
[ROW][C]51[/C][C]131.8[/C][C]141.203526095070[/C][C]-9.40352609507046[/C][/ROW]
[ROW][C]52[/C][C]144.3[/C][C]121.999704096223[/C][C]22.3002959037774[/C][/ROW]
[ROW][C]53[/C][C]107.4[/C][C]124.418000308068[/C][C]-17.0180003080676[/C][/ROW]
[ROW][C]54[/C][C]113.6[/C][C]118.360223117827[/C][C]-4.76022311782716[/C][/ROW]
[ROW][C]55[/C][C]124.2[/C][C]124.663739462005[/C][C]-0.46373946200495[/C][/ROW]
[ROW][C]56[/C][C]102.1[/C][C]115.023114031500[/C][C]-12.9231140315002[/C][/ROW]
[ROW][C]57[/C][C]96.4[/C][C]116.587659568883[/C][C]-20.1876595688832[/C][/ROW]
[ROW][C]58[/C][C]111.7[/C][C]110.198042052306[/C][C]1.50195794769441[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58456&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58456&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
196.3107.362646638182-11.0626466381815
2107.2114.808919914822-7.6089199148215
3114.9109.2016504871765.69834951282385
492.6107.369416672136-14.7694166721359
5115103.44111962816711.5588803718328
6107.1100.871337773636.22866222637008
7117.8126.277472062105-8.47747206210496
8107.4107.860333814589-0.460333814589034
9106.3112.720615217547-6.42061521754726
10114.5113.3938122002981.10618779970174
1198105.281949067397-7.28194906739706
12103.196.47974266965886.6202573303412
13100.3103.954973758173-3.65497375817286
14104.6113.36358049583-8.7635804958301
15111.2105.9809852829475.21901471705336
16105100.6914241804814.30857581951862
17109.9101.4218560062468.47814399375395
18111.5101.6012650377439.89873496225682
19132.5124.9493707905517.55062920944943
20100.3115.453875165804-15.1538751658042
21123.1118.0968460945455.00315390545463
22114.2116.751445891694-2.55144589169392
23104.6113.228927753556-8.62892775355634
24109.199.72491331841289.37508668158718
25107111.670484289006-4.67048428900626
26133.7121.79753025573211.9024697442685
27124.9120.7242727583934.17572724160745
28122.5120.8085119552921.69148804470785
29116.8116.2933285204250.506671479575255
30116114.5433501457051.45664985429479
31129.8130.843000489456-1.04300048945553
32125.2118.0144463846697.18555361533069
33143.8127.41294641483116.3870535851693
34127.9136.091989220621-8.1919892206211
35130.3129.3879032626480.912096737352066
36108.4118.045201175249-9.6452011752493
37129.4126.6862326995802.71376730041953
38143.7131.73069981944111.9693001805589
39131.9137.589565376414-5.68956537641419
40117.6131.130943095868-13.5309430958680
41119122.525695537094-3.52569553709440
42104.8117.623823925095-12.8238239250945
43134.6132.1664171958842.43358280411601
44140.4119.04823060343721.3517693965628
45143.8138.5819327041935.21806729580663
46153.4145.2647106350818.13528936491888
47153.3138.30121991639914.9987800836013
48127.3133.650142836679-6.35014283667909
49153.6136.92566261505916.6743373849411
50136.9144.399269514176-7.49926951417574
51131.8141.203526095070-9.40352609507046
52144.3121.99970409622322.3002959037774
53107.4124.418000308068-17.0180003080676
54113.6118.360223117827-4.76022311782716
55124.2124.663739462005-0.46373946200495
56102.1115.023114031500-12.9231140315002
5796.4116.587659568883-20.1876595688832
58111.7110.1980420523061.50195794769441







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.05172491403799580.1034498280759920.948275085962004
200.02172297419265880.04344594838531760.978277025807341
210.01024765066187710.02049530132375410.989752349338123
220.003194097621501880.006388195243003760.996805902378498
230.001225808358898250.00245161671779650.998774191641102
240.0004083085771414720.0008166171542829440.999591691422859
250.0001539230044177580.0003078460088355150.999846076995582
260.007205532891361220.01441106578272240.992794467108639
270.007329870141905390.01465974028381080.992670129858095
280.004914355817323510.009828711634647020.995085644182677
290.0026725513264060.0053451026528120.997327448673594
300.002623134479208070.005246268958416140.997376865520792
310.001656690497932320.003313380995864640.998343309502068
320.0008018772984579710.001603754596915940.999198122701542
330.002747889832620780.005495779665241560.99725211016738
340.001711605631205880.003423211262411760.998288394368794
350.002298722918491420.004597445836982850.997701277081509
360.003764894214581750.00752978842916350.996235105785418
370.002503083575201160.005006167150402310.997496916424799
380.001438926281937050.002877852563874110.998561073718063
390.002195740193364800.004391480386729610.997804259806635

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.0517249140379958 & 0.103449828075992 & 0.948275085962004 \tabularnewline
20 & 0.0217229741926588 & 0.0434459483853176 & 0.978277025807341 \tabularnewline
21 & 0.0102476506618771 & 0.0204953013237541 & 0.989752349338123 \tabularnewline
22 & 0.00319409762150188 & 0.00638819524300376 & 0.996805902378498 \tabularnewline
23 & 0.00122580835889825 & 0.0024516167177965 & 0.998774191641102 \tabularnewline
24 & 0.000408308577141472 & 0.000816617154282944 & 0.999591691422859 \tabularnewline
25 & 0.000153923004417758 & 0.000307846008835515 & 0.999846076995582 \tabularnewline
26 & 0.00720553289136122 & 0.0144110657827224 & 0.992794467108639 \tabularnewline
27 & 0.00732987014190539 & 0.0146597402838108 & 0.992670129858095 \tabularnewline
28 & 0.00491435581732351 & 0.00982871163464702 & 0.995085644182677 \tabularnewline
29 & 0.002672551326406 & 0.005345102652812 & 0.997327448673594 \tabularnewline
30 & 0.00262313447920807 & 0.00524626895841614 & 0.997376865520792 \tabularnewline
31 & 0.00165669049793232 & 0.00331338099586464 & 0.998343309502068 \tabularnewline
32 & 0.000801877298457971 & 0.00160375459691594 & 0.999198122701542 \tabularnewline
33 & 0.00274788983262078 & 0.00549577966524156 & 0.99725211016738 \tabularnewline
34 & 0.00171160563120588 & 0.00342321126241176 & 0.998288394368794 \tabularnewline
35 & 0.00229872291849142 & 0.00459744583698285 & 0.997701277081509 \tabularnewline
36 & 0.00376489421458175 & 0.0075297884291635 & 0.996235105785418 \tabularnewline
37 & 0.00250308357520116 & 0.00500616715040231 & 0.997496916424799 \tabularnewline
38 & 0.00143892628193705 & 0.00287785256387411 & 0.998561073718063 \tabularnewline
39 & 0.00219574019336480 & 0.00439148038672961 & 0.997804259806635 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58456&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]19[/C][C]0.0517249140379958[/C][C]0.103449828075992[/C][C]0.948275085962004[/C][/ROW]
[ROW][C]20[/C][C]0.0217229741926588[/C][C]0.0434459483853176[/C][C]0.978277025807341[/C][/ROW]
[ROW][C]21[/C][C]0.0102476506618771[/C][C]0.0204953013237541[/C][C]0.989752349338123[/C][/ROW]
[ROW][C]22[/C][C]0.00319409762150188[/C][C]0.00638819524300376[/C][C]0.996805902378498[/C][/ROW]
[ROW][C]23[/C][C]0.00122580835889825[/C][C]0.0024516167177965[/C][C]0.998774191641102[/C][/ROW]
[ROW][C]24[/C][C]0.000408308577141472[/C][C]0.000816617154282944[/C][C]0.999591691422859[/C][/ROW]
[ROW][C]25[/C][C]0.000153923004417758[/C][C]0.000307846008835515[/C][C]0.999846076995582[/C][/ROW]
[ROW][C]26[/C][C]0.00720553289136122[/C][C]0.0144110657827224[/C][C]0.992794467108639[/C][/ROW]
[ROW][C]27[/C][C]0.00732987014190539[/C][C]0.0146597402838108[/C][C]0.992670129858095[/C][/ROW]
[ROW][C]28[/C][C]0.00491435581732351[/C][C]0.00982871163464702[/C][C]0.995085644182677[/C][/ROW]
[ROW][C]29[/C][C]0.002672551326406[/C][C]0.005345102652812[/C][C]0.997327448673594[/C][/ROW]
[ROW][C]30[/C][C]0.00262313447920807[/C][C]0.00524626895841614[/C][C]0.997376865520792[/C][/ROW]
[ROW][C]31[/C][C]0.00165669049793232[/C][C]0.00331338099586464[/C][C]0.998343309502068[/C][/ROW]
[ROW][C]32[/C][C]0.000801877298457971[/C][C]0.00160375459691594[/C][C]0.999198122701542[/C][/ROW]
[ROW][C]33[/C][C]0.00274788983262078[/C][C]0.00549577966524156[/C][C]0.99725211016738[/C][/ROW]
[ROW][C]34[/C][C]0.00171160563120588[/C][C]0.00342321126241176[/C][C]0.998288394368794[/C][/ROW]
[ROW][C]35[/C][C]0.00229872291849142[/C][C]0.00459744583698285[/C][C]0.997701277081509[/C][/ROW]
[ROW][C]36[/C][C]0.00376489421458175[/C][C]0.0075297884291635[/C][C]0.996235105785418[/C][/ROW]
[ROW][C]37[/C][C]0.00250308357520116[/C][C]0.00500616715040231[/C][C]0.997496916424799[/C][/ROW]
[ROW][C]38[/C][C]0.00143892628193705[/C][C]0.00287785256387411[/C][C]0.998561073718063[/C][/ROW]
[ROW][C]39[/C][C]0.00219574019336480[/C][C]0.00439148038672961[/C][C]0.997804259806635[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58456&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.05172491403799580.1034498280759920.948275085962004
200.02172297419265880.04344594838531760.978277025807341
210.01024765066187710.02049530132375410.989752349338123
220.003194097621501880.006388195243003760.996805902378498
230.001225808358898250.00245161671779650.998774191641102
240.0004083085771414720.0008166171542829440.999591691422859
250.0001539230044177580.0003078460088355150.999846076995582
260.007205532891361220.01441106578272240.992794467108639
270.007329870141905390.01465974028381080.992670129858095
280.004914355817323510.009828711634647020.995085644182677
290.0026725513264060.0053451026528120.997327448673594
300.002623134479208070.005246268958416140.997376865520792
310.001656690497932320.003313380995864640.998343309502068
320.0008018772984579710.001603754596915940.999198122701542
330.002747889832620780.005495779665241560.99725211016738
340.001711605631205880.003423211262411760.998288394368794
350.002298722918491420.004597445836982850.997701277081509
360.003764894214581750.00752978842916350.996235105785418
370.002503083575201160.005006167150402310.997496916424799
380.001438926281937050.002877852563874110.998561073718063
390.002195740193364800.004391480386729610.997804259806635







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level160.761904761904762NOK
5% type I error level200.952380952380952NOK
10% type I error level200.952380952380952NOK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 16 & 0.761904761904762 & NOK \tabularnewline
5% type I error level & 20 & 0.952380952380952 & NOK \tabularnewline
10% type I error level & 20 & 0.952380952380952 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58456&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]16[/C][C]0.761904761904762[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]20[/C][C]0.952380952380952[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]20[/C][C]0.952380952380952[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58456&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level160.761904761904762NOK
5% type I error level200.952380952380952NOK
10% type I error level200.952380952380952NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
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))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
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')
qqline(mysum$resid)
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()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
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')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}