Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 11:24:48 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/20/t1258741593cqf1yhpckcdkug4.htm/, Retrieved Wed, 24 Apr 2024 21:23:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58393, Retrieved Wed, 24 Apr 2024 21:23:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact123
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [ws7] [2009-11-20 18:24:48] [b243db81ea3e1f02fb3382887fb0f701] [Current]
Feedback Forum

Post a new message
Dataseries X:
3016.70	2756.76
3052.40	2849.27
3099.60	2921.44
3103.30	2981.85
3119.80	3080.58
3093.70	3106.22
3164.90	3119.31
3311.50	3061.26
3410.60	3097.31
3392.60	3161.69
3338.20	3257.16
3285.10	3277.01
3294.80	3295.32
3611.20	3363.99
3611.30	3494.17
3521.00	3667.03
3519.30	3813.06
3438.30	3917.96
3534.90	3895.51
3705.80	3801.06
3807.60	3570.12
3663.00	3701.61
3604.50	3862.27
3563.80	3970.10
3511.40	4138.52
3546.50	4199.75
3525.40	4290.89
3529.90	4443.91
3591.60	4502.64
3668.30	4356.98
3728.80	4591.27
3853.60	4696.96
3897.70	4621.40
3640.70	4562.84
3495.50	4202.52
3495.10	4296.49
3268.00	4435.23
3479.10	4105.18
3417.80	4116.68
3521.30	3844.49
3487.10	3720.98
3529.90	3674.40
3544.30	3857.62
3710.80	3801.06
3641.90	3504.37
3447.10	3032.60
3386.80	3047.03
3438.50	2962.34
3364.30	2197.82
3462.70	2014.45
3291.90	1862.83
3550.00	1905.41
3611.00	1810.99
3708.60	1670.07
3771.10	1864.44
4042.70	2052.02
3988.40	2029.60
3851.20	2070.83
3876.70	2293.41




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
R Framework error message & 
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=58393&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[ROW][C]R Framework error message[/C][C]
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=58393&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.







Multiple Linear Regression - Estimated Regression Equation
Zichtrekeningen[t] = + 3401.75544822108 + 0.0120969897239121`Bel20 `[t] -151.418552454816M1[t] -11.3744834589064M2[t] -52.9255465216977M3[t] + 2.59538220831397M4[t] + 23.0483785201583M5[t] + 45.5385969317301M6[t] + 105.120861282040M7[t] + 280.997123781110M8[t] + 306.783504033436M9[t] + 157.172944092784M10[t] + 98.271599657758M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Zichtrekeningen[t] =  +  3401.75544822108 +  0.0120969897239121`Bel20
`[t] -151.418552454816M1[t] -11.3744834589064M2[t] -52.9255465216977M3[t] +  2.59538220831397M4[t] +  23.0483785201583M5[t] +  45.5385969317301M6[t] +  105.120861282040M7[t] +  280.997123781110M8[t] +  306.783504033436M9[t] +  157.172944092784M10[t] +  98.271599657758M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58393&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Zichtrekeningen[t] =  +  3401.75544822108 +  0.0120969897239121`Bel20
`[t] -151.418552454816M1[t] -11.3744834589064M2[t] -52.9255465216977M3[t] +  2.59538220831397M4[t] +  23.0483785201583M5[t] +  45.5385969317301M6[t] +  105.120861282040M7[t] +  280.997123781110M8[t] +  306.783504033436M9[t] +  157.172944092784M10[t] +  98.271599657758M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58393&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58393&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
Zichtrekeningen[t] = + 3401.75544822108 + 0.0120969897239121`Bel20 `[t] -151.418552454816M1[t] -11.3744834589064M2[t] -52.9255465216977M3[t] + 2.59538220831397M4[t] + 23.0483785201583M5[t] + 45.5385969317301M6[t] + 105.120861282040M7[t] + 280.997123781110M8[t] + 306.783504033436M9[t] + 157.172944092784M10[t] + 98.271599657758M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3401.75544822108161.66158821.042400
`Bel20 `0.01209698972391210.0333710.36250.7186390.35932
M1-151.418552454816144.069161-1.0510.2987430.149371
M2-11.3744834589064144.199956-0.07890.937470.468735
M3-52.9255465216977144.127776-0.36720.7151440.357572
M42.59538220831397144.0615120.0180.9857040.492852
M523.0483785201583144.0285190.160.8735610.43678
M645.5385969317301144.1103060.3160.7534330.376717
M7105.120861282040143.9042620.73050.4687940.234397
M8280.997123781110143.8843931.95290.0569270.028463
M9306.783504033436144.0695052.12940.0386040.019302
M10157.172944092784144.2014741.090.281410.140705
M1198.271599657758144.1384210.68180.4987930.249396

\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) & 3401.75544822108 & 161.661588 & 21.0424 & 0 & 0 \tabularnewline
`Bel20
` & 0.0120969897239121 & 0.033371 & 0.3625 & 0.718639 & 0.35932 \tabularnewline
M1 & -151.418552454816 & 144.069161 & -1.051 & 0.298743 & 0.149371 \tabularnewline
M2 & -11.3744834589064 & 144.199956 & -0.0789 & 0.93747 & 0.468735 \tabularnewline
M3 & -52.9255465216977 & 144.127776 & -0.3672 & 0.715144 & 0.357572 \tabularnewline
M4 & 2.59538220831397 & 144.061512 & 0.018 & 0.985704 & 0.492852 \tabularnewline
M5 & 23.0483785201583 & 144.028519 & 0.16 & 0.873561 & 0.43678 \tabularnewline
M6 & 45.5385969317301 & 144.110306 & 0.316 & 0.753433 & 0.376717 \tabularnewline
M7 & 105.120861282040 & 143.904262 & 0.7305 & 0.468794 & 0.234397 \tabularnewline
M8 & 280.997123781110 & 143.884393 & 1.9529 & 0.056927 & 0.028463 \tabularnewline
M9 & 306.783504033436 & 144.069505 & 2.1294 & 0.038604 & 0.019302 \tabularnewline
M10 & 157.172944092784 & 144.201474 & 1.09 & 0.28141 & 0.140705 \tabularnewline
M11 & 98.271599657758 & 144.138421 & 0.6818 & 0.498793 & 0.249396 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58393&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]3401.75544822108[/C][C]161.661588[/C][C]21.0424[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]`Bel20
`[/C][C]0.0120969897239121[/C][C]0.033371[/C][C]0.3625[/C][C]0.718639[/C][C]0.35932[/C][/ROW]
[ROW][C]M1[/C][C]-151.418552454816[/C][C]144.069161[/C][C]-1.051[/C][C]0.298743[/C][C]0.149371[/C][/ROW]
[ROW][C]M2[/C][C]-11.3744834589064[/C][C]144.199956[/C][C]-0.0789[/C][C]0.93747[/C][C]0.468735[/C][/ROW]
[ROW][C]M3[/C][C]-52.9255465216977[/C][C]144.127776[/C][C]-0.3672[/C][C]0.715144[/C][C]0.357572[/C][/ROW]
[ROW][C]M4[/C][C]2.59538220831397[/C][C]144.061512[/C][C]0.018[/C][C]0.985704[/C][C]0.492852[/C][/ROW]
[ROW][C]M5[/C][C]23.0483785201583[/C][C]144.028519[/C][C]0.16[/C][C]0.873561[/C][C]0.43678[/C][/ROW]
[ROW][C]M6[/C][C]45.5385969317301[/C][C]144.110306[/C][C]0.316[/C][C]0.753433[/C][C]0.376717[/C][/ROW]
[ROW][C]M7[/C][C]105.120861282040[/C][C]143.904262[/C][C]0.7305[/C][C]0.468794[/C][C]0.234397[/C][/ROW]
[ROW][C]M8[/C][C]280.997123781110[/C][C]143.884393[/C][C]1.9529[/C][C]0.056927[/C][C]0.028463[/C][/ROW]
[ROW][C]M9[/C][C]306.783504033436[/C][C]144.069505[/C][C]2.1294[/C][C]0.038604[/C][C]0.019302[/C][/ROW]
[ROW][C]M10[/C][C]157.172944092784[/C][C]144.201474[/C][C]1.09[/C][C]0.28141[/C][C]0.140705[/C][/ROW]
[ROW][C]M11[/C][C]98.271599657758[/C][C]144.138421[/C][C]0.6818[/C][C]0.498793[/C][C]0.249396[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58393&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58393&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)3401.75544822108161.66158821.042400
`Bel20 `0.01209698972391210.0333710.36250.7186390.35932
M1-151.418552454816144.069161-1.0510.2987430.149371
M2-11.3744834589064144.199956-0.07890.937470.468735
M3-52.9255465216977144.127776-0.36720.7151440.357572
M42.59538220831397144.0615120.0180.9857040.492852
M523.0483785201583144.0285190.160.8735610.43678
M645.5385969317301144.1103060.3160.7534330.376717
M7105.120861282040143.9042620.73050.4687940.234397
M8280.997123781110143.8843931.95290.0569270.028463
M9306.783504033436144.0695052.12940.0386040.019302
M10157.172944092784144.2014741.090.281410.140705
M1198.271599657758144.1384210.68180.4987930.249396







Multiple Linear Regression - Regression Statistics
Multiple R0.560631926842463
R-squared0.314308157395093
Adjusted R-squared0.135432024541639
F-TEST (value)1.75712741762252
F-TEST (DF numerator)12
F-TEST (DF denominator)46
p-value0.0851778774134877
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation214.370510647222
Sum Squared Residuals2113916.92841693

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.560631926842463 \tabularnewline
R-squared & 0.314308157395093 \tabularnewline
Adjusted R-squared & 0.135432024541639 \tabularnewline
F-TEST (value) & 1.75712741762252 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.0851778774134877 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 214.370510647222 \tabularnewline
Sum Squared Residuals & 2113916.92841693 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58393&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.560631926842463[/C][/ROW]
[ROW][C]R-squared[/C][C]0.314308157395093[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.135432024541639[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.75712741762252[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0.0851778774134877[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]214.370510647222[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2113916.92841693[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58393&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58393&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.560631926842463
R-squared0.314308157395093
Adjusted R-squared0.135432024541639
F-TEST (value)1.75712741762252
F-TEST (DF numerator)12
F-TEST (DF denominator)46
p-value0.0851778774134877
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation214.370510647222
Sum Squared Residuals2113916.92841693







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
13016.73283.68539315755-266.985393157546
23052.43424.84855467282-372.448554672823
33099.63384.17053135841-284.570531358407
43103.33440.42223923764-337.122239237640
53119.83462.06957134493-342.269571344926
63093.73484.86995657302-391.169956573019
73164.93544.61057051881-379.710570518815
83311.53719.78460276441-408.284602764412
93410.63746.00707949628-335.407079496285
103392.63597.17532375406-204.575323754059
113338.23539.42887892797-201.228878927975
123285.13441.39740451624-156.297404516236
133294.83290.200347943274.59965205673503
143611.23431.07511722352180.124882776484
153611.33391.09884028298220.201159717017
1635213448.7108546566772.2891453433299
173519.33470.930374377948.3696256221029
183438.33494.68956701151-56.3895670115073
193534.93554.00025394252-19.1002539425153
203705.83728.73395576216-22.9339557621616
213807.63751.7266572076555.8733427923526
2236633603.7067304457959.293269554207
233604.53546.7488883798157.7511116201892
243563.83449.78170712398114.018292876018
253511.43300.40052967847210.999470321532
263546.53441.18529735517105.314702644828
273525.43400.73675393582124.663246064182
283529.93458.1087640333871.7912359666171
293591.63479.27221655171112.327783448287
303668.33500.0003874401168.299612559901
313728.83562.41685551282166.383144487176
323853.63739.57164885581114.028351144185
333897.73764.4439805646133.256019435398
343640.73614.1250209057226.5749790942819
353495.53550.86488913337-55.364889133372
363495.13453.7300435999741.36995640003
3732683303.98982749945-35.9898274994498
383479.13440.0412850369839.058714963018
393417.83398.6293373560219.1706626439845
403521.33450.8575864530870.4424135469246
413487.13469.8164835641217.2835164358804
423529.93491.7432241943538.1567758056487
433544.33553.54189900188-9.2418990018762
443710.83728.73395576216-17.9339557621616
453641.93750.9312801333-109.0312801333
463447.13595.6137233506-148.513723350599
473386.83536.88693847729-150.086938477288
483438.53437.590844759810.909155240187502
493364.33276.9239017212787.3760982787286
503462.73414.7497457115147.9502542884928
513291.93371.36453706678-79.4645370667762
5235503427.40055561923122.599444380768
5336113446.71135416134164.288645838655
543708.63467.49686478102241.103135218977
553771.13529.43042102397241.669578976031
564042.73707.57583685545335.124163144550
573988.43733.09100259817255.308997401834
583851.23583.97920154383267.220798456168
593876.73527.77040508155348.929594918446

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 3016.7 & 3283.68539315755 & -266.985393157546 \tabularnewline
2 & 3052.4 & 3424.84855467282 & -372.448554672823 \tabularnewline
3 & 3099.6 & 3384.17053135841 & -284.570531358407 \tabularnewline
4 & 3103.3 & 3440.42223923764 & -337.122239237640 \tabularnewline
5 & 3119.8 & 3462.06957134493 & -342.269571344926 \tabularnewline
6 & 3093.7 & 3484.86995657302 & -391.169956573019 \tabularnewline
7 & 3164.9 & 3544.61057051881 & -379.710570518815 \tabularnewline
8 & 3311.5 & 3719.78460276441 & -408.284602764412 \tabularnewline
9 & 3410.6 & 3746.00707949628 & -335.407079496285 \tabularnewline
10 & 3392.6 & 3597.17532375406 & -204.575323754059 \tabularnewline
11 & 3338.2 & 3539.42887892797 & -201.228878927975 \tabularnewline
12 & 3285.1 & 3441.39740451624 & -156.297404516236 \tabularnewline
13 & 3294.8 & 3290.20034794327 & 4.59965205673503 \tabularnewline
14 & 3611.2 & 3431.07511722352 & 180.124882776484 \tabularnewline
15 & 3611.3 & 3391.09884028298 & 220.201159717017 \tabularnewline
16 & 3521 & 3448.71085465667 & 72.2891453433299 \tabularnewline
17 & 3519.3 & 3470.9303743779 & 48.3696256221029 \tabularnewline
18 & 3438.3 & 3494.68956701151 & -56.3895670115073 \tabularnewline
19 & 3534.9 & 3554.00025394252 & -19.1002539425153 \tabularnewline
20 & 3705.8 & 3728.73395576216 & -22.9339557621616 \tabularnewline
21 & 3807.6 & 3751.72665720765 & 55.8733427923526 \tabularnewline
22 & 3663 & 3603.70673044579 & 59.293269554207 \tabularnewline
23 & 3604.5 & 3546.74888837981 & 57.7511116201892 \tabularnewline
24 & 3563.8 & 3449.78170712398 & 114.018292876018 \tabularnewline
25 & 3511.4 & 3300.40052967847 & 210.999470321532 \tabularnewline
26 & 3546.5 & 3441.18529735517 & 105.314702644828 \tabularnewline
27 & 3525.4 & 3400.73675393582 & 124.663246064182 \tabularnewline
28 & 3529.9 & 3458.10876403338 & 71.7912359666171 \tabularnewline
29 & 3591.6 & 3479.27221655171 & 112.327783448287 \tabularnewline
30 & 3668.3 & 3500.0003874401 & 168.299612559901 \tabularnewline
31 & 3728.8 & 3562.41685551282 & 166.383144487176 \tabularnewline
32 & 3853.6 & 3739.57164885581 & 114.028351144185 \tabularnewline
33 & 3897.7 & 3764.4439805646 & 133.256019435398 \tabularnewline
34 & 3640.7 & 3614.12502090572 & 26.5749790942819 \tabularnewline
35 & 3495.5 & 3550.86488913337 & -55.364889133372 \tabularnewline
36 & 3495.1 & 3453.73004359997 & 41.36995640003 \tabularnewline
37 & 3268 & 3303.98982749945 & -35.9898274994498 \tabularnewline
38 & 3479.1 & 3440.04128503698 & 39.058714963018 \tabularnewline
39 & 3417.8 & 3398.62933735602 & 19.1706626439845 \tabularnewline
40 & 3521.3 & 3450.85758645308 & 70.4424135469246 \tabularnewline
41 & 3487.1 & 3469.81648356412 & 17.2835164358804 \tabularnewline
42 & 3529.9 & 3491.74322419435 & 38.1567758056487 \tabularnewline
43 & 3544.3 & 3553.54189900188 & -9.2418990018762 \tabularnewline
44 & 3710.8 & 3728.73395576216 & -17.9339557621616 \tabularnewline
45 & 3641.9 & 3750.9312801333 & -109.0312801333 \tabularnewline
46 & 3447.1 & 3595.6137233506 & -148.513723350599 \tabularnewline
47 & 3386.8 & 3536.88693847729 & -150.086938477288 \tabularnewline
48 & 3438.5 & 3437.59084475981 & 0.909155240187502 \tabularnewline
49 & 3364.3 & 3276.92390172127 & 87.3760982787286 \tabularnewline
50 & 3462.7 & 3414.74974571151 & 47.9502542884928 \tabularnewline
51 & 3291.9 & 3371.36453706678 & -79.4645370667762 \tabularnewline
52 & 3550 & 3427.40055561923 & 122.599444380768 \tabularnewline
53 & 3611 & 3446.71135416134 & 164.288645838655 \tabularnewline
54 & 3708.6 & 3467.49686478102 & 241.103135218977 \tabularnewline
55 & 3771.1 & 3529.43042102397 & 241.669578976031 \tabularnewline
56 & 4042.7 & 3707.57583685545 & 335.124163144550 \tabularnewline
57 & 3988.4 & 3733.09100259817 & 255.308997401834 \tabularnewline
58 & 3851.2 & 3583.97920154383 & 267.220798456168 \tabularnewline
59 & 3876.7 & 3527.77040508155 & 348.929594918446 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58393&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]3016.7[/C][C]3283.68539315755[/C][C]-266.985393157546[/C][/ROW]
[ROW][C]2[/C][C]3052.4[/C][C]3424.84855467282[/C][C]-372.448554672823[/C][/ROW]
[ROW][C]3[/C][C]3099.6[/C][C]3384.17053135841[/C][C]-284.570531358407[/C][/ROW]
[ROW][C]4[/C][C]3103.3[/C][C]3440.42223923764[/C][C]-337.122239237640[/C][/ROW]
[ROW][C]5[/C][C]3119.8[/C][C]3462.06957134493[/C][C]-342.269571344926[/C][/ROW]
[ROW][C]6[/C][C]3093.7[/C][C]3484.86995657302[/C][C]-391.169956573019[/C][/ROW]
[ROW][C]7[/C][C]3164.9[/C][C]3544.61057051881[/C][C]-379.710570518815[/C][/ROW]
[ROW][C]8[/C][C]3311.5[/C][C]3719.78460276441[/C][C]-408.284602764412[/C][/ROW]
[ROW][C]9[/C][C]3410.6[/C][C]3746.00707949628[/C][C]-335.407079496285[/C][/ROW]
[ROW][C]10[/C][C]3392.6[/C][C]3597.17532375406[/C][C]-204.575323754059[/C][/ROW]
[ROW][C]11[/C][C]3338.2[/C][C]3539.42887892797[/C][C]-201.228878927975[/C][/ROW]
[ROW][C]12[/C][C]3285.1[/C][C]3441.39740451624[/C][C]-156.297404516236[/C][/ROW]
[ROW][C]13[/C][C]3294.8[/C][C]3290.20034794327[/C][C]4.59965205673503[/C][/ROW]
[ROW][C]14[/C][C]3611.2[/C][C]3431.07511722352[/C][C]180.124882776484[/C][/ROW]
[ROW][C]15[/C][C]3611.3[/C][C]3391.09884028298[/C][C]220.201159717017[/C][/ROW]
[ROW][C]16[/C][C]3521[/C][C]3448.71085465667[/C][C]72.2891453433299[/C][/ROW]
[ROW][C]17[/C][C]3519.3[/C][C]3470.9303743779[/C][C]48.3696256221029[/C][/ROW]
[ROW][C]18[/C][C]3438.3[/C][C]3494.68956701151[/C][C]-56.3895670115073[/C][/ROW]
[ROW][C]19[/C][C]3534.9[/C][C]3554.00025394252[/C][C]-19.1002539425153[/C][/ROW]
[ROW][C]20[/C][C]3705.8[/C][C]3728.73395576216[/C][C]-22.9339557621616[/C][/ROW]
[ROW][C]21[/C][C]3807.6[/C][C]3751.72665720765[/C][C]55.8733427923526[/C][/ROW]
[ROW][C]22[/C][C]3663[/C][C]3603.70673044579[/C][C]59.293269554207[/C][/ROW]
[ROW][C]23[/C][C]3604.5[/C][C]3546.74888837981[/C][C]57.7511116201892[/C][/ROW]
[ROW][C]24[/C][C]3563.8[/C][C]3449.78170712398[/C][C]114.018292876018[/C][/ROW]
[ROW][C]25[/C][C]3511.4[/C][C]3300.40052967847[/C][C]210.999470321532[/C][/ROW]
[ROW][C]26[/C][C]3546.5[/C][C]3441.18529735517[/C][C]105.314702644828[/C][/ROW]
[ROW][C]27[/C][C]3525.4[/C][C]3400.73675393582[/C][C]124.663246064182[/C][/ROW]
[ROW][C]28[/C][C]3529.9[/C][C]3458.10876403338[/C][C]71.7912359666171[/C][/ROW]
[ROW][C]29[/C][C]3591.6[/C][C]3479.27221655171[/C][C]112.327783448287[/C][/ROW]
[ROW][C]30[/C][C]3668.3[/C][C]3500.0003874401[/C][C]168.299612559901[/C][/ROW]
[ROW][C]31[/C][C]3728.8[/C][C]3562.41685551282[/C][C]166.383144487176[/C][/ROW]
[ROW][C]32[/C][C]3853.6[/C][C]3739.57164885581[/C][C]114.028351144185[/C][/ROW]
[ROW][C]33[/C][C]3897.7[/C][C]3764.4439805646[/C][C]133.256019435398[/C][/ROW]
[ROW][C]34[/C][C]3640.7[/C][C]3614.12502090572[/C][C]26.5749790942819[/C][/ROW]
[ROW][C]35[/C][C]3495.5[/C][C]3550.86488913337[/C][C]-55.364889133372[/C][/ROW]
[ROW][C]36[/C][C]3495.1[/C][C]3453.73004359997[/C][C]41.36995640003[/C][/ROW]
[ROW][C]37[/C][C]3268[/C][C]3303.98982749945[/C][C]-35.9898274994498[/C][/ROW]
[ROW][C]38[/C][C]3479.1[/C][C]3440.04128503698[/C][C]39.058714963018[/C][/ROW]
[ROW][C]39[/C][C]3417.8[/C][C]3398.62933735602[/C][C]19.1706626439845[/C][/ROW]
[ROW][C]40[/C][C]3521.3[/C][C]3450.85758645308[/C][C]70.4424135469246[/C][/ROW]
[ROW][C]41[/C][C]3487.1[/C][C]3469.81648356412[/C][C]17.2835164358804[/C][/ROW]
[ROW][C]42[/C][C]3529.9[/C][C]3491.74322419435[/C][C]38.1567758056487[/C][/ROW]
[ROW][C]43[/C][C]3544.3[/C][C]3553.54189900188[/C][C]-9.2418990018762[/C][/ROW]
[ROW][C]44[/C][C]3710.8[/C][C]3728.73395576216[/C][C]-17.9339557621616[/C][/ROW]
[ROW][C]45[/C][C]3641.9[/C][C]3750.9312801333[/C][C]-109.0312801333[/C][/ROW]
[ROW][C]46[/C][C]3447.1[/C][C]3595.6137233506[/C][C]-148.513723350599[/C][/ROW]
[ROW][C]47[/C][C]3386.8[/C][C]3536.88693847729[/C][C]-150.086938477288[/C][/ROW]
[ROW][C]48[/C][C]3438.5[/C][C]3437.59084475981[/C][C]0.909155240187502[/C][/ROW]
[ROW][C]49[/C][C]3364.3[/C][C]3276.92390172127[/C][C]87.3760982787286[/C][/ROW]
[ROW][C]50[/C][C]3462.7[/C][C]3414.74974571151[/C][C]47.9502542884928[/C][/ROW]
[ROW][C]51[/C][C]3291.9[/C][C]3371.36453706678[/C][C]-79.4645370667762[/C][/ROW]
[ROW][C]52[/C][C]3550[/C][C]3427.40055561923[/C][C]122.599444380768[/C][/ROW]
[ROW][C]53[/C][C]3611[/C][C]3446.71135416134[/C][C]164.288645838655[/C][/ROW]
[ROW][C]54[/C][C]3708.6[/C][C]3467.49686478102[/C][C]241.103135218977[/C][/ROW]
[ROW][C]55[/C][C]3771.1[/C][C]3529.43042102397[/C][C]241.669578976031[/C][/ROW]
[ROW][C]56[/C][C]4042.7[/C][C]3707.57583685545[/C][C]335.124163144550[/C][/ROW]
[ROW][C]57[/C][C]3988.4[/C][C]3733.09100259817[/C][C]255.308997401834[/C][/ROW]
[ROW][C]58[/C][C]3851.2[/C][C]3583.97920154383[/C][C]267.220798456168[/C][/ROW]
[ROW][C]59[/C][C]3876.7[/C][C]3527.77040508155[/C][C]348.929594918446[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58393&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58393&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
13016.73283.68539315755-266.985393157546
23052.43424.84855467282-372.448554672823
33099.63384.17053135841-284.570531358407
43103.33440.42223923764-337.122239237640
53119.83462.06957134493-342.269571344926
63093.73484.86995657302-391.169956573019
73164.93544.61057051881-379.710570518815
83311.53719.78460276441-408.284602764412
93410.63746.00707949628-335.407079496285
103392.63597.17532375406-204.575323754059
113338.23539.42887892797-201.228878927975
123285.13441.39740451624-156.297404516236
133294.83290.200347943274.59965205673503
143611.23431.07511722352180.124882776484
153611.33391.09884028298220.201159717017
1635213448.7108546566772.2891453433299
173519.33470.930374377948.3696256221029
183438.33494.68956701151-56.3895670115073
193534.93554.00025394252-19.1002539425153
203705.83728.73395576216-22.9339557621616
213807.63751.7266572076555.8733427923526
2236633603.7067304457959.293269554207
233604.53546.7488883798157.7511116201892
243563.83449.78170712398114.018292876018
253511.43300.40052967847210.999470321532
263546.53441.18529735517105.314702644828
273525.43400.73675393582124.663246064182
283529.93458.1087640333871.7912359666171
293591.63479.27221655171112.327783448287
303668.33500.0003874401168.299612559901
313728.83562.41685551282166.383144487176
323853.63739.57164885581114.028351144185
333897.73764.4439805646133.256019435398
343640.73614.1250209057226.5749790942819
353495.53550.86488913337-55.364889133372
363495.13453.7300435999741.36995640003
3732683303.98982749945-35.9898274994498
383479.13440.0412850369839.058714963018
393417.83398.6293373560219.1706626439845
403521.33450.8575864530870.4424135469246
413487.13469.8164835641217.2835164358804
423529.93491.7432241943538.1567758056487
433544.33553.54189900188-9.2418990018762
443710.83728.73395576216-17.9339557621616
453641.93750.9312801333-109.0312801333
463447.13595.6137233506-148.513723350599
473386.83536.88693847729-150.086938477288
483438.53437.590844759810.909155240187502
493364.33276.9239017212787.3760982787286
503462.73414.7497457115147.9502542884928
513291.93371.36453706678-79.4645370667762
5235503427.40055561923122.599444380768
5336113446.71135416134164.288645838655
543708.63467.49686478102241.103135218977
553771.13529.43042102397241.669578976031
564042.73707.57583685545335.124163144550
573988.43733.09100259817255.308997401834
583851.23583.97920154383267.220798456168
593876.73527.77040508155348.929594918446







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.3949141894478860.7898283788957720.605085810552114
170.3156945712378680.6313891424757370.684305428762132
180.3543488532307890.7086977064615780.645651146769211
190.2804024838360560.5608049676721110.719597516163945
200.1984446911772140.3968893823544280.801555308822786
210.1536262732959070.3072525465918140.846373726704093
220.09643828563085190.1928765712617040.903561714369148
230.06478879100427040.1295775820085410.93521120899573
240.05082852865499090.1016570573099820.94917147134501
250.1259988886522150.251997777304430.874001111347785
260.2695039094246710.5390078188493430.730496090575329
270.4197761899075380.8395523798150760.580223810092462
280.4168049059878430.8336098119756870.583195094012157
290.3611247701092450.722249540218490.638875229890755
300.3071712012992310.6143424025984620.692828798700769
310.2558191555546620.5116383111093240.744180844445338
320.2025005806484010.4050011612968020.797499419351599
330.2082528981094410.4165057962188810.79174710189056
340.2361537426051950.472307485210390.763846257394805
350.1947003953864270.3894007907728540.805299604613573
360.1649319742694640.3298639485389280.835068025730536
370.1881787461187050.376357492237410.811821253881295
380.1639200270019460.3278400540038930.836079972998054
390.2848120938838670.5696241877677340.715187906116133
400.3033857416920220.6067714833840450.696614258307978
410.2779194788346130.5558389576692260.722080521165387
420.2798303821502970.5596607643005950.720169617849703
430.3244631606601450.648926321320290.675536839339855

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.394914189447886 & 0.789828378895772 & 0.605085810552114 \tabularnewline
17 & 0.315694571237868 & 0.631389142475737 & 0.684305428762132 \tabularnewline
18 & 0.354348853230789 & 0.708697706461578 & 0.645651146769211 \tabularnewline
19 & 0.280402483836056 & 0.560804967672111 & 0.719597516163945 \tabularnewline
20 & 0.198444691177214 & 0.396889382354428 & 0.801555308822786 \tabularnewline
21 & 0.153626273295907 & 0.307252546591814 & 0.846373726704093 \tabularnewline
22 & 0.0964382856308519 & 0.192876571261704 & 0.903561714369148 \tabularnewline
23 & 0.0647887910042704 & 0.129577582008541 & 0.93521120899573 \tabularnewline
24 & 0.0508285286549909 & 0.101657057309982 & 0.94917147134501 \tabularnewline
25 & 0.125998888652215 & 0.25199777730443 & 0.874001111347785 \tabularnewline
26 & 0.269503909424671 & 0.539007818849343 & 0.730496090575329 \tabularnewline
27 & 0.419776189907538 & 0.839552379815076 & 0.580223810092462 \tabularnewline
28 & 0.416804905987843 & 0.833609811975687 & 0.583195094012157 \tabularnewline
29 & 0.361124770109245 & 0.72224954021849 & 0.638875229890755 \tabularnewline
30 & 0.307171201299231 & 0.614342402598462 & 0.692828798700769 \tabularnewline
31 & 0.255819155554662 & 0.511638311109324 & 0.744180844445338 \tabularnewline
32 & 0.202500580648401 & 0.405001161296802 & 0.797499419351599 \tabularnewline
33 & 0.208252898109441 & 0.416505796218881 & 0.79174710189056 \tabularnewline
34 & 0.236153742605195 & 0.47230748521039 & 0.763846257394805 \tabularnewline
35 & 0.194700395386427 & 0.389400790772854 & 0.805299604613573 \tabularnewline
36 & 0.164931974269464 & 0.329863948538928 & 0.835068025730536 \tabularnewline
37 & 0.188178746118705 & 0.37635749223741 & 0.811821253881295 \tabularnewline
38 & 0.163920027001946 & 0.327840054003893 & 0.836079972998054 \tabularnewline
39 & 0.284812093883867 & 0.569624187767734 & 0.715187906116133 \tabularnewline
40 & 0.303385741692022 & 0.606771483384045 & 0.696614258307978 \tabularnewline
41 & 0.277919478834613 & 0.555838957669226 & 0.722080521165387 \tabularnewline
42 & 0.279830382150297 & 0.559660764300595 & 0.720169617849703 \tabularnewline
43 & 0.324463160660145 & 0.64892632132029 & 0.675536839339855 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58393&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.394914189447886[/C][C]0.789828378895772[/C][C]0.605085810552114[/C][/ROW]
[ROW][C]17[/C][C]0.315694571237868[/C][C]0.631389142475737[/C][C]0.684305428762132[/C][/ROW]
[ROW][C]18[/C][C]0.354348853230789[/C][C]0.708697706461578[/C][C]0.645651146769211[/C][/ROW]
[ROW][C]19[/C][C]0.280402483836056[/C][C]0.560804967672111[/C][C]0.719597516163945[/C][/ROW]
[ROW][C]20[/C][C]0.198444691177214[/C][C]0.396889382354428[/C][C]0.801555308822786[/C][/ROW]
[ROW][C]21[/C][C]0.153626273295907[/C][C]0.307252546591814[/C][C]0.846373726704093[/C][/ROW]
[ROW][C]22[/C][C]0.0964382856308519[/C][C]0.192876571261704[/C][C]0.903561714369148[/C][/ROW]
[ROW][C]23[/C][C]0.0647887910042704[/C][C]0.129577582008541[/C][C]0.93521120899573[/C][/ROW]
[ROW][C]24[/C][C]0.0508285286549909[/C][C]0.101657057309982[/C][C]0.94917147134501[/C][/ROW]
[ROW][C]25[/C][C]0.125998888652215[/C][C]0.25199777730443[/C][C]0.874001111347785[/C][/ROW]
[ROW][C]26[/C][C]0.269503909424671[/C][C]0.539007818849343[/C][C]0.730496090575329[/C][/ROW]
[ROW][C]27[/C][C]0.419776189907538[/C][C]0.839552379815076[/C][C]0.580223810092462[/C][/ROW]
[ROW][C]28[/C][C]0.416804905987843[/C][C]0.833609811975687[/C][C]0.583195094012157[/C][/ROW]
[ROW][C]29[/C][C]0.361124770109245[/C][C]0.72224954021849[/C][C]0.638875229890755[/C][/ROW]
[ROW][C]30[/C][C]0.307171201299231[/C][C]0.614342402598462[/C][C]0.692828798700769[/C][/ROW]
[ROW][C]31[/C][C]0.255819155554662[/C][C]0.511638311109324[/C][C]0.744180844445338[/C][/ROW]
[ROW][C]32[/C][C]0.202500580648401[/C][C]0.405001161296802[/C][C]0.797499419351599[/C][/ROW]
[ROW][C]33[/C][C]0.208252898109441[/C][C]0.416505796218881[/C][C]0.79174710189056[/C][/ROW]
[ROW][C]34[/C][C]0.236153742605195[/C][C]0.47230748521039[/C][C]0.763846257394805[/C][/ROW]
[ROW][C]35[/C][C]0.194700395386427[/C][C]0.389400790772854[/C][C]0.805299604613573[/C][/ROW]
[ROW][C]36[/C][C]0.164931974269464[/C][C]0.329863948538928[/C][C]0.835068025730536[/C][/ROW]
[ROW][C]37[/C][C]0.188178746118705[/C][C]0.37635749223741[/C][C]0.811821253881295[/C][/ROW]
[ROW][C]38[/C][C]0.163920027001946[/C][C]0.327840054003893[/C][C]0.836079972998054[/C][/ROW]
[ROW][C]39[/C][C]0.284812093883867[/C][C]0.569624187767734[/C][C]0.715187906116133[/C][/ROW]
[ROW][C]40[/C][C]0.303385741692022[/C][C]0.606771483384045[/C][C]0.696614258307978[/C][/ROW]
[ROW][C]41[/C][C]0.277919478834613[/C][C]0.555838957669226[/C][C]0.722080521165387[/C][/ROW]
[ROW][C]42[/C][C]0.279830382150297[/C][C]0.559660764300595[/C][C]0.720169617849703[/C][/ROW]
[ROW][C]43[/C][C]0.324463160660145[/C][C]0.64892632132029[/C][C]0.675536839339855[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58393&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.3949141894478860.7898283788957720.605085810552114
170.3156945712378680.6313891424757370.684305428762132
180.3543488532307890.7086977064615780.645651146769211
190.2804024838360560.5608049676721110.719597516163945
200.1984446911772140.3968893823544280.801555308822786
210.1536262732959070.3072525465918140.846373726704093
220.09643828563085190.1928765712617040.903561714369148
230.06478879100427040.1295775820085410.93521120899573
240.05082852865499090.1016570573099820.94917147134501
250.1259988886522150.251997777304430.874001111347785
260.2695039094246710.5390078188493430.730496090575329
270.4197761899075380.8395523798150760.580223810092462
280.4168049059878430.8336098119756870.583195094012157
290.3611247701092450.722249540218490.638875229890755
300.3071712012992310.6143424025984620.692828798700769
310.2558191555546620.5116383111093240.744180844445338
320.2025005806484010.4050011612968020.797499419351599
330.2082528981094410.4165057962188810.79174710189056
340.2361537426051950.472307485210390.763846257394805
350.1947003953864270.3894007907728540.805299604613573
360.1649319742694640.3298639485389280.835068025730536
370.1881787461187050.376357492237410.811821253881295
380.1639200270019460.3278400540038930.836079972998054
390.2848120938838670.5696241877677340.715187906116133
400.3033857416920220.6067714833840450.696614258307978
410.2779194788346130.5558389576692260.722080521165387
420.2798303821502970.5596607643005950.720169617849703
430.3244631606601450.648926321320290.675536839339855







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}