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, 18 Nov 2009 09:53:03 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/18/t1258563250xg3vthyaadz78oh.htm/, Retrieved Mon, 29 Apr 2024 00:40:26 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57534, Retrieved Mon, 29 Apr 2024 00:40:26 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact144
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Icons vs. Inprod] [2009-11-18 16:53:03] [41dcf2419e4beff0486cef71832b5d35] [Current]
- R  D    [Multiple Regression] [] [2009-11-20 17:30:56] [fa71ec4c741ffec745cb91dcbd756720]
Feedback Forum

Post a new message
Dataseries X:
23	25,7
19	24,7
18	24,2
19	23,6
19	24,4
22	22,5
23	19,4
20	18,1
14	18,1
14	20,7
14	19,1
15	18,3
11	16,9
17	17,9
16	20,2
20	21,2
24	23,8
23	24
20	26,6
21	25,3
19	27,6
23	24,7
23	26,6
23	24,4
23	24,6
27	26
26	24,8
17	24
24	22,7
26	23
24	24,1
27	24
27	22,7
26	22,6
24	23,1
23	24,4
23	23
24	22
17	21,3
21	21,5
19	21,3
22	23,2
22	21,8
18	23,3
16	21
14	22,4
12	20,4
14	19,9
16	21,3
8	18,9
3	15,6
0	12,5
5	7,8
1	5,5
1	4
3	3,3
6	3,7
7	3,1
8	5
14	6,3




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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = -0.38093323978063 + 0.898293762592767X[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -0.38093323978063 +  0.898293762592767X[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57534&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -0.38093323978063 +  0.898293762592767X[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57534&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = -0.38093323978063 + 0.898293762592767X[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-0.380933239780631.746297-0.21810.8280870.414044
X0.8982937625927670.08350210.757700

\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.38093323978063 & 1.746297 & -0.2181 & 0.828087 & 0.414044 \tabularnewline
X & 0.898293762592767 & 0.083502 & 10.7577 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57534&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.38093323978063[/C][C]1.746297[/C][C]-0.2181[/C][C]0.828087[/C][C]0.414044[/C][/ROW]
[ROW][C]X[/C][C]0.898293762592767[/C][C]0.083502[/C][C]10.7577[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57534&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57534&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.380933239780631.746297-0.21810.8280870.414044
X0.8982937625927670.08350210.757700







Multiple Linear Regression - Regression Statistics
Multiple R0.816177622465578
R-squared0.666145911413564
Adjusted R-squared0.660389806437936
F-TEST (value)115.728589772785
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value1.99840144432528e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.22211716668176
Sum Squared Residuals1033.92385541295

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.816177622465578 \tabularnewline
R-squared & 0.666145911413564 \tabularnewline
Adjusted R-squared & 0.660389806437936 \tabularnewline
F-TEST (value) & 115.728589772785 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 1.99840144432528e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.22211716668176 \tabularnewline
Sum Squared Residuals & 1033.92385541295 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57534&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.816177622465578[/C][/ROW]
[ROW][C]R-squared[/C][C]0.666145911413564[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.660389806437936[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]115.728589772785[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]1.99840144432528e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4.22211716668176[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1033.92385541295[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57534&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57534&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.816177622465578
R-squared0.666145911413564
Adjusted R-squared0.660389806437936
F-TEST (value)115.728589772785
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value1.99840144432528e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.22211716668176
Sum Squared Residuals1033.92385541295







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12322.70521645885350.294783541146501
21921.8069226962607-2.80692269626071
31821.3577758149643-3.35777581496433
41920.8187995574087-1.81879955740868
51921.5374345674829-2.53743456748289
62219.83067641855662.16932358144337
72317.04596575451915.95403424548095
82015.87818386314854.12181613685154
91415.8781838631485-1.87818386314846
101418.2137476458897-4.21374764588965
111416.7764776257412-2.77647762574122
121516.057842615667-1.05784261566701
131114.8002313480371-3.80023134803714
141715.69852511062991.30147488937010
151617.7646007645933-1.76460076459327
162018.66289452718601.33710547281397
172420.99845830992723.00154169007277
182321.17811706244581.82188293755422
192023.5136808451870-3.51368084518698
202122.3458989538164-1.34589895381638
211924.4119746077797-5.41197460777974
222321.80692269626071.19307730373928
232323.5136808451870-0.513680845186977
242321.53743456748291.46256543251711
252321.71709332000141.28290667999856
262722.97470458763134.02529541236868
272621.896752072524.10324792748000
281721.1781170624458-4.17811706244578
292420.01033517107523.98966482892482
302620.2798232998535.72017670014699
312421.26794643870512.73205356129494
322721.17811706244585.82188293755422
332720.01033517107526.98966482892482
342619.92050579481596.07949420518409
352420.36965267611233.63034732388771
362321.53743456748291.46256543251711
372320.2798232998532.72017670014699
382419.38152953726024.61847046273975
391718.7527239034453-1.75272390344531
402118.93238265596392.06761734403614
411918.75272390344530.247276096554688
422220.45948205237161.54051794762843
432219.20187078474172.79812921525830
441820.5493114286308-2.54931142863085
451618.4832357746675-2.48323577466748
461419.7408470422974-5.74084704229735
471217.9442595171118-5.94425951711182
481417.4951126358154-3.49511263581544
491618.7527239034453-2.75272390344531
50816.5968188732227-8.59681887322267
51313.6324494566665-10.6324494566665
52010.8477387926290-10.8477387926290
5356.62575810844296-1.62575810844296
5414.55968245447959-3.55968245447959
5513.21224181059044-2.21224181059044
5632.583436176775510.416563823224494
5762.942753681812613.05724631818739
5872.403777424256954.59622257574305
5984.110535573183213.88946442681679
60145.278317464553818.72168253544619

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 23 & 22.7052164588535 & 0.294783541146501 \tabularnewline
2 & 19 & 21.8069226962607 & -2.80692269626071 \tabularnewline
3 & 18 & 21.3577758149643 & -3.35777581496433 \tabularnewline
4 & 19 & 20.8187995574087 & -1.81879955740868 \tabularnewline
5 & 19 & 21.5374345674829 & -2.53743456748289 \tabularnewline
6 & 22 & 19.8306764185566 & 2.16932358144337 \tabularnewline
7 & 23 & 17.0459657545191 & 5.95403424548095 \tabularnewline
8 & 20 & 15.8781838631485 & 4.12181613685154 \tabularnewline
9 & 14 & 15.8781838631485 & -1.87818386314846 \tabularnewline
10 & 14 & 18.2137476458897 & -4.21374764588965 \tabularnewline
11 & 14 & 16.7764776257412 & -2.77647762574122 \tabularnewline
12 & 15 & 16.057842615667 & -1.05784261566701 \tabularnewline
13 & 11 & 14.8002313480371 & -3.80023134803714 \tabularnewline
14 & 17 & 15.6985251106299 & 1.30147488937010 \tabularnewline
15 & 16 & 17.7646007645933 & -1.76460076459327 \tabularnewline
16 & 20 & 18.6628945271860 & 1.33710547281397 \tabularnewline
17 & 24 & 20.9984583099272 & 3.00154169007277 \tabularnewline
18 & 23 & 21.1781170624458 & 1.82188293755422 \tabularnewline
19 & 20 & 23.5136808451870 & -3.51368084518698 \tabularnewline
20 & 21 & 22.3458989538164 & -1.34589895381638 \tabularnewline
21 & 19 & 24.4119746077797 & -5.41197460777974 \tabularnewline
22 & 23 & 21.8069226962607 & 1.19307730373928 \tabularnewline
23 & 23 & 23.5136808451870 & -0.513680845186977 \tabularnewline
24 & 23 & 21.5374345674829 & 1.46256543251711 \tabularnewline
25 & 23 & 21.7170933200014 & 1.28290667999856 \tabularnewline
26 & 27 & 22.9747045876313 & 4.02529541236868 \tabularnewline
27 & 26 & 21.89675207252 & 4.10324792748000 \tabularnewline
28 & 17 & 21.1781170624458 & -4.17811706244578 \tabularnewline
29 & 24 & 20.0103351710752 & 3.98966482892482 \tabularnewline
30 & 26 & 20.279823299853 & 5.72017670014699 \tabularnewline
31 & 24 & 21.2679464387051 & 2.73205356129494 \tabularnewline
32 & 27 & 21.1781170624458 & 5.82188293755422 \tabularnewline
33 & 27 & 20.0103351710752 & 6.98966482892482 \tabularnewline
34 & 26 & 19.9205057948159 & 6.07949420518409 \tabularnewline
35 & 24 & 20.3696526761123 & 3.63034732388771 \tabularnewline
36 & 23 & 21.5374345674829 & 1.46256543251711 \tabularnewline
37 & 23 & 20.279823299853 & 2.72017670014699 \tabularnewline
38 & 24 & 19.3815295372602 & 4.61847046273975 \tabularnewline
39 & 17 & 18.7527239034453 & -1.75272390344531 \tabularnewline
40 & 21 & 18.9323826559639 & 2.06761734403614 \tabularnewline
41 & 19 & 18.7527239034453 & 0.247276096554688 \tabularnewline
42 & 22 & 20.4594820523716 & 1.54051794762843 \tabularnewline
43 & 22 & 19.2018707847417 & 2.79812921525830 \tabularnewline
44 & 18 & 20.5493114286308 & -2.54931142863085 \tabularnewline
45 & 16 & 18.4832357746675 & -2.48323577466748 \tabularnewline
46 & 14 & 19.7408470422974 & -5.74084704229735 \tabularnewline
47 & 12 & 17.9442595171118 & -5.94425951711182 \tabularnewline
48 & 14 & 17.4951126358154 & -3.49511263581544 \tabularnewline
49 & 16 & 18.7527239034453 & -2.75272390344531 \tabularnewline
50 & 8 & 16.5968188732227 & -8.59681887322267 \tabularnewline
51 & 3 & 13.6324494566665 & -10.6324494566665 \tabularnewline
52 & 0 & 10.8477387926290 & -10.8477387926290 \tabularnewline
53 & 5 & 6.62575810844296 & -1.62575810844296 \tabularnewline
54 & 1 & 4.55968245447959 & -3.55968245447959 \tabularnewline
55 & 1 & 3.21224181059044 & -2.21224181059044 \tabularnewline
56 & 3 & 2.58343617677551 & 0.416563823224494 \tabularnewline
57 & 6 & 2.94275368181261 & 3.05724631818739 \tabularnewline
58 & 7 & 2.40377742425695 & 4.59622257574305 \tabularnewline
59 & 8 & 4.11053557318321 & 3.88946442681679 \tabularnewline
60 & 14 & 5.27831746455381 & 8.72168253544619 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57534&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]23[/C][C]22.7052164588535[/C][C]0.294783541146501[/C][/ROW]
[ROW][C]2[/C][C]19[/C][C]21.8069226962607[/C][C]-2.80692269626071[/C][/ROW]
[ROW][C]3[/C][C]18[/C][C]21.3577758149643[/C][C]-3.35777581496433[/C][/ROW]
[ROW][C]4[/C][C]19[/C][C]20.8187995574087[/C][C]-1.81879955740868[/C][/ROW]
[ROW][C]5[/C][C]19[/C][C]21.5374345674829[/C][C]-2.53743456748289[/C][/ROW]
[ROW][C]6[/C][C]22[/C][C]19.8306764185566[/C][C]2.16932358144337[/C][/ROW]
[ROW][C]7[/C][C]23[/C][C]17.0459657545191[/C][C]5.95403424548095[/C][/ROW]
[ROW][C]8[/C][C]20[/C][C]15.8781838631485[/C][C]4.12181613685154[/C][/ROW]
[ROW][C]9[/C][C]14[/C][C]15.8781838631485[/C][C]-1.87818386314846[/C][/ROW]
[ROW][C]10[/C][C]14[/C][C]18.2137476458897[/C][C]-4.21374764588965[/C][/ROW]
[ROW][C]11[/C][C]14[/C][C]16.7764776257412[/C][C]-2.77647762574122[/C][/ROW]
[ROW][C]12[/C][C]15[/C][C]16.057842615667[/C][C]-1.05784261566701[/C][/ROW]
[ROW][C]13[/C][C]11[/C][C]14.8002313480371[/C][C]-3.80023134803714[/C][/ROW]
[ROW][C]14[/C][C]17[/C][C]15.6985251106299[/C][C]1.30147488937010[/C][/ROW]
[ROW][C]15[/C][C]16[/C][C]17.7646007645933[/C][C]-1.76460076459327[/C][/ROW]
[ROW][C]16[/C][C]20[/C][C]18.6628945271860[/C][C]1.33710547281397[/C][/ROW]
[ROW][C]17[/C][C]24[/C][C]20.9984583099272[/C][C]3.00154169007277[/C][/ROW]
[ROW][C]18[/C][C]23[/C][C]21.1781170624458[/C][C]1.82188293755422[/C][/ROW]
[ROW][C]19[/C][C]20[/C][C]23.5136808451870[/C][C]-3.51368084518698[/C][/ROW]
[ROW][C]20[/C][C]21[/C][C]22.3458989538164[/C][C]-1.34589895381638[/C][/ROW]
[ROW][C]21[/C][C]19[/C][C]24.4119746077797[/C][C]-5.41197460777974[/C][/ROW]
[ROW][C]22[/C][C]23[/C][C]21.8069226962607[/C][C]1.19307730373928[/C][/ROW]
[ROW][C]23[/C][C]23[/C][C]23.5136808451870[/C][C]-0.513680845186977[/C][/ROW]
[ROW][C]24[/C][C]23[/C][C]21.5374345674829[/C][C]1.46256543251711[/C][/ROW]
[ROW][C]25[/C][C]23[/C][C]21.7170933200014[/C][C]1.28290667999856[/C][/ROW]
[ROW][C]26[/C][C]27[/C][C]22.9747045876313[/C][C]4.02529541236868[/C][/ROW]
[ROW][C]27[/C][C]26[/C][C]21.89675207252[/C][C]4.10324792748000[/C][/ROW]
[ROW][C]28[/C][C]17[/C][C]21.1781170624458[/C][C]-4.17811706244578[/C][/ROW]
[ROW][C]29[/C][C]24[/C][C]20.0103351710752[/C][C]3.98966482892482[/C][/ROW]
[ROW][C]30[/C][C]26[/C][C]20.279823299853[/C][C]5.72017670014699[/C][/ROW]
[ROW][C]31[/C][C]24[/C][C]21.2679464387051[/C][C]2.73205356129494[/C][/ROW]
[ROW][C]32[/C][C]27[/C][C]21.1781170624458[/C][C]5.82188293755422[/C][/ROW]
[ROW][C]33[/C][C]27[/C][C]20.0103351710752[/C][C]6.98966482892482[/C][/ROW]
[ROW][C]34[/C][C]26[/C][C]19.9205057948159[/C][C]6.07949420518409[/C][/ROW]
[ROW][C]35[/C][C]24[/C][C]20.3696526761123[/C][C]3.63034732388771[/C][/ROW]
[ROW][C]36[/C][C]23[/C][C]21.5374345674829[/C][C]1.46256543251711[/C][/ROW]
[ROW][C]37[/C][C]23[/C][C]20.279823299853[/C][C]2.72017670014699[/C][/ROW]
[ROW][C]38[/C][C]24[/C][C]19.3815295372602[/C][C]4.61847046273975[/C][/ROW]
[ROW][C]39[/C][C]17[/C][C]18.7527239034453[/C][C]-1.75272390344531[/C][/ROW]
[ROW][C]40[/C][C]21[/C][C]18.9323826559639[/C][C]2.06761734403614[/C][/ROW]
[ROW][C]41[/C][C]19[/C][C]18.7527239034453[/C][C]0.247276096554688[/C][/ROW]
[ROW][C]42[/C][C]22[/C][C]20.4594820523716[/C][C]1.54051794762843[/C][/ROW]
[ROW][C]43[/C][C]22[/C][C]19.2018707847417[/C][C]2.79812921525830[/C][/ROW]
[ROW][C]44[/C][C]18[/C][C]20.5493114286308[/C][C]-2.54931142863085[/C][/ROW]
[ROW][C]45[/C][C]16[/C][C]18.4832357746675[/C][C]-2.48323577466748[/C][/ROW]
[ROW][C]46[/C][C]14[/C][C]19.7408470422974[/C][C]-5.74084704229735[/C][/ROW]
[ROW][C]47[/C][C]12[/C][C]17.9442595171118[/C][C]-5.94425951711182[/C][/ROW]
[ROW][C]48[/C][C]14[/C][C]17.4951126358154[/C][C]-3.49511263581544[/C][/ROW]
[ROW][C]49[/C][C]16[/C][C]18.7527239034453[/C][C]-2.75272390344531[/C][/ROW]
[ROW][C]50[/C][C]8[/C][C]16.5968188732227[/C][C]-8.59681887322267[/C][/ROW]
[ROW][C]51[/C][C]3[/C][C]13.6324494566665[/C][C]-10.6324494566665[/C][/ROW]
[ROW][C]52[/C][C]0[/C][C]10.8477387926290[/C][C]-10.8477387926290[/C][/ROW]
[ROW][C]53[/C][C]5[/C][C]6.62575810844296[/C][C]-1.62575810844296[/C][/ROW]
[ROW][C]54[/C][C]1[/C][C]4.55968245447959[/C][C]-3.55968245447959[/C][/ROW]
[ROW][C]55[/C][C]1[/C][C]3.21224181059044[/C][C]-2.21224181059044[/C][/ROW]
[ROW][C]56[/C][C]3[/C][C]2.58343617677551[/C][C]0.416563823224494[/C][/ROW]
[ROW][C]57[/C][C]6[/C][C]2.94275368181261[/C][C]3.05724631818739[/C][/ROW]
[ROW][C]58[/C][C]7[/C][C]2.40377742425695[/C][C]4.59622257574305[/C][/ROW]
[ROW][C]59[/C][C]8[/C][C]4.11053557318321[/C][C]3.88946442681679[/C][/ROW]
[ROW][C]60[/C][C]14[/C][C]5.27831746455381[/C][C]8.72168253544619[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57534&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57534&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
12322.70521645885350.294783541146501
21921.8069226962607-2.80692269626071
31821.3577758149643-3.35777581496433
41920.8187995574087-1.81879955740868
51921.5374345674829-2.53743456748289
62219.83067641855662.16932358144337
72317.04596575451915.95403424548095
82015.87818386314854.12181613685154
91415.8781838631485-1.87818386314846
101418.2137476458897-4.21374764588965
111416.7764776257412-2.77647762574122
121516.057842615667-1.05784261566701
131114.8002313480371-3.80023134803714
141715.69852511062991.30147488937010
151617.7646007645933-1.76460076459327
162018.66289452718601.33710547281397
172420.99845830992723.00154169007277
182321.17811706244581.82188293755422
192023.5136808451870-3.51368084518698
202122.3458989538164-1.34589895381638
211924.4119746077797-5.41197460777974
222321.80692269626071.19307730373928
232323.5136808451870-0.513680845186977
242321.53743456748291.46256543251711
252321.71709332000141.28290667999856
262722.97470458763134.02529541236868
272621.896752072524.10324792748000
281721.1781170624458-4.17811706244578
292420.01033517107523.98966482892482
302620.2798232998535.72017670014699
312421.26794643870512.73205356129494
322721.17811706244585.82188293755422
332720.01033517107526.98966482892482
342619.92050579481596.07949420518409
352420.36965267611233.63034732388771
362321.53743456748291.46256543251711
372320.2798232998532.72017670014699
382419.38152953726024.61847046273975
391718.7527239034453-1.75272390344531
402118.93238265596392.06761734403614
411918.75272390344530.247276096554688
422220.45948205237161.54051794762843
432219.20187078474172.79812921525830
441820.5493114286308-2.54931142863085
451618.4832357746675-2.48323577466748
461419.7408470422974-5.74084704229735
471217.9442595171118-5.94425951711182
481417.4951126358154-3.49511263581544
491618.7527239034453-2.75272390344531
50816.5968188732227-8.59681887322267
51313.6324494566665-10.6324494566665
52010.8477387926290-10.8477387926290
5356.62575810844296-1.62575810844296
5414.55968245447959-3.55968245447959
5513.21224181059044-2.21224181059044
5632.583436176775510.416563823224494
5762.942753681812613.05724631818739
5872.403777424256954.59622257574305
5984.110535573183213.88946442681679
60145.278317464553818.72168253544619







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.02964079617923420.05928159235846830.970359203820766
60.09665762949453980.1933152589890800.90334237050546
70.05713890140061560.1142778028012310.942861098599384
80.0352371268173470.0704742536346940.964762873182653
90.1297536643297050.259507328659410.870246335670295
100.1826905739424090.3653811478848180.817309426057591
110.1724315039468130.3448630078936270.827568496053187
120.1207157632418770.2414315264837540.879284236758123
130.1293290517528360.2586581035056720.870670948247164
140.0888450685439990.1776901370879980.911154931456001
150.05823336232054080.1164667246410820.94176663767946
160.04080952656800140.08161905313600270.959190473431999
170.04189925113265450.0837985022653090.958100748867345
180.03067231529921990.06134463059843990.96932768470078
190.02422104142335130.04844208284670260.975778958576649
200.01434298946573670.02868597893147350.985657010534263
210.01607616283847990.03215232567695990.98392383716152
220.01150673573937630.02301347147875260.988493264260624
230.006846884076788590.01369376815357720.993153115923211
240.004718120938524920.009436241877049850.995281879061475
250.003048581655290980.006097163310581960.99695141834471
260.00418492108150380.00836984216300760.995815078918496
270.004945184110185610.009890368220371210.995054815889814
280.005135534258474820.01027106851694960.994864465741525
290.005349727931664370.01069945586332870.994650272068336
300.00943710706336790.01887421412673580.990562892936632
310.007083616677063430.01416723335412690.992916383322937
320.01204696856251210.02409393712502430.987953031437488
330.02858159499936970.05716318999873950.97141840500063
340.0478312636102260.0956625272204520.952168736389774
350.04712829772387430.09425659544774850.952871702276126
360.03605669425507270.07211338851014550.963943305744927
370.03301165760859020.06602331521718030.96698834239141
380.04891739971706480.09783479943412960.951082600282935
390.03587738767980680.07175477535961360.964122612320193
400.03427586595947880.06855173191895750.965724134040521
410.02721061498258810.05442122996517630.972789385017412
420.03153418712491070.06306837424982140.96846581287509
430.06090770128317760.1218154025663550.939092298716822
440.0620102411778790.1240204823557580.93798975882212
450.06133959411320320.1226791882264060.938660405886797
460.0643588507774920.1287177015549840.935641149222508
470.06136267641533790.1227253528306760.938637323584662
480.06071803252526680.1214360650505340.939281967474733
490.1686401683280730.3372803366561460.831359831671927
500.2356237533356690.4712475066713380.764376246664331
510.2211273180542590.4422546361085170.778872681945741
520.2770699772196610.5541399544393220.722930022780339
530.2736654654693950.5473309309387890.726334534530605
540.6054218516835680.7891562966328650.394578148316432
550.825098681553290.349802636893420.17490131844671

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.0296407961792342 & 0.0592815923584683 & 0.970359203820766 \tabularnewline
6 & 0.0966576294945398 & 0.193315258989080 & 0.90334237050546 \tabularnewline
7 & 0.0571389014006156 & 0.114277802801231 & 0.942861098599384 \tabularnewline
8 & 0.035237126817347 & 0.070474253634694 & 0.964762873182653 \tabularnewline
9 & 0.129753664329705 & 0.25950732865941 & 0.870246335670295 \tabularnewline
10 & 0.182690573942409 & 0.365381147884818 & 0.817309426057591 \tabularnewline
11 & 0.172431503946813 & 0.344863007893627 & 0.827568496053187 \tabularnewline
12 & 0.120715763241877 & 0.241431526483754 & 0.879284236758123 \tabularnewline
13 & 0.129329051752836 & 0.258658103505672 & 0.870670948247164 \tabularnewline
14 & 0.088845068543999 & 0.177690137087998 & 0.911154931456001 \tabularnewline
15 & 0.0582333623205408 & 0.116466724641082 & 0.94176663767946 \tabularnewline
16 & 0.0408095265680014 & 0.0816190531360027 & 0.959190473431999 \tabularnewline
17 & 0.0418992511326545 & 0.083798502265309 & 0.958100748867345 \tabularnewline
18 & 0.0306723152992199 & 0.0613446305984399 & 0.96932768470078 \tabularnewline
19 & 0.0242210414233513 & 0.0484420828467026 & 0.975778958576649 \tabularnewline
20 & 0.0143429894657367 & 0.0286859789314735 & 0.985657010534263 \tabularnewline
21 & 0.0160761628384799 & 0.0321523256769599 & 0.98392383716152 \tabularnewline
22 & 0.0115067357393763 & 0.0230134714787526 & 0.988493264260624 \tabularnewline
23 & 0.00684688407678859 & 0.0136937681535772 & 0.993153115923211 \tabularnewline
24 & 0.00471812093852492 & 0.00943624187704985 & 0.995281879061475 \tabularnewline
25 & 0.00304858165529098 & 0.00609716331058196 & 0.99695141834471 \tabularnewline
26 & 0.0041849210815038 & 0.0083698421630076 & 0.995815078918496 \tabularnewline
27 & 0.00494518411018561 & 0.00989036822037121 & 0.995054815889814 \tabularnewline
28 & 0.00513553425847482 & 0.0102710685169496 & 0.994864465741525 \tabularnewline
29 & 0.00534972793166437 & 0.0106994558633287 & 0.994650272068336 \tabularnewline
30 & 0.0094371070633679 & 0.0188742141267358 & 0.990562892936632 \tabularnewline
31 & 0.00708361667706343 & 0.0141672333541269 & 0.992916383322937 \tabularnewline
32 & 0.0120469685625121 & 0.0240939371250243 & 0.987953031437488 \tabularnewline
33 & 0.0285815949993697 & 0.0571631899987395 & 0.97141840500063 \tabularnewline
34 & 0.047831263610226 & 0.095662527220452 & 0.952168736389774 \tabularnewline
35 & 0.0471282977238743 & 0.0942565954477485 & 0.952871702276126 \tabularnewline
36 & 0.0360566942550727 & 0.0721133885101455 & 0.963943305744927 \tabularnewline
37 & 0.0330116576085902 & 0.0660233152171803 & 0.96698834239141 \tabularnewline
38 & 0.0489173997170648 & 0.0978347994341296 & 0.951082600282935 \tabularnewline
39 & 0.0358773876798068 & 0.0717547753596136 & 0.964122612320193 \tabularnewline
40 & 0.0342758659594788 & 0.0685517319189575 & 0.965724134040521 \tabularnewline
41 & 0.0272106149825881 & 0.0544212299651763 & 0.972789385017412 \tabularnewline
42 & 0.0315341871249107 & 0.0630683742498214 & 0.96846581287509 \tabularnewline
43 & 0.0609077012831776 & 0.121815402566355 & 0.939092298716822 \tabularnewline
44 & 0.062010241177879 & 0.124020482355758 & 0.93798975882212 \tabularnewline
45 & 0.0613395941132032 & 0.122679188226406 & 0.938660405886797 \tabularnewline
46 & 0.064358850777492 & 0.128717701554984 & 0.935641149222508 \tabularnewline
47 & 0.0613626764153379 & 0.122725352830676 & 0.938637323584662 \tabularnewline
48 & 0.0607180325252668 & 0.121436065050534 & 0.939281967474733 \tabularnewline
49 & 0.168640168328073 & 0.337280336656146 & 0.831359831671927 \tabularnewline
50 & 0.235623753335669 & 0.471247506671338 & 0.764376246664331 \tabularnewline
51 & 0.221127318054259 & 0.442254636108517 & 0.778872681945741 \tabularnewline
52 & 0.277069977219661 & 0.554139954439322 & 0.722930022780339 \tabularnewline
53 & 0.273665465469395 & 0.547330930938789 & 0.726334534530605 \tabularnewline
54 & 0.605421851683568 & 0.789156296632865 & 0.394578148316432 \tabularnewline
55 & 0.82509868155329 & 0.34980263689342 & 0.17490131844671 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57534&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]5[/C][C]0.0296407961792342[/C][C]0.0592815923584683[/C][C]0.970359203820766[/C][/ROW]
[ROW][C]6[/C][C]0.0966576294945398[/C][C]0.193315258989080[/C][C]0.90334237050546[/C][/ROW]
[ROW][C]7[/C][C]0.0571389014006156[/C][C]0.114277802801231[/C][C]0.942861098599384[/C][/ROW]
[ROW][C]8[/C][C]0.035237126817347[/C][C]0.070474253634694[/C][C]0.964762873182653[/C][/ROW]
[ROW][C]9[/C][C]0.129753664329705[/C][C]0.25950732865941[/C][C]0.870246335670295[/C][/ROW]
[ROW][C]10[/C][C]0.182690573942409[/C][C]0.365381147884818[/C][C]0.817309426057591[/C][/ROW]
[ROW][C]11[/C][C]0.172431503946813[/C][C]0.344863007893627[/C][C]0.827568496053187[/C][/ROW]
[ROW][C]12[/C][C]0.120715763241877[/C][C]0.241431526483754[/C][C]0.879284236758123[/C][/ROW]
[ROW][C]13[/C][C]0.129329051752836[/C][C]0.258658103505672[/C][C]0.870670948247164[/C][/ROW]
[ROW][C]14[/C][C]0.088845068543999[/C][C]0.177690137087998[/C][C]0.911154931456001[/C][/ROW]
[ROW][C]15[/C][C]0.0582333623205408[/C][C]0.116466724641082[/C][C]0.94176663767946[/C][/ROW]
[ROW][C]16[/C][C]0.0408095265680014[/C][C]0.0816190531360027[/C][C]0.959190473431999[/C][/ROW]
[ROW][C]17[/C][C]0.0418992511326545[/C][C]0.083798502265309[/C][C]0.958100748867345[/C][/ROW]
[ROW][C]18[/C][C]0.0306723152992199[/C][C]0.0613446305984399[/C][C]0.96932768470078[/C][/ROW]
[ROW][C]19[/C][C]0.0242210414233513[/C][C]0.0484420828467026[/C][C]0.975778958576649[/C][/ROW]
[ROW][C]20[/C][C]0.0143429894657367[/C][C]0.0286859789314735[/C][C]0.985657010534263[/C][/ROW]
[ROW][C]21[/C][C]0.0160761628384799[/C][C]0.0321523256769599[/C][C]0.98392383716152[/C][/ROW]
[ROW][C]22[/C][C]0.0115067357393763[/C][C]0.0230134714787526[/C][C]0.988493264260624[/C][/ROW]
[ROW][C]23[/C][C]0.00684688407678859[/C][C]0.0136937681535772[/C][C]0.993153115923211[/C][/ROW]
[ROW][C]24[/C][C]0.00471812093852492[/C][C]0.00943624187704985[/C][C]0.995281879061475[/C][/ROW]
[ROW][C]25[/C][C]0.00304858165529098[/C][C]0.00609716331058196[/C][C]0.99695141834471[/C][/ROW]
[ROW][C]26[/C][C]0.0041849210815038[/C][C]0.0083698421630076[/C][C]0.995815078918496[/C][/ROW]
[ROW][C]27[/C][C]0.00494518411018561[/C][C]0.00989036822037121[/C][C]0.995054815889814[/C][/ROW]
[ROW][C]28[/C][C]0.00513553425847482[/C][C]0.0102710685169496[/C][C]0.994864465741525[/C][/ROW]
[ROW][C]29[/C][C]0.00534972793166437[/C][C]0.0106994558633287[/C][C]0.994650272068336[/C][/ROW]
[ROW][C]30[/C][C]0.0094371070633679[/C][C]0.0188742141267358[/C][C]0.990562892936632[/C][/ROW]
[ROW][C]31[/C][C]0.00708361667706343[/C][C]0.0141672333541269[/C][C]0.992916383322937[/C][/ROW]
[ROW][C]32[/C][C]0.0120469685625121[/C][C]0.0240939371250243[/C][C]0.987953031437488[/C][/ROW]
[ROW][C]33[/C][C]0.0285815949993697[/C][C]0.0571631899987395[/C][C]0.97141840500063[/C][/ROW]
[ROW][C]34[/C][C]0.047831263610226[/C][C]0.095662527220452[/C][C]0.952168736389774[/C][/ROW]
[ROW][C]35[/C][C]0.0471282977238743[/C][C]0.0942565954477485[/C][C]0.952871702276126[/C][/ROW]
[ROW][C]36[/C][C]0.0360566942550727[/C][C]0.0721133885101455[/C][C]0.963943305744927[/C][/ROW]
[ROW][C]37[/C][C]0.0330116576085902[/C][C]0.0660233152171803[/C][C]0.96698834239141[/C][/ROW]
[ROW][C]38[/C][C]0.0489173997170648[/C][C]0.0978347994341296[/C][C]0.951082600282935[/C][/ROW]
[ROW][C]39[/C][C]0.0358773876798068[/C][C]0.0717547753596136[/C][C]0.964122612320193[/C][/ROW]
[ROW][C]40[/C][C]0.0342758659594788[/C][C]0.0685517319189575[/C][C]0.965724134040521[/C][/ROW]
[ROW][C]41[/C][C]0.0272106149825881[/C][C]0.0544212299651763[/C][C]0.972789385017412[/C][/ROW]
[ROW][C]42[/C][C]0.0315341871249107[/C][C]0.0630683742498214[/C][C]0.96846581287509[/C][/ROW]
[ROW][C]43[/C][C]0.0609077012831776[/C][C]0.121815402566355[/C][C]0.939092298716822[/C][/ROW]
[ROW][C]44[/C][C]0.062010241177879[/C][C]0.124020482355758[/C][C]0.93798975882212[/C][/ROW]
[ROW][C]45[/C][C]0.0613395941132032[/C][C]0.122679188226406[/C][C]0.938660405886797[/C][/ROW]
[ROW][C]46[/C][C]0.064358850777492[/C][C]0.128717701554984[/C][C]0.935641149222508[/C][/ROW]
[ROW][C]47[/C][C]0.0613626764153379[/C][C]0.122725352830676[/C][C]0.938637323584662[/C][/ROW]
[ROW][C]48[/C][C]0.0607180325252668[/C][C]0.121436065050534[/C][C]0.939281967474733[/C][/ROW]
[ROW][C]49[/C][C]0.168640168328073[/C][C]0.337280336656146[/C][C]0.831359831671927[/C][/ROW]
[ROW][C]50[/C][C]0.235623753335669[/C][C]0.471247506671338[/C][C]0.764376246664331[/C][/ROW]
[ROW][C]51[/C][C]0.221127318054259[/C][C]0.442254636108517[/C][C]0.778872681945741[/C][/ROW]
[ROW][C]52[/C][C]0.277069977219661[/C][C]0.554139954439322[/C][C]0.722930022780339[/C][/ROW]
[ROW][C]53[/C][C]0.273665465469395[/C][C]0.547330930938789[/C][C]0.726334534530605[/C][/ROW]
[ROW][C]54[/C][C]0.605421851683568[/C][C]0.789156296632865[/C][C]0.394578148316432[/C][/ROW]
[ROW][C]55[/C][C]0.82509868155329[/C][C]0.34980263689342[/C][C]0.17490131844671[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57534&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57534&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
50.02964079617923420.05928159235846830.970359203820766
60.09665762949453980.1933152589890800.90334237050546
70.05713890140061560.1142778028012310.942861098599384
80.0352371268173470.0704742536346940.964762873182653
90.1297536643297050.259507328659410.870246335670295
100.1826905739424090.3653811478848180.817309426057591
110.1724315039468130.3448630078936270.827568496053187
120.1207157632418770.2414315264837540.879284236758123
130.1293290517528360.2586581035056720.870670948247164
140.0888450685439990.1776901370879980.911154931456001
150.05823336232054080.1164667246410820.94176663767946
160.04080952656800140.08161905313600270.959190473431999
170.04189925113265450.0837985022653090.958100748867345
180.03067231529921990.06134463059843990.96932768470078
190.02422104142335130.04844208284670260.975778958576649
200.01434298946573670.02868597893147350.985657010534263
210.01607616283847990.03215232567695990.98392383716152
220.01150673573937630.02301347147875260.988493264260624
230.006846884076788590.01369376815357720.993153115923211
240.004718120938524920.009436241877049850.995281879061475
250.003048581655290980.006097163310581960.99695141834471
260.00418492108150380.00836984216300760.995815078918496
270.004945184110185610.009890368220371210.995054815889814
280.005135534258474820.01027106851694960.994864465741525
290.005349727931664370.01069945586332870.994650272068336
300.00943710706336790.01887421412673580.990562892936632
310.007083616677063430.01416723335412690.992916383322937
320.01204696856251210.02409393712502430.987953031437488
330.02858159499936970.05716318999873950.97141840500063
340.0478312636102260.0956625272204520.952168736389774
350.04712829772387430.09425659544774850.952871702276126
360.03605669425507270.07211338851014550.963943305744927
370.03301165760859020.06602331521718030.96698834239141
380.04891739971706480.09783479943412960.951082600282935
390.03587738767980680.07175477535961360.964122612320193
400.03427586595947880.06855173191895750.965724134040521
410.02721061498258810.05442122996517630.972789385017412
420.03153418712491070.06306837424982140.96846581287509
430.06090770128317760.1218154025663550.939092298716822
440.0620102411778790.1240204823557580.93798975882212
450.06133959411320320.1226791882264060.938660405886797
460.0643588507774920.1287177015549840.935641149222508
470.06136267641533790.1227253528306760.938637323584662
480.06071803252526680.1214360650505340.939281967474733
490.1686401683280730.3372803366561460.831359831671927
500.2356237533356690.4712475066713380.764376246664331
510.2211273180542590.4422546361085170.778872681945741
520.2770699772196610.5541399544393220.722930022780339
530.2736654654693950.5473309309387890.726334534530605
540.6054218516835680.7891562966328650.394578148316432
550.825098681553290.349802636893420.17490131844671







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.0784313725490196NOK
5% type I error level140.274509803921569NOK
10% type I error level290.568627450980392NOK

\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 & 4 & 0.0784313725490196 & NOK \tabularnewline
5% type I error level & 14 & 0.274509803921569 & NOK \tabularnewline
10% type I error level & 29 & 0.568627450980392 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57534&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]4[/C][C]0.0784313725490196[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]14[/C][C]0.274509803921569[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]29[/C][C]0.568627450980392[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57534&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57534&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 level40.0784313725490196NOK
5% type I error level140.274509803921569NOK
10% type I error level290.568627450980392NOK



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