Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 01 Dec 2010 11:22:00 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/01/t1291202560wwmhxjwnqpplhdm.htm/, Retrieved Sun, 05 May 2024 15:47:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=103923, Retrieved Sun, 05 May 2024 15:47:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact173
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Competence to learn] [2010-11-17 07:43:53] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [mini-tutorial 2 l...] [2010-12-01 11:22:00] [95216a33d813bfae7986b08ea3322626] [Current]
Feedback Forum

Post a new message
Dataseries X:
-5	-6	33	5	15
-1	-3	24	6	17
-2	-4	24	6	13
-5	-7	31	5	12
-4	-7	25	5	13
-6	-7	28	3	10
-2	-3	24	5	14
-2	0	25	5	13
-2	-5	16	5	10
-2	-3	17	3	11
2	3	11	6	12
1	2	12	6	7
-8	-7	39	4	11
-1	-1	19	6	9
1	0	14	5	13
-1	-3	15	4	12
2	4	7	5	5
2	2	12	5	13
1	3	12	4	11
-1	0	14	3	8
-2	-10	9	2	8
-2	-10	8	3	8
-1	-9	4	2	8
-8	-22	7	-1	0
-4	-16	3	0	3
-6	-18	5	-2	0
-3	-14	0	1	-1
-3	-12	-2	-2	-1
-7	-17	6	-2	-4
-9	-23	11	-2	1
-11	-28	9	-6	-1
-13	-31	17	-4	0
-11	-21	21	-2	-1
-9	-19	21	0	6
-17	-22	41	-5	0
-22	-22	57	-4	-3
-25	-25	65	-5	-3
-20	-16	68	-1	4
-24	-22	73	-2	1
-24	-21	71	-4	0
-22	-10	71	-1	-4
-19	-7	70	1	-2
-18	-5	69	1	3
-17	-4	65	-2	2
-11	7	57	1	5
-11	6	57	1	6
-12	3	57	3	6
-10	10	55	3	3
-15	0	65	1	4
-15	-2	65	1	7
-15	-1	64	0	5
-13	2	60	2	6
-8	8	43	2	1
-13	-6	47	-1	3
-9	-4	40	1	6
-7	4	31	0	0
-4	7	27	1	3
-4	3	24	1	4
-2	3	23	3	7
0	8	17	2	6




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

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

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103923&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
werkloosheid[t] = + 0.663907484037988 -3.94105757478893indicator[t] + 1.00077195481772vooruitzichten[t] + 1.03740674497135financiën[t] + 0.888119561734235spaarvermogen[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
werkloosheid[t] =  +  0.663907484037988 -3.94105757478893indicator[t] +  1.00077195481772vooruitzichten[t] +  1.03740674497135financiën[t] +  0.888119561734235spaarvermogen[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103923&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]werkloosheid[t] =  +  0.663907484037988 -3.94105757478893indicator[t] +  1.00077195481772vooruitzichten[t] +  1.03740674497135financiën[t] +  0.888119561734235spaarvermogen[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103923&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
werkloosheid[t] = + 0.663907484037988 -3.94105757478893indicator[t] + 1.00077195481772vooruitzichten[t] + 1.03740674497135financiën[t] + 0.888119561734235spaarvermogen[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.6639074840379880.46211.43670.1564620.078231
indicator-3.941057574788930.030998-127.138900
vooruitzichten1.000771954817720.02298943.532600
financiën1.037406744971350.1335967.765200
spaarvermogen0.8881195617342350.05912315.021600

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 0.663907484037988 & 0.4621 & 1.4367 & 0.156462 & 0.078231 \tabularnewline
indicator & -3.94105757478893 & 0.030998 & -127.1389 & 0 & 0 \tabularnewline
vooruitzichten & 1.00077195481772 & 0.022989 & 43.5326 & 0 & 0 \tabularnewline
financiën & 1.03740674497135 & 0.133596 & 7.7652 & 0 & 0 \tabularnewline
spaarvermogen & 0.888119561734235 & 0.059123 & 15.0216 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103923&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]0.663907484037988[/C][C]0.4621[/C][C]1.4367[/C][C]0.156462[/C][C]0.078231[/C][/ROW]
[ROW][C]indicator[/C][C]-3.94105757478893[/C][C]0.030998[/C][C]-127.1389[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]vooruitzichten[/C][C]1.00077195481772[/C][C]0.022989[/C][C]43.5326[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]financiën[/C][C]1.03740674497135[/C][C]0.133596[/C][C]7.7652[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]spaarvermogen[/C][C]0.888119561734235[/C][C]0.059123[/C][C]15.0216[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103923&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.6639074840379880.46211.43670.1564620.078231
indicator-3.941057574788930.030998-127.138900
vooruitzichten1.000771954817720.02298943.532600
financiën1.037406744971350.1335967.765200
spaarvermogen0.8881195617342350.05912315.021600







Multiple Linear Regression - Regression Statistics
Multiple R0.998682888644061
R-squared0.997367512070446
Adjusted R-squared0.997176058402843
F-TEST (value)5209.44583905243
F-TEST (DF numerator)4
F-TEST (DF denominator)55
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.22777002196627
Sum Squared Residuals82.9080574761475

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.998682888644061 \tabularnewline
R-squared & 0.997367512070446 \tabularnewline
Adjusted R-squared & 0.997176058402843 \tabularnewline
F-TEST (value) & 5209.44583905243 \tabularnewline
F-TEST (DF numerator) & 4 \tabularnewline
F-TEST (DF denominator) & 55 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.22777002196627 \tabularnewline
Sum Squared Residuals & 82.9080574761475 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103923&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.998682888644061[/C][/ROW]
[ROW][C]R-squared[/C][C]0.997367512070446[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.997176058402843[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5209.44583905243[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]4[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]55[/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]1.22777002196627[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]82.9080574761475[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103923&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103923&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.998682888644061
R-squared0.997367512070446
Adjusted R-squared0.997176058402843
F-TEST (value)5209.44583905243
F-TEST (DF numerator)4
F-TEST (DF denominator)55
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.22777002196627
Sum Squared Residuals82.9080574761475







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
13332.87339077994660.126609220053420
22422.92512221368381.07487778631619
32422.31292958671811.6870704132819
43129.20826013992611.79173986007385
52526.1553221268715-1.15532212687145
62829.2982651013039-1.29826510130391
72423.16441435829870.835585641701287
82525.2786106610176-0.278610661017639
91617.6103922017263-1.61039220172634
101718.4252421831533-1.42524218315331
111112.6659834095522-1.6659834095522
121211.16567122085220.834328779147763
133939.1059065575873-0.105906557587348
141917.82170962944541.1782903705546
151413.45543793665090.544562063349145
161516.4097109150700-1.40971091506996
1776.412511687258930.587488312741069
181211.51592427149740.484075728502633
191213.6441079326642-1.64410793266420
201414.8221417876148-0.822141787614838
2197.718073069255221.28192693074478
2288.75547981422656-0.755479814226566
2344.77778744928401-0.777787449284008
2479.13797833138822-2.13797833138822
2533.08014519131288-0.0801451913128814
2654.22154425610990.778455743890102
270-1.37443997580621.3744399758062
28-2-2.48511630108480.485116301084801
2965.610895538779610.389104461220394
301111.9289767681223-0.928976768122314
3198.88136604025770.118633959742295
321716.72409837705930.275901622940668
332120.03639670386710.96360329613286
342122.4474758860071-1.44747588600707
354140.45786952460320.54213047539682
365758.5362054583165-1.53620545831647
376566.3196555732587-1.31965557325873
386865.98777920469862.01222079530138
397372.0456123447740.95438765522605
407170.08345124791470.916548752085263
417172.7695695893089-1.76956958930892
427067.79976534280652.20023465719354
436970.3008494863241-1.30084948632414
446563.36022406970471.63977593029534
455756.49894904408280.501050955917244
465756.38629665099930.613703349000729
475759.3998518512777-2.39985185127773
485555.8587817002212-0.85878170022122
496564.36965609778020.630343902219807
506565.0324708733475-0.0324708733474578
516463.21959695972540.78040304027464
526061.3027307262776-1.30273072627759
534343.1614767725681-0.161476772568106
544747.5199761676191-0.519976167619083
554038.49646195324421.50353804675578
563132.2543983268314-1.25439832683137
572727.1353068970918-0.135306897091793
582424.0203386395551-0.0203386395551479
592320.87739566512272.12260433487731
601716.07361398292790.926386017072149

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 33 & 32.8733907799466 & 0.126609220053420 \tabularnewline
2 & 24 & 22.9251222136838 & 1.07487778631619 \tabularnewline
3 & 24 & 22.3129295867181 & 1.6870704132819 \tabularnewline
4 & 31 & 29.2082601399261 & 1.79173986007385 \tabularnewline
5 & 25 & 26.1553221268715 & -1.15532212687145 \tabularnewline
6 & 28 & 29.2982651013039 & -1.29826510130391 \tabularnewline
7 & 24 & 23.1644143582987 & 0.835585641701287 \tabularnewline
8 & 25 & 25.2786106610176 & -0.278610661017639 \tabularnewline
9 & 16 & 17.6103922017263 & -1.61039220172634 \tabularnewline
10 & 17 & 18.4252421831533 & -1.42524218315331 \tabularnewline
11 & 11 & 12.6659834095522 & -1.6659834095522 \tabularnewline
12 & 12 & 11.1656712208522 & 0.834328779147763 \tabularnewline
13 & 39 & 39.1059065575873 & -0.105906557587348 \tabularnewline
14 & 19 & 17.8217096294454 & 1.1782903705546 \tabularnewline
15 & 14 & 13.4554379366509 & 0.544562063349145 \tabularnewline
16 & 15 & 16.4097109150700 & -1.40971091506996 \tabularnewline
17 & 7 & 6.41251168725893 & 0.587488312741069 \tabularnewline
18 & 12 & 11.5159242714974 & 0.484075728502633 \tabularnewline
19 & 12 & 13.6441079326642 & -1.64410793266420 \tabularnewline
20 & 14 & 14.8221417876148 & -0.822141787614838 \tabularnewline
21 & 9 & 7.71807306925522 & 1.28192693074478 \tabularnewline
22 & 8 & 8.75547981422656 & -0.755479814226566 \tabularnewline
23 & 4 & 4.77778744928401 & -0.777787449284008 \tabularnewline
24 & 7 & 9.13797833138822 & -2.13797833138822 \tabularnewline
25 & 3 & 3.08014519131288 & -0.0801451913128814 \tabularnewline
26 & 5 & 4.2215442561099 & 0.778455743890102 \tabularnewline
27 & 0 & -1.3744399758062 & 1.3744399758062 \tabularnewline
28 & -2 & -2.4851163010848 & 0.485116301084801 \tabularnewline
29 & 6 & 5.61089553877961 & 0.389104461220394 \tabularnewline
30 & 11 & 11.9289767681223 & -0.928976768122314 \tabularnewline
31 & 9 & 8.8813660402577 & 0.118633959742295 \tabularnewline
32 & 17 & 16.7240983770593 & 0.275901622940668 \tabularnewline
33 & 21 & 20.0363967038671 & 0.96360329613286 \tabularnewline
34 & 21 & 22.4474758860071 & -1.44747588600707 \tabularnewline
35 & 41 & 40.4578695246032 & 0.54213047539682 \tabularnewline
36 & 57 & 58.5362054583165 & -1.53620545831647 \tabularnewline
37 & 65 & 66.3196555732587 & -1.31965557325873 \tabularnewline
38 & 68 & 65.9877792046986 & 2.01222079530138 \tabularnewline
39 & 73 & 72.045612344774 & 0.95438765522605 \tabularnewline
40 & 71 & 70.0834512479147 & 0.916548752085263 \tabularnewline
41 & 71 & 72.7695695893089 & -1.76956958930892 \tabularnewline
42 & 70 & 67.7997653428065 & 2.20023465719354 \tabularnewline
43 & 69 & 70.3008494863241 & -1.30084948632414 \tabularnewline
44 & 65 & 63.3602240697047 & 1.63977593029534 \tabularnewline
45 & 57 & 56.4989490440828 & 0.501050955917244 \tabularnewline
46 & 57 & 56.3862966509993 & 0.613703349000729 \tabularnewline
47 & 57 & 59.3998518512777 & -2.39985185127773 \tabularnewline
48 & 55 & 55.8587817002212 & -0.85878170022122 \tabularnewline
49 & 65 & 64.3696560977802 & 0.630343902219807 \tabularnewline
50 & 65 & 65.0324708733475 & -0.0324708733474578 \tabularnewline
51 & 64 & 63.2195969597254 & 0.78040304027464 \tabularnewline
52 & 60 & 61.3027307262776 & -1.30273072627759 \tabularnewline
53 & 43 & 43.1614767725681 & -0.161476772568106 \tabularnewline
54 & 47 & 47.5199761676191 & -0.519976167619083 \tabularnewline
55 & 40 & 38.4964619532442 & 1.50353804675578 \tabularnewline
56 & 31 & 32.2543983268314 & -1.25439832683137 \tabularnewline
57 & 27 & 27.1353068970918 & -0.135306897091793 \tabularnewline
58 & 24 & 24.0203386395551 & -0.0203386395551479 \tabularnewline
59 & 23 & 20.8773956651227 & 2.12260433487731 \tabularnewline
60 & 17 & 16.0736139829279 & 0.926386017072149 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103923&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]33[/C][C]32.8733907799466[/C][C]0.126609220053420[/C][/ROW]
[ROW][C]2[/C][C]24[/C][C]22.9251222136838[/C][C]1.07487778631619[/C][/ROW]
[ROW][C]3[/C][C]24[/C][C]22.3129295867181[/C][C]1.6870704132819[/C][/ROW]
[ROW][C]4[/C][C]31[/C][C]29.2082601399261[/C][C]1.79173986007385[/C][/ROW]
[ROW][C]5[/C][C]25[/C][C]26.1553221268715[/C][C]-1.15532212687145[/C][/ROW]
[ROW][C]6[/C][C]28[/C][C]29.2982651013039[/C][C]-1.29826510130391[/C][/ROW]
[ROW][C]7[/C][C]24[/C][C]23.1644143582987[/C][C]0.835585641701287[/C][/ROW]
[ROW][C]8[/C][C]25[/C][C]25.2786106610176[/C][C]-0.278610661017639[/C][/ROW]
[ROW][C]9[/C][C]16[/C][C]17.6103922017263[/C][C]-1.61039220172634[/C][/ROW]
[ROW][C]10[/C][C]17[/C][C]18.4252421831533[/C][C]-1.42524218315331[/C][/ROW]
[ROW][C]11[/C][C]11[/C][C]12.6659834095522[/C][C]-1.6659834095522[/C][/ROW]
[ROW][C]12[/C][C]12[/C][C]11.1656712208522[/C][C]0.834328779147763[/C][/ROW]
[ROW][C]13[/C][C]39[/C][C]39.1059065575873[/C][C]-0.105906557587348[/C][/ROW]
[ROW][C]14[/C][C]19[/C][C]17.8217096294454[/C][C]1.1782903705546[/C][/ROW]
[ROW][C]15[/C][C]14[/C][C]13.4554379366509[/C][C]0.544562063349145[/C][/ROW]
[ROW][C]16[/C][C]15[/C][C]16.4097109150700[/C][C]-1.40971091506996[/C][/ROW]
[ROW][C]17[/C][C]7[/C][C]6.41251168725893[/C][C]0.587488312741069[/C][/ROW]
[ROW][C]18[/C][C]12[/C][C]11.5159242714974[/C][C]0.484075728502633[/C][/ROW]
[ROW][C]19[/C][C]12[/C][C]13.6441079326642[/C][C]-1.64410793266420[/C][/ROW]
[ROW][C]20[/C][C]14[/C][C]14.8221417876148[/C][C]-0.822141787614838[/C][/ROW]
[ROW][C]21[/C][C]9[/C][C]7.71807306925522[/C][C]1.28192693074478[/C][/ROW]
[ROW][C]22[/C][C]8[/C][C]8.75547981422656[/C][C]-0.755479814226566[/C][/ROW]
[ROW][C]23[/C][C]4[/C][C]4.77778744928401[/C][C]-0.777787449284008[/C][/ROW]
[ROW][C]24[/C][C]7[/C][C]9.13797833138822[/C][C]-2.13797833138822[/C][/ROW]
[ROW][C]25[/C][C]3[/C][C]3.08014519131288[/C][C]-0.0801451913128814[/C][/ROW]
[ROW][C]26[/C][C]5[/C][C]4.2215442561099[/C][C]0.778455743890102[/C][/ROW]
[ROW][C]27[/C][C]0[/C][C]-1.3744399758062[/C][C]1.3744399758062[/C][/ROW]
[ROW][C]28[/C][C]-2[/C][C]-2.4851163010848[/C][C]0.485116301084801[/C][/ROW]
[ROW][C]29[/C][C]6[/C][C]5.61089553877961[/C][C]0.389104461220394[/C][/ROW]
[ROW][C]30[/C][C]11[/C][C]11.9289767681223[/C][C]-0.928976768122314[/C][/ROW]
[ROW][C]31[/C][C]9[/C][C]8.8813660402577[/C][C]0.118633959742295[/C][/ROW]
[ROW][C]32[/C][C]17[/C][C]16.7240983770593[/C][C]0.275901622940668[/C][/ROW]
[ROW][C]33[/C][C]21[/C][C]20.0363967038671[/C][C]0.96360329613286[/C][/ROW]
[ROW][C]34[/C][C]21[/C][C]22.4474758860071[/C][C]-1.44747588600707[/C][/ROW]
[ROW][C]35[/C][C]41[/C][C]40.4578695246032[/C][C]0.54213047539682[/C][/ROW]
[ROW][C]36[/C][C]57[/C][C]58.5362054583165[/C][C]-1.53620545831647[/C][/ROW]
[ROW][C]37[/C][C]65[/C][C]66.3196555732587[/C][C]-1.31965557325873[/C][/ROW]
[ROW][C]38[/C][C]68[/C][C]65.9877792046986[/C][C]2.01222079530138[/C][/ROW]
[ROW][C]39[/C][C]73[/C][C]72.045612344774[/C][C]0.95438765522605[/C][/ROW]
[ROW][C]40[/C][C]71[/C][C]70.0834512479147[/C][C]0.916548752085263[/C][/ROW]
[ROW][C]41[/C][C]71[/C][C]72.7695695893089[/C][C]-1.76956958930892[/C][/ROW]
[ROW][C]42[/C][C]70[/C][C]67.7997653428065[/C][C]2.20023465719354[/C][/ROW]
[ROW][C]43[/C][C]69[/C][C]70.3008494863241[/C][C]-1.30084948632414[/C][/ROW]
[ROW][C]44[/C][C]65[/C][C]63.3602240697047[/C][C]1.63977593029534[/C][/ROW]
[ROW][C]45[/C][C]57[/C][C]56.4989490440828[/C][C]0.501050955917244[/C][/ROW]
[ROW][C]46[/C][C]57[/C][C]56.3862966509993[/C][C]0.613703349000729[/C][/ROW]
[ROW][C]47[/C][C]57[/C][C]59.3998518512777[/C][C]-2.39985185127773[/C][/ROW]
[ROW][C]48[/C][C]55[/C][C]55.8587817002212[/C][C]-0.85878170022122[/C][/ROW]
[ROW][C]49[/C][C]65[/C][C]64.3696560977802[/C][C]0.630343902219807[/C][/ROW]
[ROW][C]50[/C][C]65[/C][C]65.0324708733475[/C][C]-0.0324708733474578[/C][/ROW]
[ROW][C]51[/C][C]64[/C][C]63.2195969597254[/C][C]0.78040304027464[/C][/ROW]
[ROW][C]52[/C][C]60[/C][C]61.3027307262776[/C][C]-1.30273072627759[/C][/ROW]
[ROW][C]53[/C][C]43[/C][C]43.1614767725681[/C][C]-0.161476772568106[/C][/ROW]
[ROW][C]54[/C][C]47[/C][C]47.5199761676191[/C][C]-0.519976167619083[/C][/ROW]
[ROW][C]55[/C][C]40[/C][C]38.4964619532442[/C][C]1.50353804675578[/C][/ROW]
[ROW][C]56[/C][C]31[/C][C]32.2543983268314[/C][C]-1.25439832683137[/C][/ROW]
[ROW][C]57[/C][C]27[/C][C]27.1353068970918[/C][C]-0.135306897091793[/C][/ROW]
[ROW][C]58[/C][C]24[/C][C]24.0203386395551[/C][C]-0.0203386395551479[/C][/ROW]
[ROW][C]59[/C][C]23[/C][C]20.8773956651227[/C][C]2.12260433487731[/C][/ROW]
[ROW][C]60[/C][C]17[/C][C]16.0736139829279[/C][C]0.926386017072149[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103923&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103923&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
13332.87339077994660.126609220053420
22422.92512221368381.07487778631619
32422.31292958671811.6870704132819
43129.20826013992611.79173986007385
52526.1553221268715-1.15532212687145
62829.2982651013039-1.29826510130391
72423.16441435829870.835585641701287
82525.2786106610176-0.278610661017639
91617.6103922017263-1.61039220172634
101718.4252421831533-1.42524218315331
111112.6659834095522-1.6659834095522
121211.16567122085220.834328779147763
133939.1059065575873-0.105906557587348
141917.82170962944541.1782903705546
151413.45543793665090.544562063349145
161516.4097109150700-1.40971091506996
1776.412511687258930.587488312741069
181211.51592427149740.484075728502633
191213.6441079326642-1.64410793266420
201414.8221417876148-0.822141787614838
2197.718073069255221.28192693074478
2288.75547981422656-0.755479814226566
2344.77778744928401-0.777787449284008
2479.13797833138822-2.13797833138822
2533.08014519131288-0.0801451913128814
2654.22154425610990.778455743890102
270-1.37443997580621.3744399758062
28-2-2.48511630108480.485116301084801
2965.610895538779610.389104461220394
301111.9289767681223-0.928976768122314
3198.88136604025770.118633959742295
321716.72409837705930.275901622940668
332120.03639670386710.96360329613286
342122.4474758860071-1.44747588600707
354140.45786952460320.54213047539682
365758.5362054583165-1.53620545831647
376566.3196555732587-1.31965557325873
386865.98777920469862.01222079530138
397372.0456123447740.95438765522605
407170.08345124791470.916548752085263
417172.7695695893089-1.76956958930892
427067.79976534280652.20023465719354
436970.3008494863241-1.30084948632414
446563.36022406970471.63977593029534
455756.49894904408280.501050955917244
465756.38629665099930.613703349000729
475759.3998518512777-2.39985185127773
485555.8587817002212-0.85878170022122
496564.36965609778020.630343902219807
506565.0324708733475-0.0324708733474578
516463.21959695972540.78040304027464
526061.3027307262776-1.30273072627759
534343.1614767725681-0.161476772568106
544747.5199761676191-0.519976167619083
554038.49646195324421.50353804675578
563132.2543983268314-1.25439832683137
572727.1353068970918-0.135306897091793
582424.0203386395551-0.0203386395551479
592320.87739566512272.12260433487731
601716.07361398292790.926386017072149







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.6198932519255940.7602134961488110.380106748074406
90.6326304973290480.7347390053419050.367369502670952
100.5689213145459440.8621573709081130.431078685454057
110.563257976920020.873484046159960.43674202307998
120.5996343215523220.8007313568953550.400365678447678
130.5085229903013350.982954019397330.491477009698665
140.4464475304376890.8928950608753790.55355246956231
150.4377116706565780.8754233413131560.562288329343422
160.3623278115375570.7246556230751140.637672188462443
170.3411977926316890.6823955852633780.658802207368311
180.2988902794781850.5977805589563690.701109720521815
190.2736064351433180.5472128702866350.726393564856682
200.2364807794035560.4729615588071130.763519220596444
210.3513429239838860.7026858479677720.648657076016114
220.3336209591249910.6672419182499820.666379040875009
230.2766733275625830.5533466551251650.723326672437417
240.3174583030434680.6349166060869350.682541696956532
250.2936985811996930.5873971623993870.706301418800307
260.3909136333817870.7818272667635750.609086366618213
270.3880500199290430.7761000398580870.611949980070957
280.3746809772733990.7493619545467970.625319022726601
290.3226806501488210.6453613002976420.677319349851179
300.2822321987213970.5644643974427950.717767801278603
310.2512030750533080.5024061501066170.748796924946691
320.1950612846843850.390122569368770.804938715315615
330.1774562187359110.3549124374718220.822543781264089
340.2625733967503460.5251467935006910.737426603249654
350.2211882735019130.4423765470038270.778811726498087
360.2539784940142670.5079569880285340.746021505985733
370.3097186287758240.6194372575516470.690281371224176
380.3915574381729360.7831148763458720.608442561827064
390.3234760709572170.6469521419144340.676523929042783
400.2638090436131090.5276180872262180.736190956386891
410.3498152640613870.6996305281227730.650184735938613
420.7364381051467650.5271237897064690.263561894853235
430.6754698918594690.6490602162810630.324530108140531
440.7468121199841410.5063757600317180.253187880015859
450.6712434736602970.6575130526794070.328756526339703
460.5892196978099260.8215606043801470.410780302190073
470.8838585137582370.2322829724835250.116141486241763
480.8195579656264370.3608840687471260.180442034373563
490.8026884520749750.3946230958500510.197311547925025
500.6936920131743420.6126159736513160.306307986825658
510.9206032950779990.1587934098440030.0793967049220015
520.9929912227474370.01401755450512660.00700877725256332

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
8 & 0.619893251925594 & 0.760213496148811 & 0.380106748074406 \tabularnewline
9 & 0.632630497329048 & 0.734739005341905 & 0.367369502670952 \tabularnewline
10 & 0.568921314545944 & 0.862157370908113 & 0.431078685454057 \tabularnewline
11 & 0.56325797692002 & 0.87348404615996 & 0.43674202307998 \tabularnewline
12 & 0.599634321552322 & 0.800731356895355 & 0.400365678447678 \tabularnewline
13 & 0.508522990301335 & 0.98295401939733 & 0.491477009698665 \tabularnewline
14 & 0.446447530437689 & 0.892895060875379 & 0.55355246956231 \tabularnewline
15 & 0.437711670656578 & 0.875423341313156 & 0.562288329343422 \tabularnewline
16 & 0.362327811537557 & 0.724655623075114 & 0.637672188462443 \tabularnewline
17 & 0.341197792631689 & 0.682395585263378 & 0.658802207368311 \tabularnewline
18 & 0.298890279478185 & 0.597780558956369 & 0.701109720521815 \tabularnewline
19 & 0.273606435143318 & 0.547212870286635 & 0.726393564856682 \tabularnewline
20 & 0.236480779403556 & 0.472961558807113 & 0.763519220596444 \tabularnewline
21 & 0.351342923983886 & 0.702685847967772 & 0.648657076016114 \tabularnewline
22 & 0.333620959124991 & 0.667241918249982 & 0.666379040875009 \tabularnewline
23 & 0.276673327562583 & 0.553346655125165 & 0.723326672437417 \tabularnewline
24 & 0.317458303043468 & 0.634916606086935 & 0.682541696956532 \tabularnewline
25 & 0.293698581199693 & 0.587397162399387 & 0.706301418800307 \tabularnewline
26 & 0.390913633381787 & 0.781827266763575 & 0.609086366618213 \tabularnewline
27 & 0.388050019929043 & 0.776100039858087 & 0.611949980070957 \tabularnewline
28 & 0.374680977273399 & 0.749361954546797 & 0.625319022726601 \tabularnewline
29 & 0.322680650148821 & 0.645361300297642 & 0.677319349851179 \tabularnewline
30 & 0.282232198721397 & 0.564464397442795 & 0.717767801278603 \tabularnewline
31 & 0.251203075053308 & 0.502406150106617 & 0.748796924946691 \tabularnewline
32 & 0.195061284684385 & 0.39012256936877 & 0.804938715315615 \tabularnewline
33 & 0.177456218735911 & 0.354912437471822 & 0.822543781264089 \tabularnewline
34 & 0.262573396750346 & 0.525146793500691 & 0.737426603249654 \tabularnewline
35 & 0.221188273501913 & 0.442376547003827 & 0.778811726498087 \tabularnewline
36 & 0.253978494014267 & 0.507956988028534 & 0.746021505985733 \tabularnewline
37 & 0.309718628775824 & 0.619437257551647 & 0.690281371224176 \tabularnewline
38 & 0.391557438172936 & 0.783114876345872 & 0.608442561827064 \tabularnewline
39 & 0.323476070957217 & 0.646952141914434 & 0.676523929042783 \tabularnewline
40 & 0.263809043613109 & 0.527618087226218 & 0.736190956386891 \tabularnewline
41 & 0.349815264061387 & 0.699630528122773 & 0.650184735938613 \tabularnewline
42 & 0.736438105146765 & 0.527123789706469 & 0.263561894853235 \tabularnewline
43 & 0.675469891859469 & 0.649060216281063 & 0.324530108140531 \tabularnewline
44 & 0.746812119984141 & 0.506375760031718 & 0.253187880015859 \tabularnewline
45 & 0.671243473660297 & 0.657513052679407 & 0.328756526339703 \tabularnewline
46 & 0.589219697809926 & 0.821560604380147 & 0.410780302190073 \tabularnewline
47 & 0.883858513758237 & 0.232282972483525 & 0.116141486241763 \tabularnewline
48 & 0.819557965626437 & 0.360884068747126 & 0.180442034373563 \tabularnewline
49 & 0.802688452074975 & 0.394623095850051 & 0.197311547925025 \tabularnewline
50 & 0.693692013174342 & 0.612615973651316 & 0.306307986825658 \tabularnewline
51 & 0.920603295077999 & 0.158793409844003 & 0.0793967049220015 \tabularnewline
52 & 0.992991222747437 & 0.0140175545051266 & 0.00700877725256332 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103923&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]8[/C][C]0.619893251925594[/C][C]0.760213496148811[/C][C]0.380106748074406[/C][/ROW]
[ROW][C]9[/C][C]0.632630497329048[/C][C]0.734739005341905[/C][C]0.367369502670952[/C][/ROW]
[ROW][C]10[/C][C]0.568921314545944[/C][C]0.862157370908113[/C][C]0.431078685454057[/C][/ROW]
[ROW][C]11[/C][C]0.56325797692002[/C][C]0.87348404615996[/C][C]0.43674202307998[/C][/ROW]
[ROW][C]12[/C][C]0.599634321552322[/C][C]0.800731356895355[/C][C]0.400365678447678[/C][/ROW]
[ROW][C]13[/C][C]0.508522990301335[/C][C]0.98295401939733[/C][C]0.491477009698665[/C][/ROW]
[ROW][C]14[/C][C]0.446447530437689[/C][C]0.892895060875379[/C][C]0.55355246956231[/C][/ROW]
[ROW][C]15[/C][C]0.437711670656578[/C][C]0.875423341313156[/C][C]0.562288329343422[/C][/ROW]
[ROW][C]16[/C][C]0.362327811537557[/C][C]0.724655623075114[/C][C]0.637672188462443[/C][/ROW]
[ROW][C]17[/C][C]0.341197792631689[/C][C]0.682395585263378[/C][C]0.658802207368311[/C][/ROW]
[ROW][C]18[/C][C]0.298890279478185[/C][C]0.597780558956369[/C][C]0.701109720521815[/C][/ROW]
[ROW][C]19[/C][C]0.273606435143318[/C][C]0.547212870286635[/C][C]0.726393564856682[/C][/ROW]
[ROW][C]20[/C][C]0.236480779403556[/C][C]0.472961558807113[/C][C]0.763519220596444[/C][/ROW]
[ROW][C]21[/C][C]0.351342923983886[/C][C]0.702685847967772[/C][C]0.648657076016114[/C][/ROW]
[ROW][C]22[/C][C]0.333620959124991[/C][C]0.667241918249982[/C][C]0.666379040875009[/C][/ROW]
[ROW][C]23[/C][C]0.276673327562583[/C][C]0.553346655125165[/C][C]0.723326672437417[/C][/ROW]
[ROW][C]24[/C][C]0.317458303043468[/C][C]0.634916606086935[/C][C]0.682541696956532[/C][/ROW]
[ROW][C]25[/C][C]0.293698581199693[/C][C]0.587397162399387[/C][C]0.706301418800307[/C][/ROW]
[ROW][C]26[/C][C]0.390913633381787[/C][C]0.781827266763575[/C][C]0.609086366618213[/C][/ROW]
[ROW][C]27[/C][C]0.388050019929043[/C][C]0.776100039858087[/C][C]0.611949980070957[/C][/ROW]
[ROW][C]28[/C][C]0.374680977273399[/C][C]0.749361954546797[/C][C]0.625319022726601[/C][/ROW]
[ROW][C]29[/C][C]0.322680650148821[/C][C]0.645361300297642[/C][C]0.677319349851179[/C][/ROW]
[ROW][C]30[/C][C]0.282232198721397[/C][C]0.564464397442795[/C][C]0.717767801278603[/C][/ROW]
[ROW][C]31[/C][C]0.251203075053308[/C][C]0.502406150106617[/C][C]0.748796924946691[/C][/ROW]
[ROW][C]32[/C][C]0.195061284684385[/C][C]0.39012256936877[/C][C]0.804938715315615[/C][/ROW]
[ROW][C]33[/C][C]0.177456218735911[/C][C]0.354912437471822[/C][C]0.822543781264089[/C][/ROW]
[ROW][C]34[/C][C]0.262573396750346[/C][C]0.525146793500691[/C][C]0.737426603249654[/C][/ROW]
[ROW][C]35[/C][C]0.221188273501913[/C][C]0.442376547003827[/C][C]0.778811726498087[/C][/ROW]
[ROW][C]36[/C][C]0.253978494014267[/C][C]0.507956988028534[/C][C]0.746021505985733[/C][/ROW]
[ROW][C]37[/C][C]0.309718628775824[/C][C]0.619437257551647[/C][C]0.690281371224176[/C][/ROW]
[ROW][C]38[/C][C]0.391557438172936[/C][C]0.783114876345872[/C][C]0.608442561827064[/C][/ROW]
[ROW][C]39[/C][C]0.323476070957217[/C][C]0.646952141914434[/C][C]0.676523929042783[/C][/ROW]
[ROW][C]40[/C][C]0.263809043613109[/C][C]0.527618087226218[/C][C]0.736190956386891[/C][/ROW]
[ROW][C]41[/C][C]0.349815264061387[/C][C]0.699630528122773[/C][C]0.650184735938613[/C][/ROW]
[ROW][C]42[/C][C]0.736438105146765[/C][C]0.527123789706469[/C][C]0.263561894853235[/C][/ROW]
[ROW][C]43[/C][C]0.675469891859469[/C][C]0.649060216281063[/C][C]0.324530108140531[/C][/ROW]
[ROW][C]44[/C][C]0.746812119984141[/C][C]0.506375760031718[/C][C]0.253187880015859[/C][/ROW]
[ROW][C]45[/C][C]0.671243473660297[/C][C]0.657513052679407[/C][C]0.328756526339703[/C][/ROW]
[ROW][C]46[/C][C]0.589219697809926[/C][C]0.821560604380147[/C][C]0.410780302190073[/C][/ROW]
[ROW][C]47[/C][C]0.883858513758237[/C][C]0.232282972483525[/C][C]0.116141486241763[/C][/ROW]
[ROW][C]48[/C][C]0.819557965626437[/C][C]0.360884068747126[/C][C]0.180442034373563[/C][/ROW]
[ROW][C]49[/C][C]0.802688452074975[/C][C]0.394623095850051[/C][C]0.197311547925025[/C][/ROW]
[ROW][C]50[/C][C]0.693692013174342[/C][C]0.612615973651316[/C][C]0.306307986825658[/C][/ROW]
[ROW][C]51[/C][C]0.920603295077999[/C][C]0.158793409844003[/C][C]0.0793967049220015[/C][/ROW]
[ROW][C]52[/C][C]0.992991222747437[/C][C]0.0140175545051266[/C][C]0.00700877725256332[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103923&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103923&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
80.6198932519255940.7602134961488110.380106748074406
90.6326304973290480.7347390053419050.367369502670952
100.5689213145459440.8621573709081130.431078685454057
110.563257976920020.873484046159960.43674202307998
120.5996343215523220.8007313568953550.400365678447678
130.5085229903013350.982954019397330.491477009698665
140.4464475304376890.8928950608753790.55355246956231
150.4377116706565780.8754233413131560.562288329343422
160.3623278115375570.7246556230751140.637672188462443
170.3411977926316890.6823955852633780.658802207368311
180.2988902794781850.5977805589563690.701109720521815
190.2736064351433180.5472128702866350.726393564856682
200.2364807794035560.4729615588071130.763519220596444
210.3513429239838860.7026858479677720.648657076016114
220.3336209591249910.6672419182499820.666379040875009
230.2766733275625830.5533466551251650.723326672437417
240.3174583030434680.6349166060869350.682541696956532
250.2936985811996930.5873971623993870.706301418800307
260.3909136333817870.7818272667635750.609086366618213
270.3880500199290430.7761000398580870.611949980070957
280.3746809772733990.7493619545467970.625319022726601
290.3226806501488210.6453613002976420.677319349851179
300.2822321987213970.5644643974427950.717767801278603
310.2512030750533080.5024061501066170.748796924946691
320.1950612846843850.390122569368770.804938715315615
330.1774562187359110.3549124374718220.822543781264089
340.2625733967503460.5251467935006910.737426603249654
350.2211882735019130.4423765470038270.778811726498087
360.2539784940142670.5079569880285340.746021505985733
370.3097186287758240.6194372575516470.690281371224176
380.3915574381729360.7831148763458720.608442561827064
390.3234760709572170.6469521419144340.676523929042783
400.2638090436131090.5276180872262180.736190956386891
410.3498152640613870.6996305281227730.650184735938613
420.7364381051467650.5271237897064690.263561894853235
430.6754698918594690.6490602162810630.324530108140531
440.7468121199841410.5063757600317180.253187880015859
450.6712434736602970.6575130526794070.328756526339703
460.5892196978099260.8215606043801470.410780302190073
470.8838585137582370.2322829724835250.116141486241763
480.8195579656264370.3608840687471260.180442034373563
490.8026884520749750.3946230958500510.197311547925025
500.6936920131743420.6126159736513160.306307986825658
510.9206032950779990.1587934098440030.0793967049220015
520.9929912227474370.01401755450512660.00700877725256332







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103923&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 level10.0222222222222222OK
10% type I error level10.0222222222222222OK



Parameters (Session):
par1 = 3 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 3 ; par2 = Do not include Seasonal 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')
}