Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 12 Dec 2008 14:54:04 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/12/t1229118970pjufj2qothy8ulk.htm/, Retrieved Fri, 17 May 2024 00:42:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=32886, Retrieved Fri, 17 May 2024 00:42:13 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact160
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Paper - Multiple ...] [2008-12-05 17:15:56] [fce9014b1ad8484790f3b34d6ba09f7b]
-   PD  [Multiple Regression] [Paper - Multiple ...] [2008-12-07 17:15:24] [fce9014b1ad8484790f3b34d6ba09f7b]
-           [Multiple Regression] [Paper - Multiple ...] [2008-12-12 21:54:04] [7957bb37a64ed417bbed8444b0b0ea8a] [Current]
Feedback Forum

Post a new message
Dataseries X:
41	0
35	0
34	0
36	0
39	0
40	0
30	0
33	0
30	0
32	0
41	0
40	0
41	0
40	0
39	0
34	0
34	0
46	0
45	0
44	0
40	0
39	0
37	0
39	0
35	0
26	0
26	0
33	0
27	0
30	0
26	0
27	0
18	0
19	0
13	0
14	0
41	0
21	0
16	0
17	0
9	0
14	0
14	0
16	0
11	0
10	0
6	0
9	0
5	0
7	0
2	0
0	0
8	0
13	0
11	0
19	1
23	1
23	1
43	1
59	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32886&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]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32886&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32886&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'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 51.8842105263158 + 28.6842105263158D[t] -1.63070175438598M1[t] -7.72456140350877M2[t] -9.4184210526316M3[t] -8.1122807017544M4[t] -8.00614035087719M5[t] -2.10000000000000M6[t] -4.7938596491228M7[t] -7.22456140350878M8[t] -9.9184210526316M9[t] -9.0122807017544M10[t] -4.9061403508772M11[t] -0.706140350877193t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  51.8842105263158 +  28.6842105263158D[t] -1.63070175438598M1[t] -7.72456140350877M2[t] -9.4184210526316M3[t] -8.1122807017544M4[t] -8.00614035087719M5[t] -2.10000000000000M6[t] -4.7938596491228M7[t] -7.22456140350878M8[t] -9.9184210526316M9[t] -9.0122807017544M10[t] -4.9061403508772M11[t] -0.706140350877193t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32886&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  51.8842105263158 +  28.6842105263158D[t] -1.63070175438598M1[t] -7.72456140350877M2[t] -9.4184210526316M3[t] -8.1122807017544M4[t] -8.00614035087719M5[t] -2.10000000000000M6[t] -4.7938596491228M7[t] -7.22456140350878M8[t] -9.9184210526316M9[t] -9.0122807017544M10[t] -4.9061403508772M11[t] -0.706140350877193t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32886&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32886&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] = + 51.8842105263158 + 28.6842105263158D[t] -1.63070175438598M1[t] -7.72456140350877M2[t] -9.4184210526316M3[t] -8.1122807017544M4[t] -8.00614035087719M5[t] -2.10000000000000M6[t] -4.7938596491228M7[t] -7.22456140350878M8[t] -9.9184210526316M9[t] -9.0122807017544M10[t] -4.9061403508772M11[t] -0.706140350877193t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)51.88421052631584.42103911.735800
D28.68421052631584.7307976.063300
M1-1.630701754385985.40248-0.30180.7641320.382066
M2-7.724561403508775.398163-1.4310.15920.0796
M3-9.41842105263165.394803-1.74580.0875160.043758
M4-8.11228070175445.392402-1.50440.1393160.069658
M5-8.006140350877195.39096-1.48510.1443370.072169
M6-2.100000000000005.39048-0.38960.6986480.349324
M7-4.79385964912285.39096-0.88920.3785010.18925
M8-7.224561403508785.332115-1.35490.1820620.091031
M9-9.91842105263165.328713-1.86130.0690970.034548
M10-9.01228070175445.326282-1.6920.0974030.048701
M11-4.90614035087725.324823-0.92140.3616640.180832
t-0.7061403508771930.071977-9.810700

\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) & 51.8842105263158 & 4.421039 & 11.7358 & 0 & 0 \tabularnewline
D & 28.6842105263158 & 4.730797 & 6.0633 & 0 & 0 \tabularnewline
M1 & -1.63070175438598 & 5.40248 & -0.3018 & 0.764132 & 0.382066 \tabularnewline
M2 & -7.72456140350877 & 5.398163 & -1.431 & 0.1592 & 0.0796 \tabularnewline
M3 & -9.4184210526316 & 5.394803 & -1.7458 & 0.087516 & 0.043758 \tabularnewline
M4 & -8.1122807017544 & 5.392402 & -1.5044 & 0.139316 & 0.069658 \tabularnewline
M5 & -8.00614035087719 & 5.39096 & -1.4851 & 0.144337 & 0.072169 \tabularnewline
M6 & -2.10000000000000 & 5.39048 & -0.3896 & 0.698648 & 0.349324 \tabularnewline
M7 & -4.7938596491228 & 5.39096 & -0.8892 & 0.378501 & 0.18925 \tabularnewline
M8 & -7.22456140350878 & 5.332115 & -1.3549 & 0.182062 & 0.091031 \tabularnewline
M9 & -9.9184210526316 & 5.328713 & -1.8613 & 0.069097 & 0.034548 \tabularnewline
M10 & -9.0122807017544 & 5.326282 & -1.692 & 0.097403 & 0.048701 \tabularnewline
M11 & -4.9061403508772 & 5.324823 & -0.9214 & 0.361664 & 0.180832 \tabularnewline
t & -0.706140350877193 & 0.071977 & -9.8107 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32886&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]51.8842105263158[/C][C]4.421039[/C][C]11.7358[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]D[/C][C]28.6842105263158[/C][C]4.730797[/C][C]6.0633[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-1.63070175438598[/C][C]5.40248[/C][C]-0.3018[/C][C]0.764132[/C][C]0.382066[/C][/ROW]
[ROW][C]M2[/C][C]-7.72456140350877[/C][C]5.398163[/C][C]-1.431[/C][C]0.1592[/C][C]0.0796[/C][/ROW]
[ROW][C]M3[/C][C]-9.4184210526316[/C][C]5.394803[/C][C]-1.7458[/C][C]0.087516[/C][C]0.043758[/C][/ROW]
[ROW][C]M4[/C][C]-8.1122807017544[/C][C]5.392402[/C][C]-1.5044[/C][C]0.139316[/C][C]0.069658[/C][/ROW]
[ROW][C]M5[/C][C]-8.00614035087719[/C][C]5.39096[/C][C]-1.4851[/C][C]0.144337[/C][C]0.072169[/C][/ROW]
[ROW][C]M6[/C][C]-2.10000000000000[/C][C]5.39048[/C][C]-0.3896[/C][C]0.698648[/C][C]0.349324[/C][/ROW]
[ROW][C]M7[/C][C]-4.7938596491228[/C][C]5.39096[/C][C]-0.8892[/C][C]0.378501[/C][C]0.18925[/C][/ROW]
[ROW][C]M8[/C][C]-7.22456140350878[/C][C]5.332115[/C][C]-1.3549[/C][C]0.182062[/C][C]0.091031[/C][/ROW]
[ROW][C]M9[/C][C]-9.9184210526316[/C][C]5.328713[/C][C]-1.8613[/C][C]0.069097[/C][C]0.034548[/C][/ROW]
[ROW][C]M10[/C][C]-9.0122807017544[/C][C]5.326282[/C][C]-1.692[/C][C]0.097403[/C][C]0.048701[/C][/ROW]
[ROW][C]M11[/C][C]-4.9061403508772[/C][C]5.324823[/C][C]-0.9214[/C][C]0.361664[/C][C]0.180832[/C][/ROW]
[ROW][C]t[/C][C]-0.706140350877193[/C][C]0.071977[/C][C]-9.8107[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32886&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32886&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)51.88421052631584.42103911.735800
D28.68421052631584.7307976.063300
M1-1.630701754385985.40248-0.30180.7641320.382066
M2-7.724561403508775.398163-1.4310.15920.0796
M3-9.41842105263165.394803-1.74580.0875160.043758
M4-8.11228070175445.392402-1.50440.1393160.069658
M5-8.006140350877195.39096-1.48510.1443370.072169
M6-2.100000000000005.39048-0.38960.6986480.349324
M7-4.79385964912285.39096-0.88920.3785010.18925
M8-7.224561403508785.332115-1.35490.1820620.091031
M9-9.91842105263165.328713-1.86130.0690970.034548
M10-9.01228070175445.326282-1.6920.0974030.048701
M11-4.90614035087725.324823-0.92140.3616640.180832
t-0.7061403508771930.071977-9.810700







Multiple Linear Regression - Regression Statistics
Multiple R0.83676531450093
R-squared0.700176191551841
Adjusted R-squared0.615443376120839
F-TEST (value)8.26334151639277
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value3.17781719827437e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.4185150638938
Sum Squared Residuals3260.08421052632

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.83676531450093 \tabularnewline
R-squared & 0.700176191551841 \tabularnewline
Adjusted R-squared & 0.615443376120839 \tabularnewline
F-TEST (value) & 8.26334151639277 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 3.17781719827437e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 8.4185150638938 \tabularnewline
Sum Squared Residuals & 3260.08421052632 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32886&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.83676531450093[/C][/ROW]
[ROW][C]R-squared[/C][C]0.700176191551841[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.615443376120839[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]8.26334151639277[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]3.17781719827437e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]8.4185150638938[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3260.08421052632[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32886&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32886&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.83676531450093
R-squared0.700176191551841
Adjusted R-squared0.615443376120839
F-TEST (value)8.26334151639277
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value3.17781719827437e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.4185150638938
Sum Squared Residuals3260.08421052632







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
14149.5473684210527-8.54736842105268
23542.7473684210526-7.74736842105263
33440.3473684210526-6.34736842105263
43640.9473684210526-4.94736842105264
53940.3473684210526-1.34736842105261
64045.5473684210526-5.54736842105263
73042.1473684210526-12.1473684210526
83339.0105263157895-6.01052631578947
93035.6105263157895-5.61052631578948
103235.8105263157895-3.81052631578947
114139.21052631578951.78947368421053
124043.4105263157895-3.41052631578947
134141.0736842105263-0.073684210526303
144034.27368421052635.7263157894737
153931.87368421052637.12631578947369
163432.47368421052631.52631578947369
173431.87368421052632.12631578947368
184637.07368421052638.92631578947369
194533.673684210526311.3263157894737
204430.536842105263213.4631578947368
214027.136842105263212.8631578947368
223927.336842105263211.6631578947368
233730.73684210526326.26315789473684
243934.93684210526324.06315789473684
253532.62.40000000000001
262625.80.199999999999997
272623.42.6
2833249
292723.43.59999999999999
303028.61.40000000000000
312625.20.8
322722.06315789473684.93684210526316
331818.6631578947368-0.663157894736841
341918.86315789473680.136842105263157
351322.2631578947368-9.26315789473684
361426.4631578947368-12.4631578947368
374124.126315789473716.8736842105263
382117.32631578947373.67368421052631
391614.92631578947371.07368421052632
401715.52631578947371.47368421052632
41914.9263157894737-5.92631578947369
421420.1263157894737-6.12631578947369
431416.7263157894737-2.72631578947369
441613.58947368421052.41052631578947
451110.18947368421050.810526315789474
461010.3894736842105-0.389473684210529
47613.7894736842105-7.78947368421053
48917.9894736842105-8.98947368421053
49515.6526315789474-10.6526315789474
5078.85263157894737-1.85263157894737
5126.45263157894737-4.45263157894737
5207.05263157894737-7.05263157894737
5386.452631578947381.54736842105262
541311.65263157894741.34736842105262
55118.252631578947362.74736842105264
561933.8-14.8
572330.4-7.4
582330.6-7.6
5943349
605938.220.8

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 41 & 49.5473684210527 & -8.54736842105268 \tabularnewline
2 & 35 & 42.7473684210526 & -7.74736842105263 \tabularnewline
3 & 34 & 40.3473684210526 & -6.34736842105263 \tabularnewline
4 & 36 & 40.9473684210526 & -4.94736842105264 \tabularnewline
5 & 39 & 40.3473684210526 & -1.34736842105261 \tabularnewline
6 & 40 & 45.5473684210526 & -5.54736842105263 \tabularnewline
7 & 30 & 42.1473684210526 & -12.1473684210526 \tabularnewline
8 & 33 & 39.0105263157895 & -6.01052631578947 \tabularnewline
9 & 30 & 35.6105263157895 & -5.61052631578948 \tabularnewline
10 & 32 & 35.8105263157895 & -3.81052631578947 \tabularnewline
11 & 41 & 39.2105263157895 & 1.78947368421053 \tabularnewline
12 & 40 & 43.4105263157895 & -3.41052631578947 \tabularnewline
13 & 41 & 41.0736842105263 & -0.073684210526303 \tabularnewline
14 & 40 & 34.2736842105263 & 5.7263157894737 \tabularnewline
15 & 39 & 31.8736842105263 & 7.12631578947369 \tabularnewline
16 & 34 & 32.4736842105263 & 1.52631578947369 \tabularnewline
17 & 34 & 31.8736842105263 & 2.12631578947368 \tabularnewline
18 & 46 & 37.0736842105263 & 8.92631578947369 \tabularnewline
19 & 45 & 33.6736842105263 & 11.3263157894737 \tabularnewline
20 & 44 & 30.5368421052632 & 13.4631578947368 \tabularnewline
21 & 40 & 27.1368421052632 & 12.8631578947368 \tabularnewline
22 & 39 & 27.3368421052632 & 11.6631578947368 \tabularnewline
23 & 37 & 30.7368421052632 & 6.26315789473684 \tabularnewline
24 & 39 & 34.9368421052632 & 4.06315789473684 \tabularnewline
25 & 35 & 32.6 & 2.40000000000001 \tabularnewline
26 & 26 & 25.8 & 0.199999999999997 \tabularnewline
27 & 26 & 23.4 & 2.6 \tabularnewline
28 & 33 & 24 & 9 \tabularnewline
29 & 27 & 23.4 & 3.59999999999999 \tabularnewline
30 & 30 & 28.6 & 1.40000000000000 \tabularnewline
31 & 26 & 25.2 & 0.8 \tabularnewline
32 & 27 & 22.0631578947368 & 4.93684210526316 \tabularnewline
33 & 18 & 18.6631578947368 & -0.663157894736841 \tabularnewline
34 & 19 & 18.8631578947368 & 0.136842105263157 \tabularnewline
35 & 13 & 22.2631578947368 & -9.26315789473684 \tabularnewline
36 & 14 & 26.4631578947368 & -12.4631578947368 \tabularnewline
37 & 41 & 24.1263157894737 & 16.8736842105263 \tabularnewline
38 & 21 & 17.3263157894737 & 3.67368421052631 \tabularnewline
39 & 16 & 14.9263157894737 & 1.07368421052632 \tabularnewline
40 & 17 & 15.5263157894737 & 1.47368421052632 \tabularnewline
41 & 9 & 14.9263157894737 & -5.92631578947369 \tabularnewline
42 & 14 & 20.1263157894737 & -6.12631578947369 \tabularnewline
43 & 14 & 16.7263157894737 & -2.72631578947369 \tabularnewline
44 & 16 & 13.5894736842105 & 2.41052631578947 \tabularnewline
45 & 11 & 10.1894736842105 & 0.810526315789474 \tabularnewline
46 & 10 & 10.3894736842105 & -0.389473684210529 \tabularnewline
47 & 6 & 13.7894736842105 & -7.78947368421053 \tabularnewline
48 & 9 & 17.9894736842105 & -8.98947368421053 \tabularnewline
49 & 5 & 15.6526315789474 & -10.6526315789474 \tabularnewline
50 & 7 & 8.85263157894737 & -1.85263157894737 \tabularnewline
51 & 2 & 6.45263157894737 & -4.45263157894737 \tabularnewline
52 & 0 & 7.05263157894737 & -7.05263157894737 \tabularnewline
53 & 8 & 6.45263157894738 & 1.54736842105262 \tabularnewline
54 & 13 & 11.6526315789474 & 1.34736842105262 \tabularnewline
55 & 11 & 8.25263157894736 & 2.74736842105264 \tabularnewline
56 & 19 & 33.8 & -14.8 \tabularnewline
57 & 23 & 30.4 & -7.4 \tabularnewline
58 & 23 & 30.6 & -7.6 \tabularnewline
59 & 43 & 34 & 9 \tabularnewline
60 & 59 & 38.2 & 20.8 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32886&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]41[/C][C]49.5473684210527[/C][C]-8.54736842105268[/C][/ROW]
[ROW][C]2[/C][C]35[/C][C]42.7473684210526[/C][C]-7.74736842105263[/C][/ROW]
[ROW][C]3[/C][C]34[/C][C]40.3473684210526[/C][C]-6.34736842105263[/C][/ROW]
[ROW][C]4[/C][C]36[/C][C]40.9473684210526[/C][C]-4.94736842105264[/C][/ROW]
[ROW][C]5[/C][C]39[/C][C]40.3473684210526[/C][C]-1.34736842105261[/C][/ROW]
[ROW][C]6[/C][C]40[/C][C]45.5473684210526[/C][C]-5.54736842105263[/C][/ROW]
[ROW][C]7[/C][C]30[/C][C]42.1473684210526[/C][C]-12.1473684210526[/C][/ROW]
[ROW][C]8[/C][C]33[/C][C]39.0105263157895[/C][C]-6.01052631578947[/C][/ROW]
[ROW][C]9[/C][C]30[/C][C]35.6105263157895[/C][C]-5.61052631578948[/C][/ROW]
[ROW][C]10[/C][C]32[/C][C]35.8105263157895[/C][C]-3.81052631578947[/C][/ROW]
[ROW][C]11[/C][C]41[/C][C]39.2105263157895[/C][C]1.78947368421053[/C][/ROW]
[ROW][C]12[/C][C]40[/C][C]43.4105263157895[/C][C]-3.41052631578947[/C][/ROW]
[ROW][C]13[/C][C]41[/C][C]41.0736842105263[/C][C]-0.073684210526303[/C][/ROW]
[ROW][C]14[/C][C]40[/C][C]34.2736842105263[/C][C]5.7263157894737[/C][/ROW]
[ROW][C]15[/C][C]39[/C][C]31.8736842105263[/C][C]7.12631578947369[/C][/ROW]
[ROW][C]16[/C][C]34[/C][C]32.4736842105263[/C][C]1.52631578947369[/C][/ROW]
[ROW][C]17[/C][C]34[/C][C]31.8736842105263[/C][C]2.12631578947368[/C][/ROW]
[ROW][C]18[/C][C]46[/C][C]37.0736842105263[/C][C]8.92631578947369[/C][/ROW]
[ROW][C]19[/C][C]45[/C][C]33.6736842105263[/C][C]11.3263157894737[/C][/ROW]
[ROW][C]20[/C][C]44[/C][C]30.5368421052632[/C][C]13.4631578947368[/C][/ROW]
[ROW][C]21[/C][C]40[/C][C]27.1368421052632[/C][C]12.8631578947368[/C][/ROW]
[ROW][C]22[/C][C]39[/C][C]27.3368421052632[/C][C]11.6631578947368[/C][/ROW]
[ROW][C]23[/C][C]37[/C][C]30.7368421052632[/C][C]6.26315789473684[/C][/ROW]
[ROW][C]24[/C][C]39[/C][C]34.9368421052632[/C][C]4.06315789473684[/C][/ROW]
[ROW][C]25[/C][C]35[/C][C]32.6[/C][C]2.40000000000001[/C][/ROW]
[ROW][C]26[/C][C]26[/C][C]25.8[/C][C]0.199999999999997[/C][/ROW]
[ROW][C]27[/C][C]26[/C][C]23.4[/C][C]2.6[/C][/ROW]
[ROW][C]28[/C][C]33[/C][C]24[/C][C]9[/C][/ROW]
[ROW][C]29[/C][C]27[/C][C]23.4[/C][C]3.59999999999999[/C][/ROW]
[ROW][C]30[/C][C]30[/C][C]28.6[/C][C]1.40000000000000[/C][/ROW]
[ROW][C]31[/C][C]26[/C][C]25.2[/C][C]0.8[/C][/ROW]
[ROW][C]32[/C][C]27[/C][C]22.0631578947368[/C][C]4.93684210526316[/C][/ROW]
[ROW][C]33[/C][C]18[/C][C]18.6631578947368[/C][C]-0.663157894736841[/C][/ROW]
[ROW][C]34[/C][C]19[/C][C]18.8631578947368[/C][C]0.136842105263157[/C][/ROW]
[ROW][C]35[/C][C]13[/C][C]22.2631578947368[/C][C]-9.26315789473684[/C][/ROW]
[ROW][C]36[/C][C]14[/C][C]26.4631578947368[/C][C]-12.4631578947368[/C][/ROW]
[ROW][C]37[/C][C]41[/C][C]24.1263157894737[/C][C]16.8736842105263[/C][/ROW]
[ROW][C]38[/C][C]21[/C][C]17.3263157894737[/C][C]3.67368421052631[/C][/ROW]
[ROW][C]39[/C][C]16[/C][C]14.9263157894737[/C][C]1.07368421052632[/C][/ROW]
[ROW][C]40[/C][C]17[/C][C]15.5263157894737[/C][C]1.47368421052632[/C][/ROW]
[ROW][C]41[/C][C]9[/C][C]14.9263157894737[/C][C]-5.92631578947369[/C][/ROW]
[ROW][C]42[/C][C]14[/C][C]20.1263157894737[/C][C]-6.12631578947369[/C][/ROW]
[ROW][C]43[/C][C]14[/C][C]16.7263157894737[/C][C]-2.72631578947369[/C][/ROW]
[ROW][C]44[/C][C]16[/C][C]13.5894736842105[/C][C]2.41052631578947[/C][/ROW]
[ROW][C]45[/C][C]11[/C][C]10.1894736842105[/C][C]0.810526315789474[/C][/ROW]
[ROW][C]46[/C][C]10[/C][C]10.3894736842105[/C][C]-0.389473684210529[/C][/ROW]
[ROW][C]47[/C][C]6[/C][C]13.7894736842105[/C][C]-7.78947368421053[/C][/ROW]
[ROW][C]48[/C][C]9[/C][C]17.9894736842105[/C][C]-8.98947368421053[/C][/ROW]
[ROW][C]49[/C][C]5[/C][C]15.6526315789474[/C][C]-10.6526315789474[/C][/ROW]
[ROW][C]50[/C][C]7[/C][C]8.85263157894737[/C][C]-1.85263157894737[/C][/ROW]
[ROW][C]51[/C][C]2[/C][C]6.45263157894737[/C][C]-4.45263157894737[/C][/ROW]
[ROW][C]52[/C][C]0[/C][C]7.05263157894737[/C][C]-7.05263157894737[/C][/ROW]
[ROW][C]53[/C][C]8[/C][C]6.45263157894738[/C][C]1.54736842105262[/C][/ROW]
[ROW][C]54[/C][C]13[/C][C]11.6526315789474[/C][C]1.34736842105262[/C][/ROW]
[ROW][C]55[/C][C]11[/C][C]8.25263157894736[/C][C]2.74736842105264[/C][/ROW]
[ROW][C]56[/C][C]19[/C][C]33.8[/C][C]-14.8[/C][/ROW]
[ROW][C]57[/C][C]23[/C][C]30.4[/C][C]-7.4[/C][/ROW]
[ROW][C]58[/C][C]23[/C][C]30.6[/C][C]-7.6[/C][/ROW]
[ROW][C]59[/C][C]43[/C][C]34[/C][C]9[/C][/ROW]
[ROW][C]60[/C][C]59[/C][C]38.2[/C][C]20.8[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32886&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32886&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
14149.5473684210527-8.54736842105268
23542.7473684210526-7.74736842105263
33440.3473684210526-6.34736842105263
43640.9473684210526-4.94736842105264
53940.3473684210526-1.34736842105261
64045.5473684210526-5.54736842105263
73042.1473684210526-12.1473684210526
83339.0105263157895-6.01052631578947
93035.6105263157895-5.61052631578948
103235.8105263157895-3.81052631578947
114139.21052631578951.78947368421053
124043.4105263157895-3.41052631578947
134141.0736842105263-0.073684210526303
144034.27368421052635.7263157894737
153931.87368421052637.12631578947369
163432.47368421052631.52631578947369
173431.87368421052632.12631578947368
184637.07368421052638.92631578947369
194533.673684210526311.3263157894737
204430.536842105263213.4631578947368
214027.136842105263212.8631578947368
223927.336842105263211.6631578947368
233730.73684210526326.26315789473684
243934.93684210526324.06315789473684
253532.62.40000000000001
262625.80.199999999999997
272623.42.6
2833249
292723.43.59999999999999
303028.61.40000000000000
312625.20.8
322722.06315789473684.93684210526316
331818.6631578947368-0.663157894736841
341918.86315789473680.136842105263157
351322.2631578947368-9.26315789473684
361426.4631578947368-12.4631578947368
374124.126315789473716.8736842105263
382117.32631578947373.67368421052631
391614.92631578947371.07368421052632
401715.52631578947371.47368421052632
41914.9263157894737-5.92631578947369
421420.1263157894737-6.12631578947369
431416.7263157894737-2.72631578947369
441613.58947368421052.41052631578947
451110.18947368421050.810526315789474
461010.3894736842105-0.389473684210529
47613.7894736842105-7.78947368421053
48917.9894736842105-8.98947368421053
49515.6526315789474-10.6526315789474
5078.85263157894737-1.85263157894737
5126.45263157894737-4.45263157894737
5207.05263157894737-7.05263157894737
5386.452631578947381.54736842105262
541311.65263157894741.34736842105262
55118.252631578947362.74736842105264
561933.8-14.8
572330.4-7.4
582330.6-7.6
5943349
605938.220.8







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.09487217263369340.1897443452673870.905127827366307
180.05167265279624520.1033453055924900.948327347203755
190.1208130567207150.2416261134414290.879186943279285
200.09504576121174410.1900915224234880.904954238788256
210.06559164953081730.1311832990616350.934408350469183
220.03767381310518560.07534762621037120.962326186894814
230.03589491011485380.07178982022970770.964105089885146
240.02162428928044090.04324857856088170.97837571071956
250.03128631566027980.06257263132055960.96871368433972
260.06008762006981550.1201752401396310.939912379930185
270.06143163775517820.1228632755103560.938568362244822
280.03896959592193320.07793919184386650.961030404078067
290.03089137389261610.06178274778523210.969108626107384
300.02941026913513420.05882053827026840.970589730864866
310.02188585949399770.04377171898799550.978114140506002
320.0197665077831060.0395330155662120.980233492216894
330.02031325050273940.04062650100547880.97968674949726
340.01841096104134090.03682192208268180.98158903895866
350.03450021315348510.06900042630697020.965499786846515
360.07675854777704360.1535170955540870.923241452222956
370.1715821697066890.3431643394133770.828417830293311
380.1182051986651760.2364103973303520.881794801334824
390.08453883379272630.1690776675854530.915461166207274
400.0734804648232310.1469609296464620.926519535176769
410.05048724625127420.1009744925025480.949512753748726
420.03056166287861260.06112332575722520.969438337121387
430.01338842885672990.02677685771345990.98661157114327

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0948721726336934 & 0.189744345267387 & 0.905127827366307 \tabularnewline
18 & 0.0516726527962452 & 0.103345305592490 & 0.948327347203755 \tabularnewline
19 & 0.120813056720715 & 0.241626113441429 & 0.879186943279285 \tabularnewline
20 & 0.0950457612117441 & 0.190091522423488 & 0.904954238788256 \tabularnewline
21 & 0.0655916495308173 & 0.131183299061635 & 0.934408350469183 \tabularnewline
22 & 0.0376738131051856 & 0.0753476262103712 & 0.962326186894814 \tabularnewline
23 & 0.0358949101148538 & 0.0717898202297077 & 0.964105089885146 \tabularnewline
24 & 0.0216242892804409 & 0.0432485785608817 & 0.97837571071956 \tabularnewline
25 & 0.0312863156602798 & 0.0625726313205596 & 0.96871368433972 \tabularnewline
26 & 0.0600876200698155 & 0.120175240139631 & 0.939912379930185 \tabularnewline
27 & 0.0614316377551782 & 0.122863275510356 & 0.938568362244822 \tabularnewline
28 & 0.0389695959219332 & 0.0779391918438665 & 0.961030404078067 \tabularnewline
29 & 0.0308913738926161 & 0.0617827477852321 & 0.969108626107384 \tabularnewline
30 & 0.0294102691351342 & 0.0588205382702684 & 0.970589730864866 \tabularnewline
31 & 0.0218858594939977 & 0.0437717189879955 & 0.978114140506002 \tabularnewline
32 & 0.019766507783106 & 0.039533015566212 & 0.980233492216894 \tabularnewline
33 & 0.0203132505027394 & 0.0406265010054788 & 0.97968674949726 \tabularnewline
34 & 0.0184109610413409 & 0.0368219220826818 & 0.98158903895866 \tabularnewline
35 & 0.0345002131534851 & 0.0690004263069702 & 0.965499786846515 \tabularnewline
36 & 0.0767585477770436 & 0.153517095554087 & 0.923241452222956 \tabularnewline
37 & 0.171582169706689 & 0.343164339413377 & 0.828417830293311 \tabularnewline
38 & 0.118205198665176 & 0.236410397330352 & 0.881794801334824 \tabularnewline
39 & 0.0845388337927263 & 0.169077667585453 & 0.915461166207274 \tabularnewline
40 & 0.073480464823231 & 0.146960929646462 & 0.926519535176769 \tabularnewline
41 & 0.0504872462512742 & 0.100974492502548 & 0.949512753748726 \tabularnewline
42 & 0.0305616628786126 & 0.0611233257572252 & 0.969438337121387 \tabularnewline
43 & 0.0133884288567299 & 0.0267768577134599 & 0.98661157114327 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32886&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.0948721726336934[/C][C]0.189744345267387[/C][C]0.905127827366307[/C][/ROW]
[ROW][C]18[/C][C]0.0516726527962452[/C][C]0.103345305592490[/C][C]0.948327347203755[/C][/ROW]
[ROW][C]19[/C][C]0.120813056720715[/C][C]0.241626113441429[/C][C]0.879186943279285[/C][/ROW]
[ROW][C]20[/C][C]0.0950457612117441[/C][C]0.190091522423488[/C][C]0.904954238788256[/C][/ROW]
[ROW][C]21[/C][C]0.0655916495308173[/C][C]0.131183299061635[/C][C]0.934408350469183[/C][/ROW]
[ROW][C]22[/C][C]0.0376738131051856[/C][C]0.0753476262103712[/C][C]0.962326186894814[/C][/ROW]
[ROW][C]23[/C][C]0.0358949101148538[/C][C]0.0717898202297077[/C][C]0.964105089885146[/C][/ROW]
[ROW][C]24[/C][C]0.0216242892804409[/C][C]0.0432485785608817[/C][C]0.97837571071956[/C][/ROW]
[ROW][C]25[/C][C]0.0312863156602798[/C][C]0.0625726313205596[/C][C]0.96871368433972[/C][/ROW]
[ROW][C]26[/C][C]0.0600876200698155[/C][C]0.120175240139631[/C][C]0.939912379930185[/C][/ROW]
[ROW][C]27[/C][C]0.0614316377551782[/C][C]0.122863275510356[/C][C]0.938568362244822[/C][/ROW]
[ROW][C]28[/C][C]0.0389695959219332[/C][C]0.0779391918438665[/C][C]0.961030404078067[/C][/ROW]
[ROW][C]29[/C][C]0.0308913738926161[/C][C]0.0617827477852321[/C][C]0.969108626107384[/C][/ROW]
[ROW][C]30[/C][C]0.0294102691351342[/C][C]0.0588205382702684[/C][C]0.970589730864866[/C][/ROW]
[ROW][C]31[/C][C]0.0218858594939977[/C][C]0.0437717189879955[/C][C]0.978114140506002[/C][/ROW]
[ROW][C]32[/C][C]0.019766507783106[/C][C]0.039533015566212[/C][C]0.980233492216894[/C][/ROW]
[ROW][C]33[/C][C]0.0203132505027394[/C][C]0.0406265010054788[/C][C]0.97968674949726[/C][/ROW]
[ROW][C]34[/C][C]0.0184109610413409[/C][C]0.0368219220826818[/C][C]0.98158903895866[/C][/ROW]
[ROW][C]35[/C][C]0.0345002131534851[/C][C]0.0690004263069702[/C][C]0.965499786846515[/C][/ROW]
[ROW][C]36[/C][C]0.0767585477770436[/C][C]0.153517095554087[/C][C]0.923241452222956[/C][/ROW]
[ROW][C]37[/C][C]0.171582169706689[/C][C]0.343164339413377[/C][C]0.828417830293311[/C][/ROW]
[ROW][C]38[/C][C]0.118205198665176[/C][C]0.236410397330352[/C][C]0.881794801334824[/C][/ROW]
[ROW][C]39[/C][C]0.0845388337927263[/C][C]0.169077667585453[/C][C]0.915461166207274[/C][/ROW]
[ROW][C]40[/C][C]0.073480464823231[/C][C]0.146960929646462[/C][C]0.926519535176769[/C][/ROW]
[ROW][C]41[/C][C]0.0504872462512742[/C][C]0.100974492502548[/C][C]0.949512753748726[/C][/ROW]
[ROW][C]42[/C][C]0.0305616628786126[/C][C]0.0611233257572252[/C][C]0.969438337121387[/C][/ROW]
[ROW][C]43[/C][C]0.0133884288567299[/C][C]0.0267768577134599[/C][C]0.98661157114327[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32886&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.09487217263369340.1897443452673870.905127827366307
180.05167265279624520.1033453055924900.948327347203755
190.1208130567207150.2416261134414290.879186943279285
200.09504576121174410.1900915224234880.904954238788256
210.06559164953081730.1311832990616350.934408350469183
220.03767381310518560.07534762621037120.962326186894814
230.03589491011485380.07178982022970770.964105089885146
240.02162428928044090.04324857856088170.97837571071956
250.03128631566027980.06257263132055960.96871368433972
260.06008762006981550.1201752401396310.939912379930185
270.06143163775517820.1228632755103560.938568362244822
280.03896959592193320.07793919184386650.961030404078067
290.03089137389261610.06178274778523210.969108626107384
300.02941026913513420.05882053827026840.970589730864866
310.02188585949399770.04377171898799550.978114140506002
320.0197665077831060.0395330155662120.980233492216894
330.02031325050273940.04062650100547880.97968674949726
340.01841096104134090.03682192208268180.98158903895866
350.03450021315348510.06900042630697020.965499786846515
360.07675854777704360.1535170955540870.923241452222956
370.1715821697066890.3431643394133770.828417830293311
380.1182051986651760.2364103973303520.881794801334824
390.08453883379272630.1690776675854530.915461166207274
400.0734804648232310.1469609296464620.926519535176769
410.05048724625127420.1009744925025480.949512753748726
420.03056166287861260.06112332575722520.969438337121387
430.01338842885672990.02677685771345990.98661157114327







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32886&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 level60.222222222222222NOK
10% type I error level140.518518518518518NOK



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