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 computationMon, 14 Dec 2009 02:49:06 -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/Dec/14/t1260784246ugjwdl5ffsp66sy.htm/, Retrieved Fri, 17 May 2024 07:01:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67481, Retrieved Fri, 17 May 2024 07:01:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact121
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:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-12-14 09:49:06] [d39d4e1021a28f94dc953cf77db656ab] [Current]
Feedback Forum

Post a new message
Dataseries X:
95,1	121,8
97,0	127,6
112,7	129,9
102,9	128,0
97,4	123,5
111,4	124,0
87,4	127,4
96,8	127,6
114,1	128,4
110,3	131,4
103,9	135,1
101,6	134,0
94,6	144,5
95,9	147,3
104,7	150,9
102,8	148,7
98,1	141,4
113,9	138,9
80,9	139,8
95,7	145,6
113,2	147,9
105,9	148,5
108,8	151,1
102,3	157,5
99,0	167,5
100,7	172,3
115,5	173,5
100,7	187,5
109,9	205,5
114,6	195,1
85,4	204,5
100,5	204,5
114,8	201,7
116,5	207,0
112,9	206,6
102,0	210,6
106,0	211,1
105,3	215,0
118,8	223,9
106,1	238,2
109,3	238,9
117,2	229,6
92,5	232,2
104,2	222,1
112,5	221,6
122,4	227,3
113,3	221,0
100,0	213,6
110,7	243,4
112,8	253,8
109,8	265,3
117,3	268,2
109,1	268,5
115,9	266,9
96,0	268,4
99,8	250,8
116,8	231,2
115,7	192,0
99,4	171,4
94,3	160,0




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 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 & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67481&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]4 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=67481&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67481&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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
TIP[t] = + 83.408897026977 + 0.126899884441892Grondstofprijzen[t] -0.98910911627775M1[t] -0.276741620859989M2[t] + 9.14070186993543M3[t] + 2.26829735148621M4[t] + 1.04095437311572M5[t] + 11.6277006898408M6[t] -14.8286700435465M7[t] -3.16253168984288M8[t] + 12.3753847077728M9[t] + 13.0351249944528M10[t] + 7.22349736433458M11[t] -0.155392855225834t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
TIP[t] =  +  83.408897026977 +  0.126899884441892Grondstofprijzen[t] -0.98910911627775M1[t] -0.276741620859989M2[t] +  9.14070186993543M3[t] +  2.26829735148621M4[t] +  1.04095437311572M5[t] +  11.6277006898408M6[t] -14.8286700435465M7[t] -3.16253168984288M8[t] +  12.3753847077728M9[t] +  13.0351249944528M10[t] +  7.22349736433458M11[t] -0.155392855225834t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67481&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]TIP[t] =  +  83.408897026977 +  0.126899884441892Grondstofprijzen[t] -0.98910911627775M1[t] -0.276741620859989M2[t] +  9.14070186993543M3[t] +  2.26829735148621M4[t] +  1.04095437311572M5[t] +  11.6277006898408M6[t] -14.8286700435465M7[t] -3.16253168984288M8[t] +  12.3753847077728M9[t] +  13.0351249944528M10[t] +  7.22349736433458M11[t] -0.155392855225834t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67481&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67481&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
TIP[t] = + 83.408897026977 + 0.126899884441892Grondstofprijzen[t] -0.98910911627775M1[t] -0.276741620859989M2[t] + 9.14070186993543M3[t] + 2.26829735148621M4[t] + 1.04095437311572M5[t] + 11.6277006898408M6[t] -14.8286700435465M7[t] -3.16253168984288M8[t] + 12.3753847077728M9[t] + 13.0351249944528M10[t] + 7.22349736433458M11[t] -0.155392855225834t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)83.4088970269772.88036128.957800
Grondstofprijzen0.1268998844418920.0246035.1585e-063e-06
M1-0.989109116277752.462033-0.40170.6897320.344866
M2-0.2767416208599892.482158-0.11150.9117110.455855
M39.140701869935432.5043923.64990.0006680.000334
M42.268297351486212.5282220.89720.3742890.187144
M51.040954373115722.5166020.41360.6810640.340532
M611.62770068984082.455574.73522.1e-051.1e-05
M7-14.82867004354652.462255-6.022400
M8-3.162531689842882.413232-1.31050.1965340.098267
M912.37538470777282.377085.20614e-062e-06
M1013.03512499445282.3484825.55041e-061e-06
M117.223497364334582.3347633.09390.0033550.001678
t-0.1553928552258340.066589-2.33360.0240420.012021

\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) & 83.408897026977 & 2.880361 & 28.9578 & 0 & 0 \tabularnewline
Grondstofprijzen & 0.126899884441892 & 0.024603 & 5.158 & 5e-06 & 3e-06 \tabularnewline
M1 & -0.98910911627775 & 2.462033 & -0.4017 & 0.689732 & 0.344866 \tabularnewline
M2 & -0.276741620859989 & 2.482158 & -0.1115 & 0.911711 & 0.455855 \tabularnewline
M3 & 9.14070186993543 & 2.504392 & 3.6499 & 0.000668 & 0.000334 \tabularnewline
M4 & 2.26829735148621 & 2.528222 & 0.8972 & 0.374289 & 0.187144 \tabularnewline
M5 & 1.04095437311572 & 2.516602 & 0.4136 & 0.681064 & 0.340532 \tabularnewline
M6 & 11.6277006898408 & 2.45557 & 4.7352 & 2.1e-05 & 1.1e-05 \tabularnewline
M7 & -14.8286700435465 & 2.462255 & -6.0224 & 0 & 0 \tabularnewline
M8 & -3.16253168984288 & 2.413232 & -1.3105 & 0.196534 & 0.098267 \tabularnewline
M9 & 12.3753847077728 & 2.37708 & 5.2061 & 4e-06 & 2e-06 \tabularnewline
M10 & 13.0351249944528 & 2.348482 & 5.5504 & 1e-06 & 1e-06 \tabularnewline
M11 & 7.22349736433458 & 2.334763 & 3.0939 & 0.003355 & 0.001678 \tabularnewline
t & -0.155392855225834 & 0.066589 & -2.3336 & 0.024042 & 0.012021 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67481&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]83.408897026977[/C][C]2.880361[/C][C]28.9578[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Grondstofprijzen[/C][C]0.126899884441892[/C][C]0.024603[/C][C]5.158[/C][C]5e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M1[/C][C]-0.98910911627775[/C][C]2.462033[/C][C]-0.4017[/C][C]0.689732[/C][C]0.344866[/C][/ROW]
[ROW][C]M2[/C][C]-0.276741620859989[/C][C]2.482158[/C][C]-0.1115[/C][C]0.911711[/C][C]0.455855[/C][/ROW]
[ROW][C]M3[/C][C]9.14070186993543[/C][C]2.504392[/C][C]3.6499[/C][C]0.000668[/C][C]0.000334[/C][/ROW]
[ROW][C]M4[/C][C]2.26829735148621[/C][C]2.528222[/C][C]0.8972[/C][C]0.374289[/C][C]0.187144[/C][/ROW]
[ROW][C]M5[/C][C]1.04095437311572[/C][C]2.516602[/C][C]0.4136[/C][C]0.681064[/C][C]0.340532[/C][/ROW]
[ROW][C]M6[/C][C]11.6277006898408[/C][C]2.45557[/C][C]4.7352[/C][C]2.1e-05[/C][C]1.1e-05[/C][/ROW]
[ROW][C]M7[/C][C]-14.8286700435465[/C][C]2.462255[/C][C]-6.0224[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-3.16253168984288[/C][C]2.413232[/C][C]-1.3105[/C][C]0.196534[/C][C]0.098267[/C][/ROW]
[ROW][C]M9[/C][C]12.3753847077728[/C][C]2.37708[/C][C]5.2061[/C][C]4e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M10[/C][C]13.0351249944528[/C][C]2.348482[/C][C]5.5504[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M11[/C][C]7.22349736433458[/C][C]2.334763[/C][C]3.0939[/C][C]0.003355[/C][C]0.001678[/C][/ROW]
[ROW][C]t[/C][C]-0.155392855225834[/C][C]0.066589[/C][C]-2.3336[/C][C]0.024042[/C][C]0.012021[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67481&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67481&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)83.4088970269772.88036128.957800
Grondstofprijzen0.1268998844418920.0246035.1585e-063e-06
M1-0.989109116277752.462033-0.40170.6897320.344866
M2-0.2767416208599892.482158-0.11150.9117110.455855
M39.140701869935432.5043923.64990.0006680.000334
M42.268297351486212.5282220.89720.3742890.187144
M51.040954373115722.5166020.41360.6810640.340532
M611.62770068984082.455574.73522.1e-051.1e-05
M7-14.82867004354652.462255-6.022400
M8-3.162531689842882.413232-1.31050.1965340.098267
M912.37538470777282.377085.20614e-062e-06
M1013.03512499445282.3484825.55041e-061e-06
M117.223497364334582.3347633.09390.0033550.001678
t-0.1553928552258340.066589-2.33360.0240420.012021







Multiple Linear Regression - Regression Statistics
Multiple R0.932262038977343
R-squared0.869112509318194
Adjusted R-squared0.832122566299422
F-TEST (value)23.4959137103061
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value4.44089209850063e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.68742900677967
Sum Squared Residuals625.468103281846

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.932262038977343 \tabularnewline
R-squared & 0.869112509318194 \tabularnewline
Adjusted R-squared & 0.832122566299422 \tabularnewline
F-TEST (value) & 23.4959137103061 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 4.44089209850063e-16 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3.68742900677967 \tabularnewline
Sum Squared Residuals & 625.468103281846 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67481&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.932262038977343[/C][/ROW]
[ROW][C]R-squared[/C][C]0.869112509318194[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.832122566299422[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]23.4959137103061[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]4.44089209850063e-16[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]3.68742900677967[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]625.468103281846[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67481&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67481&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.932262038977343
R-squared0.869112509318194
Adjusted R-squared0.832122566299422
F-TEST (value)23.4959137103061
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value4.44089209850063e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.68742900677967
Sum Squared Residuals625.468103281846







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
195.197.720800980496-2.62080098049592
29799.0137949504508-2.01379495045078
3112.7108.5677153202374.13228467976325
4102.9101.2988081661221.60119183387791
597.499.3450228525372-1.94502285253724
6111.4109.8398262562571.56017374374258
787.483.65952227474673.74047772525329
896.895.1956477501131.60435224988709
9114.1110.6796912000563.42030879994366
10110.3111.564738284836-1.26473828483611
11103.9106.067247371927-2.16724737192705
12101.698.54876727948063.05123272051942
1394.698.7367140946169-4.13671409461686
1495.999.649008411246-3.74900841124607
15104.7109.367898630806-4.66789863080648
16102.8102.0609215113590.739078488640739
1798.199.7518165213371-1.65181652133713
18113.9109.8659202717324.0340797282684
1980.983.3683665791162-2.46836657911617
2095.795.6151314073570.0848685926430376
21113.2111.2895246839631.9104753160368
22105.9111.870012046082-5.97001204608245
23108.8106.2329312602872.56706873971267
24102.399.6662003011552.63379969884497
259999.7906971740704-0.790697174070369
26100.7100.956791259583-0.256791259583379
27115.5110.3711217564835.12887824351677
28100.7105.119922764995-4.41992276499467
29109.9106.0213848513523.87861514864760
30114.6115.132979514656-0.532979514655955
3185.489.7140748397966-4.3140748397966
32100.5101.224820338274-0.724820338274414
33114.8116.252024204227-1.45202420422701
34116.5117.428941023223-0.928941023223155
35112.9111.4111605841021.48883941589766
36102104.539869902310-2.5398699023095
37106103.4588178730272.54118212697313
38105.3104.5107020625420.789297937457823
39118.8114.9021616696453.89783833035539
40106.1109.689032643489-3.58903264348861
41109.3108.3951267290020.904873270998387
42117.2117.646311265191-0.446311265191223
4392.591.3644873761271.13551262387299
44104.2101.5935440417422.60645595825829
45112.5116.912617641911-4.41261764191065
46122.4118.1402944146844.25970558531645
47113.3111.3738046573561.92619534264442
48100103.055855292925-3.05585529292517
49110.7105.692969877795.00703012221002
50112.8107.5697033161785.23029668382241
51109.8118.291102622829-8.49110262282894
52117.3111.6313149140355.66868508596463
53109.1110.286649045772-1.18664904577162
54115.9120.514962692164-4.61496269216380
559694.09354893021351.90645106978650
5699.8103.370856462514-3.57085646251401
57116.8116.2661422698430.533857730157193
58115.7111.7960142311753.90398576882526
5999.4103.214856126328-3.8148561263277
6094.394.3893072241297-0.0893072241297221

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 95.1 & 97.720800980496 & -2.62080098049592 \tabularnewline
2 & 97 & 99.0137949504508 & -2.01379495045078 \tabularnewline
3 & 112.7 & 108.567715320237 & 4.13228467976325 \tabularnewline
4 & 102.9 & 101.298808166122 & 1.60119183387791 \tabularnewline
5 & 97.4 & 99.3450228525372 & -1.94502285253724 \tabularnewline
6 & 111.4 & 109.839826256257 & 1.56017374374258 \tabularnewline
7 & 87.4 & 83.6595222747467 & 3.74047772525329 \tabularnewline
8 & 96.8 & 95.195647750113 & 1.60435224988709 \tabularnewline
9 & 114.1 & 110.679691200056 & 3.42030879994366 \tabularnewline
10 & 110.3 & 111.564738284836 & -1.26473828483611 \tabularnewline
11 & 103.9 & 106.067247371927 & -2.16724737192705 \tabularnewline
12 & 101.6 & 98.5487672794806 & 3.05123272051942 \tabularnewline
13 & 94.6 & 98.7367140946169 & -4.13671409461686 \tabularnewline
14 & 95.9 & 99.649008411246 & -3.74900841124607 \tabularnewline
15 & 104.7 & 109.367898630806 & -4.66789863080648 \tabularnewline
16 & 102.8 & 102.060921511359 & 0.739078488640739 \tabularnewline
17 & 98.1 & 99.7518165213371 & -1.65181652133713 \tabularnewline
18 & 113.9 & 109.865920271732 & 4.0340797282684 \tabularnewline
19 & 80.9 & 83.3683665791162 & -2.46836657911617 \tabularnewline
20 & 95.7 & 95.615131407357 & 0.0848685926430376 \tabularnewline
21 & 113.2 & 111.289524683963 & 1.9104753160368 \tabularnewline
22 & 105.9 & 111.870012046082 & -5.97001204608245 \tabularnewline
23 & 108.8 & 106.232931260287 & 2.56706873971267 \tabularnewline
24 & 102.3 & 99.666200301155 & 2.63379969884497 \tabularnewline
25 & 99 & 99.7906971740704 & -0.790697174070369 \tabularnewline
26 & 100.7 & 100.956791259583 & -0.256791259583379 \tabularnewline
27 & 115.5 & 110.371121756483 & 5.12887824351677 \tabularnewline
28 & 100.7 & 105.119922764995 & -4.41992276499467 \tabularnewline
29 & 109.9 & 106.021384851352 & 3.87861514864760 \tabularnewline
30 & 114.6 & 115.132979514656 & -0.532979514655955 \tabularnewline
31 & 85.4 & 89.7140748397966 & -4.3140748397966 \tabularnewline
32 & 100.5 & 101.224820338274 & -0.724820338274414 \tabularnewline
33 & 114.8 & 116.252024204227 & -1.45202420422701 \tabularnewline
34 & 116.5 & 117.428941023223 & -0.928941023223155 \tabularnewline
35 & 112.9 & 111.411160584102 & 1.48883941589766 \tabularnewline
36 & 102 & 104.539869902310 & -2.5398699023095 \tabularnewline
37 & 106 & 103.458817873027 & 2.54118212697313 \tabularnewline
38 & 105.3 & 104.510702062542 & 0.789297937457823 \tabularnewline
39 & 118.8 & 114.902161669645 & 3.89783833035539 \tabularnewline
40 & 106.1 & 109.689032643489 & -3.58903264348861 \tabularnewline
41 & 109.3 & 108.395126729002 & 0.904873270998387 \tabularnewline
42 & 117.2 & 117.646311265191 & -0.446311265191223 \tabularnewline
43 & 92.5 & 91.364487376127 & 1.13551262387299 \tabularnewline
44 & 104.2 & 101.593544041742 & 2.60645595825829 \tabularnewline
45 & 112.5 & 116.912617641911 & -4.41261764191065 \tabularnewline
46 & 122.4 & 118.140294414684 & 4.25970558531645 \tabularnewline
47 & 113.3 & 111.373804657356 & 1.92619534264442 \tabularnewline
48 & 100 & 103.055855292925 & -3.05585529292517 \tabularnewline
49 & 110.7 & 105.69296987779 & 5.00703012221002 \tabularnewline
50 & 112.8 & 107.569703316178 & 5.23029668382241 \tabularnewline
51 & 109.8 & 118.291102622829 & -8.49110262282894 \tabularnewline
52 & 117.3 & 111.631314914035 & 5.66868508596463 \tabularnewline
53 & 109.1 & 110.286649045772 & -1.18664904577162 \tabularnewline
54 & 115.9 & 120.514962692164 & -4.61496269216380 \tabularnewline
55 & 96 & 94.0935489302135 & 1.90645106978650 \tabularnewline
56 & 99.8 & 103.370856462514 & -3.57085646251401 \tabularnewline
57 & 116.8 & 116.266142269843 & 0.533857730157193 \tabularnewline
58 & 115.7 & 111.796014231175 & 3.90398576882526 \tabularnewline
59 & 99.4 & 103.214856126328 & -3.8148561263277 \tabularnewline
60 & 94.3 & 94.3893072241297 & -0.0893072241297221 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67481&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]95.1[/C][C]97.720800980496[/C][C]-2.62080098049592[/C][/ROW]
[ROW][C]2[/C][C]97[/C][C]99.0137949504508[/C][C]-2.01379495045078[/C][/ROW]
[ROW][C]3[/C][C]112.7[/C][C]108.567715320237[/C][C]4.13228467976325[/C][/ROW]
[ROW][C]4[/C][C]102.9[/C][C]101.298808166122[/C][C]1.60119183387791[/C][/ROW]
[ROW][C]5[/C][C]97.4[/C][C]99.3450228525372[/C][C]-1.94502285253724[/C][/ROW]
[ROW][C]6[/C][C]111.4[/C][C]109.839826256257[/C][C]1.56017374374258[/C][/ROW]
[ROW][C]7[/C][C]87.4[/C][C]83.6595222747467[/C][C]3.74047772525329[/C][/ROW]
[ROW][C]8[/C][C]96.8[/C][C]95.195647750113[/C][C]1.60435224988709[/C][/ROW]
[ROW][C]9[/C][C]114.1[/C][C]110.679691200056[/C][C]3.42030879994366[/C][/ROW]
[ROW][C]10[/C][C]110.3[/C][C]111.564738284836[/C][C]-1.26473828483611[/C][/ROW]
[ROW][C]11[/C][C]103.9[/C][C]106.067247371927[/C][C]-2.16724737192705[/C][/ROW]
[ROW][C]12[/C][C]101.6[/C][C]98.5487672794806[/C][C]3.05123272051942[/C][/ROW]
[ROW][C]13[/C][C]94.6[/C][C]98.7367140946169[/C][C]-4.13671409461686[/C][/ROW]
[ROW][C]14[/C][C]95.9[/C][C]99.649008411246[/C][C]-3.74900841124607[/C][/ROW]
[ROW][C]15[/C][C]104.7[/C][C]109.367898630806[/C][C]-4.66789863080648[/C][/ROW]
[ROW][C]16[/C][C]102.8[/C][C]102.060921511359[/C][C]0.739078488640739[/C][/ROW]
[ROW][C]17[/C][C]98.1[/C][C]99.7518165213371[/C][C]-1.65181652133713[/C][/ROW]
[ROW][C]18[/C][C]113.9[/C][C]109.865920271732[/C][C]4.0340797282684[/C][/ROW]
[ROW][C]19[/C][C]80.9[/C][C]83.3683665791162[/C][C]-2.46836657911617[/C][/ROW]
[ROW][C]20[/C][C]95.7[/C][C]95.615131407357[/C][C]0.0848685926430376[/C][/ROW]
[ROW][C]21[/C][C]113.2[/C][C]111.289524683963[/C][C]1.9104753160368[/C][/ROW]
[ROW][C]22[/C][C]105.9[/C][C]111.870012046082[/C][C]-5.97001204608245[/C][/ROW]
[ROW][C]23[/C][C]108.8[/C][C]106.232931260287[/C][C]2.56706873971267[/C][/ROW]
[ROW][C]24[/C][C]102.3[/C][C]99.666200301155[/C][C]2.63379969884497[/C][/ROW]
[ROW][C]25[/C][C]99[/C][C]99.7906971740704[/C][C]-0.790697174070369[/C][/ROW]
[ROW][C]26[/C][C]100.7[/C][C]100.956791259583[/C][C]-0.256791259583379[/C][/ROW]
[ROW][C]27[/C][C]115.5[/C][C]110.371121756483[/C][C]5.12887824351677[/C][/ROW]
[ROW][C]28[/C][C]100.7[/C][C]105.119922764995[/C][C]-4.41992276499467[/C][/ROW]
[ROW][C]29[/C][C]109.9[/C][C]106.021384851352[/C][C]3.87861514864760[/C][/ROW]
[ROW][C]30[/C][C]114.6[/C][C]115.132979514656[/C][C]-0.532979514655955[/C][/ROW]
[ROW][C]31[/C][C]85.4[/C][C]89.7140748397966[/C][C]-4.3140748397966[/C][/ROW]
[ROW][C]32[/C][C]100.5[/C][C]101.224820338274[/C][C]-0.724820338274414[/C][/ROW]
[ROW][C]33[/C][C]114.8[/C][C]116.252024204227[/C][C]-1.45202420422701[/C][/ROW]
[ROW][C]34[/C][C]116.5[/C][C]117.428941023223[/C][C]-0.928941023223155[/C][/ROW]
[ROW][C]35[/C][C]112.9[/C][C]111.411160584102[/C][C]1.48883941589766[/C][/ROW]
[ROW][C]36[/C][C]102[/C][C]104.539869902310[/C][C]-2.5398699023095[/C][/ROW]
[ROW][C]37[/C][C]106[/C][C]103.458817873027[/C][C]2.54118212697313[/C][/ROW]
[ROW][C]38[/C][C]105.3[/C][C]104.510702062542[/C][C]0.789297937457823[/C][/ROW]
[ROW][C]39[/C][C]118.8[/C][C]114.902161669645[/C][C]3.89783833035539[/C][/ROW]
[ROW][C]40[/C][C]106.1[/C][C]109.689032643489[/C][C]-3.58903264348861[/C][/ROW]
[ROW][C]41[/C][C]109.3[/C][C]108.395126729002[/C][C]0.904873270998387[/C][/ROW]
[ROW][C]42[/C][C]117.2[/C][C]117.646311265191[/C][C]-0.446311265191223[/C][/ROW]
[ROW][C]43[/C][C]92.5[/C][C]91.364487376127[/C][C]1.13551262387299[/C][/ROW]
[ROW][C]44[/C][C]104.2[/C][C]101.593544041742[/C][C]2.60645595825829[/C][/ROW]
[ROW][C]45[/C][C]112.5[/C][C]116.912617641911[/C][C]-4.41261764191065[/C][/ROW]
[ROW][C]46[/C][C]122.4[/C][C]118.140294414684[/C][C]4.25970558531645[/C][/ROW]
[ROW][C]47[/C][C]113.3[/C][C]111.373804657356[/C][C]1.92619534264442[/C][/ROW]
[ROW][C]48[/C][C]100[/C][C]103.055855292925[/C][C]-3.05585529292517[/C][/ROW]
[ROW][C]49[/C][C]110.7[/C][C]105.69296987779[/C][C]5.00703012221002[/C][/ROW]
[ROW][C]50[/C][C]112.8[/C][C]107.569703316178[/C][C]5.23029668382241[/C][/ROW]
[ROW][C]51[/C][C]109.8[/C][C]118.291102622829[/C][C]-8.49110262282894[/C][/ROW]
[ROW][C]52[/C][C]117.3[/C][C]111.631314914035[/C][C]5.66868508596463[/C][/ROW]
[ROW][C]53[/C][C]109.1[/C][C]110.286649045772[/C][C]-1.18664904577162[/C][/ROW]
[ROW][C]54[/C][C]115.9[/C][C]120.514962692164[/C][C]-4.61496269216380[/C][/ROW]
[ROW][C]55[/C][C]96[/C][C]94.0935489302135[/C][C]1.90645106978650[/C][/ROW]
[ROW][C]56[/C][C]99.8[/C][C]103.370856462514[/C][C]-3.57085646251401[/C][/ROW]
[ROW][C]57[/C][C]116.8[/C][C]116.266142269843[/C][C]0.533857730157193[/C][/ROW]
[ROW][C]58[/C][C]115.7[/C][C]111.796014231175[/C][C]3.90398576882526[/C][/ROW]
[ROW][C]59[/C][C]99.4[/C][C]103.214856126328[/C][C]-3.8148561263277[/C][/ROW]
[ROW][C]60[/C][C]94.3[/C][C]94.3893072241297[/C][C]-0.0893072241297221[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67481&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67481&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
195.197.720800980496-2.62080098049592
29799.0137949504508-2.01379495045078
3112.7108.5677153202374.13228467976325
4102.9101.2988081661221.60119183387791
597.499.3450228525372-1.94502285253724
6111.4109.8398262562571.56017374374258
787.483.65952227474673.74047772525329
896.895.1956477501131.60435224988709
9114.1110.6796912000563.42030879994366
10110.3111.564738284836-1.26473828483611
11103.9106.067247371927-2.16724737192705
12101.698.54876727948063.05123272051942
1394.698.7367140946169-4.13671409461686
1495.999.649008411246-3.74900841124607
15104.7109.367898630806-4.66789863080648
16102.8102.0609215113590.739078488640739
1798.199.7518165213371-1.65181652133713
18113.9109.8659202717324.0340797282684
1980.983.3683665791162-2.46836657911617
2095.795.6151314073570.0848685926430376
21113.2111.2895246839631.9104753160368
22105.9111.870012046082-5.97001204608245
23108.8106.2329312602872.56706873971267
24102.399.6662003011552.63379969884497
259999.7906971740704-0.790697174070369
26100.7100.956791259583-0.256791259583379
27115.5110.3711217564835.12887824351677
28100.7105.119922764995-4.41992276499467
29109.9106.0213848513523.87861514864760
30114.6115.132979514656-0.532979514655955
3185.489.7140748397966-4.3140748397966
32100.5101.224820338274-0.724820338274414
33114.8116.252024204227-1.45202420422701
34116.5117.428941023223-0.928941023223155
35112.9111.4111605841021.48883941589766
36102104.539869902310-2.5398699023095
37106103.4588178730272.54118212697313
38105.3104.5107020625420.789297937457823
39118.8114.9021616696453.89783833035539
40106.1109.689032643489-3.58903264348861
41109.3108.3951267290020.904873270998387
42117.2117.646311265191-0.446311265191223
4392.591.3644873761271.13551262387299
44104.2101.5935440417422.60645595825829
45112.5116.912617641911-4.41261764191065
46122.4118.1402944146844.25970558531645
47113.3111.3738046573561.92619534264442
48100103.055855292925-3.05585529292517
49110.7105.692969877795.00703012221002
50112.8107.5697033161785.23029668382241
51109.8118.291102622829-8.49110262282894
52117.3111.6313149140355.66868508596463
53109.1110.286649045772-1.18664904577162
54115.9120.514962692164-4.61496269216380
559694.09354893021351.90645106978650
5699.8103.370856462514-3.57085646251401
57116.8116.2661422698430.533857730157193
58115.7111.7960142311753.90398576882526
5999.4103.214856126328-3.8148561263277
6094.394.3893072241297-0.0893072241297221







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.3148211353642900.6296422707285810.68517886463571
180.1845622391260810.3691244782521630.815437760873919
190.2881536966159910.5763073932319820.711846303384009
200.1773577842776290.3547155685552570.822642215722371
210.1089616713942190.2179233427884380.891038328605781
220.09882424820042310.1976484964008460.901175751799577
230.1535640949859550.3071281899719100.846435905014045
240.1155462268197540.2310924536395080.884453773180246
250.1229211984543680.2458423969087370.877078801545632
260.09684894959206770.1936978991841350.903151050407932
270.1461563518215270.2923127036430540.853843648178473
280.2356754461871060.4713508923742120.764324553812894
290.2383962705011400.4767925410022790.76160372949886
300.2324013051688580.4648026103377160.767598694831142
310.2659775567167440.5319551134334890.734022443283256
320.1898852545485210.3797705090970420.810114745451479
330.1411347276573230.2822694553146460.858865272342677
340.1459973324524850.291994664904970.854002667547515
350.103378807688390.206757615376780.89662119231161
360.08209529659380370.1641905931876070.917904703406196
370.08313268335318060.1662653667063610.91686731664682
380.0783124062759770.1566248125519540.921687593724023
390.2091873557687690.4183747115375380.790812644231231
400.4772179720970410.9544359441940810.522782027902959
410.3462194868435020.6924389736870030.653780513156498
420.2619028640885800.5238057281771590.73809713591142
430.1638991962057490.3277983924114990.83610080379425

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.314821135364290 & 0.629642270728581 & 0.68517886463571 \tabularnewline
18 & 0.184562239126081 & 0.369124478252163 & 0.815437760873919 \tabularnewline
19 & 0.288153696615991 & 0.576307393231982 & 0.711846303384009 \tabularnewline
20 & 0.177357784277629 & 0.354715568555257 & 0.822642215722371 \tabularnewline
21 & 0.108961671394219 & 0.217923342788438 & 0.891038328605781 \tabularnewline
22 & 0.0988242482004231 & 0.197648496400846 & 0.901175751799577 \tabularnewline
23 & 0.153564094985955 & 0.307128189971910 & 0.846435905014045 \tabularnewline
24 & 0.115546226819754 & 0.231092453639508 & 0.884453773180246 \tabularnewline
25 & 0.122921198454368 & 0.245842396908737 & 0.877078801545632 \tabularnewline
26 & 0.0968489495920677 & 0.193697899184135 & 0.903151050407932 \tabularnewline
27 & 0.146156351821527 & 0.292312703643054 & 0.853843648178473 \tabularnewline
28 & 0.235675446187106 & 0.471350892374212 & 0.764324553812894 \tabularnewline
29 & 0.238396270501140 & 0.476792541002279 & 0.76160372949886 \tabularnewline
30 & 0.232401305168858 & 0.464802610337716 & 0.767598694831142 \tabularnewline
31 & 0.265977556716744 & 0.531955113433489 & 0.734022443283256 \tabularnewline
32 & 0.189885254548521 & 0.379770509097042 & 0.810114745451479 \tabularnewline
33 & 0.141134727657323 & 0.282269455314646 & 0.858865272342677 \tabularnewline
34 & 0.145997332452485 & 0.29199466490497 & 0.854002667547515 \tabularnewline
35 & 0.10337880768839 & 0.20675761537678 & 0.89662119231161 \tabularnewline
36 & 0.0820952965938037 & 0.164190593187607 & 0.917904703406196 \tabularnewline
37 & 0.0831326833531806 & 0.166265366706361 & 0.91686731664682 \tabularnewline
38 & 0.078312406275977 & 0.156624812551954 & 0.921687593724023 \tabularnewline
39 & 0.209187355768769 & 0.418374711537538 & 0.790812644231231 \tabularnewline
40 & 0.477217972097041 & 0.954435944194081 & 0.522782027902959 \tabularnewline
41 & 0.346219486843502 & 0.692438973687003 & 0.653780513156498 \tabularnewline
42 & 0.261902864088580 & 0.523805728177159 & 0.73809713591142 \tabularnewline
43 & 0.163899196205749 & 0.327798392411499 & 0.83610080379425 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67481&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]17[/C][C]0.314821135364290[/C][C]0.629642270728581[/C][C]0.68517886463571[/C][/ROW]
[ROW][C]18[/C][C]0.184562239126081[/C][C]0.369124478252163[/C][C]0.815437760873919[/C][/ROW]
[ROW][C]19[/C][C]0.288153696615991[/C][C]0.576307393231982[/C][C]0.711846303384009[/C][/ROW]
[ROW][C]20[/C][C]0.177357784277629[/C][C]0.354715568555257[/C][C]0.822642215722371[/C][/ROW]
[ROW][C]21[/C][C]0.108961671394219[/C][C]0.217923342788438[/C][C]0.891038328605781[/C][/ROW]
[ROW][C]22[/C][C]0.0988242482004231[/C][C]0.197648496400846[/C][C]0.901175751799577[/C][/ROW]
[ROW][C]23[/C][C]0.153564094985955[/C][C]0.307128189971910[/C][C]0.846435905014045[/C][/ROW]
[ROW][C]24[/C][C]0.115546226819754[/C][C]0.231092453639508[/C][C]0.884453773180246[/C][/ROW]
[ROW][C]25[/C][C]0.122921198454368[/C][C]0.245842396908737[/C][C]0.877078801545632[/C][/ROW]
[ROW][C]26[/C][C]0.0968489495920677[/C][C]0.193697899184135[/C][C]0.903151050407932[/C][/ROW]
[ROW][C]27[/C][C]0.146156351821527[/C][C]0.292312703643054[/C][C]0.853843648178473[/C][/ROW]
[ROW][C]28[/C][C]0.235675446187106[/C][C]0.471350892374212[/C][C]0.764324553812894[/C][/ROW]
[ROW][C]29[/C][C]0.238396270501140[/C][C]0.476792541002279[/C][C]0.76160372949886[/C][/ROW]
[ROW][C]30[/C][C]0.232401305168858[/C][C]0.464802610337716[/C][C]0.767598694831142[/C][/ROW]
[ROW][C]31[/C][C]0.265977556716744[/C][C]0.531955113433489[/C][C]0.734022443283256[/C][/ROW]
[ROW][C]32[/C][C]0.189885254548521[/C][C]0.379770509097042[/C][C]0.810114745451479[/C][/ROW]
[ROW][C]33[/C][C]0.141134727657323[/C][C]0.282269455314646[/C][C]0.858865272342677[/C][/ROW]
[ROW][C]34[/C][C]0.145997332452485[/C][C]0.29199466490497[/C][C]0.854002667547515[/C][/ROW]
[ROW][C]35[/C][C]0.10337880768839[/C][C]0.20675761537678[/C][C]0.89662119231161[/C][/ROW]
[ROW][C]36[/C][C]0.0820952965938037[/C][C]0.164190593187607[/C][C]0.917904703406196[/C][/ROW]
[ROW][C]37[/C][C]0.0831326833531806[/C][C]0.166265366706361[/C][C]0.91686731664682[/C][/ROW]
[ROW][C]38[/C][C]0.078312406275977[/C][C]0.156624812551954[/C][C]0.921687593724023[/C][/ROW]
[ROW][C]39[/C][C]0.209187355768769[/C][C]0.418374711537538[/C][C]0.790812644231231[/C][/ROW]
[ROW][C]40[/C][C]0.477217972097041[/C][C]0.954435944194081[/C][C]0.522782027902959[/C][/ROW]
[ROW][C]41[/C][C]0.346219486843502[/C][C]0.692438973687003[/C][C]0.653780513156498[/C][/ROW]
[ROW][C]42[/C][C]0.261902864088580[/C][C]0.523805728177159[/C][C]0.73809713591142[/C][/ROW]
[ROW][C]43[/C][C]0.163899196205749[/C][C]0.327798392411499[/C][C]0.83610080379425[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67481&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67481&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
170.3148211353642900.6296422707285810.68517886463571
180.1845622391260810.3691244782521630.815437760873919
190.2881536966159910.5763073932319820.711846303384009
200.1773577842776290.3547155685552570.822642215722371
210.1089616713942190.2179233427884380.891038328605781
220.09882424820042310.1976484964008460.901175751799577
230.1535640949859550.3071281899719100.846435905014045
240.1155462268197540.2310924536395080.884453773180246
250.1229211984543680.2458423969087370.877078801545632
260.09684894959206770.1936978991841350.903151050407932
270.1461563518215270.2923127036430540.853843648178473
280.2356754461871060.4713508923742120.764324553812894
290.2383962705011400.4767925410022790.76160372949886
300.2324013051688580.4648026103377160.767598694831142
310.2659775567167440.5319551134334890.734022443283256
320.1898852545485210.3797705090970420.810114745451479
330.1411347276573230.2822694553146460.858865272342677
340.1459973324524850.291994664904970.854002667547515
350.103378807688390.206757615376780.89662119231161
360.08209529659380370.1641905931876070.917904703406196
370.08313268335318060.1662653667063610.91686731664682
380.0783124062759770.1566248125519540.921687593724023
390.2091873557687690.4183747115375380.790812644231231
400.4772179720970410.9544359441940810.522782027902959
410.3462194868435020.6924389736870030.653780513156498
420.2619028640885800.5238057281771590.73809713591142
430.1638991962057490.3277983924114990.83610080379425







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK

\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 & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 0 & 0 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67481&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]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67481&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67481&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 level00OK
5% type I error level00OK
10% type I error level00OK



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')
}