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 computationThu, 26 Nov 2009 10:58:25 -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/26/t1259258681in8k28zdnsi5tyf.htm/, Retrieved Mon, 29 Apr 2024 00:05:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60212, Retrieved Mon, 29 Apr 2024 00:05:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsAanpassing van de y-waarde
Estimated Impact112
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [WS 7: Multiple Re...] [2009-11-26 17:58:25] [63d6214c2814604a6f6cfa44dba5912e] [Current]
Feedback Forum

Post a new message
Dataseries X:
7.8	9.5	7.6	7.5	7.7	8.1
7.8	9.6	7.8	7.6	7.5	7.7
7.8	9.5	7.8	7.8	7.6	7.5
7.5	9.1	7.8	7.8	7.8	7.6
7.5	8.9	7.5	7.8	7.8	7.8
7.1	9	7.5	7.5	7.8	7.8
7.5	10.1	7.1	7.5	7.5	7.8
7.5	10.3	7.5	7.1	7.5	7.5
7.6	10.2	7.5	7.5	7.1	7.5
7.7	9.6	7.6	7.5	7.5	7.1
7.7	9.2	7.7	7.6	7.5	7.5
7.9	9.3	7.7	7.7	7.6	7.5
8.1	9.4	7.9	7.7	7.7	7.6
8.2	9.4	8.1	7.9	7.7	7.7
8.2	9.2	8.2	8.1	7.9	7.7
8.2	9	8.2	8.2	8.1	7.9
7.9	9	8.2	8.2	8.2	8.1
7.3	9	7.9	8.2	8.2	8.2
6.9	9.8	7.3	7.9	8.2	8.2
6.6	10	6.9	7.3	7.9	8.2
6.7	9.8	6.6	6.9	7.3	7.9
6.9	9.3	6.7	6.6	6.9	7.3
7	9	6.9	6.7	6.6	6.9
7.1	9	7	6.9	6.7	6.6
7.2	9.1	7.1	7	6.9	6.7
7.1	9.1	7.2	7.1	7	6.9
6.9	9.1	7.1	7.2	7.1	7
7	9.2	6.9	7.1	7.2	7.1
6.8	8.8	7	6.9	7.1	7.2
6.4	8.3	6.8	7	6.9	7.1
6.7	8.4	6.4	6.8	7	6.9
6.6	8.1	6.7	6.4	6.8	7
6.4	7.7	6.6	6.7	6.4	6.8
6.3	7.9	6.4	6.6	6.7	6.4
6.2	7.9	6.3	6.4	6.6	6.7
6.5	8	6.2	6.3	6.4	6.6
6.8	7.9	6.5	6.2	6.3	6.4
6.8	7.6	6.8	6.5	6.2	6.3
6.4	7.1	6.8	6.8	6.5	6.2
6.1	6.8	6.4	6.8	6.8	6.5
5.8	6.5	6.1	6.4	6.8	6.8
6.1	6.9	5.8	6.1	6.4	6.8
7.2	8.2	6.1	5.8	6.1	6.4
7.3	8.7	7.2	6.1	5.8	6.1
6.9	8.3	7.3	7.2	6.1	5.8
6.1	7.9	6.9	7.3	7.2	6.1
5.8	7.5	6.1	6.9	7.3	7.2
6.2	7.8	5.8	6.1	6.9	7.3
7.1	8.3	6.2	5.8	6.1	6.9
7.7	8.4	7.1	6.2	5.8	6.1
7.9	8.2	7.7	7.1	6.2	5.8
7.7	7.7	7.9	7.7	7.1	6.2
7.4	7.2	7.7	7.9	7.7	7.1
7.5	7.3	7.4	7.7	7.9	7.7
8	8.1	7.5	7.4	7.7	7.9
8.1	8.5	8	7.5	7.4	7.7




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

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

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60212&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = -0.229569723769742 + 0.0479138564134236X[t] + 1.50956884936896Y1[t] -0.717207139860154Y2[t] -0.234146085893884Y3[t] + 0.425498249765415Y4[t] -0.0822653962756976M1[t] -0.260023264689058M2[t] -0.178609712794115M3[t] -0.118255040027475M4[t] -0.292381316010964M5[t] -0.336368271590958M6[t] + 0.144796624321569M7[t] -0.618739470511963M8[t] -0.331452155750824M9[t] -0.174684003109844M10[t] -0.253211771925874M11[t] + 0.00493334888911443t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -0.229569723769742 +  0.0479138564134236X[t] +  1.50956884936896Y1[t] -0.717207139860154Y2[t] -0.234146085893884Y3[t] +  0.425498249765415Y4[t] -0.0822653962756976M1[t] -0.260023264689058M2[t] -0.178609712794115M3[t] -0.118255040027475M4[t] -0.292381316010964M5[t] -0.336368271590958M6[t] +  0.144796624321569M7[t] -0.618739470511963M8[t] -0.331452155750824M9[t] -0.174684003109844M10[t] -0.253211771925874M11[t] +  0.00493334888911443t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60212&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -0.229569723769742 +  0.0479138564134236X[t] +  1.50956884936896Y1[t] -0.717207139860154Y2[t] -0.234146085893884Y3[t] +  0.425498249765415Y4[t] -0.0822653962756976M1[t] -0.260023264689058M2[t] -0.178609712794115M3[t] -0.118255040027475M4[t] -0.292381316010964M5[t] -0.336368271590958M6[t] +  0.144796624321569M7[t] -0.618739470511963M8[t] -0.331452155750824M9[t] -0.174684003109844M10[t] -0.253211771925874M11[t] +  0.00493334888911443t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60212&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60212&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] = -0.229569723769742 + 0.0479138564134236X[t] + 1.50956884936896Y1[t] -0.717207139860154Y2[t] -0.234146085893884Y3[t] + 0.425498249765415Y4[t] -0.0822653962756976M1[t] -0.260023264689058M2[t] -0.178609712794115M3[t] -0.118255040027475M4[t] -0.292381316010964M5[t] -0.336368271590958M6[t] + 0.144796624321569M7[t] -0.618739470511963M8[t] -0.331452155750824M9[t] -0.174684003109844M10[t] -0.253211771925874M11[t] + 0.00493334888911443t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-0.2295697237697420.673358-0.34090.7350320.367516
X0.04791385641342360.0704830.67980.5007590.250379
Y11.509568849368960.1540829.797200
Y2-0.7172071398601540.286072-2.50710.0165670.008284
Y3-0.2341460858938840.28879-0.81080.422540.21127
Y40.4254982497654150.1615852.63330.0121610.006081
M1-0.08226539627569760.143541-0.57310.5699440.284972
M2-0.2600232646890580.148693-1.74870.0884140.044207
M3-0.1786097127941150.149902-1.19150.2408430.120421
M4-0.1182550400274750.149977-0.78850.4353040.217652
M5-0.2923813160109640.152041-1.9230.0619920.030996
M6-0.3363682715909580.150705-2.2320.031590.015795
M70.1447966243215690.1429721.01280.3175780.158789
M8-0.6187394705119630.156864-3.94440.0003330.000166
M9-0.3314521557508240.178646-1.85540.0713140.035657
M10-0.1746840031098440.158005-1.10560.2758670.137934
M11-0.2532117719258740.147162-1.72060.0934510.046726
t0.004933348889114430.0032941.49780.142450.071225

\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) & -0.229569723769742 & 0.673358 & -0.3409 & 0.735032 & 0.367516 \tabularnewline
X & 0.0479138564134236 & 0.070483 & 0.6798 & 0.500759 & 0.250379 \tabularnewline
Y1 & 1.50956884936896 & 0.154082 & 9.7972 & 0 & 0 \tabularnewline
Y2 & -0.717207139860154 & 0.286072 & -2.5071 & 0.016567 & 0.008284 \tabularnewline
Y3 & -0.234146085893884 & 0.28879 & -0.8108 & 0.42254 & 0.21127 \tabularnewline
Y4 & 0.425498249765415 & 0.161585 & 2.6333 & 0.012161 & 0.006081 \tabularnewline
M1 & -0.0822653962756976 & 0.143541 & -0.5731 & 0.569944 & 0.284972 \tabularnewline
M2 & -0.260023264689058 & 0.148693 & -1.7487 & 0.088414 & 0.044207 \tabularnewline
M3 & -0.178609712794115 & 0.149902 & -1.1915 & 0.240843 & 0.120421 \tabularnewline
M4 & -0.118255040027475 & 0.149977 & -0.7885 & 0.435304 & 0.217652 \tabularnewline
M5 & -0.292381316010964 & 0.152041 & -1.923 & 0.061992 & 0.030996 \tabularnewline
M6 & -0.336368271590958 & 0.150705 & -2.232 & 0.03159 & 0.015795 \tabularnewline
M7 & 0.144796624321569 & 0.142972 & 1.0128 & 0.317578 & 0.158789 \tabularnewline
M8 & -0.618739470511963 & 0.156864 & -3.9444 & 0.000333 & 0.000166 \tabularnewline
M9 & -0.331452155750824 & 0.178646 & -1.8554 & 0.071314 & 0.035657 \tabularnewline
M10 & -0.174684003109844 & 0.158005 & -1.1056 & 0.275867 & 0.137934 \tabularnewline
M11 & -0.253211771925874 & 0.147162 & -1.7206 & 0.093451 & 0.046726 \tabularnewline
t & 0.00493334888911443 & 0.003294 & 1.4978 & 0.14245 & 0.071225 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60212&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]-0.229569723769742[/C][C]0.673358[/C][C]-0.3409[/C][C]0.735032[/C][C]0.367516[/C][/ROW]
[ROW][C]X[/C][C]0.0479138564134236[/C][C]0.070483[/C][C]0.6798[/C][C]0.500759[/C][C]0.250379[/C][/ROW]
[ROW][C]Y1[/C][C]1.50956884936896[/C][C]0.154082[/C][C]9.7972[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.717207139860154[/C][C]0.286072[/C][C]-2.5071[/C][C]0.016567[/C][C]0.008284[/C][/ROW]
[ROW][C]Y3[/C][C]-0.234146085893884[/C][C]0.28879[/C][C]-0.8108[/C][C]0.42254[/C][C]0.21127[/C][/ROW]
[ROW][C]Y4[/C][C]0.425498249765415[/C][C]0.161585[/C][C]2.6333[/C][C]0.012161[/C][C]0.006081[/C][/ROW]
[ROW][C]M1[/C][C]-0.0822653962756976[/C][C]0.143541[/C][C]-0.5731[/C][C]0.569944[/C][C]0.284972[/C][/ROW]
[ROW][C]M2[/C][C]-0.260023264689058[/C][C]0.148693[/C][C]-1.7487[/C][C]0.088414[/C][C]0.044207[/C][/ROW]
[ROW][C]M3[/C][C]-0.178609712794115[/C][C]0.149902[/C][C]-1.1915[/C][C]0.240843[/C][C]0.120421[/C][/ROW]
[ROW][C]M4[/C][C]-0.118255040027475[/C][C]0.149977[/C][C]-0.7885[/C][C]0.435304[/C][C]0.217652[/C][/ROW]
[ROW][C]M5[/C][C]-0.292381316010964[/C][C]0.152041[/C][C]-1.923[/C][C]0.061992[/C][C]0.030996[/C][/ROW]
[ROW][C]M6[/C][C]-0.336368271590958[/C][C]0.150705[/C][C]-2.232[/C][C]0.03159[/C][C]0.015795[/C][/ROW]
[ROW][C]M7[/C][C]0.144796624321569[/C][C]0.142972[/C][C]1.0128[/C][C]0.317578[/C][C]0.158789[/C][/ROW]
[ROW][C]M8[/C][C]-0.618739470511963[/C][C]0.156864[/C][C]-3.9444[/C][C]0.000333[/C][C]0.000166[/C][/ROW]
[ROW][C]M9[/C][C]-0.331452155750824[/C][C]0.178646[/C][C]-1.8554[/C][C]0.071314[/C][C]0.035657[/C][/ROW]
[ROW][C]M10[/C][C]-0.174684003109844[/C][C]0.158005[/C][C]-1.1056[/C][C]0.275867[/C][C]0.137934[/C][/ROW]
[ROW][C]M11[/C][C]-0.253211771925874[/C][C]0.147162[/C][C]-1.7206[/C][C]0.093451[/C][C]0.046726[/C][/ROW]
[ROW][C]t[/C][C]0.00493334888911443[/C][C]0.003294[/C][C]1.4978[/C][C]0.14245[/C][C]0.071225[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60212&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60212&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)-0.2295697237697420.673358-0.34090.7350320.367516
X0.04791385641342360.0704830.67980.5007590.250379
Y11.509568849368960.1540829.797200
Y2-0.7172071398601540.286072-2.50710.0165670.008284
Y3-0.2341460858938840.28879-0.81080.422540.21127
Y40.4254982497654150.1615852.63330.0121610.006081
M1-0.08226539627569760.143541-0.57310.5699440.284972
M2-0.2600232646890580.148693-1.74870.0884140.044207
M3-0.1786097127941150.149902-1.19150.2408430.120421
M4-0.1182550400274750.149977-0.78850.4353040.217652
M5-0.2923813160109640.152041-1.9230.0619920.030996
M6-0.3363682715909580.150705-2.2320.031590.015795
M70.1447966243215690.1429721.01280.3175780.158789
M8-0.6187394705119630.156864-3.94440.0003330.000166
M9-0.3314521557508240.178646-1.85540.0713140.035657
M10-0.1746840031098440.158005-1.10560.2758670.137934
M11-0.2532117719258740.147162-1.72060.0934510.046726
t0.004933348889114430.0032941.49780.142450.071225







Multiple Linear Regression - Regression Statistics
Multiple R0.966040857003575
R-squared0.933234937400201
Adjusted R-squared0.903366356763449
F-TEST (value)31.2447032133792
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.206139248157389
Sum Squared Residuals1.61474880597395

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.966040857003575 \tabularnewline
R-squared & 0.933234937400201 \tabularnewline
Adjusted R-squared & 0.903366356763449 \tabularnewline
F-TEST (value) & 31.2447032133792 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.206139248157389 \tabularnewline
Sum Squared Residuals & 1.61474880597395 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60212&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.966040857003575[/C][/ROW]
[ROW][C]R-squared[/C][C]0.933234937400201[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.903366356763449[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]31.2447032133792[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.206139248157389[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1.61474880597395[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60212&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60212&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.966040857003575
R-squared0.933234937400201
Adjusted R-squared0.903366356763449
F-TEST (value)31.2447032133792
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.206139248157389
Sum Squared Residuals1.61474880597395







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.87.8855605327411-0.0855605327411074
27.87.82435037201857-0.0243503720185753
37.87.653950200646790.146049799353210
47.57.69579328753494-0.195793287534939
57.57.149246584300280.350753415699724
67.17.33014650520879-0.230146505208786
77.57.335366278085770.164633721914228
87.57.349407224186060.150592775813939
97.67.443612080608460.156387919391535
107.77.463664418963680.236335581036319
117.77.620339927328440.0796600726715576
127.97.788141111209370.111858888790630
138.18.036649435725070.0633505642749256
148.28.064847083079130.135152916920870
158.28.102297452366590.0977025476334083
168.28.124552421527950.0754475784720476
177.98.01704453579727-0.117044535797272
187.37.56767009927225-0.267670099272247
196.97.4015202615413-0.501520261541295
206.66.549240856816240.0507591431837624
216.76.678729126923890.0212708730761152
226.97.02095221164052-0.120952211640516
2377.06322121653935-0.063221216539349
247.17.17781771080019-0.0778177108001891
257.27.180233827803590.0197661721964073
267.17.14833052059392-0.0483305205939237
276.97.03113503884222-0.131135038842221
2876.89015660663870.109843393361305
296.87.06216088345381-0.262160883453809
306.46.62979525689864-0.229795256898644
316.76.55178451702360.148215482976396
326.66.60794016706523-0.00794016706522784
336.46.52343504565964-0.123435045659639
346.36.224083136910310.0759168630896873
356.26.29403734353754-0.0940373435375424
366.56.482017071245230.0179829287547712
376.86.86279996565031-0.0627999656503122
386.86.89417458566753-0.0941745856675275
396.46.62860876554212-0.228608765542120
406.16.13310073968772-0.0331007396877239
415.85.91119533173232-0.11119533173232
426.15.747257189111720.352742810888278
437.26.863720769881550.336279230118454
447.37.51703289533019-0.217032895330191
456.96.95422374680801-0.0542237468080115
466.16.29130023248549-0.191300232485491
475.85.722401512594670.0775984874053338
486.26.25202410674521-0.0520241067452122
497.17.034756238079910.0652437619200868
507.77.668297438640840.0317025613591568
517.97.784008542602280.115991457397723
527.77.656396944610690.0436030553893108
537.47.260352664716320.139647335283677
547.57.12513094950860.374869050491399
5588.14760817346778-0.147608173467783
568.18.076378856602280.0236211433977181

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 7.8 & 7.8855605327411 & -0.0855605327411074 \tabularnewline
2 & 7.8 & 7.82435037201857 & -0.0243503720185753 \tabularnewline
3 & 7.8 & 7.65395020064679 & 0.146049799353210 \tabularnewline
4 & 7.5 & 7.69579328753494 & -0.195793287534939 \tabularnewline
5 & 7.5 & 7.14924658430028 & 0.350753415699724 \tabularnewline
6 & 7.1 & 7.33014650520879 & -0.230146505208786 \tabularnewline
7 & 7.5 & 7.33536627808577 & 0.164633721914228 \tabularnewline
8 & 7.5 & 7.34940722418606 & 0.150592775813939 \tabularnewline
9 & 7.6 & 7.44361208060846 & 0.156387919391535 \tabularnewline
10 & 7.7 & 7.46366441896368 & 0.236335581036319 \tabularnewline
11 & 7.7 & 7.62033992732844 & 0.0796600726715576 \tabularnewline
12 & 7.9 & 7.78814111120937 & 0.111858888790630 \tabularnewline
13 & 8.1 & 8.03664943572507 & 0.0633505642749256 \tabularnewline
14 & 8.2 & 8.06484708307913 & 0.135152916920870 \tabularnewline
15 & 8.2 & 8.10229745236659 & 0.0977025476334083 \tabularnewline
16 & 8.2 & 8.12455242152795 & 0.0754475784720476 \tabularnewline
17 & 7.9 & 8.01704453579727 & -0.117044535797272 \tabularnewline
18 & 7.3 & 7.56767009927225 & -0.267670099272247 \tabularnewline
19 & 6.9 & 7.4015202615413 & -0.501520261541295 \tabularnewline
20 & 6.6 & 6.54924085681624 & 0.0507591431837624 \tabularnewline
21 & 6.7 & 6.67872912692389 & 0.0212708730761152 \tabularnewline
22 & 6.9 & 7.02095221164052 & -0.120952211640516 \tabularnewline
23 & 7 & 7.06322121653935 & -0.063221216539349 \tabularnewline
24 & 7.1 & 7.17781771080019 & -0.0778177108001891 \tabularnewline
25 & 7.2 & 7.18023382780359 & 0.0197661721964073 \tabularnewline
26 & 7.1 & 7.14833052059392 & -0.0483305205939237 \tabularnewline
27 & 6.9 & 7.03113503884222 & -0.131135038842221 \tabularnewline
28 & 7 & 6.8901566066387 & 0.109843393361305 \tabularnewline
29 & 6.8 & 7.06216088345381 & -0.262160883453809 \tabularnewline
30 & 6.4 & 6.62979525689864 & -0.229795256898644 \tabularnewline
31 & 6.7 & 6.5517845170236 & 0.148215482976396 \tabularnewline
32 & 6.6 & 6.60794016706523 & -0.00794016706522784 \tabularnewline
33 & 6.4 & 6.52343504565964 & -0.123435045659639 \tabularnewline
34 & 6.3 & 6.22408313691031 & 0.0759168630896873 \tabularnewline
35 & 6.2 & 6.29403734353754 & -0.0940373435375424 \tabularnewline
36 & 6.5 & 6.48201707124523 & 0.0179829287547712 \tabularnewline
37 & 6.8 & 6.86279996565031 & -0.0627999656503122 \tabularnewline
38 & 6.8 & 6.89417458566753 & -0.0941745856675275 \tabularnewline
39 & 6.4 & 6.62860876554212 & -0.228608765542120 \tabularnewline
40 & 6.1 & 6.13310073968772 & -0.0331007396877239 \tabularnewline
41 & 5.8 & 5.91119533173232 & -0.11119533173232 \tabularnewline
42 & 6.1 & 5.74725718911172 & 0.352742810888278 \tabularnewline
43 & 7.2 & 6.86372076988155 & 0.336279230118454 \tabularnewline
44 & 7.3 & 7.51703289533019 & -0.217032895330191 \tabularnewline
45 & 6.9 & 6.95422374680801 & -0.0542237468080115 \tabularnewline
46 & 6.1 & 6.29130023248549 & -0.191300232485491 \tabularnewline
47 & 5.8 & 5.72240151259467 & 0.0775984874053338 \tabularnewline
48 & 6.2 & 6.25202410674521 & -0.0520241067452122 \tabularnewline
49 & 7.1 & 7.03475623807991 & 0.0652437619200868 \tabularnewline
50 & 7.7 & 7.66829743864084 & 0.0317025613591568 \tabularnewline
51 & 7.9 & 7.78400854260228 & 0.115991457397723 \tabularnewline
52 & 7.7 & 7.65639694461069 & 0.0436030553893108 \tabularnewline
53 & 7.4 & 7.26035266471632 & 0.139647335283677 \tabularnewline
54 & 7.5 & 7.1251309495086 & 0.374869050491399 \tabularnewline
55 & 8 & 8.14760817346778 & -0.147608173467783 \tabularnewline
56 & 8.1 & 8.07637885660228 & 0.0236211433977181 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60212&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]7.8[/C][C]7.8855605327411[/C][C]-0.0855605327411074[/C][/ROW]
[ROW][C]2[/C][C]7.8[/C][C]7.82435037201857[/C][C]-0.0243503720185753[/C][/ROW]
[ROW][C]3[/C][C]7.8[/C][C]7.65395020064679[/C][C]0.146049799353210[/C][/ROW]
[ROW][C]4[/C][C]7.5[/C][C]7.69579328753494[/C][C]-0.195793287534939[/C][/ROW]
[ROW][C]5[/C][C]7.5[/C][C]7.14924658430028[/C][C]0.350753415699724[/C][/ROW]
[ROW][C]6[/C][C]7.1[/C][C]7.33014650520879[/C][C]-0.230146505208786[/C][/ROW]
[ROW][C]7[/C][C]7.5[/C][C]7.33536627808577[/C][C]0.164633721914228[/C][/ROW]
[ROW][C]8[/C][C]7.5[/C][C]7.34940722418606[/C][C]0.150592775813939[/C][/ROW]
[ROW][C]9[/C][C]7.6[/C][C]7.44361208060846[/C][C]0.156387919391535[/C][/ROW]
[ROW][C]10[/C][C]7.7[/C][C]7.46366441896368[/C][C]0.236335581036319[/C][/ROW]
[ROW][C]11[/C][C]7.7[/C][C]7.62033992732844[/C][C]0.0796600726715576[/C][/ROW]
[ROW][C]12[/C][C]7.9[/C][C]7.78814111120937[/C][C]0.111858888790630[/C][/ROW]
[ROW][C]13[/C][C]8.1[/C][C]8.03664943572507[/C][C]0.0633505642749256[/C][/ROW]
[ROW][C]14[/C][C]8.2[/C][C]8.06484708307913[/C][C]0.135152916920870[/C][/ROW]
[ROW][C]15[/C][C]8.2[/C][C]8.10229745236659[/C][C]0.0977025476334083[/C][/ROW]
[ROW][C]16[/C][C]8.2[/C][C]8.12455242152795[/C][C]0.0754475784720476[/C][/ROW]
[ROW][C]17[/C][C]7.9[/C][C]8.01704453579727[/C][C]-0.117044535797272[/C][/ROW]
[ROW][C]18[/C][C]7.3[/C][C]7.56767009927225[/C][C]-0.267670099272247[/C][/ROW]
[ROW][C]19[/C][C]6.9[/C][C]7.4015202615413[/C][C]-0.501520261541295[/C][/ROW]
[ROW][C]20[/C][C]6.6[/C][C]6.54924085681624[/C][C]0.0507591431837624[/C][/ROW]
[ROW][C]21[/C][C]6.7[/C][C]6.67872912692389[/C][C]0.0212708730761152[/C][/ROW]
[ROW][C]22[/C][C]6.9[/C][C]7.02095221164052[/C][C]-0.120952211640516[/C][/ROW]
[ROW][C]23[/C][C]7[/C][C]7.06322121653935[/C][C]-0.063221216539349[/C][/ROW]
[ROW][C]24[/C][C]7.1[/C][C]7.17781771080019[/C][C]-0.0778177108001891[/C][/ROW]
[ROW][C]25[/C][C]7.2[/C][C]7.18023382780359[/C][C]0.0197661721964073[/C][/ROW]
[ROW][C]26[/C][C]7.1[/C][C]7.14833052059392[/C][C]-0.0483305205939237[/C][/ROW]
[ROW][C]27[/C][C]6.9[/C][C]7.03113503884222[/C][C]-0.131135038842221[/C][/ROW]
[ROW][C]28[/C][C]7[/C][C]6.8901566066387[/C][C]0.109843393361305[/C][/ROW]
[ROW][C]29[/C][C]6.8[/C][C]7.06216088345381[/C][C]-0.262160883453809[/C][/ROW]
[ROW][C]30[/C][C]6.4[/C][C]6.62979525689864[/C][C]-0.229795256898644[/C][/ROW]
[ROW][C]31[/C][C]6.7[/C][C]6.5517845170236[/C][C]0.148215482976396[/C][/ROW]
[ROW][C]32[/C][C]6.6[/C][C]6.60794016706523[/C][C]-0.00794016706522784[/C][/ROW]
[ROW][C]33[/C][C]6.4[/C][C]6.52343504565964[/C][C]-0.123435045659639[/C][/ROW]
[ROW][C]34[/C][C]6.3[/C][C]6.22408313691031[/C][C]0.0759168630896873[/C][/ROW]
[ROW][C]35[/C][C]6.2[/C][C]6.29403734353754[/C][C]-0.0940373435375424[/C][/ROW]
[ROW][C]36[/C][C]6.5[/C][C]6.48201707124523[/C][C]0.0179829287547712[/C][/ROW]
[ROW][C]37[/C][C]6.8[/C][C]6.86279996565031[/C][C]-0.0627999656503122[/C][/ROW]
[ROW][C]38[/C][C]6.8[/C][C]6.89417458566753[/C][C]-0.0941745856675275[/C][/ROW]
[ROW][C]39[/C][C]6.4[/C][C]6.62860876554212[/C][C]-0.228608765542120[/C][/ROW]
[ROW][C]40[/C][C]6.1[/C][C]6.13310073968772[/C][C]-0.0331007396877239[/C][/ROW]
[ROW][C]41[/C][C]5.8[/C][C]5.91119533173232[/C][C]-0.11119533173232[/C][/ROW]
[ROW][C]42[/C][C]6.1[/C][C]5.74725718911172[/C][C]0.352742810888278[/C][/ROW]
[ROW][C]43[/C][C]7.2[/C][C]6.86372076988155[/C][C]0.336279230118454[/C][/ROW]
[ROW][C]44[/C][C]7.3[/C][C]7.51703289533019[/C][C]-0.217032895330191[/C][/ROW]
[ROW][C]45[/C][C]6.9[/C][C]6.95422374680801[/C][C]-0.0542237468080115[/C][/ROW]
[ROW][C]46[/C][C]6.1[/C][C]6.29130023248549[/C][C]-0.191300232485491[/C][/ROW]
[ROW][C]47[/C][C]5.8[/C][C]5.72240151259467[/C][C]0.0775984874053338[/C][/ROW]
[ROW][C]48[/C][C]6.2[/C][C]6.25202410674521[/C][C]-0.0520241067452122[/C][/ROW]
[ROW][C]49[/C][C]7.1[/C][C]7.03475623807991[/C][C]0.0652437619200868[/C][/ROW]
[ROW][C]50[/C][C]7.7[/C][C]7.66829743864084[/C][C]0.0317025613591568[/C][/ROW]
[ROW][C]51[/C][C]7.9[/C][C]7.78400854260228[/C][C]0.115991457397723[/C][/ROW]
[ROW][C]52[/C][C]7.7[/C][C]7.65639694461069[/C][C]0.0436030553893108[/C][/ROW]
[ROW][C]53[/C][C]7.4[/C][C]7.26035266471632[/C][C]0.139647335283677[/C][/ROW]
[ROW][C]54[/C][C]7.5[/C][C]7.1251309495086[/C][C]0.374869050491399[/C][/ROW]
[ROW][C]55[/C][C]8[/C][C]8.14760817346778[/C][C]-0.147608173467783[/C][/ROW]
[ROW][C]56[/C][C]8.1[/C][C]8.07637885660228[/C][C]0.0236211433977181[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60212&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60212&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
17.87.8855605327411-0.0855605327411074
27.87.82435037201857-0.0243503720185753
37.87.653950200646790.146049799353210
47.57.69579328753494-0.195793287534939
57.57.149246584300280.350753415699724
67.17.33014650520879-0.230146505208786
77.57.335366278085770.164633721914228
87.57.349407224186060.150592775813939
97.67.443612080608460.156387919391535
107.77.463664418963680.236335581036319
117.77.620339927328440.0796600726715576
127.97.788141111209370.111858888790630
138.18.036649435725070.0633505642749256
148.28.064847083079130.135152916920870
158.28.102297452366590.0977025476334083
168.28.124552421527950.0754475784720476
177.98.01704453579727-0.117044535797272
187.37.56767009927225-0.267670099272247
196.97.4015202615413-0.501520261541295
206.66.549240856816240.0507591431837624
216.76.678729126923890.0212708730761152
226.97.02095221164052-0.120952211640516
2377.06322121653935-0.063221216539349
247.17.17781771080019-0.0778177108001891
257.27.180233827803590.0197661721964073
267.17.14833052059392-0.0483305205939237
276.97.03113503884222-0.131135038842221
2876.89015660663870.109843393361305
296.87.06216088345381-0.262160883453809
306.46.62979525689864-0.229795256898644
316.76.55178451702360.148215482976396
326.66.60794016706523-0.00794016706522784
336.46.52343504565964-0.123435045659639
346.36.224083136910310.0759168630896873
356.26.29403734353754-0.0940373435375424
366.56.482017071245230.0179829287547712
376.86.86279996565031-0.0627999656503122
386.86.89417458566753-0.0941745856675275
396.46.62860876554212-0.228608765542120
406.16.13310073968772-0.0331007396877239
415.85.91119533173232-0.11119533173232
426.15.747257189111720.352742810888278
437.26.863720769881550.336279230118454
447.37.51703289533019-0.217032895330191
456.96.95422374680801-0.0542237468080115
466.16.29130023248549-0.191300232485491
475.85.722401512594670.0775984874053338
486.26.25202410674521-0.0520241067452122
497.17.034756238079910.0652437619200868
507.77.668297438640840.0317025613591568
517.97.784008542602280.115991457397723
527.77.656396944610690.0436030553893108
537.47.260352664716320.139647335283677
547.57.12513094950860.374869050491399
5588.14760817346778-0.147608173467783
568.18.076378856602280.0236211433977181







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.325414754433120.650829508866240.67458524556688
220.8202538007217950.3594923985564090.179746199278205
230.7667928122321450.4664143755357090.233207187767855
240.7116263085495920.5767473829008160.288373691450408
250.5997372954159110.8005254091681770.400262704584089
260.4708849448981820.9417698897963640.529115055101818
270.3442817582538050.688563516507610.655718241746195
280.3603915916396260.7207831832792530.639608408360373
290.2662926302375920.5325852604751850.733707369762408
300.612849705300340.7743005893993210.387150294699660
310.9006140481238030.1987719037523950.0993859518761975
320.9621778423719530.07564431525609460.0378221576280473
330.9307514919490680.1384970161018640.069248508050932
340.9372333589965660.1255332820068680.0627666410034339
350.8664629614088530.2670740771822940.133537038591147

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.32541475443312 & 0.65082950886624 & 0.67458524556688 \tabularnewline
22 & 0.820253800721795 & 0.359492398556409 & 0.179746199278205 \tabularnewline
23 & 0.766792812232145 & 0.466414375535709 & 0.233207187767855 \tabularnewline
24 & 0.711626308549592 & 0.576747382900816 & 0.288373691450408 \tabularnewline
25 & 0.599737295415911 & 0.800525409168177 & 0.400262704584089 \tabularnewline
26 & 0.470884944898182 & 0.941769889796364 & 0.529115055101818 \tabularnewline
27 & 0.344281758253805 & 0.68856351650761 & 0.655718241746195 \tabularnewline
28 & 0.360391591639626 & 0.720783183279253 & 0.639608408360373 \tabularnewline
29 & 0.266292630237592 & 0.532585260475185 & 0.733707369762408 \tabularnewline
30 & 0.61284970530034 & 0.774300589399321 & 0.387150294699660 \tabularnewline
31 & 0.900614048123803 & 0.198771903752395 & 0.0993859518761975 \tabularnewline
32 & 0.962177842371953 & 0.0756443152560946 & 0.0378221576280473 \tabularnewline
33 & 0.930751491949068 & 0.138497016101864 & 0.069248508050932 \tabularnewline
34 & 0.937233358996566 & 0.125533282006868 & 0.0627666410034339 \tabularnewline
35 & 0.866462961408853 & 0.267074077182294 & 0.133537038591147 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60212&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]21[/C][C]0.32541475443312[/C][C]0.65082950886624[/C][C]0.67458524556688[/C][/ROW]
[ROW][C]22[/C][C]0.820253800721795[/C][C]0.359492398556409[/C][C]0.179746199278205[/C][/ROW]
[ROW][C]23[/C][C]0.766792812232145[/C][C]0.466414375535709[/C][C]0.233207187767855[/C][/ROW]
[ROW][C]24[/C][C]0.711626308549592[/C][C]0.576747382900816[/C][C]0.288373691450408[/C][/ROW]
[ROW][C]25[/C][C]0.599737295415911[/C][C]0.800525409168177[/C][C]0.400262704584089[/C][/ROW]
[ROW][C]26[/C][C]0.470884944898182[/C][C]0.941769889796364[/C][C]0.529115055101818[/C][/ROW]
[ROW][C]27[/C][C]0.344281758253805[/C][C]0.68856351650761[/C][C]0.655718241746195[/C][/ROW]
[ROW][C]28[/C][C]0.360391591639626[/C][C]0.720783183279253[/C][C]0.639608408360373[/C][/ROW]
[ROW][C]29[/C][C]0.266292630237592[/C][C]0.532585260475185[/C][C]0.733707369762408[/C][/ROW]
[ROW][C]30[/C][C]0.61284970530034[/C][C]0.774300589399321[/C][C]0.387150294699660[/C][/ROW]
[ROW][C]31[/C][C]0.900614048123803[/C][C]0.198771903752395[/C][C]0.0993859518761975[/C][/ROW]
[ROW][C]32[/C][C]0.962177842371953[/C][C]0.0756443152560946[/C][C]0.0378221576280473[/C][/ROW]
[ROW][C]33[/C][C]0.930751491949068[/C][C]0.138497016101864[/C][C]0.069248508050932[/C][/ROW]
[ROW][C]34[/C][C]0.937233358996566[/C][C]0.125533282006868[/C][C]0.0627666410034339[/C][/ROW]
[ROW][C]35[/C][C]0.866462961408853[/C][C]0.267074077182294[/C][C]0.133537038591147[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60212&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60212&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
210.325414754433120.650829508866240.67458524556688
220.8202538007217950.3594923985564090.179746199278205
230.7667928122321450.4664143755357090.233207187767855
240.7116263085495920.5767473829008160.288373691450408
250.5997372954159110.8005254091681770.400262704584089
260.4708849448981820.9417698897963640.529115055101818
270.3442817582538050.688563516507610.655718241746195
280.3603915916396260.7207831832792530.639608408360373
290.2662926302375920.5325852604751850.733707369762408
300.612849705300340.7743005893993210.387150294699660
310.9006140481238030.1987719037523950.0993859518761975
320.9621778423719530.07564431525609460.0378221576280473
330.9307514919490680.1384970161018640.069248508050932
340.9372333589965660.1255332820068680.0627666410034339
350.8664629614088530.2670740771822940.133537038591147







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



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