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 computationWed, 18 Nov 2009 07:34:12 -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/18/t12585550077ppisrtv9wbcysg.htm/, Retrieved Sat, 04 May 2024 14:25:28 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57457, Retrieved Sat, 04 May 2024 14:25:28 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact239
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [SHW WS7 - Fixed S...] [2009-11-18 14:34:12] [b7e46d23597387652ca7420fdeb9acca] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.6	1.59
8.5	1.26
8.3	1.13
7.8	1.92
7.8	2.61
8	2.26
8.6	2.41
8.9	2.26
8.9	2.03
8.6	2.86
8.3	2.55
8.3	2.27
8.3	2.26
8.4	2.57
8.5	3.07
8.4	2.76
8.6	2.51
8.5	2.87
8.5	3.14
8.5	3.11
8.5	3.16
8.5	2.47
8.5	2.57
8.5	2.89
8.5	2.63
8.5	2.38
8.5	1.69
8.5	1.96
8.6	2.19
8.4	1.87
8.1	1.6
8	1.63
8	1.22
8	1.21
8	1.49
7.9	1.64
7.8	1.66
7.8	1.77
7.9	1.82
8.1	1.78
8	1.28
7.6	1.29
7.3	1.37
7	1.12
6.8	1.51
7	2.24
7.1	2.94
7.2	3.09
7.1	3.46
6.9	3.64
6.7	4.39
6.7	4.15
6.6	5.21
6.9	5.8
7.3	5.91
7.5	5.39
7.3	5.46
7.1	4.72
6.9	3.14
7.1	2.63




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=57457&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=57457&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57457&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] = + 8.39940223094786 -0.23937788775873X[t] + 0.215954468652391M1[t] + 0.176911980203429M2[t] + 0.159892257428267M3[t] + 0.102393778877587M4[t] + 0.181280739266235M5[t] + 0.155164656756241M6[t] + 0.251442353123835M7[t] + 0.227396821776229M8[t] + 0.141172996694502M9[t] + 0.0869180660007111M10[t] -0.031861151816203M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  8.39940223094786 -0.23937788775873X[t] +  0.215954468652391M1[t] +  0.176911980203429M2[t] +  0.159892257428267M3[t] +  0.102393778877587M4[t] +  0.181280739266235M5[t] +  0.155164656756241M6[t] +  0.251442353123835M7[t] +  0.227396821776229M8[t] +  0.141172996694502M9[t] +  0.0869180660007111M10[t] -0.031861151816203M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57457&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  8.39940223094786 -0.23937788775873X[t] +  0.215954468652391M1[t] +  0.176911980203429M2[t] +  0.159892257428267M3[t] +  0.102393778877587M4[t] +  0.181280739266235M5[t] +  0.155164656756241M6[t] +  0.251442353123835M7[t] +  0.227396821776229M8[t] +  0.141172996694502M9[t] +  0.0869180660007111M10[t] -0.031861151816203M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57457&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57457&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] = + 8.39940223094786 -0.23937788775873X[t] + 0.215954468652391M1[t] + 0.176911980203429M2[t] + 0.159892257428267M3[t] + 0.102393778877587M4[t] + 0.181280739266235M5[t] + 0.155164656756241M6[t] + 0.251442353123835M7[t] + 0.227396821776229M8[t] + 0.141172996694502M9[t] + 0.0869180660007111M10[t] -0.031861151816203M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.399402230947860.34424324.399600
X-0.239377887758730.071835-3.33230.0016850.000842
M10.2159544686523910.4152970.520.6055040.302752
M20.1769119802034290.4152880.4260.6720530.336027
M30.1598922574282670.415130.38520.7018550.350928
M40.1023937788775870.4150870.24670.806230.403115
M50.1812807392662350.4154930.43630.6646150.332308
M60.1551646567562410.4156990.37330.7106310.355316
M70.2514423531238350.4159920.60440.5484580.274229
M80.2273968217762290.415330.54750.586620.29331
M90.1411729966945020.415270.340.7354050.367703
M100.08691806600071110.4153250.20930.8351360.417568
M11-0.0318611518162030.415093-0.07680.9391430.469572

\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) & 8.39940223094786 & 0.344243 & 24.3996 & 0 & 0 \tabularnewline
X & -0.23937788775873 & 0.071835 & -3.3323 & 0.001685 & 0.000842 \tabularnewline
M1 & 0.215954468652391 & 0.415297 & 0.52 & 0.605504 & 0.302752 \tabularnewline
M2 & 0.176911980203429 & 0.415288 & 0.426 & 0.672053 & 0.336027 \tabularnewline
M3 & 0.159892257428267 & 0.41513 & 0.3852 & 0.701855 & 0.350928 \tabularnewline
M4 & 0.102393778877587 & 0.415087 & 0.2467 & 0.80623 & 0.403115 \tabularnewline
M5 & 0.181280739266235 & 0.415493 & 0.4363 & 0.664615 & 0.332308 \tabularnewline
M6 & 0.155164656756241 & 0.415699 & 0.3733 & 0.710631 & 0.355316 \tabularnewline
M7 & 0.251442353123835 & 0.415992 & 0.6044 & 0.548458 & 0.274229 \tabularnewline
M8 & 0.227396821776229 & 0.41533 & 0.5475 & 0.58662 & 0.29331 \tabularnewline
M9 & 0.141172996694502 & 0.41527 & 0.34 & 0.735405 & 0.367703 \tabularnewline
M10 & 0.0869180660007111 & 0.415325 & 0.2093 & 0.835136 & 0.417568 \tabularnewline
M11 & -0.031861151816203 & 0.415093 & -0.0768 & 0.939143 & 0.469572 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57457&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]8.39940223094786[/C][C]0.344243[/C][C]24.3996[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.23937788775873[/C][C]0.071835[/C][C]-3.3323[/C][C]0.001685[/C][C]0.000842[/C][/ROW]
[ROW][C]M1[/C][C]0.215954468652391[/C][C]0.415297[/C][C]0.52[/C][C]0.605504[/C][C]0.302752[/C][/ROW]
[ROW][C]M2[/C][C]0.176911980203429[/C][C]0.415288[/C][C]0.426[/C][C]0.672053[/C][C]0.336027[/C][/ROW]
[ROW][C]M3[/C][C]0.159892257428267[/C][C]0.41513[/C][C]0.3852[/C][C]0.701855[/C][C]0.350928[/C][/ROW]
[ROW][C]M4[/C][C]0.102393778877587[/C][C]0.415087[/C][C]0.2467[/C][C]0.80623[/C][C]0.403115[/C][/ROW]
[ROW][C]M5[/C][C]0.181280739266235[/C][C]0.415493[/C][C]0.4363[/C][C]0.664615[/C][C]0.332308[/C][/ROW]
[ROW][C]M6[/C][C]0.155164656756241[/C][C]0.415699[/C][C]0.3733[/C][C]0.710631[/C][C]0.355316[/C][/ROW]
[ROW][C]M7[/C][C]0.251442353123835[/C][C]0.415992[/C][C]0.6044[/C][C]0.548458[/C][C]0.274229[/C][/ROW]
[ROW][C]M8[/C][C]0.227396821776229[/C][C]0.41533[/C][C]0.5475[/C][C]0.58662[/C][C]0.29331[/C][/ROW]
[ROW][C]M9[/C][C]0.141172996694502[/C][C]0.41527[/C][C]0.34[/C][C]0.735405[/C][C]0.367703[/C][/ROW]
[ROW][C]M10[/C][C]0.0869180660007111[/C][C]0.415325[/C][C]0.2093[/C][C]0.835136[/C][C]0.417568[/C][/ROW]
[ROW][C]M11[/C][C]-0.031861151816203[/C][C]0.415093[/C][C]-0.0768[/C][C]0.939143[/C][C]0.469572[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57457&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57457&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)8.399402230947860.34424324.399600
X-0.239377887758730.071835-3.33230.0016850.000842
M10.2159544686523910.4152970.520.6055040.302752
M20.1769119802034290.4152880.4260.6720530.336027
M30.1598922574282670.415130.38520.7018550.350928
M40.1023937788775870.4150870.24670.806230.403115
M50.1812807392662350.4154930.43630.6646150.332308
M60.1551646567562410.4156990.37330.7106310.355316
M70.2514423531238350.4159920.60440.5484580.274229
M80.2273968217762290.415330.54750.586620.29331
M90.1411729966945020.415270.340.7354050.367703
M100.08691806600071110.4153250.20930.8351360.417568
M11-0.0318611518162030.415093-0.07680.9391430.469572







Multiple Linear Regression - Regression Statistics
Multiple R0.452704337859653
R-squared0.204941217516946
Adjusted R-squared0.00194748581914561
F-TEST (value)1.00959382244396
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.455531488772312
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.656308937340636
Sum Squared Residuals20.2448467979601

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.452704337859653 \tabularnewline
R-squared & 0.204941217516946 \tabularnewline
Adjusted R-squared & 0.00194748581914561 \tabularnewline
F-TEST (value) & 1.00959382244396 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.455531488772312 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.656308937340636 \tabularnewline
Sum Squared Residuals & 20.2448467979601 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57457&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.452704337859653[/C][/ROW]
[ROW][C]R-squared[/C][C]0.204941217516946[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.00194748581914561[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.00959382244396[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.455531488772312[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.656308937340636[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]20.2448467979601[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57457&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57457&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.452704337859653
R-squared0.204941217516946
Adjusted R-squared0.00194748581914561
F-TEST (value)1.00959382244396
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.455531488772312
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.656308937340636
Sum Squared Residuals20.2448467979601







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.68.234745858063890.365254141936114
28.58.274698072575290.225301927424711
38.38.288797475208760.0112025247912387
47.88.04219046532869-0.242190465328686
57.87.95590668316381-0.155906683163810
688.01357286136937-0.0135728613693714
78.68.073943874573160.526056125426844
88.98.085805026389360.814194973610642
98.98.054638115492140.84536188450786
108.67.80169953795860.798300462041397
118.37.75712746534690.542872534653105
128.37.856014425735540.443985574264458
138.38.074362673265520.22563732673448
148.47.961113039611350.438886960388648
158.57.824404372956830.675595627043174
168.47.841113039611350.558886960388648
178.67.979844471939680.620155528060317
188.57.867552349836550.632447650163454
198.57.899198016509280.600801983490718
208.57.882333821794440.617666178205562
218.57.784141102324770.715858897675225
228.57.89505691418450.604943085815492
238.57.752339907591720.747660092408279
248.57.707600135325130.79239986467487
258.57.985792854794790.514207145205209
268.58.006594838285510.493405161714489
278.58.154745858063870.345254141936127
288.58.032615349818340.467384650181663
298.68.056445396022480.543554603977524
308.48.106930237595280.293069762404724
318.18.26783996365773-0.167839963657727
3288.23661309567736-0.236613095677359
3388.24853420457671-0.248534204576711
3488.19667305276051-0.196673052760508
3588.01086802637115-0.0108680263711493
367.98.00682249502354-0.106822495023542
377.88.21798940592076-0.417989405920759
387.88.15261534981834-0.352615349818337
397.98.12362673265524-0.223626732655238
408.18.07570336961490.0242966303850916
4188.27427927388292-0.274279273882920
427.68.24576941249534-0.64576941249534
437.38.32289687784223-1.02289687784223
4478.35869581843431-1.35869581843431
456.88.17911461712668-1.37911461712668
4677.95011382836902-0.950113828369016
477.17.66377008912099-0.563770089120991
487.27.65972455777338-0.459724557773384
497.17.78710920795504-0.687109207955045
506.97.70497869970951-0.80497869970951
516.77.5084255611153-0.808425561115302
526.77.50837777562672-0.808377775626717
536.67.33352417499111-0.733524174991111
546.97.16617513870347-0.266175138703466
557.37.23612126741760.0638787325824002
567.57.336552237704530.163447762295466
577.37.23357196047970.0664280395203048
587.17.35645666672737-0.256456666727366
596.97.61589451156924-0.715894511569244
607.17.7698383861424-0.6698383861424

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.6 & 8.23474585806389 & 0.365254141936114 \tabularnewline
2 & 8.5 & 8.27469807257529 & 0.225301927424711 \tabularnewline
3 & 8.3 & 8.28879747520876 & 0.0112025247912387 \tabularnewline
4 & 7.8 & 8.04219046532869 & -0.242190465328686 \tabularnewline
5 & 7.8 & 7.95590668316381 & -0.155906683163810 \tabularnewline
6 & 8 & 8.01357286136937 & -0.0135728613693714 \tabularnewline
7 & 8.6 & 8.07394387457316 & 0.526056125426844 \tabularnewline
8 & 8.9 & 8.08580502638936 & 0.814194973610642 \tabularnewline
9 & 8.9 & 8.05463811549214 & 0.84536188450786 \tabularnewline
10 & 8.6 & 7.8016995379586 & 0.798300462041397 \tabularnewline
11 & 8.3 & 7.7571274653469 & 0.542872534653105 \tabularnewline
12 & 8.3 & 7.85601442573554 & 0.443985574264458 \tabularnewline
13 & 8.3 & 8.07436267326552 & 0.22563732673448 \tabularnewline
14 & 8.4 & 7.96111303961135 & 0.438886960388648 \tabularnewline
15 & 8.5 & 7.82440437295683 & 0.675595627043174 \tabularnewline
16 & 8.4 & 7.84111303961135 & 0.558886960388648 \tabularnewline
17 & 8.6 & 7.97984447193968 & 0.620155528060317 \tabularnewline
18 & 8.5 & 7.86755234983655 & 0.632447650163454 \tabularnewline
19 & 8.5 & 7.89919801650928 & 0.600801983490718 \tabularnewline
20 & 8.5 & 7.88233382179444 & 0.617666178205562 \tabularnewline
21 & 8.5 & 7.78414110232477 & 0.715858897675225 \tabularnewline
22 & 8.5 & 7.8950569141845 & 0.604943085815492 \tabularnewline
23 & 8.5 & 7.75233990759172 & 0.747660092408279 \tabularnewline
24 & 8.5 & 7.70760013532513 & 0.79239986467487 \tabularnewline
25 & 8.5 & 7.98579285479479 & 0.514207145205209 \tabularnewline
26 & 8.5 & 8.00659483828551 & 0.493405161714489 \tabularnewline
27 & 8.5 & 8.15474585806387 & 0.345254141936127 \tabularnewline
28 & 8.5 & 8.03261534981834 & 0.467384650181663 \tabularnewline
29 & 8.6 & 8.05644539602248 & 0.543554603977524 \tabularnewline
30 & 8.4 & 8.10693023759528 & 0.293069762404724 \tabularnewline
31 & 8.1 & 8.26783996365773 & -0.167839963657727 \tabularnewline
32 & 8 & 8.23661309567736 & -0.236613095677359 \tabularnewline
33 & 8 & 8.24853420457671 & -0.248534204576711 \tabularnewline
34 & 8 & 8.19667305276051 & -0.196673052760508 \tabularnewline
35 & 8 & 8.01086802637115 & -0.0108680263711493 \tabularnewline
36 & 7.9 & 8.00682249502354 & -0.106822495023542 \tabularnewline
37 & 7.8 & 8.21798940592076 & -0.417989405920759 \tabularnewline
38 & 7.8 & 8.15261534981834 & -0.352615349818337 \tabularnewline
39 & 7.9 & 8.12362673265524 & -0.223626732655238 \tabularnewline
40 & 8.1 & 8.0757033696149 & 0.0242966303850916 \tabularnewline
41 & 8 & 8.27427927388292 & -0.274279273882920 \tabularnewline
42 & 7.6 & 8.24576941249534 & -0.64576941249534 \tabularnewline
43 & 7.3 & 8.32289687784223 & -1.02289687784223 \tabularnewline
44 & 7 & 8.35869581843431 & -1.35869581843431 \tabularnewline
45 & 6.8 & 8.17911461712668 & -1.37911461712668 \tabularnewline
46 & 7 & 7.95011382836902 & -0.950113828369016 \tabularnewline
47 & 7.1 & 7.66377008912099 & -0.563770089120991 \tabularnewline
48 & 7.2 & 7.65972455777338 & -0.459724557773384 \tabularnewline
49 & 7.1 & 7.78710920795504 & -0.687109207955045 \tabularnewline
50 & 6.9 & 7.70497869970951 & -0.80497869970951 \tabularnewline
51 & 6.7 & 7.5084255611153 & -0.808425561115302 \tabularnewline
52 & 6.7 & 7.50837777562672 & -0.808377775626717 \tabularnewline
53 & 6.6 & 7.33352417499111 & -0.733524174991111 \tabularnewline
54 & 6.9 & 7.16617513870347 & -0.266175138703466 \tabularnewline
55 & 7.3 & 7.2361212674176 & 0.0638787325824002 \tabularnewline
56 & 7.5 & 7.33655223770453 & 0.163447762295466 \tabularnewline
57 & 7.3 & 7.2335719604797 & 0.0664280395203048 \tabularnewline
58 & 7.1 & 7.35645666672737 & -0.256456666727366 \tabularnewline
59 & 6.9 & 7.61589451156924 & -0.715894511569244 \tabularnewline
60 & 7.1 & 7.7698383861424 & -0.6698383861424 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57457&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]8.6[/C][C]8.23474585806389[/C][C]0.365254141936114[/C][/ROW]
[ROW][C]2[/C][C]8.5[/C][C]8.27469807257529[/C][C]0.225301927424711[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]8.28879747520876[/C][C]0.0112025247912387[/C][/ROW]
[ROW][C]4[/C][C]7.8[/C][C]8.04219046532869[/C][C]-0.242190465328686[/C][/ROW]
[ROW][C]5[/C][C]7.8[/C][C]7.95590668316381[/C][C]-0.155906683163810[/C][/ROW]
[ROW][C]6[/C][C]8[/C][C]8.01357286136937[/C][C]-0.0135728613693714[/C][/ROW]
[ROW][C]7[/C][C]8.6[/C][C]8.07394387457316[/C][C]0.526056125426844[/C][/ROW]
[ROW][C]8[/C][C]8.9[/C][C]8.08580502638936[/C][C]0.814194973610642[/C][/ROW]
[ROW][C]9[/C][C]8.9[/C][C]8.05463811549214[/C][C]0.84536188450786[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]7.8016995379586[/C][C]0.798300462041397[/C][/ROW]
[ROW][C]11[/C][C]8.3[/C][C]7.7571274653469[/C][C]0.542872534653105[/C][/ROW]
[ROW][C]12[/C][C]8.3[/C][C]7.85601442573554[/C][C]0.443985574264458[/C][/ROW]
[ROW][C]13[/C][C]8.3[/C][C]8.07436267326552[/C][C]0.22563732673448[/C][/ROW]
[ROW][C]14[/C][C]8.4[/C][C]7.96111303961135[/C][C]0.438886960388648[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]7.82440437295683[/C][C]0.675595627043174[/C][/ROW]
[ROW][C]16[/C][C]8.4[/C][C]7.84111303961135[/C][C]0.558886960388648[/C][/ROW]
[ROW][C]17[/C][C]8.6[/C][C]7.97984447193968[/C][C]0.620155528060317[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]7.86755234983655[/C][C]0.632447650163454[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]7.89919801650928[/C][C]0.600801983490718[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]7.88233382179444[/C][C]0.617666178205562[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]7.78414110232477[/C][C]0.715858897675225[/C][/ROW]
[ROW][C]22[/C][C]8.5[/C][C]7.8950569141845[/C][C]0.604943085815492[/C][/ROW]
[ROW][C]23[/C][C]8.5[/C][C]7.75233990759172[/C][C]0.747660092408279[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]7.70760013532513[/C][C]0.79239986467487[/C][/ROW]
[ROW][C]25[/C][C]8.5[/C][C]7.98579285479479[/C][C]0.514207145205209[/C][/ROW]
[ROW][C]26[/C][C]8.5[/C][C]8.00659483828551[/C][C]0.493405161714489[/C][/ROW]
[ROW][C]27[/C][C]8.5[/C][C]8.15474585806387[/C][C]0.345254141936127[/C][/ROW]
[ROW][C]28[/C][C]8.5[/C][C]8.03261534981834[/C][C]0.467384650181663[/C][/ROW]
[ROW][C]29[/C][C]8.6[/C][C]8.05644539602248[/C][C]0.543554603977524[/C][/ROW]
[ROW][C]30[/C][C]8.4[/C][C]8.10693023759528[/C][C]0.293069762404724[/C][/ROW]
[ROW][C]31[/C][C]8.1[/C][C]8.26783996365773[/C][C]-0.167839963657727[/C][/ROW]
[ROW][C]32[/C][C]8[/C][C]8.23661309567736[/C][C]-0.236613095677359[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]8.24853420457671[/C][C]-0.248534204576711[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]8.19667305276051[/C][C]-0.196673052760508[/C][/ROW]
[ROW][C]35[/C][C]8[/C][C]8.01086802637115[/C][C]-0.0108680263711493[/C][/ROW]
[ROW][C]36[/C][C]7.9[/C][C]8.00682249502354[/C][C]-0.106822495023542[/C][/ROW]
[ROW][C]37[/C][C]7.8[/C][C]8.21798940592076[/C][C]-0.417989405920759[/C][/ROW]
[ROW][C]38[/C][C]7.8[/C][C]8.15261534981834[/C][C]-0.352615349818337[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]8.12362673265524[/C][C]-0.223626732655238[/C][/ROW]
[ROW][C]40[/C][C]8.1[/C][C]8.0757033696149[/C][C]0.0242966303850916[/C][/ROW]
[ROW][C]41[/C][C]8[/C][C]8.27427927388292[/C][C]-0.274279273882920[/C][/ROW]
[ROW][C]42[/C][C]7.6[/C][C]8.24576941249534[/C][C]-0.64576941249534[/C][/ROW]
[ROW][C]43[/C][C]7.3[/C][C]8.32289687784223[/C][C]-1.02289687784223[/C][/ROW]
[ROW][C]44[/C][C]7[/C][C]8.35869581843431[/C][C]-1.35869581843431[/C][/ROW]
[ROW][C]45[/C][C]6.8[/C][C]8.17911461712668[/C][C]-1.37911461712668[/C][/ROW]
[ROW][C]46[/C][C]7[/C][C]7.95011382836902[/C][C]-0.950113828369016[/C][/ROW]
[ROW][C]47[/C][C]7.1[/C][C]7.66377008912099[/C][C]-0.563770089120991[/C][/ROW]
[ROW][C]48[/C][C]7.2[/C][C]7.65972455777338[/C][C]-0.459724557773384[/C][/ROW]
[ROW][C]49[/C][C]7.1[/C][C]7.78710920795504[/C][C]-0.687109207955045[/C][/ROW]
[ROW][C]50[/C][C]6.9[/C][C]7.70497869970951[/C][C]-0.80497869970951[/C][/ROW]
[ROW][C]51[/C][C]6.7[/C][C]7.5084255611153[/C][C]-0.808425561115302[/C][/ROW]
[ROW][C]52[/C][C]6.7[/C][C]7.50837777562672[/C][C]-0.808377775626717[/C][/ROW]
[ROW][C]53[/C][C]6.6[/C][C]7.33352417499111[/C][C]-0.733524174991111[/C][/ROW]
[ROW][C]54[/C][C]6.9[/C][C]7.16617513870347[/C][C]-0.266175138703466[/C][/ROW]
[ROW][C]55[/C][C]7.3[/C][C]7.2361212674176[/C][C]0.0638787325824002[/C][/ROW]
[ROW][C]56[/C][C]7.5[/C][C]7.33655223770453[/C][C]0.163447762295466[/C][/ROW]
[ROW][C]57[/C][C]7.3[/C][C]7.2335719604797[/C][C]0.0664280395203048[/C][/ROW]
[ROW][C]58[/C][C]7.1[/C][C]7.35645666672737[/C][C]-0.256456666727366[/C][/ROW]
[ROW][C]59[/C][C]6.9[/C][C]7.61589451156924[/C][C]-0.715894511569244[/C][/ROW]
[ROW][C]60[/C][C]7.1[/C][C]7.7698383861424[/C][C]-0.6698383861424[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57457&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57457&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
18.68.234745858063890.365254141936114
28.58.274698072575290.225301927424711
38.38.288797475208760.0112025247912387
47.88.04219046532869-0.242190465328686
57.87.95590668316381-0.155906683163810
688.01357286136937-0.0135728613693714
78.68.073943874573160.526056125426844
88.98.085805026389360.814194973610642
98.98.054638115492140.84536188450786
108.67.80169953795860.798300462041397
118.37.75712746534690.542872534653105
128.37.856014425735540.443985574264458
138.38.074362673265520.22563732673448
148.47.961113039611350.438886960388648
158.57.824404372956830.675595627043174
168.47.841113039611350.558886960388648
178.67.979844471939680.620155528060317
188.57.867552349836550.632447650163454
198.57.899198016509280.600801983490718
208.57.882333821794440.617666178205562
218.57.784141102324770.715858897675225
228.57.89505691418450.604943085815492
238.57.752339907591720.747660092408279
248.57.707600135325130.79239986467487
258.57.985792854794790.514207145205209
268.58.006594838285510.493405161714489
278.58.154745858063870.345254141936127
288.58.032615349818340.467384650181663
298.68.056445396022480.543554603977524
308.48.106930237595280.293069762404724
318.18.26783996365773-0.167839963657727
3288.23661309567736-0.236613095677359
3388.24853420457671-0.248534204576711
3488.19667305276051-0.196673052760508
3588.01086802637115-0.0108680263711493
367.98.00682249502354-0.106822495023542
377.88.21798940592076-0.417989405920759
387.88.15261534981834-0.352615349818337
397.98.12362673265524-0.223626732655238
408.18.07570336961490.0242966303850916
4188.27427927388292-0.274279273882920
427.68.24576941249534-0.64576941249534
437.38.32289687784223-1.02289687784223
4478.35869581843431-1.35869581843431
456.88.17911461712668-1.37911461712668
4677.95011382836902-0.950113828369016
477.17.66377008912099-0.563770089120991
487.27.65972455777338-0.459724557773384
497.17.78710920795504-0.687109207955045
506.97.70497869970951-0.80497869970951
516.77.5084255611153-0.808425561115302
526.77.50837777562672-0.808377775626717
536.67.33352417499111-0.733524174991111
546.97.16617513870347-0.266175138703466
557.37.23612126741760.0638787325824002
567.57.336552237704530.163447762295466
577.37.23357196047970.0664280395203048
587.17.35645666672737-0.256456666727366
596.97.61589451156924-0.715894511569244
607.17.7698383861424-0.6698383861424







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.07498803504711680.1499760700942340.925011964952883
170.1147668397966050.229533679593210.885233160203395
180.07402755369788570.1480551073957710.925972446302114
190.03821512330984220.07643024661968440.961784876690158
200.02877813832287490.05755627664574970.971221861677125
210.02301020820885020.04602041641770040.97698979179115
220.01344974774708320.02689949549416650.986550252252917
230.009307333800843560.01861466760168710.990692666199156
240.007175036013954570.01435007202790910.992824963986045
250.004723340171038990.009446680342077990.995276659828961
260.003369141393524120.006738282787048240.996630858606476
270.002226647332245380.004453294664490770.997773352667755
280.002691155346500290.005382310693000580.9973088446535
290.004413792478053670.008827584956107350.995586207521946
300.003656188655294100.007312377310588210.996343811344706
310.003788982228141230.007577964456282460.99621101777186
320.00655212614336840.01310425228673680.993447873856632
330.008469603262060760.01693920652412150.99153039673794
340.007493822889422430.01498764577884490.992506177110578
350.00789711435983410.01579422871966820.992102885640166
360.00726678004856610.01453356009713220.992733219951434
370.008524043911863970.01704808782372790.991475956088136
380.01272599490132150.02545198980264290.987274005098679
390.02448346432443050.04896692864886090.97551653567557
400.08054550175270930.1610910035054190.91945449824729
410.4944020231696390.9888040463392780.505597976830361
420.9311636396255970.1376727207488070.0688363603744033
430.9815537544817230.03689249103655370.0184462455182769
440.9555430028188650.08891399436226940.0444569971811347

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0749880350471168 & 0.149976070094234 & 0.925011964952883 \tabularnewline
17 & 0.114766839796605 & 0.22953367959321 & 0.885233160203395 \tabularnewline
18 & 0.0740275536978857 & 0.148055107395771 & 0.925972446302114 \tabularnewline
19 & 0.0382151233098422 & 0.0764302466196844 & 0.961784876690158 \tabularnewline
20 & 0.0287781383228749 & 0.0575562766457497 & 0.971221861677125 \tabularnewline
21 & 0.0230102082088502 & 0.0460204164177004 & 0.97698979179115 \tabularnewline
22 & 0.0134497477470832 & 0.0268994954941665 & 0.986550252252917 \tabularnewline
23 & 0.00930733380084356 & 0.0186146676016871 & 0.990692666199156 \tabularnewline
24 & 0.00717503601395457 & 0.0143500720279091 & 0.992824963986045 \tabularnewline
25 & 0.00472334017103899 & 0.00944668034207799 & 0.995276659828961 \tabularnewline
26 & 0.00336914139352412 & 0.00673828278704824 & 0.996630858606476 \tabularnewline
27 & 0.00222664733224538 & 0.00445329466449077 & 0.997773352667755 \tabularnewline
28 & 0.00269115534650029 & 0.00538231069300058 & 0.9973088446535 \tabularnewline
29 & 0.00441379247805367 & 0.00882758495610735 & 0.995586207521946 \tabularnewline
30 & 0.00365618865529410 & 0.00731237731058821 & 0.996343811344706 \tabularnewline
31 & 0.00378898222814123 & 0.00757796445628246 & 0.99621101777186 \tabularnewline
32 & 0.0065521261433684 & 0.0131042522867368 & 0.993447873856632 \tabularnewline
33 & 0.00846960326206076 & 0.0169392065241215 & 0.99153039673794 \tabularnewline
34 & 0.00749382288942243 & 0.0149876457788449 & 0.992506177110578 \tabularnewline
35 & 0.0078971143598341 & 0.0157942287196682 & 0.992102885640166 \tabularnewline
36 & 0.0072667800485661 & 0.0145335600971322 & 0.992733219951434 \tabularnewline
37 & 0.00852404391186397 & 0.0170480878237279 & 0.991475956088136 \tabularnewline
38 & 0.0127259949013215 & 0.0254519898026429 & 0.987274005098679 \tabularnewline
39 & 0.0244834643244305 & 0.0489669286488609 & 0.97551653567557 \tabularnewline
40 & 0.0805455017527093 & 0.161091003505419 & 0.91945449824729 \tabularnewline
41 & 0.494402023169639 & 0.988804046339278 & 0.505597976830361 \tabularnewline
42 & 0.931163639625597 & 0.137672720748807 & 0.0688363603744033 \tabularnewline
43 & 0.981553754481723 & 0.0368924910365537 & 0.0184462455182769 \tabularnewline
44 & 0.955543002818865 & 0.0889139943622694 & 0.0444569971811347 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57457&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]16[/C][C]0.0749880350471168[/C][C]0.149976070094234[/C][C]0.925011964952883[/C][/ROW]
[ROW][C]17[/C][C]0.114766839796605[/C][C]0.22953367959321[/C][C]0.885233160203395[/C][/ROW]
[ROW][C]18[/C][C]0.0740275536978857[/C][C]0.148055107395771[/C][C]0.925972446302114[/C][/ROW]
[ROW][C]19[/C][C]0.0382151233098422[/C][C]0.0764302466196844[/C][C]0.961784876690158[/C][/ROW]
[ROW][C]20[/C][C]0.0287781383228749[/C][C]0.0575562766457497[/C][C]0.971221861677125[/C][/ROW]
[ROW][C]21[/C][C]0.0230102082088502[/C][C]0.0460204164177004[/C][C]0.97698979179115[/C][/ROW]
[ROW][C]22[/C][C]0.0134497477470832[/C][C]0.0268994954941665[/C][C]0.986550252252917[/C][/ROW]
[ROW][C]23[/C][C]0.00930733380084356[/C][C]0.0186146676016871[/C][C]0.990692666199156[/C][/ROW]
[ROW][C]24[/C][C]0.00717503601395457[/C][C]0.0143500720279091[/C][C]0.992824963986045[/C][/ROW]
[ROW][C]25[/C][C]0.00472334017103899[/C][C]0.00944668034207799[/C][C]0.995276659828961[/C][/ROW]
[ROW][C]26[/C][C]0.00336914139352412[/C][C]0.00673828278704824[/C][C]0.996630858606476[/C][/ROW]
[ROW][C]27[/C][C]0.00222664733224538[/C][C]0.00445329466449077[/C][C]0.997773352667755[/C][/ROW]
[ROW][C]28[/C][C]0.00269115534650029[/C][C]0.00538231069300058[/C][C]0.9973088446535[/C][/ROW]
[ROW][C]29[/C][C]0.00441379247805367[/C][C]0.00882758495610735[/C][C]0.995586207521946[/C][/ROW]
[ROW][C]30[/C][C]0.00365618865529410[/C][C]0.00731237731058821[/C][C]0.996343811344706[/C][/ROW]
[ROW][C]31[/C][C]0.00378898222814123[/C][C]0.00757796445628246[/C][C]0.99621101777186[/C][/ROW]
[ROW][C]32[/C][C]0.0065521261433684[/C][C]0.0131042522867368[/C][C]0.993447873856632[/C][/ROW]
[ROW][C]33[/C][C]0.00846960326206076[/C][C]0.0169392065241215[/C][C]0.99153039673794[/C][/ROW]
[ROW][C]34[/C][C]0.00749382288942243[/C][C]0.0149876457788449[/C][C]0.992506177110578[/C][/ROW]
[ROW][C]35[/C][C]0.0078971143598341[/C][C]0.0157942287196682[/C][C]0.992102885640166[/C][/ROW]
[ROW][C]36[/C][C]0.0072667800485661[/C][C]0.0145335600971322[/C][C]0.992733219951434[/C][/ROW]
[ROW][C]37[/C][C]0.00852404391186397[/C][C]0.0170480878237279[/C][C]0.991475956088136[/C][/ROW]
[ROW][C]38[/C][C]0.0127259949013215[/C][C]0.0254519898026429[/C][C]0.987274005098679[/C][/ROW]
[ROW][C]39[/C][C]0.0244834643244305[/C][C]0.0489669286488609[/C][C]0.97551653567557[/C][/ROW]
[ROW][C]40[/C][C]0.0805455017527093[/C][C]0.161091003505419[/C][C]0.91945449824729[/C][/ROW]
[ROW][C]41[/C][C]0.494402023169639[/C][C]0.988804046339278[/C][C]0.505597976830361[/C][/ROW]
[ROW][C]42[/C][C]0.931163639625597[/C][C]0.137672720748807[/C][C]0.0688363603744033[/C][/ROW]
[ROW][C]43[/C][C]0.981553754481723[/C][C]0.0368924910365537[/C][C]0.0184462455182769[/C][/ROW]
[ROW][C]44[/C][C]0.955543002818865[/C][C]0.0889139943622694[/C][C]0.0444569971811347[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57457&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57457&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
160.07498803504711680.1499760700942340.925011964952883
170.1147668397966050.229533679593210.885233160203395
180.07402755369788570.1480551073957710.925972446302114
190.03821512330984220.07643024661968440.961784876690158
200.02877813832287490.05755627664574970.971221861677125
210.02301020820885020.04602041641770040.97698979179115
220.01344974774708320.02689949549416650.986550252252917
230.009307333800843560.01861466760168710.990692666199156
240.007175036013954570.01435007202790910.992824963986045
250.004723340171038990.009446680342077990.995276659828961
260.003369141393524120.006738282787048240.996630858606476
270.002226647332245380.004453294664490770.997773352667755
280.002691155346500290.005382310693000580.9973088446535
290.004413792478053670.008827584956107350.995586207521946
300.003656188655294100.007312377310588210.996343811344706
310.003788982228141230.007577964456282460.99621101777186
320.00655212614336840.01310425228673680.993447873856632
330.008469603262060760.01693920652412150.99153039673794
340.007493822889422430.01498764577884490.992506177110578
350.00789711435983410.01579422871966820.992102885640166
360.00726678004856610.01453356009713220.992733219951434
370.008524043911863970.01704808782372790.991475956088136
380.01272599490132150.02545198980264290.987274005098679
390.02448346432443050.04896692864886090.97551653567557
400.08054550175270930.1610910035054190.91945449824729
410.4944020231696390.9888040463392780.505597976830361
420.9311636396255970.1376727207488070.0688363603744033
430.9815537544817230.03689249103655370.0184462455182769
440.9555430028188650.08891399436226940.0444569971811347







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level70.241379310344828NOK
5% type I error level200.689655172413793NOK
10% type I error level230.793103448275862NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57457&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 level70.241379310344828NOK
5% type I error level200.689655172413793NOK
10% type I error level230.793103448275862NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}