Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSun, 07 Dec 2008 10:00:58 -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/07/t1228669440twrb1re8y11444x.htm/, Retrieved Fri, 17 May 2024 05:03:41 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=30170, Retrieved Fri, 17 May 2024 05:03:41 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact204
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]
-   P     [Multiple Regression] [Paper - Multiple ...] [2008-12-07 17:00:58] [7957bb37a64ed417bbed8444b0b0ea8a] [Current]
-           [Multiple Regression] [Paper - Multiple ...] [2008-12-12 21:45:14] [fce9014b1ad8484790f3b34d6ba09f7b]
Feedback Forum

Post a new message
Dataseries X:
34	0
39	0
40	0
45	0
43	0
42	0
49	0
43	0
50	0
44	0
40	0
41	0
45	0
45	0
48	0
54	0
47	0
35	0
28	0
28	0
34	0
23	0
33	0
38	0
41	0
47	0
46	0
45	0
47	0
49	0
50	0
56	0
50	0
56	0
58	0
59	0
51	0
59	0
60	0
60	0
68	0
62	0
62	0
58	0
56	0
50	0
52	0
36	0
33	0
26	0
28	0
27	0
20	0
16	0
11	0
0	1
3	1
10	1
0	1
3	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time11 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 & 11 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=30170&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]11 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=30170&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Eco[t] = + 44.5863157894737 -41.2736842105263Val[t] -3.1393859649123M1[t] -0.713508771929829M2[t] + 0.512368421052628M3[t] + 2.33824561403509M4[t] + 1.16412280701754M5[t] -3.01000000000000M6[t] -3.78412280701754M7[t] + 1.49649122807017M8[t] + 3.12236842105263M9[t] + 1.14824561403508M10[t] + 1.17412280701754M11[t] -0.0258771929824561t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Eco[t] =  +  44.5863157894737 -41.2736842105263Val[t] -3.1393859649123M1[t] -0.713508771929829M2[t] +  0.512368421052628M3[t] +  2.33824561403509M4[t] +  1.16412280701754M5[t] -3.01000000000000M6[t] -3.78412280701754M7[t] +  1.49649122807017M8[t] +  3.12236842105263M9[t] +  1.14824561403508M10[t] +  1.17412280701754M11[t] -0.0258771929824561t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=30170&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Eco[t] =  +  44.5863157894737 -41.2736842105263Val[t] -3.1393859649123M1[t] -0.713508771929829M2[t] +  0.512368421052628M3[t] +  2.33824561403509M4[t] +  1.16412280701754M5[t] -3.01000000000000M6[t] -3.78412280701754M7[t] +  1.49649122807017M8[t] +  3.12236842105263M9[t] +  1.14824561403508M10[t] +  1.17412280701754M11[t] -0.0258771929824561t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=30170&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=30170&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
Eco[t] = + 44.5863157894737 -41.2736842105263Val[t] -3.1393859649123M1[t] -0.713508771929829M2[t] + 0.512368421052628M3[t] + 2.33824561403509M4[t] + 1.16412280701754M5[t] -3.01000000000000M6[t] -3.78412280701754M7[t] + 1.49649122807017M8[t] + 3.12236842105263M9[t] + 1.14824561403508M10[t] + 1.17412280701754M11[t] -0.0258771929824561t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)44.58631578947377.0232276.348400
Val-41.27368421052637.515307-5.49192e-061e-06
M1-3.13938596491238.582337-0.36580.7161940.358097
M2-0.7135087719298298.575479-0.08320.9340510.467025
M30.5123684210526288.5701410.05980.9525860.476293
M42.338245614035098.5663270.2730.7861070.393054
M51.164122807017548.5640370.13590.8924690.446234
M6-3.010000000000008.563274-0.35150.7268170.363409
M7-3.784122807017548.564037-0.44190.6606590.33033
M81.496491228070178.4705550.17670.8605430.430272
M93.122368421052638.4651520.36880.7139320.356966
M101.148245614035088.461290.13570.8926460.446323
M111.174122807017548.4589720.13880.8902120.445106
t-0.02587719298245610.114342-0.22630.8219590.41098

\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) & 44.5863157894737 & 7.023227 & 6.3484 & 0 & 0 \tabularnewline
Val & -41.2736842105263 & 7.515307 & -5.4919 & 2e-06 & 1e-06 \tabularnewline
M1 & -3.1393859649123 & 8.582337 & -0.3658 & 0.716194 & 0.358097 \tabularnewline
M2 & -0.713508771929829 & 8.575479 & -0.0832 & 0.934051 & 0.467025 \tabularnewline
M3 & 0.512368421052628 & 8.570141 & 0.0598 & 0.952586 & 0.476293 \tabularnewline
M4 & 2.33824561403509 & 8.566327 & 0.273 & 0.786107 & 0.393054 \tabularnewline
M5 & 1.16412280701754 & 8.564037 & 0.1359 & 0.892469 & 0.446234 \tabularnewline
M6 & -3.01000000000000 & 8.563274 & -0.3515 & 0.726817 & 0.363409 \tabularnewline
M7 & -3.78412280701754 & 8.564037 & -0.4419 & 0.660659 & 0.33033 \tabularnewline
M8 & 1.49649122807017 & 8.470555 & 0.1767 & 0.860543 & 0.430272 \tabularnewline
M9 & 3.12236842105263 & 8.465152 & 0.3688 & 0.713932 & 0.356966 \tabularnewline
M10 & 1.14824561403508 & 8.46129 & 0.1357 & 0.892646 & 0.446323 \tabularnewline
M11 & 1.17412280701754 & 8.458972 & 0.1388 & 0.890212 & 0.445106 \tabularnewline
t & -0.0258771929824561 & 0.114342 & -0.2263 & 0.821959 & 0.41098 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=30170&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]44.5863157894737[/C][C]7.023227[/C][C]6.3484[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Val[/C][C]-41.2736842105263[/C][C]7.515307[/C][C]-5.4919[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M1[/C][C]-3.1393859649123[/C][C]8.582337[/C][C]-0.3658[/C][C]0.716194[/C][C]0.358097[/C][/ROW]
[ROW][C]M2[/C][C]-0.713508771929829[/C][C]8.575479[/C][C]-0.0832[/C][C]0.934051[/C][C]0.467025[/C][/ROW]
[ROW][C]M3[/C][C]0.512368421052628[/C][C]8.570141[/C][C]0.0598[/C][C]0.952586[/C][C]0.476293[/C][/ROW]
[ROW][C]M4[/C][C]2.33824561403509[/C][C]8.566327[/C][C]0.273[/C][C]0.786107[/C][C]0.393054[/C][/ROW]
[ROW][C]M5[/C][C]1.16412280701754[/C][C]8.564037[/C][C]0.1359[/C][C]0.892469[/C][C]0.446234[/C][/ROW]
[ROW][C]M6[/C][C]-3.01000000000000[/C][C]8.563274[/C][C]-0.3515[/C][C]0.726817[/C][C]0.363409[/C][/ROW]
[ROW][C]M7[/C][C]-3.78412280701754[/C][C]8.564037[/C][C]-0.4419[/C][C]0.660659[/C][C]0.33033[/C][/ROW]
[ROW][C]M8[/C][C]1.49649122807017[/C][C]8.470555[/C][C]0.1767[/C][C]0.860543[/C][C]0.430272[/C][/ROW]
[ROW][C]M9[/C][C]3.12236842105263[/C][C]8.465152[/C][C]0.3688[/C][C]0.713932[/C][C]0.356966[/C][/ROW]
[ROW][C]M10[/C][C]1.14824561403508[/C][C]8.46129[/C][C]0.1357[/C][C]0.892646[/C][C]0.446323[/C][/ROW]
[ROW][C]M11[/C][C]1.17412280701754[/C][C]8.458972[/C][C]0.1388[/C][C]0.890212[/C][C]0.445106[/C][/ROW]
[ROW][C]t[/C][C]-0.0258771929824561[/C][C]0.114342[/C][C]-0.2263[/C][C]0.821959[/C][C]0.41098[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=30170&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=30170&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)44.58631578947377.0232276.348400
Val-41.27368421052637.515307-5.49192e-061e-06
M1-3.13938596491238.582337-0.36580.7161940.358097
M2-0.7135087719298298.575479-0.08320.9340510.467025
M30.5123684210526288.5701410.05980.9525860.476293
M42.338245614035098.5663270.2730.7861070.393054
M51.164122807017548.5640370.13590.8924690.446234
M6-3.010000000000008.563274-0.35150.7268170.363409
M7-3.784122807017548.564037-0.44190.6606590.33033
M81.496491228070178.4705550.17670.8605430.430272
M93.122368421052638.4651520.36880.7139320.356966
M101.148245614035088.461290.13570.8926460.446323
M111.174122807017548.4589720.13880.8902120.445106
t-0.02587719298245610.114342-0.22630.8219590.41098







Multiple Linear Regression - Regression Statistics
Multiple R0.698098851225719
R-squared0.487342006082669
Adjusted R-squared0.342460399106032
F-TEST (value)3.36372584658904
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.00115547702335506
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.3735864541008
Sum Squared Residuals8227.22947368421

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.698098851225719 \tabularnewline
R-squared & 0.487342006082669 \tabularnewline
Adjusted R-squared & 0.342460399106032 \tabularnewline
F-TEST (value) & 3.36372584658904 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.00115547702335506 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 13.3735864541008 \tabularnewline
Sum Squared Residuals & 8227.22947368421 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=30170&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.698098851225719[/C][/ROW]
[ROW][C]R-squared[/C][C]0.487342006082669[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.342460399106032[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.36372584658904[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0.00115547702335506[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]13.3735864541008[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]8227.22947368421[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=30170&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=30170&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.698098851225719
R-squared0.487342006082669
Adjusted R-squared0.342460399106032
F-TEST (value)3.36372584658904
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.00115547702335506
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.3735864541008
Sum Squared Residuals8227.22947368421







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
13441.421052631579-7.421052631579
23943.8210526315789-4.82105263157894
34045.0210526315789-5.02105263157894
44546.8210526315789-1.82105263157895
54345.6210526315789-2.62105263157893
64241.42105263157890.578947368421056
74940.62105263157898.37894736842106
84345.8757894736842-2.87578947368420
95047.47578947368422.52421052631579
104445.4757894736842-1.47578947368421
114045.4757894736842-5.47578947368421
124144.2757894736842-3.27578947368421
134541.11052631578953.88947368421054
144543.51052631578951.48947368421053
154844.71052631578953.28947368421053
165446.51052631578957.48947368421053
174745.31052631578951.68947368421053
183541.1105263157895-6.11052631578947
192840.3105263157895-12.3105263157895
202845.5652631578947-17.5652631578947
213447.1652631578947-13.1652631578947
222345.1652631578947-22.1652631578947
233345.1652631578947-12.1652631578947
243843.9652631578947-5.96526315789474
254140.80.200000000000014
264743.23.80000000000000
274644.41.6
284546.2-1.2
2947452.00000000000000
304940.88.2
31504010
325645.254736842105310.7452631578947
335046.85473684210533.14526315789474
345644.854736842105311.1452631578947
355844.854736842105313.1452631578947
365943.654736842105315.3452631578947
375140.489473684210510.5105263157895
385942.889473684210516.1105263157895
396044.089473684210515.9105263157895
406045.889473684210514.1105263157895
416844.689473684210523.3105263157895
426240.489473684210521.5105263157895
436239.689473684210522.3105263157895
445844.944210526315813.0557894736842
455646.54421052631589.45578947368421
465044.54421052631585.45578947368421
475244.54421052631587.45578947368421
483643.3442105263158-7.3442105263158
493340.178947368421-7.17894736842104
502642.5789473684211-16.5789473684211
512843.7789473684211-15.7789473684211
522745.5789473684211-18.5789473684211
532044.3789473684211-24.3789473684211
541640.1789473684211-24.1789473684211
551139.3789473684211-28.3789473684211
5603.36-3.36
5734.96-1.96
58102.967.04
5902.96-2.96
6031.760000000000001.24000000000000

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 34 & 41.421052631579 & -7.421052631579 \tabularnewline
2 & 39 & 43.8210526315789 & -4.82105263157894 \tabularnewline
3 & 40 & 45.0210526315789 & -5.02105263157894 \tabularnewline
4 & 45 & 46.8210526315789 & -1.82105263157895 \tabularnewline
5 & 43 & 45.6210526315789 & -2.62105263157893 \tabularnewline
6 & 42 & 41.4210526315789 & 0.578947368421056 \tabularnewline
7 & 49 & 40.6210526315789 & 8.37894736842106 \tabularnewline
8 & 43 & 45.8757894736842 & -2.87578947368420 \tabularnewline
9 & 50 & 47.4757894736842 & 2.52421052631579 \tabularnewline
10 & 44 & 45.4757894736842 & -1.47578947368421 \tabularnewline
11 & 40 & 45.4757894736842 & -5.47578947368421 \tabularnewline
12 & 41 & 44.2757894736842 & -3.27578947368421 \tabularnewline
13 & 45 & 41.1105263157895 & 3.88947368421054 \tabularnewline
14 & 45 & 43.5105263157895 & 1.48947368421053 \tabularnewline
15 & 48 & 44.7105263157895 & 3.28947368421053 \tabularnewline
16 & 54 & 46.5105263157895 & 7.48947368421053 \tabularnewline
17 & 47 & 45.3105263157895 & 1.68947368421053 \tabularnewline
18 & 35 & 41.1105263157895 & -6.11052631578947 \tabularnewline
19 & 28 & 40.3105263157895 & -12.3105263157895 \tabularnewline
20 & 28 & 45.5652631578947 & -17.5652631578947 \tabularnewline
21 & 34 & 47.1652631578947 & -13.1652631578947 \tabularnewline
22 & 23 & 45.1652631578947 & -22.1652631578947 \tabularnewline
23 & 33 & 45.1652631578947 & -12.1652631578947 \tabularnewline
24 & 38 & 43.9652631578947 & -5.96526315789474 \tabularnewline
25 & 41 & 40.8 & 0.200000000000014 \tabularnewline
26 & 47 & 43.2 & 3.80000000000000 \tabularnewline
27 & 46 & 44.4 & 1.6 \tabularnewline
28 & 45 & 46.2 & -1.2 \tabularnewline
29 & 47 & 45 & 2.00000000000000 \tabularnewline
30 & 49 & 40.8 & 8.2 \tabularnewline
31 & 50 & 40 & 10 \tabularnewline
32 & 56 & 45.2547368421053 & 10.7452631578947 \tabularnewline
33 & 50 & 46.8547368421053 & 3.14526315789474 \tabularnewline
34 & 56 & 44.8547368421053 & 11.1452631578947 \tabularnewline
35 & 58 & 44.8547368421053 & 13.1452631578947 \tabularnewline
36 & 59 & 43.6547368421053 & 15.3452631578947 \tabularnewline
37 & 51 & 40.4894736842105 & 10.5105263157895 \tabularnewline
38 & 59 & 42.8894736842105 & 16.1105263157895 \tabularnewline
39 & 60 & 44.0894736842105 & 15.9105263157895 \tabularnewline
40 & 60 & 45.8894736842105 & 14.1105263157895 \tabularnewline
41 & 68 & 44.6894736842105 & 23.3105263157895 \tabularnewline
42 & 62 & 40.4894736842105 & 21.5105263157895 \tabularnewline
43 & 62 & 39.6894736842105 & 22.3105263157895 \tabularnewline
44 & 58 & 44.9442105263158 & 13.0557894736842 \tabularnewline
45 & 56 & 46.5442105263158 & 9.45578947368421 \tabularnewline
46 & 50 & 44.5442105263158 & 5.45578947368421 \tabularnewline
47 & 52 & 44.5442105263158 & 7.45578947368421 \tabularnewline
48 & 36 & 43.3442105263158 & -7.3442105263158 \tabularnewline
49 & 33 & 40.178947368421 & -7.17894736842104 \tabularnewline
50 & 26 & 42.5789473684211 & -16.5789473684211 \tabularnewline
51 & 28 & 43.7789473684211 & -15.7789473684211 \tabularnewline
52 & 27 & 45.5789473684211 & -18.5789473684211 \tabularnewline
53 & 20 & 44.3789473684211 & -24.3789473684211 \tabularnewline
54 & 16 & 40.1789473684211 & -24.1789473684211 \tabularnewline
55 & 11 & 39.3789473684211 & -28.3789473684211 \tabularnewline
56 & 0 & 3.36 & -3.36 \tabularnewline
57 & 3 & 4.96 & -1.96 \tabularnewline
58 & 10 & 2.96 & 7.04 \tabularnewline
59 & 0 & 2.96 & -2.96 \tabularnewline
60 & 3 & 1.76000000000000 & 1.24000000000000 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=30170&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]34[/C][C]41.421052631579[/C][C]-7.421052631579[/C][/ROW]
[ROW][C]2[/C][C]39[/C][C]43.8210526315789[/C][C]-4.82105263157894[/C][/ROW]
[ROW][C]3[/C][C]40[/C][C]45.0210526315789[/C][C]-5.02105263157894[/C][/ROW]
[ROW][C]4[/C][C]45[/C][C]46.8210526315789[/C][C]-1.82105263157895[/C][/ROW]
[ROW][C]5[/C][C]43[/C][C]45.6210526315789[/C][C]-2.62105263157893[/C][/ROW]
[ROW][C]6[/C][C]42[/C][C]41.4210526315789[/C][C]0.578947368421056[/C][/ROW]
[ROW][C]7[/C][C]49[/C][C]40.6210526315789[/C][C]8.37894736842106[/C][/ROW]
[ROW][C]8[/C][C]43[/C][C]45.8757894736842[/C][C]-2.87578947368420[/C][/ROW]
[ROW][C]9[/C][C]50[/C][C]47.4757894736842[/C][C]2.52421052631579[/C][/ROW]
[ROW][C]10[/C][C]44[/C][C]45.4757894736842[/C][C]-1.47578947368421[/C][/ROW]
[ROW][C]11[/C][C]40[/C][C]45.4757894736842[/C][C]-5.47578947368421[/C][/ROW]
[ROW][C]12[/C][C]41[/C][C]44.2757894736842[/C][C]-3.27578947368421[/C][/ROW]
[ROW][C]13[/C][C]45[/C][C]41.1105263157895[/C][C]3.88947368421054[/C][/ROW]
[ROW][C]14[/C][C]45[/C][C]43.5105263157895[/C][C]1.48947368421053[/C][/ROW]
[ROW][C]15[/C][C]48[/C][C]44.7105263157895[/C][C]3.28947368421053[/C][/ROW]
[ROW][C]16[/C][C]54[/C][C]46.5105263157895[/C][C]7.48947368421053[/C][/ROW]
[ROW][C]17[/C][C]47[/C][C]45.3105263157895[/C][C]1.68947368421053[/C][/ROW]
[ROW][C]18[/C][C]35[/C][C]41.1105263157895[/C][C]-6.11052631578947[/C][/ROW]
[ROW][C]19[/C][C]28[/C][C]40.3105263157895[/C][C]-12.3105263157895[/C][/ROW]
[ROW][C]20[/C][C]28[/C][C]45.5652631578947[/C][C]-17.5652631578947[/C][/ROW]
[ROW][C]21[/C][C]34[/C][C]47.1652631578947[/C][C]-13.1652631578947[/C][/ROW]
[ROW][C]22[/C][C]23[/C][C]45.1652631578947[/C][C]-22.1652631578947[/C][/ROW]
[ROW][C]23[/C][C]33[/C][C]45.1652631578947[/C][C]-12.1652631578947[/C][/ROW]
[ROW][C]24[/C][C]38[/C][C]43.9652631578947[/C][C]-5.96526315789474[/C][/ROW]
[ROW][C]25[/C][C]41[/C][C]40.8[/C][C]0.200000000000014[/C][/ROW]
[ROW][C]26[/C][C]47[/C][C]43.2[/C][C]3.80000000000000[/C][/ROW]
[ROW][C]27[/C][C]46[/C][C]44.4[/C][C]1.6[/C][/ROW]
[ROW][C]28[/C][C]45[/C][C]46.2[/C][C]-1.2[/C][/ROW]
[ROW][C]29[/C][C]47[/C][C]45[/C][C]2.00000000000000[/C][/ROW]
[ROW][C]30[/C][C]49[/C][C]40.8[/C][C]8.2[/C][/ROW]
[ROW][C]31[/C][C]50[/C][C]40[/C][C]10[/C][/ROW]
[ROW][C]32[/C][C]56[/C][C]45.2547368421053[/C][C]10.7452631578947[/C][/ROW]
[ROW][C]33[/C][C]50[/C][C]46.8547368421053[/C][C]3.14526315789474[/C][/ROW]
[ROW][C]34[/C][C]56[/C][C]44.8547368421053[/C][C]11.1452631578947[/C][/ROW]
[ROW][C]35[/C][C]58[/C][C]44.8547368421053[/C][C]13.1452631578947[/C][/ROW]
[ROW][C]36[/C][C]59[/C][C]43.6547368421053[/C][C]15.3452631578947[/C][/ROW]
[ROW][C]37[/C][C]51[/C][C]40.4894736842105[/C][C]10.5105263157895[/C][/ROW]
[ROW][C]38[/C][C]59[/C][C]42.8894736842105[/C][C]16.1105263157895[/C][/ROW]
[ROW][C]39[/C][C]60[/C][C]44.0894736842105[/C][C]15.9105263157895[/C][/ROW]
[ROW][C]40[/C][C]60[/C][C]45.8894736842105[/C][C]14.1105263157895[/C][/ROW]
[ROW][C]41[/C][C]68[/C][C]44.6894736842105[/C][C]23.3105263157895[/C][/ROW]
[ROW][C]42[/C][C]62[/C][C]40.4894736842105[/C][C]21.5105263157895[/C][/ROW]
[ROW][C]43[/C][C]62[/C][C]39.6894736842105[/C][C]22.3105263157895[/C][/ROW]
[ROW][C]44[/C][C]58[/C][C]44.9442105263158[/C][C]13.0557894736842[/C][/ROW]
[ROW][C]45[/C][C]56[/C][C]46.5442105263158[/C][C]9.45578947368421[/C][/ROW]
[ROW][C]46[/C][C]50[/C][C]44.5442105263158[/C][C]5.45578947368421[/C][/ROW]
[ROW][C]47[/C][C]52[/C][C]44.5442105263158[/C][C]7.45578947368421[/C][/ROW]
[ROW][C]48[/C][C]36[/C][C]43.3442105263158[/C][C]-7.3442105263158[/C][/ROW]
[ROW][C]49[/C][C]33[/C][C]40.178947368421[/C][C]-7.17894736842104[/C][/ROW]
[ROW][C]50[/C][C]26[/C][C]42.5789473684211[/C][C]-16.5789473684211[/C][/ROW]
[ROW][C]51[/C][C]28[/C][C]43.7789473684211[/C][C]-15.7789473684211[/C][/ROW]
[ROW][C]52[/C][C]27[/C][C]45.5789473684211[/C][C]-18.5789473684211[/C][/ROW]
[ROW][C]53[/C][C]20[/C][C]44.3789473684211[/C][C]-24.3789473684211[/C][/ROW]
[ROW][C]54[/C][C]16[/C][C]40.1789473684211[/C][C]-24.1789473684211[/C][/ROW]
[ROW][C]55[/C][C]11[/C][C]39.3789473684211[/C][C]-28.3789473684211[/C][/ROW]
[ROW][C]56[/C][C]0[/C][C]3.36[/C][C]-3.36[/C][/ROW]
[ROW][C]57[/C][C]3[/C][C]4.96[/C][C]-1.96[/C][/ROW]
[ROW][C]58[/C][C]10[/C][C]2.96[/C][C]7.04[/C][/ROW]
[ROW][C]59[/C][C]0[/C][C]2.96[/C][C]-2.96[/C][/ROW]
[ROW][C]60[/C][C]3[/C][C]1.76000000000000[/C][C]1.24000000000000[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=30170&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=30170&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
13441.421052631579-7.421052631579
23943.8210526315789-4.82105263157894
34045.0210526315789-5.02105263157894
44546.8210526315789-1.82105263157895
54345.6210526315789-2.62105263157893
64241.42105263157890.578947368421056
74940.62105263157898.37894736842106
84345.8757894736842-2.87578947368420
95047.47578947368422.52421052631579
104445.4757894736842-1.47578947368421
114045.4757894736842-5.47578947368421
124144.2757894736842-3.27578947368421
134541.11052631578953.88947368421054
144543.51052631578951.48947368421053
154844.71052631578953.28947368421053
165446.51052631578957.48947368421053
174745.31052631578951.68947368421053
183541.1105263157895-6.11052631578947
192840.3105263157895-12.3105263157895
202845.5652631578947-17.5652631578947
213447.1652631578947-13.1652631578947
222345.1652631578947-22.1652631578947
233345.1652631578947-12.1652631578947
243843.9652631578947-5.96526315789474
254140.80.200000000000014
264743.23.80000000000000
274644.41.6
284546.2-1.2
2947452.00000000000000
304940.88.2
31504010
325645.254736842105310.7452631578947
335046.85473684210533.14526315789474
345644.854736842105311.1452631578947
355844.854736842105313.1452631578947
365943.654736842105315.3452631578947
375140.489473684210510.5105263157895
385942.889473684210516.1105263157895
396044.089473684210515.9105263157895
406045.889473684210514.1105263157895
416844.689473684210523.3105263157895
426240.489473684210521.5105263157895
436239.689473684210522.3105263157895
445844.944210526315813.0557894736842
455646.54421052631589.45578947368421
465044.54421052631585.45578947368421
475244.54421052631587.45578947368421
483643.3442105263158-7.3442105263158
493340.178947368421-7.17894736842104
502642.5789473684211-16.5789473684211
512843.7789473684211-15.7789473684211
522745.5789473684211-18.5789473684211
532044.3789473684211-24.3789473684211
541640.1789473684211-24.1789473684211
551139.3789473684211-28.3789473684211
5603.36-3.36
5734.96-1.96
58102.967.04
5902.96-2.96
6031.760000000000001.24000000000000







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.003376799261649540.006753598523299080.99662320073835
180.01629694290535560.03259388581071130.983703057094644
190.08310811952222780.1662162390444560.916891880477772
200.08213667992023580.1642733598404720.917863320079764
210.07417286982736940.1483457396547390.92582713017263
220.1176000917658870.2352001835317750.882399908234113
230.1030089720480890.2060179440961770.896991027951911
240.08384847081375240.1676969416275050.916151529186248
250.06524730472727230.1304946094545450.934752695272728
260.05174045856414530.1034809171282910.948259541435855
270.03877950049117710.07755900098235410.961220499508823
280.03085464358149390.06170928716298780.969145356418506
290.02928854966574320.05857709933148650.970711450334257
300.03713489605069080.07426979210138150.96286510394931
310.04862169670450610.09724339340901230.951378303295494
320.08995482574948950.1799096514989790.91004517425051
330.1422219545454450.284443909090890.857778045454555
340.3289254666646530.6578509333293070.671074533335347
350.548849038224610.9023019235507790.451150961775390
360.7129183896812870.5741632206374250.287081610318713
370.8385880538899940.3228238922200130.161411946110006
380.8003040467553290.3993919064893420.199695953244671
390.7918022316118780.4163955367762430.208197768388122
400.8232307847753940.3535384304492120.176769215224606
410.7320375434497840.5359249131004310.267962456550216
420.6105418922449720.7789162155100560.389458107755028
430.4430634353338310.8861268706676620.556936564666169

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.00337679926164954 & 0.00675359852329908 & 0.99662320073835 \tabularnewline
18 & 0.0162969429053556 & 0.0325938858107113 & 0.983703057094644 \tabularnewline
19 & 0.0831081195222278 & 0.166216239044456 & 0.916891880477772 \tabularnewline
20 & 0.0821366799202358 & 0.164273359840472 & 0.917863320079764 \tabularnewline
21 & 0.0741728698273694 & 0.148345739654739 & 0.92582713017263 \tabularnewline
22 & 0.117600091765887 & 0.235200183531775 & 0.882399908234113 \tabularnewline
23 & 0.103008972048089 & 0.206017944096177 & 0.896991027951911 \tabularnewline
24 & 0.0838484708137524 & 0.167696941627505 & 0.916151529186248 \tabularnewline
25 & 0.0652473047272723 & 0.130494609454545 & 0.934752695272728 \tabularnewline
26 & 0.0517404585641453 & 0.103480917128291 & 0.948259541435855 \tabularnewline
27 & 0.0387795004911771 & 0.0775590009823541 & 0.961220499508823 \tabularnewline
28 & 0.0308546435814939 & 0.0617092871629878 & 0.969145356418506 \tabularnewline
29 & 0.0292885496657432 & 0.0585770993314865 & 0.970711450334257 \tabularnewline
30 & 0.0371348960506908 & 0.0742697921013815 & 0.96286510394931 \tabularnewline
31 & 0.0486216967045061 & 0.0972433934090123 & 0.951378303295494 \tabularnewline
32 & 0.0899548257494895 & 0.179909651498979 & 0.91004517425051 \tabularnewline
33 & 0.142221954545445 & 0.28444390909089 & 0.857778045454555 \tabularnewline
34 & 0.328925466664653 & 0.657850933329307 & 0.671074533335347 \tabularnewline
35 & 0.54884903822461 & 0.902301923550779 & 0.451150961775390 \tabularnewline
36 & 0.712918389681287 & 0.574163220637425 & 0.287081610318713 \tabularnewline
37 & 0.838588053889994 & 0.322823892220013 & 0.161411946110006 \tabularnewline
38 & 0.800304046755329 & 0.399391906489342 & 0.199695953244671 \tabularnewline
39 & 0.791802231611878 & 0.416395536776243 & 0.208197768388122 \tabularnewline
40 & 0.823230784775394 & 0.353538430449212 & 0.176769215224606 \tabularnewline
41 & 0.732037543449784 & 0.535924913100431 & 0.267962456550216 \tabularnewline
42 & 0.610541892244972 & 0.778916215510056 & 0.389458107755028 \tabularnewline
43 & 0.443063435333831 & 0.886126870667662 & 0.556936564666169 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=30170&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.00337679926164954[/C][C]0.00675359852329908[/C][C]0.99662320073835[/C][/ROW]
[ROW][C]18[/C][C]0.0162969429053556[/C][C]0.0325938858107113[/C][C]0.983703057094644[/C][/ROW]
[ROW][C]19[/C][C]0.0831081195222278[/C][C]0.166216239044456[/C][C]0.916891880477772[/C][/ROW]
[ROW][C]20[/C][C]0.0821366799202358[/C][C]0.164273359840472[/C][C]0.917863320079764[/C][/ROW]
[ROW][C]21[/C][C]0.0741728698273694[/C][C]0.148345739654739[/C][C]0.92582713017263[/C][/ROW]
[ROW][C]22[/C][C]0.117600091765887[/C][C]0.235200183531775[/C][C]0.882399908234113[/C][/ROW]
[ROW][C]23[/C][C]0.103008972048089[/C][C]0.206017944096177[/C][C]0.896991027951911[/C][/ROW]
[ROW][C]24[/C][C]0.0838484708137524[/C][C]0.167696941627505[/C][C]0.916151529186248[/C][/ROW]
[ROW][C]25[/C][C]0.0652473047272723[/C][C]0.130494609454545[/C][C]0.934752695272728[/C][/ROW]
[ROW][C]26[/C][C]0.0517404585641453[/C][C]0.103480917128291[/C][C]0.948259541435855[/C][/ROW]
[ROW][C]27[/C][C]0.0387795004911771[/C][C]0.0775590009823541[/C][C]0.961220499508823[/C][/ROW]
[ROW][C]28[/C][C]0.0308546435814939[/C][C]0.0617092871629878[/C][C]0.969145356418506[/C][/ROW]
[ROW][C]29[/C][C]0.0292885496657432[/C][C]0.0585770993314865[/C][C]0.970711450334257[/C][/ROW]
[ROW][C]30[/C][C]0.0371348960506908[/C][C]0.0742697921013815[/C][C]0.96286510394931[/C][/ROW]
[ROW][C]31[/C][C]0.0486216967045061[/C][C]0.0972433934090123[/C][C]0.951378303295494[/C][/ROW]
[ROW][C]32[/C][C]0.0899548257494895[/C][C]0.179909651498979[/C][C]0.91004517425051[/C][/ROW]
[ROW][C]33[/C][C]0.142221954545445[/C][C]0.28444390909089[/C][C]0.857778045454555[/C][/ROW]
[ROW][C]34[/C][C]0.328925466664653[/C][C]0.657850933329307[/C][C]0.671074533335347[/C][/ROW]
[ROW][C]35[/C][C]0.54884903822461[/C][C]0.902301923550779[/C][C]0.451150961775390[/C][/ROW]
[ROW][C]36[/C][C]0.712918389681287[/C][C]0.574163220637425[/C][C]0.287081610318713[/C][/ROW]
[ROW][C]37[/C][C]0.838588053889994[/C][C]0.322823892220013[/C][C]0.161411946110006[/C][/ROW]
[ROW][C]38[/C][C]0.800304046755329[/C][C]0.399391906489342[/C][C]0.199695953244671[/C][/ROW]
[ROW][C]39[/C][C]0.791802231611878[/C][C]0.416395536776243[/C][C]0.208197768388122[/C][/ROW]
[ROW][C]40[/C][C]0.823230784775394[/C][C]0.353538430449212[/C][C]0.176769215224606[/C][/ROW]
[ROW][C]41[/C][C]0.732037543449784[/C][C]0.535924913100431[/C][C]0.267962456550216[/C][/ROW]
[ROW][C]42[/C][C]0.610541892244972[/C][C]0.778916215510056[/C][C]0.389458107755028[/C][/ROW]
[ROW][C]43[/C][C]0.443063435333831[/C][C]0.886126870667662[/C][C]0.556936564666169[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=30170&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=30170&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.003376799261649540.006753598523299080.99662320073835
180.01629694290535560.03259388581071130.983703057094644
190.08310811952222780.1662162390444560.916891880477772
200.08213667992023580.1642733598404720.917863320079764
210.07417286982736940.1483457396547390.92582713017263
220.1176000917658870.2352001835317750.882399908234113
230.1030089720480890.2060179440961770.896991027951911
240.08384847081375240.1676969416275050.916151529186248
250.06524730472727230.1304946094545450.934752695272728
260.05174045856414530.1034809171282910.948259541435855
270.03877950049117710.07755900098235410.961220499508823
280.03085464358149390.06170928716298780.969145356418506
290.02928854966574320.05857709933148650.970711450334257
300.03713489605069080.07426979210138150.96286510394931
310.04862169670450610.09724339340901230.951378303295494
320.08995482574948950.1799096514989790.91004517425051
330.1422219545454450.284443909090890.857778045454555
340.3289254666646530.6578509333293070.671074533335347
350.548849038224610.9023019235507790.451150961775390
360.7129183896812870.5741632206374250.287081610318713
370.8385880538899940.3228238922200130.161411946110006
380.8003040467553290.3993919064893420.199695953244671
390.7918022316118780.4163955367762430.208197768388122
400.8232307847753940.3535384304492120.176769215224606
410.7320375434497840.5359249131004310.267962456550216
420.6105418922449720.7789162155100560.389458107755028
430.4430634353338310.8861268706676620.556936564666169







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0370370370370370NOK
5% type I error level20.0740740740740741NOK
10% type I error level70.259259259259259NOK

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

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



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