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 computationSun, 14 Dec 2008 05:57:31 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/14/t1229259493eizcfgko0m1l4kw.htm/, Retrieved Wed, 15 May 2024 09:26:00 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=33340, Retrieved Wed, 15 May 2024 09:26:00 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsjulie govaerts
Estimated Impact160
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [paper] [2008-12-14 12:57:31] [ff1af8c6f1c2f1c0e8def9bfc9355be9] [Current]
Feedback Forum

Post a new message
Dataseries X:
878	0
859	0
845	0
806	0
786	0
757	0
769	0
771	0
726	0
680	0
661	0
658	0
642	1
613	1
612	1
596	1
592	1
586	1
619	1
618	1
593	1
574	1
564	1
556	1
564	1
539	1
512	1
507	1
491	1
460	1
478	1
495	1
461	1
418	1
409	1
428	1
420	1
403	1
385	1
377	1
376	1
377	1
374	1
374	1
363	1
354	1
342	1
344	1
362	1
360	1
349	1
339	1
346	1
345	1
363	1
356	1
337	1
337	1
344	1
351	1




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33340&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
werkloosheid_tabakssector[t] = + 805.391666666667 -103.708333333333verbod_of_niet[t] + 27.8756944444443M1[t] + 16.5597222222222M2[t] + 9.44374999999996M3[t] + 0.927777777777768M4[t] + 1.21180555555554M5[t] -4.90416666666669M6[t] + 17.7798611111111M7[t] + 27.0638888888889M8[t] + 7.34791666666664M9[t] -8.96805555555557M10[t] -10.4840277777778M11[t] -7.08402777777778t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
werkloosheid_tabakssector[t] =  +  805.391666666667 -103.708333333333verbod_of_niet[t] +  27.8756944444443M1[t] +  16.5597222222222M2[t] +  9.44374999999996M3[t] +  0.927777777777768M4[t] +  1.21180555555554M5[t] -4.90416666666669M6[t] +  17.7798611111111M7[t] +  27.0638888888889M8[t] +  7.34791666666664M9[t] -8.96805555555557M10[t] -10.4840277777778M11[t] -7.08402777777778t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33340&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]werkloosheid_tabakssector[t] =  +  805.391666666667 -103.708333333333verbod_of_niet[t] +  27.8756944444443M1[t] +  16.5597222222222M2[t] +  9.44374999999996M3[t] +  0.927777777777768M4[t] +  1.21180555555554M5[t] -4.90416666666669M6[t] +  17.7798611111111M7[t] +  27.0638888888889M8[t] +  7.34791666666664M9[t] -8.96805555555557M10[t] -10.4840277777778M11[t] -7.08402777777778t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33340&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
werkloosheid_tabakssector[t] = + 805.391666666667 -103.708333333333verbod_of_niet[t] + 27.8756944444443M1[t] + 16.5597222222222M2[t] + 9.44374999999996M3[t] + 0.927777777777768M4[t] + 1.21180555555554M5[t] -4.90416666666669M6[t] + 17.7798611111111M7[t] + 27.0638888888889M8[t] + 7.34791666666664M9[t] -8.96805555555557M10[t] -10.4840277777778M11[t] -7.08402777777778t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)805.39166666666719.75104440.777200
verbod_of_niet-103.70833333333316.936381-6.123400
M127.875694444444323.8750251.16760.2489980.124499
M216.559722222222223.8048380.69560.4901510.245075
M39.4437499999999623.7411570.39780.6926330.346316
M40.92777777777776823.6840350.03920.9689220.484461
M51.2118055555555423.6335180.05130.9593290.479664
M6-4.9041666666666923.589649-0.20790.8362290.418114
M717.779861111111123.5524650.75490.4541540.227077
M827.063888888888923.5219981.15060.2558520.127926
M97.3479166666666423.4982750.31270.7559220.377961
M10-8.9680555555555723.481315-0.38190.7042770.352139
M11-10.484027777777823.471133-0.44670.6572040.328602
t-7.084027777777780.399194-17.745800

\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) & 805.391666666667 & 19.751044 & 40.7772 & 0 & 0 \tabularnewline
verbod_of_niet & -103.708333333333 & 16.936381 & -6.1234 & 0 & 0 \tabularnewline
M1 & 27.8756944444443 & 23.875025 & 1.1676 & 0.248998 & 0.124499 \tabularnewline
M2 & 16.5597222222222 & 23.804838 & 0.6956 & 0.490151 & 0.245075 \tabularnewline
M3 & 9.44374999999996 & 23.741157 & 0.3978 & 0.692633 & 0.346316 \tabularnewline
M4 & 0.927777777777768 & 23.684035 & 0.0392 & 0.968922 & 0.484461 \tabularnewline
M5 & 1.21180555555554 & 23.633518 & 0.0513 & 0.959329 & 0.479664 \tabularnewline
M6 & -4.90416666666669 & 23.589649 & -0.2079 & 0.836229 & 0.418114 \tabularnewline
M7 & 17.7798611111111 & 23.552465 & 0.7549 & 0.454154 & 0.227077 \tabularnewline
M8 & 27.0638888888889 & 23.521998 & 1.1506 & 0.255852 & 0.127926 \tabularnewline
M9 & 7.34791666666664 & 23.498275 & 0.3127 & 0.755922 & 0.377961 \tabularnewline
M10 & -8.96805555555557 & 23.481315 & -0.3819 & 0.704277 & 0.352139 \tabularnewline
M11 & -10.4840277777778 & 23.471133 & -0.4467 & 0.657204 & 0.328602 \tabularnewline
t & -7.08402777777778 & 0.399194 & -17.7458 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33340&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]805.391666666667[/C][C]19.751044[/C][C]40.7772[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]verbod_of_niet[/C][C]-103.708333333333[/C][C]16.936381[/C][C]-6.1234[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]27.8756944444443[/C][C]23.875025[/C][C]1.1676[/C][C]0.248998[/C][C]0.124499[/C][/ROW]
[ROW][C]M2[/C][C]16.5597222222222[/C][C]23.804838[/C][C]0.6956[/C][C]0.490151[/C][C]0.245075[/C][/ROW]
[ROW][C]M3[/C][C]9.44374999999996[/C][C]23.741157[/C][C]0.3978[/C][C]0.692633[/C][C]0.346316[/C][/ROW]
[ROW][C]M4[/C][C]0.927777777777768[/C][C]23.684035[/C][C]0.0392[/C][C]0.968922[/C][C]0.484461[/C][/ROW]
[ROW][C]M5[/C][C]1.21180555555554[/C][C]23.633518[/C][C]0.0513[/C][C]0.959329[/C][C]0.479664[/C][/ROW]
[ROW][C]M6[/C][C]-4.90416666666669[/C][C]23.589649[/C][C]-0.2079[/C][C]0.836229[/C][C]0.418114[/C][/ROW]
[ROW][C]M7[/C][C]17.7798611111111[/C][C]23.552465[/C][C]0.7549[/C][C]0.454154[/C][C]0.227077[/C][/ROW]
[ROW][C]M8[/C][C]27.0638888888889[/C][C]23.521998[/C][C]1.1506[/C][C]0.255852[/C][C]0.127926[/C][/ROW]
[ROW][C]M9[/C][C]7.34791666666664[/C][C]23.498275[/C][C]0.3127[/C][C]0.755922[/C][C]0.377961[/C][/ROW]
[ROW][C]M10[/C][C]-8.96805555555557[/C][C]23.481315[/C][C]-0.3819[/C][C]0.704277[/C][C]0.352139[/C][/ROW]
[ROW][C]M11[/C][C]-10.4840277777778[/C][C]23.471133[/C][C]-0.4467[/C][C]0.657204[/C][C]0.328602[/C][/ROW]
[ROW][C]t[/C][C]-7.08402777777778[/C][C]0.399194[/C][C]-17.7458[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33340&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33340&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)805.39166666666719.75104440.777200
verbod_of_niet-103.70833333333316.936381-6.123400
M127.875694444444323.8750251.16760.2489980.124499
M216.559722222222223.8048380.69560.4901510.245075
M39.4437499999999623.7411570.39780.6926330.346316
M40.92777777777776823.6840350.03920.9689220.484461
M51.2118055555555423.6335180.05130.9593290.479664
M6-4.9041666666666923.589649-0.20790.8362290.418114
M717.779861111111123.5524650.75490.4541540.227077
M827.063888888888923.5219981.15060.2558520.127926
M97.3479166666666423.4982750.31270.7559220.377961
M10-8.9680555555555723.481315-0.38190.7042770.352139
M11-10.484027777777823.471133-0.44670.6572040.328602
t-7.084027777777780.399194-17.745800







Multiple Linear Regression - Regression Statistics
Multiple R0.97896612808546
R-squared0.958374679938635
Adjusted R-squared0.946611002529989
F-TEST (value)81.4689698337198
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation37.1057512437401
Sum Squared Residuals63334.4916666666

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.97896612808546 \tabularnewline
R-squared & 0.958374679938635 \tabularnewline
Adjusted R-squared & 0.946611002529989 \tabularnewline
F-TEST (value) & 81.4689698337198 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 37.1057512437401 \tabularnewline
Sum Squared Residuals & 63334.4916666666 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33340&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.97896612808546[/C][/ROW]
[ROW][C]R-squared[/C][C]0.958374679938635[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.946611002529989[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]81.4689698337198[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]37.1057512437401[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]63334.4916666666[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33340&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33340&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.97896612808546
R-squared0.958374679938635
Adjusted R-squared0.946611002529989
F-TEST (value)81.4689698337198
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation37.1057512437401
Sum Squared Residuals63334.4916666666







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1878826.18333333333451.8166666666663
2859807.78333333333351.2166666666668
3845793.58333333333351.4166666666668
4806777.98333333333328.0166666666667
5786771.18333333333314.8166666666668
6757757.983333333333-0.9833333333333
7769773.583333333333-4.58333333333327
8771775.783333333333-4.78333333333328
9726748.983333333333-22.9833333333333
10680725.583333333333-45.5833333333334
11661716.983333333333-55.9833333333333
12658720.383333333333-62.3833333333333
13642637.4666666666674.53333333333343
14613619.066666666667-6.06666666666682
15612604.8666666666677.13333333333328
16596589.2666666666676.7333333333333
17592582.4666666666679.53333333333326
18586569.26666666666716.7333333333333
19619584.86666666666734.1333333333333
20618587.06666666666730.9333333333333
21593560.26666666666732.7333333333333
22574536.86666666666737.1333333333333
23564528.26666666666735.7333333333333
24556531.66666666666724.3333333333333
25564552.45833333333311.5416666666667
26539534.0583333333334.94166666666666
27512519.858333333333-7.85833333333334
28507504.2583333333332.74166666666666
29491497.458333333333-6.45833333333335
30460484.258333333333-24.2583333333333
31478499.858333333333-21.8583333333333
32495502.058333333333-7.05833333333334
33461475.258333333333-14.2583333333333
34418451.858333333333-33.8583333333333
35409443.258333333333-34.2583333333333
36428446.658333333333-18.6583333333334
37420467.45-47.4499999999999
38403449.05-46.05
39385434.85-49.85
40377419.25-42.25
41376412.45-36.45
42377399.25-22.25
43374414.85-40.85
44374417.05-43.05
45363390.25-27.25
46354366.85-12.8500000000000
47342358.25-16.25
48344361.65-17.6500000000000
49362382.441666666667-20.4416666666665
50360364.041666666667-4.04166666666665
51349349.841666666667-0.841666666666654
52339334.2416666666674.75833333333333
53346327.44166666666718.5583333333333
54345314.24166666666730.7583333333333
55363329.84166666666733.1583333333333
56356332.04166666666723.9583333333333
57337305.24166666666731.7583333333334
58337281.84166666666755.1583333333333
59344273.24166666666770.7583333333334
60351276.64166666666774.3583333333333

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 878 & 826.183333333334 & 51.8166666666663 \tabularnewline
2 & 859 & 807.783333333333 & 51.2166666666668 \tabularnewline
3 & 845 & 793.583333333333 & 51.4166666666668 \tabularnewline
4 & 806 & 777.983333333333 & 28.0166666666667 \tabularnewline
5 & 786 & 771.183333333333 & 14.8166666666668 \tabularnewline
6 & 757 & 757.983333333333 & -0.9833333333333 \tabularnewline
7 & 769 & 773.583333333333 & -4.58333333333327 \tabularnewline
8 & 771 & 775.783333333333 & -4.78333333333328 \tabularnewline
9 & 726 & 748.983333333333 & -22.9833333333333 \tabularnewline
10 & 680 & 725.583333333333 & -45.5833333333334 \tabularnewline
11 & 661 & 716.983333333333 & -55.9833333333333 \tabularnewline
12 & 658 & 720.383333333333 & -62.3833333333333 \tabularnewline
13 & 642 & 637.466666666667 & 4.53333333333343 \tabularnewline
14 & 613 & 619.066666666667 & -6.06666666666682 \tabularnewline
15 & 612 & 604.866666666667 & 7.13333333333328 \tabularnewline
16 & 596 & 589.266666666667 & 6.7333333333333 \tabularnewline
17 & 592 & 582.466666666667 & 9.53333333333326 \tabularnewline
18 & 586 & 569.266666666667 & 16.7333333333333 \tabularnewline
19 & 619 & 584.866666666667 & 34.1333333333333 \tabularnewline
20 & 618 & 587.066666666667 & 30.9333333333333 \tabularnewline
21 & 593 & 560.266666666667 & 32.7333333333333 \tabularnewline
22 & 574 & 536.866666666667 & 37.1333333333333 \tabularnewline
23 & 564 & 528.266666666667 & 35.7333333333333 \tabularnewline
24 & 556 & 531.666666666667 & 24.3333333333333 \tabularnewline
25 & 564 & 552.458333333333 & 11.5416666666667 \tabularnewline
26 & 539 & 534.058333333333 & 4.94166666666666 \tabularnewline
27 & 512 & 519.858333333333 & -7.85833333333334 \tabularnewline
28 & 507 & 504.258333333333 & 2.74166666666666 \tabularnewline
29 & 491 & 497.458333333333 & -6.45833333333335 \tabularnewline
30 & 460 & 484.258333333333 & -24.2583333333333 \tabularnewline
31 & 478 & 499.858333333333 & -21.8583333333333 \tabularnewline
32 & 495 & 502.058333333333 & -7.05833333333334 \tabularnewline
33 & 461 & 475.258333333333 & -14.2583333333333 \tabularnewline
34 & 418 & 451.858333333333 & -33.8583333333333 \tabularnewline
35 & 409 & 443.258333333333 & -34.2583333333333 \tabularnewline
36 & 428 & 446.658333333333 & -18.6583333333334 \tabularnewline
37 & 420 & 467.45 & -47.4499999999999 \tabularnewline
38 & 403 & 449.05 & -46.05 \tabularnewline
39 & 385 & 434.85 & -49.85 \tabularnewline
40 & 377 & 419.25 & -42.25 \tabularnewline
41 & 376 & 412.45 & -36.45 \tabularnewline
42 & 377 & 399.25 & -22.25 \tabularnewline
43 & 374 & 414.85 & -40.85 \tabularnewline
44 & 374 & 417.05 & -43.05 \tabularnewline
45 & 363 & 390.25 & -27.25 \tabularnewline
46 & 354 & 366.85 & -12.8500000000000 \tabularnewline
47 & 342 & 358.25 & -16.25 \tabularnewline
48 & 344 & 361.65 & -17.6500000000000 \tabularnewline
49 & 362 & 382.441666666667 & -20.4416666666665 \tabularnewline
50 & 360 & 364.041666666667 & -4.04166666666665 \tabularnewline
51 & 349 & 349.841666666667 & -0.841666666666654 \tabularnewline
52 & 339 & 334.241666666667 & 4.75833333333333 \tabularnewline
53 & 346 & 327.441666666667 & 18.5583333333333 \tabularnewline
54 & 345 & 314.241666666667 & 30.7583333333333 \tabularnewline
55 & 363 & 329.841666666667 & 33.1583333333333 \tabularnewline
56 & 356 & 332.041666666667 & 23.9583333333333 \tabularnewline
57 & 337 & 305.241666666667 & 31.7583333333334 \tabularnewline
58 & 337 & 281.841666666667 & 55.1583333333333 \tabularnewline
59 & 344 & 273.241666666667 & 70.7583333333334 \tabularnewline
60 & 351 & 276.641666666667 & 74.3583333333333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33340&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]878[/C][C]826.183333333334[/C][C]51.8166666666663[/C][/ROW]
[ROW][C]2[/C][C]859[/C][C]807.783333333333[/C][C]51.2166666666668[/C][/ROW]
[ROW][C]3[/C][C]845[/C][C]793.583333333333[/C][C]51.4166666666668[/C][/ROW]
[ROW][C]4[/C][C]806[/C][C]777.983333333333[/C][C]28.0166666666667[/C][/ROW]
[ROW][C]5[/C][C]786[/C][C]771.183333333333[/C][C]14.8166666666668[/C][/ROW]
[ROW][C]6[/C][C]757[/C][C]757.983333333333[/C][C]-0.9833333333333[/C][/ROW]
[ROW][C]7[/C][C]769[/C][C]773.583333333333[/C][C]-4.58333333333327[/C][/ROW]
[ROW][C]8[/C][C]771[/C][C]775.783333333333[/C][C]-4.78333333333328[/C][/ROW]
[ROW][C]9[/C][C]726[/C][C]748.983333333333[/C][C]-22.9833333333333[/C][/ROW]
[ROW][C]10[/C][C]680[/C][C]725.583333333333[/C][C]-45.5833333333334[/C][/ROW]
[ROW][C]11[/C][C]661[/C][C]716.983333333333[/C][C]-55.9833333333333[/C][/ROW]
[ROW][C]12[/C][C]658[/C][C]720.383333333333[/C][C]-62.3833333333333[/C][/ROW]
[ROW][C]13[/C][C]642[/C][C]637.466666666667[/C][C]4.53333333333343[/C][/ROW]
[ROW][C]14[/C][C]613[/C][C]619.066666666667[/C][C]-6.06666666666682[/C][/ROW]
[ROW][C]15[/C][C]612[/C][C]604.866666666667[/C][C]7.13333333333328[/C][/ROW]
[ROW][C]16[/C][C]596[/C][C]589.266666666667[/C][C]6.7333333333333[/C][/ROW]
[ROW][C]17[/C][C]592[/C][C]582.466666666667[/C][C]9.53333333333326[/C][/ROW]
[ROW][C]18[/C][C]586[/C][C]569.266666666667[/C][C]16.7333333333333[/C][/ROW]
[ROW][C]19[/C][C]619[/C][C]584.866666666667[/C][C]34.1333333333333[/C][/ROW]
[ROW][C]20[/C][C]618[/C][C]587.066666666667[/C][C]30.9333333333333[/C][/ROW]
[ROW][C]21[/C][C]593[/C][C]560.266666666667[/C][C]32.7333333333333[/C][/ROW]
[ROW][C]22[/C][C]574[/C][C]536.866666666667[/C][C]37.1333333333333[/C][/ROW]
[ROW][C]23[/C][C]564[/C][C]528.266666666667[/C][C]35.7333333333333[/C][/ROW]
[ROW][C]24[/C][C]556[/C][C]531.666666666667[/C][C]24.3333333333333[/C][/ROW]
[ROW][C]25[/C][C]564[/C][C]552.458333333333[/C][C]11.5416666666667[/C][/ROW]
[ROW][C]26[/C][C]539[/C][C]534.058333333333[/C][C]4.94166666666666[/C][/ROW]
[ROW][C]27[/C][C]512[/C][C]519.858333333333[/C][C]-7.85833333333334[/C][/ROW]
[ROW][C]28[/C][C]507[/C][C]504.258333333333[/C][C]2.74166666666666[/C][/ROW]
[ROW][C]29[/C][C]491[/C][C]497.458333333333[/C][C]-6.45833333333335[/C][/ROW]
[ROW][C]30[/C][C]460[/C][C]484.258333333333[/C][C]-24.2583333333333[/C][/ROW]
[ROW][C]31[/C][C]478[/C][C]499.858333333333[/C][C]-21.8583333333333[/C][/ROW]
[ROW][C]32[/C][C]495[/C][C]502.058333333333[/C][C]-7.05833333333334[/C][/ROW]
[ROW][C]33[/C][C]461[/C][C]475.258333333333[/C][C]-14.2583333333333[/C][/ROW]
[ROW][C]34[/C][C]418[/C][C]451.858333333333[/C][C]-33.8583333333333[/C][/ROW]
[ROW][C]35[/C][C]409[/C][C]443.258333333333[/C][C]-34.2583333333333[/C][/ROW]
[ROW][C]36[/C][C]428[/C][C]446.658333333333[/C][C]-18.6583333333334[/C][/ROW]
[ROW][C]37[/C][C]420[/C][C]467.45[/C][C]-47.4499999999999[/C][/ROW]
[ROW][C]38[/C][C]403[/C][C]449.05[/C][C]-46.05[/C][/ROW]
[ROW][C]39[/C][C]385[/C][C]434.85[/C][C]-49.85[/C][/ROW]
[ROW][C]40[/C][C]377[/C][C]419.25[/C][C]-42.25[/C][/ROW]
[ROW][C]41[/C][C]376[/C][C]412.45[/C][C]-36.45[/C][/ROW]
[ROW][C]42[/C][C]377[/C][C]399.25[/C][C]-22.25[/C][/ROW]
[ROW][C]43[/C][C]374[/C][C]414.85[/C][C]-40.85[/C][/ROW]
[ROW][C]44[/C][C]374[/C][C]417.05[/C][C]-43.05[/C][/ROW]
[ROW][C]45[/C][C]363[/C][C]390.25[/C][C]-27.25[/C][/ROW]
[ROW][C]46[/C][C]354[/C][C]366.85[/C][C]-12.8500000000000[/C][/ROW]
[ROW][C]47[/C][C]342[/C][C]358.25[/C][C]-16.25[/C][/ROW]
[ROW][C]48[/C][C]344[/C][C]361.65[/C][C]-17.6500000000000[/C][/ROW]
[ROW][C]49[/C][C]362[/C][C]382.441666666667[/C][C]-20.4416666666665[/C][/ROW]
[ROW][C]50[/C][C]360[/C][C]364.041666666667[/C][C]-4.04166666666665[/C][/ROW]
[ROW][C]51[/C][C]349[/C][C]349.841666666667[/C][C]-0.841666666666654[/C][/ROW]
[ROW][C]52[/C][C]339[/C][C]334.241666666667[/C][C]4.75833333333333[/C][/ROW]
[ROW][C]53[/C][C]346[/C][C]327.441666666667[/C][C]18.5583333333333[/C][/ROW]
[ROW][C]54[/C][C]345[/C][C]314.241666666667[/C][C]30.7583333333333[/C][/ROW]
[ROW][C]55[/C][C]363[/C][C]329.841666666667[/C][C]33.1583333333333[/C][/ROW]
[ROW][C]56[/C][C]356[/C][C]332.041666666667[/C][C]23.9583333333333[/C][/ROW]
[ROW][C]57[/C][C]337[/C][C]305.241666666667[/C][C]31.7583333333334[/C][/ROW]
[ROW][C]58[/C][C]337[/C][C]281.841666666667[/C][C]55.1583333333333[/C][/ROW]
[ROW][C]59[/C][C]344[/C][C]273.241666666667[/C][C]70.7583333333334[/C][/ROW]
[ROW][C]60[/C][C]351[/C][C]276.641666666667[/C][C]74.3583333333333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33340&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33340&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
1878826.18333333333451.8166666666663
2859807.78333333333351.2166666666668
3845793.58333333333351.4166666666668
4806777.98333333333328.0166666666667
5786771.18333333333314.8166666666668
6757757.983333333333-0.9833333333333
7769773.583333333333-4.58333333333327
8771775.783333333333-4.78333333333328
9726748.983333333333-22.9833333333333
10680725.583333333333-45.5833333333334
11661716.983333333333-55.9833333333333
12658720.383333333333-62.3833333333333
13642637.4666666666674.53333333333343
14613619.066666666667-6.06666666666682
15612604.8666666666677.13333333333328
16596589.2666666666676.7333333333333
17592582.4666666666679.53333333333326
18586569.26666666666716.7333333333333
19619584.86666666666734.1333333333333
20618587.06666666666730.9333333333333
21593560.26666666666732.7333333333333
22574536.86666666666737.1333333333333
23564528.26666666666735.7333333333333
24556531.66666666666724.3333333333333
25564552.45833333333311.5416666666667
26539534.0583333333334.94166666666666
27512519.858333333333-7.85833333333334
28507504.2583333333332.74166666666666
29491497.458333333333-6.45833333333335
30460484.258333333333-24.2583333333333
31478499.858333333333-21.8583333333333
32495502.058333333333-7.05833333333334
33461475.258333333333-14.2583333333333
34418451.858333333333-33.8583333333333
35409443.258333333333-34.2583333333333
36428446.658333333333-18.6583333333334
37420467.45-47.4499999999999
38403449.05-46.05
39385434.85-49.85
40377419.25-42.25
41376412.45-36.45
42377399.25-22.25
43374414.85-40.85
44374417.05-43.05
45363390.25-27.25
46354366.85-12.8500000000000
47342358.25-16.25
48344361.65-17.6500000000000
49362382.441666666667-20.4416666666665
50360364.041666666667-4.04166666666665
51349349.841666666667-0.841666666666654
52339334.2416666666674.75833333333333
53346327.44166666666718.5583333333333
54345314.24166666666730.7583333333333
55363329.84166666666733.1583333333333
56356332.04166666666723.9583333333333
57337305.24166666666731.7583333333334
58337281.84166666666755.1583333333333
59344273.24166666666770.7583333333334
60351276.64166666666774.3583333333333







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1245067490921970.2490134981843950.875493250907803
180.1829885917954140.3659771835908280.817011408204586
190.2950242683999250.590048536799850.704975731600075
200.3234192537948040.6468385075896080.676580746205196
210.4172787704743940.8345575409487870.582721229525606
220.6029071119441020.7941857761117970.397092888055898
230.7424569463196360.5150861073607280.257543053680364
240.791880024880640.4162399502387190.208119975119360
250.8139434982005680.3721130035988630.186056501799432
260.8263557160354170.3472885679291660.173644283964583
270.8371661486682850.3256677026634300.162833851331715
280.8810009073444650.2379981853110700.118999092655535
290.8974210272764270.2051579454471460.102578972723573
300.8658506786301960.2682986427396070.134149321369804
310.8615978029058080.2768043941883850.138402197094192
320.9478560492971570.1042879014056860.052143950702843
330.9841733494887780.03165330102244380.0158266505112219
340.9784793656226620.04304126875467540.0215206343773377
350.9680243535769090.06395129284618250.0319756464230912
360.986522002054090.02695599589181760.0134779979459088
370.9923323389472130.01533532210557500.00766766105278748
380.9904445360654140.01911092786917120.00955546393458558
390.9845212627206060.03095747455878850.0154787372793943
400.980573706966050.03885258606789970.0194262930339498
410.9664037242849680.06719255143006440.0335962757150322
420.9604421007544580.07911579849108450.0395578992455422
430.8888666863834270.2222666272331470.111133313616573

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.124506749092197 & 0.249013498184395 & 0.875493250907803 \tabularnewline
18 & 0.182988591795414 & 0.365977183590828 & 0.817011408204586 \tabularnewline
19 & 0.295024268399925 & 0.59004853679985 & 0.704975731600075 \tabularnewline
20 & 0.323419253794804 & 0.646838507589608 & 0.676580746205196 \tabularnewline
21 & 0.417278770474394 & 0.834557540948787 & 0.582721229525606 \tabularnewline
22 & 0.602907111944102 & 0.794185776111797 & 0.397092888055898 \tabularnewline
23 & 0.742456946319636 & 0.515086107360728 & 0.257543053680364 \tabularnewline
24 & 0.79188002488064 & 0.416239950238719 & 0.208119975119360 \tabularnewline
25 & 0.813943498200568 & 0.372113003598863 & 0.186056501799432 \tabularnewline
26 & 0.826355716035417 & 0.347288567929166 & 0.173644283964583 \tabularnewline
27 & 0.837166148668285 & 0.325667702663430 & 0.162833851331715 \tabularnewline
28 & 0.881000907344465 & 0.237998185311070 & 0.118999092655535 \tabularnewline
29 & 0.897421027276427 & 0.205157945447146 & 0.102578972723573 \tabularnewline
30 & 0.865850678630196 & 0.268298642739607 & 0.134149321369804 \tabularnewline
31 & 0.861597802905808 & 0.276804394188385 & 0.138402197094192 \tabularnewline
32 & 0.947856049297157 & 0.104287901405686 & 0.052143950702843 \tabularnewline
33 & 0.984173349488778 & 0.0316533010224438 & 0.0158266505112219 \tabularnewline
34 & 0.978479365622662 & 0.0430412687546754 & 0.0215206343773377 \tabularnewline
35 & 0.968024353576909 & 0.0639512928461825 & 0.0319756464230912 \tabularnewline
36 & 0.98652200205409 & 0.0269559958918176 & 0.0134779979459088 \tabularnewline
37 & 0.992332338947213 & 0.0153353221055750 & 0.00766766105278748 \tabularnewline
38 & 0.990444536065414 & 0.0191109278691712 & 0.00955546393458558 \tabularnewline
39 & 0.984521262720606 & 0.0309574745587885 & 0.0154787372793943 \tabularnewline
40 & 0.98057370696605 & 0.0388525860678997 & 0.0194262930339498 \tabularnewline
41 & 0.966403724284968 & 0.0671925514300644 & 0.0335962757150322 \tabularnewline
42 & 0.960442100754458 & 0.0791157984910845 & 0.0395578992455422 \tabularnewline
43 & 0.888866686383427 & 0.222266627233147 & 0.111133313616573 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33340&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.124506749092197[/C][C]0.249013498184395[/C][C]0.875493250907803[/C][/ROW]
[ROW][C]18[/C][C]0.182988591795414[/C][C]0.365977183590828[/C][C]0.817011408204586[/C][/ROW]
[ROW][C]19[/C][C]0.295024268399925[/C][C]0.59004853679985[/C][C]0.704975731600075[/C][/ROW]
[ROW][C]20[/C][C]0.323419253794804[/C][C]0.646838507589608[/C][C]0.676580746205196[/C][/ROW]
[ROW][C]21[/C][C]0.417278770474394[/C][C]0.834557540948787[/C][C]0.582721229525606[/C][/ROW]
[ROW][C]22[/C][C]0.602907111944102[/C][C]0.794185776111797[/C][C]0.397092888055898[/C][/ROW]
[ROW][C]23[/C][C]0.742456946319636[/C][C]0.515086107360728[/C][C]0.257543053680364[/C][/ROW]
[ROW][C]24[/C][C]0.79188002488064[/C][C]0.416239950238719[/C][C]0.208119975119360[/C][/ROW]
[ROW][C]25[/C][C]0.813943498200568[/C][C]0.372113003598863[/C][C]0.186056501799432[/C][/ROW]
[ROW][C]26[/C][C]0.826355716035417[/C][C]0.347288567929166[/C][C]0.173644283964583[/C][/ROW]
[ROW][C]27[/C][C]0.837166148668285[/C][C]0.325667702663430[/C][C]0.162833851331715[/C][/ROW]
[ROW][C]28[/C][C]0.881000907344465[/C][C]0.237998185311070[/C][C]0.118999092655535[/C][/ROW]
[ROW][C]29[/C][C]0.897421027276427[/C][C]0.205157945447146[/C][C]0.102578972723573[/C][/ROW]
[ROW][C]30[/C][C]0.865850678630196[/C][C]0.268298642739607[/C][C]0.134149321369804[/C][/ROW]
[ROW][C]31[/C][C]0.861597802905808[/C][C]0.276804394188385[/C][C]0.138402197094192[/C][/ROW]
[ROW][C]32[/C][C]0.947856049297157[/C][C]0.104287901405686[/C][C]0.052143950702843[/C][/ROW]
[ROW][C]33[/C][C]0.984173349488778[/C][C]0.0316533010224438[/C][C]0.0158266505112219[/C][/ROW]
[ROW][C]34[/C][C]0.978479365622662[/C][C]0.0430412687546754[/C][C]0.0215206343773377[/C][/ROW]
[ROW][C]35[/C][C]0.968024353576909[/C][C]0.0639512928461825[/C][C]0.0319756464230912[/C][/ROW]
[ROW][C]36[/C][C]0.98652200205409[/C][C]0.0269559958918176[/C][C]0.0134779979459088[/C][/ROW]
[ROW][C]37[/C][C]0.992332338947213[/C][C]0.0153353221055750[/C][C]0.00766766105278748[/C][/ROW]
[ROW][C]38[/C][C]0.990444536065414[/C][C]0.0191109278691712[/C][C]0.00955546393458558[/C][/ROW]
[ROW][C]39[/C][C]0.984521262720606[/C][C]0.0309574745587885[/C][C]0.0154787372793943[/C][/ROW]
[ROW][C]40[/C][C]0.98057370696605[/C][C]0.0388525860678997[/C][C]0.0194262930339498[/C][/ROW]
[ROW][C]41[/C][C]0.966403724284968[/C][C]0.0671925514300644[/C][C]0.0335962757150322[/C][/ROW]
[ROW][C]42[/C][C]0.960442100754458[/C][C]0.0791157984910845[/C][C]0.0395578992455422[/C][/ROW]
[ROW][C]43[/C][C]0.888866686383427[/C][C]0.222266627233147[/C][C]0.111133313616573[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33340&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1245067490921970.2490134981843950.875493250907803
180.1829885917954140.3659771835908280.817011408204586
190.2950242683999250.590048536799850.704975731600075
200.3234192537948040.6468385075896080.676580746205196
210.4172787704743940.8345575409487870.582721229525606
220.6029071119441020.7941857761117970.397092888055898
230.7424569463196360.5150861073607280.257543053680364
240.791880024880640.4162399502387190.208119975119360
250.8139434982005680.3721130035988630.186056501799432
260.8263557160354170.3472885679291660.173644283964583
270.8371661486682850.3256677026634300.162833851331715
280.8810009073444650.2379981853110700.118999092655535
290.8974210272764270.2051579454471460.102578972723573
300.8658506786301960.2682986427396070.134149321369804
310.8615978029058080.2768043941883850.138402197094192
320.9478560492971570.1042879014056860.052143950702843
330.9841733494887780.03165330102244380.0158266505112219
340.9784793656226620.04304126875467540.0215206343773377
350.9680243535769090.06395129284618250.0319756464230912
360.986522002054090.02695599589181760.0134779979459088
370.9923323389472130.01533532210557500.00766766105278748
380.9904445360654140.01911092786917120.00955546393458558
390.9845212627206060.03095747455878850.0154787372793943
400.980573706966050.03885258606789970.0194262930339498
410.9664037242849680.06719255143006440.0335962757150322
420.9604421007544580.07911579849108450.0395578992455422
430.8888666863834270.2222666272331470.111133313616573







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33340&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 level70.259259259259259NOK
10% type I error level100.370370370370370NOK



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