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, 24 Nov 2008 14:23:20 -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/2008/Nov/24/t1227561854lq2i4c2cx21qwh8.htm/, Retrieved Tue, 14 May 2024 01:49:41 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25546, Retrieved Tue, 14 May 2024 01:49:41 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact162
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Multiple Regression] [Q1 Seatbelt, no t...] [2008-11-24 10:11:24] [deb3c14ac9e4607a6d84fc9d0e0e6cc2]
-    D  [Multiple Regression] [Q3 Reeks 1, no tr...] [2008-11-24 21:13:49] [deb3c14ac9e4607a6d84fc9d0e0e6cc2]
-   P     [Multiple Regression] [Q3 Reeks 1, trend...] [2008-11-24 21:18:00] [deb3c14ac9e4607a6d84fc9d0e0e6cc2]
-   P       [Multiple Regression] [Q3 Reeks 1, no tr...] [2008-11-24 21:20:12] [deb3c14ac9e4607a6d84fc9d0e0e6cc2]
F   P           [Multiple Regression] [Q3 Reeks 1, trend...] [2008-11-24 21:23:20] [5e9e099b83e50415d7642e10d74756e4] [Current]
Feedback Forum
2008-11-30 12:40:43 [Evelien Blockx] [reply
Er zijn 4 berekeningen gemaakt waarvan je een aantal zaken zou kunnen analyseren (zie feedback Q1)

Uiteindelijk zou je kunnen concluderen dat na toevoeging van seizoenale dummies en een lineaire trend, er een aantal zaken toch wel opmerkelijk beter worden. De normaalverdeling wordt beter, R-squared wordt beter, de kans op vergissen wordt kleiner…

In je conclusie stel je dat er 66679 meer werklozen in België door de aanslagen in Madrid en dat dus de aanslagen in Madrid wel degelijk invloed hebben op het aantal niet werkende werkzoekenden in België. Ik ken de maanden van de tijdreeks niet precies, maar volgens mij is er eerder een andere reden voor die plotse hoge cijfers van de niet-werkende werkzoekenden in België.

Verder zou je de assumpties nog kunnen testen op de grafieken van de residu’s (zelfde werkwijze als uitgelegd in feedback van Q2)

Post a new message
Dataseries X:
577992	0
565464	0
547344	0
554788	0
562325	0
560854	0
555332	1
543599	1
536662	1
542722	1
593530	1
610763	1
612613	1
611324	1
594167	1
595454	1
590865	1
589379	1
584428	1
573100	1
567456	1
569028	1
620735	1
628884	1
628232	1
612117	1
595404	1
597141	1
593408	1
590072	1
579799	1
574205	1
572775	1
572942	1
619567	1
625809	1
619916	1
587625	1
565742	1
557274	1
560576	1
548854	1
531673	1
525919	1
511038	1
498662	1
555362	1
564591	1
541657	1
527070	1
509846	1
514258	1
516922	1
507561	1
492622	1
490243	1
469357	1
477580	1
528379	1
533590	1
517945	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 5 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25546&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]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25546&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25546&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 time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 592485.965217391 + 66679.4826086956Aanslag[t] -7782.49287439609M1[t] -17126.516763285M2[t] -33500.4154347826M3[t] -30372.5141062802M4[t] -27490.8127777778M5[t] -31120.5114492753M6[t] -53184.1066425121M7[t] -58696.2053140097M8[t] -66806.3039855072M9[t] -64231.6026570048M10[t] -11058.3013285024M11[t] -1845.50132850242t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Werkloosheid[t] =  +  592485.965217391 +  66679.4826086956Aanslag[t] -7782.49287439609M1[t] -17126.516763285M2[t] -33500.4154347826M3[t] -30372.5141062802M4[t] -27490.8127777778M5[t] -31120.5114492753M6[t] -53184.1066425121M7[t] -58696.2053140097M8[t] -66806.3039855072M9[t] -64231.6026570048M10[t] -11058.3013285024M11[t] -1845.50132850242t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25546&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Werkloosheid[t] =  +  592485.965217391 +  66679.4826086956Aanslag[t] -7782.49287439609M1[t] -17126.516763285M2[t] -33500.4154347826M3[t] -30372.5141062802M4[t] -27490.8127777778M5[t] -31120.5114492753M6[t] -53184.1066425121M7[t] -58696.2053140097M8[t] -66806.3039855072M9[t] -64231.6026570048M10[t] -11058.3013285024M11[t] -1845.50132850242t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25546&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25546&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
Werkloosheid[t] = + 592485.965217391 + 66679.4826086956Aanslag[t] -7782.49287439609M1[t] -17126.516763285M2[t] -33500.4154347826M3[t] -30372.5141062802M4[t] -27490.8127777778M5[t] -31120.5114492753M6[t] -53184.1066425121M7[t] -58696.2053140097M8[t] -66806.3039855072M9[t] -64231.6026570048M10[t] -11058.3013285024M11[t] -1845.50132850242t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)592485.96521739114835.36814639.937400
Aanslag66679.482608695612217.2791125.45782e-061e-06
M1-7782.4928743960914161.604543-0.54950.5852310.292615
M2-17126.51676328514846.798608-1.15350.2545180.127259
M3-33500.415434782614838.080482-2.25770.0286480.014324
M4-30372.514106280214832.006718-2.04780.0461940.023097
M5-27490.812777777814828.580566-1.85390.0700340.035017
M6-31120.511449275314827.803862-2.09880.0412340.020617
M7-53184.106642512114710.12455-3.61550.0007290.000364
M8-58696.205314009714698.099226-3.99350.0002270.000114
M9-66806.303985507214688.73939-4.54813.8e-051.9e-05
M10-64231.602657004814682.05014-4.37486.7e-053.4e-05
M11-11058.301328502414678.035127-0.75340.4549730.227486
t-1845.50132850242198.226417-9.310100

\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) & 592485.965217391 & 14835.368146 & 39.9374 & 0 & 0 \tabularnewline
Aanslag & 66679.4826086956 & 12217.279112 & 5.4578 & 2e-06 & 1e-06 \tabularnewline
M1 & -7782.49287439609 & 14161.604543 & -0.5495 & 0.585231 & 0.292615 \tabularnewline
M2 & -17126.516763285 & 14846.798608 & -1.1535 & 0.254518 & 0.127259 \tabularnewline
M3 & -33500.4154347826 & 14838.080482 & -2.2577 & 0.028648 & 0.014324 \tabularnewline
M4 & -30372.5141062802 & 14832.006718 & -2.0478 & 0.046194 & 0.023097 \tabularnewline
M5 & -27490.8127777778 & 14828.580566 & -1.8539 & 0.070034 & 0.035017 \tabularnewline
M6 & -31120.5114492753 & 14827.803862 & -2.0988 & 0.041234 & 0.020617 \tabularnewline
M7 & -53184.1066425121 & 14710.12455 & -3.6155 & 0.000729 & 0.000364 \tabularnewline
M8 & -58696.2053140097 & 14698.099226 & -3.9935 & 0.000227 & 0.000114 \tabularnewline
M9 & -66806.3039855072 & 14688.73939 & -4.5481 & 3.8e-05 & 1.9e-05 \tabularnewline
M10 & -64231.6026570048 & 14682.05014 & -4.3748 & 6.7e-05 & 3.4e-05 \tabularnewline
M11 & -11058.3013285024 & 14678.035127 & -0.7534 & 0.454973 & 0.227486 \tabularnewline
t & -1845.50132850242 & 198.226417 & -9.3101 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25546&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]592485.965217391[/C][C]14835.368146[/C][C]39.9374[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Aanslag[/C][C]66679.4826086956[/C][C]12217.279112[/C][C]5.4578[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M1[/C][C]-7782.49287439609[/C][C]14161.604543[/C][C]-0.5495[/C][C]0.585231[/C][C]0.292615[/C][/ROW]
[ROW][C]M2[/C][C]-17126.516763285[/C][C]14846.798608[/C][C]-1.1535[/C][C]0.254518[/C][C]0.127259[/C][/ROW]
[ROW][C]M3[/C][C]-33500.4154347826[/C][C]14838.080482[/C][C]-2.2577[/C][C]0.028648[/C][C]0.014324[/C][/ROW]
[ROW][C]M4[/C][C]-30372.5141062802[/C][C]14832.006718[/C][C]-2.0478[/C][C]0.046194[/C][C]0.023097[/C][/ROW]
[ROW][C]M5[/C][C]-27490.8127777778[/C][C]14828.580566[/C][C]-1.8539[/C][C]0.070034[/C][C]0.035017[/C][/ROW]
[ROW][C]M6[/C][C]-31120.5114492753[/C][C]14827.803862[/C][C]-2.0988[/C][C]0.041234[/C][C]0.020617[/C][/ROW]
[ROW][C]M7[/C][C]-53184.1066425121[/C][C]14710.12455[/C][C]-3.6155[/C][C]0.000729[/C][C]0.000364[/C][/ROW]
[ROW][C]M8[/C][C]-58696.2053140097[/C][C]14698.099226[/C][C]-3.9935[/C][C]0.000227[/C][C]0.000114[/C][/ROW]
[ROW][C]M9[/C][C]-66806.3039855072[/C][C]14688.73939[/C][C]-4.5481[/C][C]3.8e-05[/C][C]1.9e-05[/C][/ROW]
[ROW][C]M10[/C][C]-64231.6026570048[/C][C]14682.05014[/C][C]-4.3748[/C][C]6.7e-05[/C][C]3.4e-05[/C][/ROW]
[ROW][C]M11[/C][C]-11058.3013285024[/C][C]14678.035127[/C][C]-0.7534[/C][C]0.454973[/C][C]0.227486[/C][/ROW]
[ROW][C]t[/C][C]-1845.50132850242[/C][C]198.226417[/C][C]-9.3101[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25546&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25546&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)592485.96521739114835.36814639.937400
Aanslag66679.482608695612217.2791125.45782e-061e-06
M1-7782.4928743960914161.604543-0.54950.5852310.292615
M2-17126.51676328514846.798608-1.15350.2545180.127259
M3-33500.415434782614838.080482-2.25770.0286480.014324
M4-30372.514106280214832.006718-2.04780.0461940.023097
M5-27490.812777777814828.580566-1.85390.0700340.035017
M6-31120.511449275314827.803862-2.09880.0412340.020617
M7-53184.106642512114710.12455-3.61550.0007290.000364
M8-58696.205314009714698.099226-3.99350.0002270.000114
M9-66806.303985507214688.73939-4.54813.8e-051.9e-05
M10-64231.602657004814682.05014-4.37486.7e-053.4e-05
M11-11058.301328502414678.035127-0.75340.4549730.227486
t-1845.50132850242198.226417-9.310100







Multiple Linear Regression - Regression Statistics
Multiple R0.858188825447399
R-squared0.736488060122786
Adjusted R-squared0.663601778880152
F-TEST (value)10.1046184215527
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value1.2047184361208e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation23205.8948040985
Sum Squared Residuals25310137021.9675

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.858188825447399 \tabularnewline
R-squared & 0.736488060122786 \tabularnewline
Adjusted R-squared & 0.663601778880152 \tabularnewline
F-TEST (value) & 10.1046184215527 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 1.2047184361208e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 23205.8948040985 \tabularnewline
Sum Squared Residuals & 25310137021.9675 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25546&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.858188825447399[/C][/ROW]
[ROW][C]R-squared[/C][C]0.736488060122786[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.663601778880152[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.1046184215527[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]1.2047184361208e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]23205.8948040985[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]25310137021.9675[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25546&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25546&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.858188825447399
R-squared0.736488060122786
Adjusted R-squared0.663601778880152
F-TEST (value)10.1046184215527
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value1.2047184361208e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation23205.8948040985
Sum Squared Residuals25310137021.9675







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1577992582857.971014493-4865.97101449256
2565464571668.445797101-6204.44579710151
3547344553449.045797101-6105.04579710146
4554788554731.44579710156.5542028984994
5562325555767.6457971026557.35420289851
6560854550292.44579710110561.5542028985
7555332593062.831884058-37730.831884058
8543599585705.231884058-42106.231884058
9536662575749.631884058-39087.631884058
10542722576478.831884058-33756.831884058
11593530627806.631884058-34276.631884058
12610763637019.431884058-26256.431884058
13612613627391.43768116-14778.4376811595
14611324616201.912463768-4877.91246376814
15594167597982.512463768-3815.5124637681
16595454599264.912463768-3810.91246376811
17590865600301.112463768-9436.1124637681
18589379594825.912463768-5446.91246376812
19584428570916.81594202913511.1840579710
20573100563559.2159420299540.784057971
21567456553603.61594202913852.384057971
22569028554332.81594202914695.1840579710
23620735605660.61594202915074.3840579710
24628884614873.41594202914010.584057971
25628232605245.4217391322986.5782608695
26612117594055.89652173918061.1034782609
27595404575836.49652173919567.5034782609
28597141577118.89652173920022.1034782609
29593408578155.09652173915252.9034782609
30590072572679.89652173917392.1034782609
31579799548770.831028.2
32574205541413.232791.8
33572775531457.641317.4
34572942532186.840755.2
35619567583514.636052.4
36625809592727.433081.6
37619916583099.40579710136816.5942028985
38587625571909.8805797115715.1194202899
39565742553690.4805797112051.5194202899
40557274554972.880579712301.11942028987
41560576556009.080579714566.91942028986
42548854550533.88057971-1679.88057971014
43531673526624.7840579715048.21594202899
44525919519267.1840579716651.81594202899
45511038509311.5840579711726.41594202900
46498662510040.784057971-11378.784057971
47555362561368.584057971-6006.58405797102
48564591570581.384057971-5990.384057971
49541657560953.389855072-19296.3898550725
50527070549763.864637681-22693.8646376811
51509846531544.464637681-21698.4646376812
52514258532826.864637681-18568.8646376811
53516922533863.064637681-16941.0646376811
54507561528387.864637681-20826.8646376811
55492622504478.768115942-11856.7681159420
56490243497121.168115942-6878.16811594205
57469357487165.568115942-17808.5681159420
58477580487894.768115942-10314.7681159420
59528379539222.568115942-10843.5681159420
60533590548435.368115942-14845.3681159420
61517945538807.373913044-20862.3739130436

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 577992 & 582857.971014493 & -4865.97101449256 \tabularnewline
2 & 565464 & 571668.445797101 & -6204.44579710151 \tabularnewline
3 & 547344 & 553449.045797101 & -6105.04579710146 \tabularnewline
4 & 554788 & 554731.445797101 & 56.5542028984994 \tabularnewline
5 & 562325 & 555767.645797102 & 6557.35420289851 \tabularnewline
6 & 560854 & 550292.445797101 & 10561.5542028985 \tabularnewline
7 & 555332 & 593062.831884058 & -37730.831884058 \tabularnewline
8 & 543599 & 585705.231884058 & -42106.231884058 \tabularnewline
9 & 536662 & 575749.631884058 & -39087.631884058 \tabularnewline
10 & 542722 & 576478.831884058 & -33756.831884058 \tabularnewline
11 & 593530 & 627806.631884058 & -34276.631884058 \tabularnewline
12 & 610763 & 637019.431884058 & -26256.431884058 \tabularnewline
13 & 612613 & 627391.43768116 & -14778.4376811595 \tabularnewline
14 & 611324 & 616201.912463768 & -4877.91246376814 \tabularnewline
15 & 594167 & 597982.512463768 & -3815.5124637681 \tabularnewline
16 & 595454 & 599264.912463768 & -3810.91246376811 \tabularnewline
17 & 590865 & 600301.112463768 & -9436.1124637681 \tabularnewline
18 & 589379 & 594825.912463768 & -5446.91246376812 \tabularnewline
19 & 584428 & 570916.815942029 & 13511.1840579710 \tabularnewline
20 & 573100 & 563559.215942029 & 9540.784057971 \tabularnewline
21 & 567456 & 553603.615942029 & 13852.384057971 \tabularnewline
22 & 569028 & 554332.815942029 & 14695.1840579710 \tabularnewline
23 & 620735 & 605660.615942029 & 15074.3840579710 \tabularnewline
24 & 628884 & 614873.415942029 & 14010.584057971 \tabularnewline
25 & 628232 & 605245.42173913 & 22986.5782608695 \tabularnewline
26 & 612117 & 594055.896521739 & 18061.1034782609 \tabularnewline
27 & 595404 & 575836.496521739 & 19567.5034782609 \tabularnewline
28 & 597141 & 577118.896521739 & 20022.1034782609 \tabularnewline
29 & 593408 & 578155.096521739 & 15252.9034782609 \tabularnewline
30 & 590072 & 572679.896521739 & 17392.1034782609 \tabularnewline
31 & 579799 & 548770.8 & 31028.2 \tabularnewline
32 & 574205 & 541413.2 & 32791.8 \tabularnewline
33 & 572775 & 531457.6 & 41317.4 \tabularnewline
34 & 572942 & 532186.8 & 40755.2 \tabularnewline
35 & 619567 & 583514.6 & 36052.4 \tabularnewline
36 & 625809 & 592727.4 & 33081.6 \tabularnewline
37 & 619916 & 583099.405797101 & 36816.5942028985 \tabularnewline
38 & 587625 & 571909.88057971 & 15715.1194202899 \tabularnewline
39 & 565742 & 553690.48057971 & 12051.5194202899 \tabularnewline
40 & 557274 & 554972.88057971 & 2301.11942028987 \tabularnewline
41 & 560576 & 556009.08057971 & 4566.91942028986 \tabularnewline
42 & 548854 & 550533.88057971 & -1679.88057971014 \tabularnewline
43 & 531673 & 526624.784057971 & 5048.21594202899 \tabularnewline
44 & 525919 & 519267.184057971 & 6651.81594202899 \tabularnewline
45 & 511038 & 509311.584057971 & 1726.41594202900 \tabularnewline
46 & 498662 & 510040.784057971 & -11378.784057971 \tabularnewline
47 & 555362 & 561368.584057971 & -6006.58405797102 \tabularnewline
48 & 564591 & 570581.384057971 & -5990.384057971 \tabularnewline
49 & 541657 & 560953.389855072 & -19296.3898550725 \tabularnewline
50 & 527070 & 549763.864637681 & -22693.8646376811 \tabularnewline
51 & 509846 & 531544.464637681 & -21698.4646376812 \tabularnewline
52 & 514258 & 532826.864637681 & -18568.8646376811 \tabularnewline
53 & 516922 & 533863.064637681 & -16941.0646376811 \tabularnewline
54 & 507561 & 528387.864637681 & -20826.8646376811 \tabularnewline
55 & 492622 & 504478.768115942 & -11856.7681159420 \tabularnewline
56 & 490243 & 497121.168115942 & -6878.16811594205 \tabularnewline
57 & 469357 & 487165.568115942 & -17808.5681159420 \tabularnewline
58 & 477580 & 487894.768115942 & -10314.7681159420 \tabularnewline
59 & 528379 & 539222.568115942 & -10843.5681159420 \tabularnewline
60 & 533590 & 548435.368115942 & -14845.3681159420 \tabularnewline
61 & 517945 & 538807.373913044 & -20862.3739130436 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25546&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]577992[/C][C]582857.971014493[/C][C]-4865.97101449256[/C][/ROW]
[ROW][C]2[/C][C]565464[/C][C]571668.445797101[/C][C]-6204.44579710151[/C][/ROW]
[ROW][C]3[/C][C]547344[/C][C]553449.045797101[/C][C]-6105.04579710146[/C][/ROW]
[ROW][C]4[/C][C]554788[/C][C]554731.445797101[/C][C]56.5542028984994[/C][/ROW]
[ROW][C]5[/C][C]562325[/C][C]555767.645797102[/C][C]6557.35420289851[/C][/ROW]
[ROW][C]6[/C][C]560854[/C][C]550292.445797101[/C][C]10561.5542028985[/C][/ROW]
[ROW][C]7[/C][C]555332[/C][C]593062.831884058[/C][C]-37730.831884058[/C][/ROW]
[ROW][C]8[/C][C]543599[/C][C]585705.231884058[/C][C]-42106.231884058[/C][/ROW]
[ROW][C]9[/C][C]536662[/C][C]575749.631884058[/C][C]-39087.631884058[/C][/ROW]
[ROW][C]10[/C][C]542722[/C][C]576478.831884058[/C][C]-33756.831884058[/C][/ROW]
[ROW][C]11[/C][C]593530[/C][C]627806.631884058[/C][C]-34276.631884058[/C][/ROW]
[ROW][C]12[/C][C]610763[/C][C]637019.431884058[/C][C]-26256.431884058[/C][/ROW]
[ROW][C]13[/C][C]612613[/C][C]627391.43768116[/C][C]-14778.4376811595[/C][/ROW]
[ROW][C]14[/C][C]611324[/C][C]616201.912463768[/C][C]-4877.91246376814[/C][/ROW]
[ROW][C]15[/C][C]594167[/C][C]597982.512463768[/C][C]-3815.5124637681[/C][/ROW]
[ROW][C]16[/C][C]595454[/C][C]599264.912463768[/C][C]-3810.91246376811[/C][/ROW]
[ROW][C]17[/C][C]590865[/C][C]600301.112463768[/C][C]-9436.1124637681[/C][/ROW]
[ROW][C]18[/C][C]589379[/C][C]594825.912463768[/C][C]-5446.91246376812[/C][/ROW]
[ROW][C]19[/C][C]584428[/C][C]570916.815942029[/C][C]13511.1840579710[/C][/ROW]
[ROW][C]20[/C][C]573100[/C][C]563559.215942029[/C][C]9540.784057971[/C][/ROW]
[ROW][C]21[/C][C]567456[/C][C]553603.615942029[/C][C]13852.384057971[/C][/ROW]
[ROW][C]22[/C][C]569028[/C][C]554332.815942029[/C][C]14695.1840579710[/C][/ROW]
[ROW][C]23[/C][C]620735[/C][C]605660.615942029[/C][C]15074.3840579710[/C][/ROW]
[ROW][C]24[/C][C]628884[/C][C]614873.415942029[/C][C]14010.584057971[/C][/ROW]
[ROW][C]25[/C][C]628232[/C][C]605245.42173913[/C][C]22986.5782608695[/C][/ROW]
[ROW][C]26[/C][C]612117[/C][C]594055.896521739[/C][C]18061.1034782609[/C][/ROW]
[ROW][C]27[/C][C]595404[/C][C]575836.496521739[/C][C]19567.5034782609[/C][/ROW]
[ROW][C]28[/C][C]597141[/C][C]577118.896521739[/C][C]20022.1034782609[/C][/ROW]
[ROW][C]29[/C][C]593408[/C][C]578155.096521739[/C][C]15252.9034782609[/C][/ROW]
[ROW][C]30[/C][C]590072[/C][C]572679.896521739[/C][C]17392.1034782609[/C][/ROW]
[ROW][C]31[/C][C]579799[/C][C]548770.8[/C][C]31028.2[/C][/ROW]
[ROW][C]32[/C][C]574205[/C][C]541413.2[/C][C]32791.8[/C][/ROW]
[ROW][C]33[/C][C]572775[/C][C]531457.6[/C][C]41317.4[/C][/ROW]
[ROW][C]34[/C][C]572942[/C][C]532186.8[/C][C]40755.2[/C][/ROW]
[ROW][C]35[/C][C]619567[/C][C]583514.6[/C][C]36052.4[/C][/ROW]
[ROW][C]36[/C][C]625809[/C][C]592727.4[/C][C]33081.6[/C][/ROW]
[ROW][C]37[/C][C]619916[/C][C]583099.405797101[/C][C]36816.5942028985[/C][/ROW]
[ROW][C]38[/C][C]587625[/C][C]571909.88057971[/C][C]15715.1194202899[/C][/ROW]
[ROW][C]39[/C][C]565742[/C][C]553690.48057971[/C][C]12051.5194202899[/C][/ROW]
[ROW][C]40[/C][C]557274[/C][C]554972.88057971[/C][C]2301.11942028987[/C][/ROW]
[ROW][C]41[/C][C]560576[/C][C]556009.08057971[/C][C]4566.91942028986[/C][/ROW]
[ROW][C]42[/C][C]548854[/C][C]550533.88057971[/C][C]-1679.88057971014[/C][/ROW]
[ROW][C]43[/C][C]531673[/C][C]526624.784057971[/C][C]5048.21594202899[/C][/ROW]
[ROW][C]44[/C][C]525919[/C][C]519267.184057971[/C][C]6651.81594202899[/C][/ROW]
[ROW][C]45[/C][C]511038[/C][C]509311.584057971[/C][C]1726.41594202900[/C][/ROW]
[ROW][C]46[/C][C]498662[/C][C]510040.784057971[/C][C]-11378.784057971[/C][/ROW]
[ROW][C]47[/C][C]555362[/C][C]561368.584057971[/C][C]-6006.58405797102[/C][/ROW]
[ROW][C]48[/C][C]564591[/C][C]570581.384057971[/C][C]-5990.384057971[/C][/ROW]
[ROW][C]49[/C][C]541657[/C][C]560953.389855072[/C][C]-19296.3898550725[/C][/ROW]
[ROW][C]50[/C][C]527070[/C][C]549763.864637681[/C][C]-22693.8646376811[/C][/ROW]
[ROW][C]51[/C][C]509846[/C][C]531544.464637681[/C][C]-21698.4646376812[/C][/ROW]
[ROW][C]52[/C][C]514258[/C][C]532826.864637681[/C][C]-18568.8646376811[/C][/ROW]
[ROW][C]53[/C][C]516922[/C][C]533863.064637681[/C][C]-16941.0646376811[/C][/ROW]
[ROW][C]54[/C][C]507561[/C][C]528387.864637681[/C][C]-20826.8646376811[/C][/ROW]
[ROW][C]55[/C][C]492622[/C][C]504478.768115942[/C][C]-11856.7681159420[/C][/ROW]
[ROW][C]56[/C][C]490243[/C][C]497121.168115942[/C][C]-6878.16811594205[/C][/ROW]
[ROW][C]57[/C][C]469357[/C][C]487165.568115942[/C][C]-17808.5681159420[/C][/ROW]
[ROW][C]58[/C][C]477580[/C][C]487894.768115942[/C][C]-10314.7681159420[/C][/ROW]
[ROW][C]59[/C][C]528379[/C][C]539222.568115942[/C][C]-10843.5681159420[/C][/ROW]
[ROW][C]60[/C][C]533590[/C][C]548435.368115942[/C][C]-14845.3681159420[/C][/ROW]
[ROW][C]61[/C][C]517945[/C][C]538807.373913044[/C][C]-20862.3739130436[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25546&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25546&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
1577992582857.971014493-4865.97101449256
2565464571668.445797101-6204.44579710151
3547344553449.045797101-6105.04579710146
4554788554731.44579710156.5542028984994
5562325555767.6457971026557.35420289851
6560854550292.44579710110561.5542028985
7555332593062.831884058-37730.831884058
8543599585705.231884058-42106.231884058
9536662575749.631884058-39087.631884058
10542722576478.831884058-33756.831884058
11593530627806.631884058-34276.631884058
12610763637019.431884058-26256.431884058
13612613627391.43768116-14778.4376811595
14611324616201.912463768-4877.91246376814
15594167597982.512463768-3815.5124637681
16595454599264.912463768-3810.91246376811
17590865600301.112463768-9436.1124637681
18589379594825.912463768-5446.91246376812
19584428570916.81594202913511.1840579710
20573100563559.2159420299540.784057971
21567456553603.61594202913852.384057971
22569028554332.81594202914695.1840579710
23620735605660.61594202915074.3840579710
24628884614873.41594202914010.584057971
25628232605245.4217391322986.5782608695
26612117594055.89652173918061.1034782609
27595404575836.49652173919567.5034782609
28597141577118.89652173920022.1034782609
29593408578155.09652173915252.9034782609
30590072572679.89652173917392.1034782609
31579799548770.831028.2
32574205541413.232791.8
33572775531457.641317.4
34572942532186.840755.2
35619567583514.636052.4
36625809592727.433081.6
37619916583099.40579710136816.5942028985
38587625571909.8805797115715.1194202899
39565742553690.4805797112051.5194202899
40557274554972.880579712301.11942028987
41560576556009.080579714566.91942028986
42548854550533.88057971-1679.88057971014
43531673526624.7840579715048.21594202899
44525919519267.1840579716651.81594202899
45511038509311.5840579711726.41594202900
46498662510040.784057971-11378.784057971
47555362561368.584057971-6006.58405797102
48564591570581.384057971-5990.384057971
49541657560953.389855072-19296.3898550725
50527070549763.864637681-22693.8646376811
51509846531544.464637681-21698.4646376812
52514258532826.864637681-18568.8646376811
53516922533863.064637681-16941.0646376811
54507561528387.864637681-20826.8646376811
55492622504478.768115942-11856.7681159420
56490243497121.168115942-6878.16811594205
57469357487165.568115942-17808.5681159420
58477580487894.768115942-10314.7681159420
59528379539222.568115942-10843.5681159420
60533590548435.368115942-14845.3681159420
61517945538807.373913044-20862.3739130436







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.08842891816007450.1768578363201490.911571081839926
180.06389107298381960.1277821459676390.93610892701618
190.02693416839052660.05386833678105310.973065831609473
200.01343885118275050.0268777023655010.98656114881725
210.006645249594190770.01329049918838150.99335475040581
220.003815020909836840.007630041819673670.996184979090163
230.002622440110259240.005244880220518490.99737755988974
240.006550999462718080.01310199892543620.993449000537282
250.01639733113106850.03279466226213710.983602668868931
260.06479895514017720.1295979102803540.935201044859823
270.09013243830684450.1802648766136890.909867561693155
280.1113766139591470.2227532279182940.888623386040853
290.1867310690519910.3734621381039820.81326893094801
300.2327855700168360.4655711400336720.767214429983164
310.2044273263930370.4088546527860730.795572673606963
320.1488735710393240.2977471420786480.851126428960676
330.1177505251308880.2355010502617760.882249474869112
340.1100740991916530.2201481983833070.889925900808347
350.09040518086685250.1808103617337050.909594819133147
360.09120296759611650.1824059351922330.908797032403884
370.3716895500587930.7433791001175860.628310449941207
380.8168695902870190.3662608194259620.183130409712981
390.963583157394840.07283368521032120.0364168426051606
400.9794159887620260.04116802247594820.0205840112379741
410.9822581169968040.03548376600639260.0177418830031963
420.9815627378790020.03687452424199630.0184372621209981
430.971869622982080.05626075403584080.0281303770179204
440.9359245148124350.1281509703751290.0640754851875646

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0884289181600745 & 0.176857836320149 & 0.911571081839926 \tabularnewline
18 & 0.0638910729838196 & 0.127782145967639 & 0.93610892701618 \tabularnewline
19 & 0.0269341683905266 & 0.0538683367810531 & 0.973065831609473 \tabularnewline
20 & 0.0134388511827505 & 0.026877702365501 & 0.98656114881725 \tabularnewline
21 & 0.00664524959419077 & 0.0132904991883815 & 0.99335475040581 \tabularnewline
22 & 0.00381502090983684 & 0.00763004181967367 & 0.996184979090163 \tabularnewline
23 & 0.00262244011025924 & 0.00524488022051849 & 0.99737755988974 \tabularnewline
24 & 0.00655099946271808 & 0.0131019989254362 & 0.993449000537282 \tabularnewline
25 & 0.0163973311310685 & 0.0327946622621371 & 0.983602668868931 \tabularnewline
26 & 0.0647989551401772 & 0.129597910280354 & 0.935201044859823 \tabularnewline
27 & 0.0901324383068445 & 0.180264876613689 & 0.909867561693155 \tabularnewline
28 & 0.111376613959147 & 0.222753227918294 & 0.888623386040853 \tabularnewline
29 & 0.186731069051991 & 0.373462138103982 & 0.81326893094801 \tabularnewline
30 & 0.232785570016836 & 0.465571140033672 & 0.767214429983164 \tabularnewline
31 & 0.204427326393037 & 0.408854652786073 & 0.795572673606963 \tabularnewline
32 & 0.148873571039324 & 0.297747142078648 & 0.851126428960676 \tabularnewline
33 & 0.117750525130888 & 0.235501050261776 & 0.882249474869112 \tabularnewline
34 & 0.110074099191653 & 0.220148198383307 & 0.889925900808347 \tabularnewline
35 & 0.0904051808668525 & 0.180810361733705 & 0.909594819133147 \tabularnewline
36 & 0.0912029675961165 & 0.182405935192233 & 0.908797032403884 \tabularnewline
37 & 0.371689550058793 & 0.743379100117586 & 0.628310449941207 \tabularnewline
38 & 0.816869590287019 & 0.366260819425962 & 0.183130409712981 \tabularnewline
39 & 0.96358315739484 & 0.0728336852103212 & 0.0364168426051606 \tabularnewline
40 & 0.979415988762026 & 0.0411680224759482 & 0.0205840112379741 \tabularnewline
41 & 0.982258116996804 & 0.0354837660063926 & 0.0177418830031963 \tabularnewline
42 & 0.981562737879002 & 0.0368745242419963 & 0.0184372621209981 \tabularnewline
43 & 0.97186962298208 & 0.0562607540358408 & 0.0281303770179204 \tabularnewline
44 & 0.935924514812435 & 0.128150970375129 & 0.0640754851875646 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25546&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.0884289181600745[/C][C]0.176857836320149[/C][C]0.911571081839926[/C][/ROW]
[ROW][C]18[/C][C]0.0638910729838196[/C][C]0.127782145967639[/C][C]0.93610892701618[/C][/ROW]
[ROW][C]19[/C][C]0.0269341683905266[/C][C]0.0538683367810531[/C][C]0.973065831609473[/C][/ROW]
[ROW][C]20[/C][C]0.0134388511827505[/C][C]0.026877702365501[/C][C]0.98656114881725[/C][/ROW]
[ROW][C]21[/C][C]0.00664524959419077[/C][C]0.0132904991883815[/C][C]0.99335475040581[/C][/ROW]
[ROW][C]22[/C][C]0.00381502090983684[/C][C]0.00763004181967367[/C][C]0.996184979090163[/C][/ROW]
[ROW][C]23[/C][C]0.00262244011025924[/C][C]0.00524488022051849[/C][C]0.99737755988974[/C][/ROW]
[ROW][C]24[/C][C]0.00655099946271808[/C][C]0.0131019989254362[/C][C]0.993449000537282[/C][/ROW]
[ROW][C]25[/C][C]0.0163973311310685[/C][C]0.0327946622621371[/C][C]0.983602668868931[/C][/ROW]
[ROW][C]26[/C][C]0.0647989551401772[/C][C]0.129597910280354[/C][C]0.935201044859823[/C][/ROW]
[ROW][C]27[/C][C]0.0901324383068445[/C][C]0.180264876613689[/C][C]0.909867561693155[/C][/ROW]
[ROW][C]28[/C][C]0.111376613959147[/C][C]0.222753227918294[/C][C]0.888623386040853[/C][/ROW]
[ROW][C]29[/C][C]0.186731069051991[/C][C]0.373462138103982[/C][C]0.81326893094801[/C][/ROW]
[ROW][C]30[/C][C]0.232785570016836[/C][C]0.465571140033672[/C][C]0.767214429983164[/C][/ROW]
[ROW][C]31[/C][C]0.204427326393037[/C][C]0.408854652786073[/C][C]0.795572673606963[/C][/ROW]
[ROW][C]32[/C][C]0.148873571039324[/C][C]0.297747142078648[/C][C]0.851126428960676[/C][/ROW]
[ROW][C]33[/C][C]0.117750525130888[/C][C]0.235501050261776[/C][C]0.882249474869112[/C][/ROW]
[ROW][C]34[/C][C]0.110074099191653[/C][C]0.220148198383307[/C][C]0.889925900808347[/C][/ROW]
[ROW][C]35[/C][C]0.0904051808668525[/C][C]0.180810361733705[/C][C]0.909594819133147[/C][/ROW]
[ROW][C]36[/C][C]0.0912029675961165[/C][C]0.182405935192233[/C][C]0.908797032403884[/C][/ROW]
[ROW][C]37[/C][C]0.371689550058793[/C][C]0.743379100117586[/C][C]0.628310449941207[/C][/ROW]
[ROW][C]38[/C][C]0.816869590287019[/C][C]0.366260819425962[/C][C]0.183130409712981[/C][/ROW]
[ROW][C]39[/C][C]0.96358315739484[/C][C]0.0728336852103212[/C][C]0.0364168426051606[/C][/ROW]
[ROW][C]40[/C][C]0.979415988762026[/C][C]0.0411680224759482[/C][C]0.0205840112379741[/C][/ROW]
[ROW][C]41[/C][C]0.982258116996804[/C][C]0.0354837660063926[/C][C]0.0177418830031963[/C][/ROW]
[ROW][C]42[/C][C]0.981562737879002[/C][C]0.0368745242419963[/C][C]0.0184372621209981[/C][/ROW]
[ROW][C]43[/C][C]0.97186962298208[/C][C]0.0562607540358408[/C][C]0.0281303770179204[/C][/ROW]
[ROW][C]44[/C][C]0.935924514812435[/C][C]0.128150970375129[/C][C]0.0640754851875646[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25546&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25546&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.08842891816007450.1768578363201490.911571081839926
180.06389107298381960.1277821459676390.93610892701618
190.02693416839052660.05386833678105310.973065831609473
200.01343885118275050.0268777023655010.98656114881725
210.006645249594190770.01329049918838150.99335475040581
220.003815020909836840.007630041819673670.996184979090163
230.002622440110259240.005244880220518490.99737755988974
240.006550999462718080.01310199892543620.993449000537282
250.01639733113106850.03279466226213710.983602668868931
260.06479895514017720.1295979102803540.935201044859823
270.09013243830684450.1802648766136890.909867561693155
280.1113766139591470.2227532279182940.888623386040853
290.1867310690519910.3734621381039820.81326893094801
300.2327855700168360.4655711400336720.767214429983164
310.2044273263930370.4088546527860730.795572673606963
320.1488735710393240.2977471420786480.851126428960676
330.1177505251308880.2355010502617760.882249474869112
340.1100740991916530.2201481983833070.889925900808347
350.09040518086685250.1808103617337050.909594819133147
360.09120296759611650.1824059351922330.908797032403884
370.3716895500587930.7433791001175860.628310449941207
380.8168695902870190.3662608194259620.183130409712981
390.963583157394840.07283368521032120.0364168426051606
400.9794159887620260.04116802247594820.0205840112379741
410.9822581169968040.03548376600639260.0177418830031963
420.9815627378790020.03687452424199630.0184372621209981
430.971869622982080.05626075403584080.0281303770179204
440.9359245148124350.1281509703751290.0640754851875646







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0714285714285714NOK
5% type I error level90.321428571428571NOK
10% type I error level120.428571428571429NOK

\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 & 2 & 0.0714285714285714 & NOK \tabularnewline
5% type I error level & 9 & 0.321428571428571 & NOK \tabularnewline
10% type I error level & 12 & 0.428571428571429 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25546&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]2[/C][C]0.0714285714285714[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]9[/C][C]0.321428571428571[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]12[/C][C]0.428571428571429[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25546&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25546&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 level20.0714285714285714NOK
5% type I error level90.321428571428571NOK
10% type I error level120.428571428571429NOK



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