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 computationTue, 15 Dec 2009 09:06:53 -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/Dec/15/t1260893264xm8nghwprz9kgcc.htm/, Retrieved Sat, 27 Apr 2024 18:18:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68016, Retrieved Sat, 27 Apr 2024 18:18:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [] [2009-11-20 14:06:51] [e149fd9094b67af26551857fa83a9d9d]
-    D        [Multiple Regression] [] [2009-12-15 16:06:53] [27b6e36591879260e4dc6bb7e89a38fd] [Current]
Feedback Forum

Post a new message
Dataseries X:
594	0
595	0
591	0
589	0
584	0
573	0
567	0
569	0
621	0
629	0
628	0
612	0
595	0
597	0
593	0
590	0
580	0
574	0
573	0
573	0
620	0
626	0
620	0
588	0
566	0
557	0
561	0
549	0
532	0
526	0
511	0
499	0
555	0
565	0
542	0
527	0
510	0
514	0
517	0
508	0
493	0
490	0
469	0
478	0
528	0
534	0
518	1
506	1
502	1
516	1
528	1
533	1
536	1
537	1
524	1
536	1
587	1
597	1
581	1
564	1
558	1




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68016&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=68016&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68016&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
WklBe[t] = + 568.346341463414 -22.3658536585366X[t] -6.72439024390259M1[t] -8.07317073170728M2[t] -5.87317073170727M3[t] -10.0731707317073M4[t] -18.8731707317073M5[t] -23.8731707317073M6[t] -35.0731707317073M7[t] -32.8731707317073M8[t] + 18.3268292682927M9[t] + 26.3268292682927M10[t] + 18.4000000000000M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
WklBe[t] =  +  568.346341463414 -22.3658536585366X[t] -6.72439024390259M1[t] -8.07317073170728M2[t] -5.87317073170727M3[t] -10.0731707317073M4[t] -18.8731707317073M5[t] -23.8731707317073M6[t] -35.0731707317073M7[t] -32.8731707317073M8[t] +  18.3268292682927M9[t] +  26.3268292682927M10[t] +  18.4000000000000M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68016&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]WklBe[t] =  +  568.346341463414 -22.3658536585366X[t] -6.72439024390259M1[t] -8.07317073170728M2[t] -5.87317073170727M3[t] -10.0731707317073M4[t] -18.8731707317073M5[t] -23.8731707317073M6[t] -35.0731707317073M7[t] -32.8731707317073M8[t] +  18.3268292682927M9[t] +  26.3268292682927M10[t] +  18.4000000000000M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68016&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68016&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
WklBe[t] = + 568.346341463414 -22.3658536585366X[t] -6.72439024390259M1[t] -8.07317073170728M2[t] -5.87317073170727M3[t] -10.0731707317073M4[t] -18.8731707317073M5[t] -23.8731707317073M6[t] -35.0731707317073M7[t] -32.8731707317073M8[t] + 18.3268292682927M9[t] + 26.3268292682927M10[t] + 18.4000000000000M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)568.34634146341418.21109331.208800
X-22.365853658536611.888041-1.88140.0659930.032997
M1-6.7243902439025923.815677-0.28240.7788880.389444
M2-8.0731707317072824.97432-0.32330.7479030.373952
M3-5.8731707317072724.97432-0.23520.8150780.407539
M4-10.073170731707324.97432-0.40330.6884880.344244
M5-18.873170731707324.97432-0.75570.453520.22676
M6-23.873170731707324.97432-0.95590.3439080.171954
M7-35.073170731707324.97432-1.40440.1666470.083323
M8-32.873170731707324.97432-1.31630.1943320.097166
M918.326829268292724.974320.73380.4666240.233312
M1026.326829268292724.974321.05420.2970890.148545
M1118.400000000000024.8608860.74010.4628330.231417

\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) & 568.346341463414 & 18.211093 & 31.2088 & 0 & 0 \tabularnewline
X & -22.3658536585366 & 11.888041 & -1.8814 & 0.065993 & 0.032997 \tabularnewline
M1 & -6.72439024390259 & 23.815677 & -0.2824 & 0.778888 & 0.389444 \tabularnewline
M2 & -8.07317073170728 & 24.97432 & -0.3233 & 0.747903 & 0.373952 \tabularnewline
M3 & -5.87317073170727 & 24.97432 & -0.2352 & 0.815078 & 0.407539 \tabularnewline
M4 & -10.0731707317073 & 24.97432 & -0.4033 & 0.688488 & 0.344244 \tabularnewline
M5 & -18.8731707317073 & 24.97432 & -0.7557 & 0.45352 & 0.22676 \tabularnewline
M6 & -23.8731707317073 & 24.97432 & -0.9559 & 0.343908 & 0.171954 \tabularnewline
M7 & -35.0731707317073 & 24.97432 & -1.4044 & 0.166647 & 0.083323 \tabularnewline
M8 & -32.8731707317073 & 24.97432 & -1.3163 & 0.194332 & 0.097166 \tabularnewline
M9 & 18.3268292682927 & 24.97432 & 0.7338 & 0.466624 & 0.233312 \tabularnewline
M10 & 26.3268292682927 & 24.97432 & 1.0542 & 0.297089 & 0.148545 \tabularnewline
M11 & 18.4000000000000 & 24.860886 & 0.7401 & 0.462833 & 0.231417 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68016&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]568.346341463414[/C][C]18.211093[/C][C]31.2088[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-22.3658536585366[/C][C]11.888041[/C][C]-1.8814[/C][C]0.065993[/C][C]0.032997[/C][/ROW]
[ROW][C]M1[/C][C]-6.72439024390259[/C][C]23.815677[/C][C]-0.2824[/C][C]0.778888[/C][C]0.389444[/C][/ROW]
[ROW][C]M2[/C][C]-8.07317073170728[/C][C]24.97432[/C][C]-0.3233[/C][C]0.747903[/C][C]0.373952[/C][/ROW]
[ROW][C]M3[/C][C]-5.87317073170727[/C][C]24.97432[/C][C]-0.2352[/C][C]0.815078[/C][C]0.407539[/C][/ROW]
[ROW][C]M4[/C][C]-10.0731707317073[/C][C]24.97432[/C][C]-0.4033[/C][C]0.688488[/C][C]0.344244[/C][/ROW]
[ROW][C]M5[/C][C]-18.8731707317073[/C][C]24.97432[/C][C]-0.7557[/C][C]0.45352[/C][C]0.22676[/C][/ROW]
[ROW][C]M6[/C][C]-23.8731707317073[/C][C]24.97432[/C][C]-0.9559[/C][C]0.343908[/C][C]0.171954[/C][/ROW]
[ROW][C]M7[/C][C]-35.0731707317073[/C][C]24.97432[/C][C]-1.4044[/C][C]0.166647[/C][C]0.083323[/C][/ROW]
[ROW][C]M8[/C][C]-32.8731707317073[/C][C]24.97432[/C][C]-1.3163[/C][C]0.194332[/C][C]0.097166[/C][/ROW]
[ROW][C]M9[/C][C]18.3268292682927[/C][C]24.97432[/C][C]0.7338[/C][C]0.466624[/C][C]0.233312[/C][/ROW]
[ROW][C]M10[/C][C]26.3268292682927[/C][C]24.97432[/C][C]1.0542[/C][C]0.297089[/C][C]0.148545[/C][/ROW]
[ROW][C]M11[/C][C]18.4000000000000[/C][C]24.860886[/C][C]0.7401[/C][C]0.462833[/C][C]0.231417[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68016&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68016&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)568.34634146341418.21109331.208800
X-22.365853658536611.888041-1.88140.0659930.032997
M1-6.7243902439025923.815677-0.28240.7788880.389444
M2-8.0731707317072824.97432-0.32330.7479030.373952
M3-5.8731707317072724.97432-0.23520.8150780.407539
M4-10.073170731707324.97432-0.40330.6884880.344244
M5-18.873170731707324.97432-0.75570.453520.22676
M6-23.873170731707324.97432-0.95590.3439080.171954
M7-35.073170731707324.97432-1.40440.1666470.083323
M8-32.873170731707324.97432-1.31630.1943320.097166
M918.326829268292724.974320.73380.4666240.233312
M1026.326829268292724.974321.05420.2970890.148545
M1118.400000000000024.8608860.74010.4628330.231417







Multiple Linear Regression - Regression Statistics
Multiple R0.509122565271679
R-squared0.259205786468815
Adjusted R-squared0.0740072330860191
F-TEST (value)1.39961021149582
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.199092966448552
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation39.3085117440034
Sum Squared Residuals74167.6365853658

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.509122565271679 \tabularnewline
R-squared & 0.259205786468815 \tabularnewline
Adjusted R-squared & 0.0740072330860191 \tabularnewline
F-TEST (value) & 1.39961021149582 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 0.199092966448552 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 39.3085117440034 \tabularnewline
Sum Squared Residuals & 74167.6365853658 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68016&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.509122565271679[/C][/ROW]
[ROW][C]R-squared[/C][C]0.259205786468815[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0740072330860191[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.39961021149582[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]0.199092966448552[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]39.3085117440034[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]74167.6365853658[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68016&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68016&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.509122565271679
R-squared0.259205786468815
Adjusted R-squared0.0740072330860191
F-TEST (value)1.39961021149582
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.199092966448552
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation39.3085117440034
Sum Squared Residuals74167.6365853658







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1594561.62195121951332.3780487804869
2595560.27317073170734.7268292682927
3591562.47317073170728.5268292682927
4589558.27317073170730.7268292682927
5584549.47317073170734.5268292682927
6573544.47317073170728.5268292682927
7567533.27317073170733.7268292682927
8569535.47317073170733.5268292682927
9621586.67317073170734.3268292682927
10629594.67317073170734.3268292682927
11628586.74634146341541.2536585365854
12612568.34634146341543.6536585365854
13595561.62195121951233.378048780488
14597560.27317073170736.7268292682927
15593562.47317073170730.5268292682927
16590558.27317073170731.7268292682927
17580549.47317073170730.5268292682927
18574544.47317073170729.5268292682927
19573533.27317073170739.7268292682927
20573535.47317073170737.5268292682927
21620586.67317073170733.3268292682927
22626594.67317073170731.3268292682927
23620586.74634146341533.2536585365854
24588568.34634146341519.6536585365854
25566561.6219512195124.378048780488
26557560.273170731707-3.27317073170733
27561562.473170731707-1.47317073170731
28549558.273170731707-9.27317073170733
29532549.473170731707-17.4731707317073
30526544.473170731707-18.4731707317073
31511533.273170731707-22.2731707317073
32499535.473170731707-36.4731707317073
33555586.673170731707-31.6731707317073
34565594.673170731707-29.6731707317073
35542586.746341463415-44.7463414634146
36527568.346341463415-41.3463414634146
37510561.621951219512-51.621951219512
38514560.273170731707-46.2731707317073
39517562.473170731707-45.4731707317073
40508558.273170731707-50.2731707317073
41493549.473170731707-56.4731707317073
42490544.473170731707-54.4731707317073
43469533.273170731707-64.2731707317073
44478535.473170731707-57.4731707317073
45528586.673170731707-58.6731707317073
46534594.673170731707-60.6731707317073
47518564.380487804878-46.3804878048781
48506545.980487804878-39.980487804878
49502539.256097560975-37.2560975609754
50516537.907317073171-21.9073170731708
51528540.107317073171-12.1073170731708
52533535.907317073171-2.90731707317078
53536527.1073170731718.89268292682924
54537522.10731707317114.8926829268292
55524510.90731707317113.0926829268293
56536513.10731707317122.8926829268292
57587564.30731707317122.6926829268292
58597572.30731707317124.6926829268292
59581564.38048780487816.6195121951219
60564545.98048780487818.0195121951220
61558539.25609756097518.7439024390246

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 594 & 561.621951219513 & 32.3780487804869 \tabularnewline
2 & 595 & 560.273170731707 & 34.7268292682927 \tabularnewline
3 & 591 & 562.473170731707 & 28.5268292682927 \tabularnewline
4 & 589 & 558.273170731707 & 30.7268292682927 \tabularnewline
5 & 584 & 549.473170731707 & 34.5268292682927 \tabularnewline
6 & 573 & 544.473170731707 & 28.5268292682927 \tabularnewline
7 & 567 & 533.273170731707 & 33.7268292682927 \tabularnewline
8 & 569 & 535.473170731707 & 33.5268292682927 \tabularnewline
9 & 621 & 586.673170731707 & 34.3268292682927 \tabularnewline
10 & 629 & 594.673170731707 & 34.3268292682927 \tabularnewline
11 & 628 & 586.746341463415 & 41.2536585365854 \tabularnewline
12 & 612 & 568.346341463415 & 43.6536585365854 \tabularnewline
13 & 595 & 561.621951219512 & 33.378048780488 \tabularnewline
14 & 597 & 560.273170731707 & 36.7268292682927 \tabularnewline
15 & 593 & 562.473170731707 & 30.5268292682927 \tabularnewline
16 & 590 & 558.273170731707 & 31.7268292682927 \tabularnewline
17 & 580 & 549.473170731707 & 30.5268292682927 \tabularnewline
18 & 574 & 544.473170731707 & 29.5268292682927 \tabularnewline
19 & 573 & 533.273170731707 & 39.7268292682927 \tabularnewline
20 & 573 & 535.473170731707 & 37.5268292682927 \tabularnewline
21 & 620 & 586.673170731707 & 33.3268292682927 \tabularnewline
22 & 626 & 594.673170731707 & 31.3268292682927 \tabularnewline
23 & 620 & 586.746341463415 & 33.2536585365854 \tabularnewline
24 & 588 & 568.346341463415 & 19.6536585365854 \tabularnewline
25 & 566 & 561.621951219512 & 4.378048780488 \tabularnewline
26 & 557 & 560.273170731707 & -3.27317073170733 \tabularnewline
27 & 561 & 562.473170731707 & -1.47317073170731 \tabularnewline
28 & 549 & 558.273170731707 & -9.27317073170733 \tabularnewline
29 & 532 & 549.473170731707 & -17.4731707317073 \tabularnewline
30 & 526 & 544.473170731707 & -18.4731707317073 \tabularnewline
31 & 511 & 533.273170731707 & -22.2731707317073 \tabularnewline
32 & 499 & 535.473170731707 & -36.4731707317073 \tabularnewline
33 & 555 & 586.673170731707 & -31.6731707317073 \tabularnewline
34 & 565 & 594.673170731707 & -29.6731707317073 \tabularnewline
35 & 542 & 586.746341463415 & -44.7463414634146 \tabularnewline
36 & 527 & 568.346341463415 & -41.3463414634146 \tabularnewline
37 & 510 & 561.621951219512 & -51.621951219512 \tabularnewline
38 & 514 & 560.273170731707 & -46.2731707317073 \tabularnewline
39 & 517 & 562.473170731707 & -45.4731707317073 \tabularnewline
40 & 508 & 558.273170731707 & -50.2731707317073 \tabularnewline
41 & 493 & 549.473170731707 & -56.4731707317073 \tabularnewline
42 & 490 & 544.473170731707 & -54.4731707317073 \tabularnewline
43 & 469 & 533.273170731707 & -64.2731707317073 \tabularnewline
44 & 478 & 535.473170731707 & -57.4731707317073 \tabularnewline
45 & 528 & 586.673170731707 & -58.6731707317073 \tabularnewline
46 & 534 & 594.673170731707 & -60.6731707317073 \tabularnewline
47 & 518 & 564.380487804878 & -46.3804878048781 \tabularnewline
48 & 506 & 545.980487804878 & -39.980487804878 \tabularnewline
49 & 502 & 539.256097560975 & -37.2560975609754 \tabularnewline
50 & 516 & 537.907317073171 & -21.9073170731708 \tabularnewline
51 & 528 & 540.107317073171 & -12.1073170731708 \tabularnewline
52 & 533 & 535.907317073171 & -2.90731707317078 \tabularnewline
53 & 536 & 527.107317073171 & 8.89268292682924 \tabularnewline
54 & 537 & 522.107317073171 & 14.8926829268292 \tabularnewline
55 & 524 & 510.907317073171 & 13.0926829268293 \tabularnewline
56 & 536 & 513.107317073171 & 22.8926829268292 \tabularnewline
57 & 587 & 564.307317073171 & 22.6926829268292 \tabularnewline
58 & 597 & 572.307317073171 & 24.6926829268292 \tabularnewline
59 & 581 & 564.380487804878 & 16.6195121951219 \tabularnewline
60 & 564 & 545.980487804878 & 18.0195121951220 \tabularnewline
61 & 558 & 539.256097560975 & 18.7439024390246 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68016&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]594[/C][C]561.621951219513[/C][C]32.3780487804869[/C][/ROW]
[ROW][C]2[/C][C]595[/C][C]560.273170731707[/C][C]34.7268292682927[/C][/ROW]
[ROW][C]3[/C][C]591[/C][C]562.473170731707[/C][C]28.5268292682927[/C][/ROW]
[ROW][C]4[/C][C]589[/C][C]558.273170731707[/C][C]30.7268292682927[/C][/ROW]
[ROW][C]5[/C][C]584[/C][C]549.473170731707[/C][C]34.5268292682927[/C][/ROW]
[ROW][C]6[/C][C]573[/C][C]544.473170731707[/C][C]28.5268292682927[/C][/ROW]
[ROW][C]7[/C][C]567[/C][C]533.273170731707[/C][C]33.7268292682927[/C][/ROW]
[ROW][C]8[/C][C]569[/C][C]535.473170731707[/C][C]33.5268292682927[/C][/ROW]
[ROW][C]9[/C][C]621[/C][C]586.673170731707[/C][C]34.3268292682927[/C][/ROW]
[ROW][C]10[/C][C]629[/C][C]594.673170731707[/C][C]34.3268292682927[/C][/ROW]
[ROW][C]11[/C][C]628[/C][C]586.746341463415[/C][C]41.2536585365854[/C][/ROW]
[ROW][C]12[/C][C]612[/C][C]568.346341463415[/C][C]43.6536585365854[/C][/ROW]
[ROW][C]13[/C][C]595[/C][C]561.621951219512[/C][C]33.378048780488[/C][/ROW]
[ROW][C]14[/C][C]597[/C][C]560.273170731707[/C][C]36.7268292682927[/C][/ROW]
[ROW][C]15[/C][C]593[/C][C]562.473170731707[/C][C]30.5268292682927[/C][/ROW]
[ROW][C]16[/C][C]590[/C][C]558.273170731707[/C][C]31.7268292682927[/C][/ROW]
[ROW][C]17[/C][C]580[/C][C]549.473170731707[/C][C]30.5268292682927[/C][/ROW]
[ROW][C]18[/C][C]574[/C][C]544.473170731707[/C][C]29.5268292682927[/C][/ROW]
[ROW][C]19[/C][C]573[/C][C]533.273170731707[/C][C]39.7268292682927[/C][/ROW]
[ROW][C]20[/C][C]573[/C][C]535.473170731707[/C][C]37.5268292682927[/C][/ROW]
[ROW][C]21[/C][C]620[/C][C]586.673170731707[/C][C]33.3268292682927[/C][/ROW]
[ROW][C]22[/C][C]626[/C][C]594.673170731707[/C][C]31.3268292682927[/C][/ROW]
[ROW][C]23[/C][C]620[/C][C]586.746341463415[/C][C]33.2536585365854[/C][/ROW]
[ROW][C]24[/C][C]588[/C][C]568.346341463415[/C][C]19.6536585365854[/C][/ROW]
[ROW][C]25[/C][C]566[/C][C]561.621951219512[/C][C]4.378048780488[/C][/ROW]
[ROW][C]26[/C][C]557[/C][C]560.273170731707[/C][C]-3.27317073170733[/C][/ROW]
[ROW][C]27[/C][C]561[/C][C]562.473170731707[/C][C]-1.47317073170731[/C][/ROW]
[ROW][C]28[/C][C]549[/C][C]558.273170731707[/C][C]-9.27317073170733[/C][/ROW]
[ROW][C]29[/C][C]532[/C][C]549.473170731707[/C][C]-17.4731707317073[/C][/ROW]
[ROW][C]30[/C][C]526[/C][C]544.473170731707[/C][C]-18.4731707317073[/C][/ROW]
[ROW][C]31[/C][C]511[/C][C]533.273170731707[/C][C]-22.2731707317073[/C][/ROW]
[ROW][C]32[/C][C]499[/C][C]535.473170731707[/C][C]-36.4731707317073[/C][/ROW]
[ROW][C]33[/C][C]555[/C][C]586.673170731707[/C][C]-31.6731707317073[/C][/ROW]
[ROW][C]34[/C][C]565[/C][C]594.673170731707[/C][C]-29.6731707317073[/C][/ROW]
[ROW][C]35[/C][C]542[/C][C]586.746341463415[/C][C]-44.7463414634146[/C][/ROW]
[ROW][C]36[/C][C]527[/C][C]568.346341463415[/C][C]-41.3463414634146[/C][/ROW]
[ROW][C]37[/C][C]510[/C][C]561.621951219512[/C][C]-51.621951219512[/C][/ROW]
[ROW][C]38[/C][C]514[/C][C]560.273170731707[/C][C]-46.2731707317073[/C][/ROW]
[ROW][C]39[/C][C]517[/C][C]562.473170731707[/C][C]-45.4731707317073[/C][/ROW]
[ROW][C]40[/C][C]508[/C][C]558.273170731707[/C][C]-50.2731707317073[/C][/ROW]
[ROW][C]41[/C][C]493[/C][C]549.473170731707[/C][C]-56.4731707317073[/C][/ROW]
[ROW][C]42[/C][C]490[/C][C]544.473170731707[/C][C]-54.4731707317073[/C][/ROW]
[ROW][C]43[/C][C]469[/C][C]533.273170731707[/C][C]-64.2731707317073[/C][/ROW]
[ROW][C]44[/C][C]478[/C][C]535.473170731707[/C][C]-57.4731707317073[/C][/ROW]
[ROW][C]45[/C][C]528[/C][C]586.673170731707[/C][C]-58.6731707317073[/C][/ROW]
[ROW][C]46[/C][C]534[/C][C]594.673170731707[/C][C]-60.6731707317073[/C][/ROW]
[ROW][C]47[/C][C]518[/C][C]564.380487804878[/C][C]-46.3804878048781[/C][/ROW]
[ROW][C]48[/C][C]506[/C][C]545.980487804878[/C][C]-39.980487804878[/C][/ROW]
[ROW][C]49[/C][C]502[/C][C]539.256097560975[/C][C]-37.2560975609754[/C][/ROW]
[ROW][C]50[/C][C]516[/C][C]537.907317073171[/C][C]-21.9073170731708[/C][/ROW]
[ROW][C]51[/C][C]528[/C][C]540.107317073171[/C][C]-12.1073170731708[/C][/ROW]
[ROW][C]52[/C][C]533[/C][C]535.907317073171[/C][C]-2.90731707317078[/C][/ROW]
[ROW][C]53[/C][C]536[/C][C]527.107317073171[/C][C]8.89268292682924[/C][/ROW]
[ROW][C]54[/C][C]537[/C][C]522.107317073171[/C][C]14.8926829268292[/C][/ROW]
[ROW][C]55[/C][C]524[/C][C]510.907317073171[/C][C]13.0926829268293[/C][/ROW]
[ROW][C]56[/C][C]536[/C][C]513.107317073171[/C][C]22.8926829268292[/C][/ROW]
[ROW][C]57[/C][C]587[/C][C]564.307317073171[/C][C]22.6926829268292[/C][/ROW]
[ROW][C]58[/C][C]597[/C][C]572.307317073171[/C][C]24.6926829268292[/C][/ROW]
[ROW][C]59[/C][C]581[/C][C]564.380487804878[/C][C]16.6195121951219[/C][/ROW]
[ROW][C]60[/C][C]564[/C][C]545.980487804878[/C][C]18.0195121951220[/C][/ROW]
[ROW][C]61[/C][C]558[/C][C]539.256097560975[/C][C]18.7439024390246[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68016&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68016&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
1594561.62195121951332.3780487804869
2595560.27317073170734.7268292682927
3591562.47317073170728.5268292682927
4589558.27317073170730.7268292682927
5584549.47317073170734.5268292682927
6573544.47317073170728.5268292682927
7567533.27317073170733.7268292682927
8569535.47317073170733.5268292682927
9621586.67317073170734.3268292682927
10629594.67317073170734.3268292682927
11628586.74634146341541.2536585365854
12612568.34634146341543.6536585365854
13595561.62195121951233.378048780488
14597560.27317073170736.7268292682927
15593562.47317073170730.5268292682927
16590558.27317073170731.7268292682927
17580549.47317073170730.5268292682927
18574544.47317073170729.5268292682927
19573533.27317073170739.7268292682927
20573535.47317073170737.5268292682927
21620586.67317073170733.3268292682927
22626594.67317073170731.3268292682927
23620586.74634146341533.2536585365854
24588568.34634146341519.6536585365854
25566561.6219512195124.378048780488
26557560.273170731707-3.27317073170733
27561562.473170731707-1.47317073170731
28549558.273170731707-9.27317073170733
29532549.473170731707-17.4731707317073
30526544.473170731707-18.4731707317073
31511533.273170731707-22.2731707317073
32499535.473170731707-36.4731707317073
33555586.673170731707-31.6731707317073
34565594.673170731707-29.6731707317073
35542586.746341463415-44.7463414634146
36527568.346341463415-41.3463414634146
37510561.621951219512-51.621951219512
38514560.273170731707-46.2731707317073
39517562.473170731707-45.4731707317073
40508558.273170731707-50.2731707317073
41493549.473170731707-56.4731707317073
42490544.473170731707-54.4731707317073
43469533.273170731707-64.2731707317073
44478535.473170731707-57.4731707317073
45528586.673170731707-58.6731707317073
46534594.673170731707-60.6731707317073
47518564.380487804878-46.3804878048781
48506545.980487804878-39.980487804878
49502539.256097560975-37.2560975609754
50516537.907317073171-21.9073170731708
51528540.107317073171-12.1073170731708
52533535.907317073171-2.90731707317078
53536527.1073170731718.89268292682924
54537522.10731707317114.8926829268292
55524510.90731707317113.0926829268293
56536513.10731707317122.8926829268292
57587564.30731707317122.6926829268292
58597572.30731707317124.6926829268292
59581564.38048780487816.6195121951219
60564545.98048780487818.0195121951220
61558539.25609756097518.7439024390246







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
165.97189506083504e-050.0001194379012167010.999940281049392
171.26098801767863e-052.52197603535725e-050.999987390119823
186.58380064075557e-071.31676012815111e-060.999999341619936
194.43923853722702e-078.87847707445403e-070.999999556076146
208.22659840659948e-081.64531968131990e-070.999999917734016
218.28178721129484e-091.65635744225897e-080.999999991718213
221.35694083684402e-092.71388167368803e-090.99999999864306
233.62917683675478e-097.25835367350955e-090.999999996370823
243.35977955664699e-066.71955911329397e-060.999996640220443
250.0002024716803838820.0004049433607677640.999797528319616
260.006016884414493870.01203376882898770.993983115585506
270.01961839956200300.03923679912400600.980381600437997
280.06978966883045880.1395793376609180.930210331169541
290.192503999630420.385007999260840.80749600036958
300.3047501174521730.6095002349043460.695249882547827
310.4902048625512150.980409725102430.509795137448785
320.6537249020229210.6925501959541570.346275097977079
330.721045782666510.5579084346669810.278954217333490
340.7510941428354860.4978117143290290.248905857164514
350.8282925646027250.3434148707945490.171707435397275
360.8593196507603680.2813606984792650.140680349239632
370.8702245773950540.2595508452098920.129775422604946
380.8918293570868930.2163412858262140.108170642913107
390.8953847344805290.2092305310389430.104615265519471
400.8807493669078590.2385012661842810.119250633092141
410.8423668226925940.3152663546148130.157633177307406
420.7806042670821160.4387914658357690.219395732917884
430.7035559626298080.5928880747403830.296444037370192
440.5848075273326780.8303849453346450.415192472667322
450.4382035828470410.8764071656940830.561796417152959

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 5.97189506083504e-05 & 0.000119437901216701 & 0.999940281049392 \tabularnewline
17 & 1.26098801767863e-05 & 2.52197603535725e-05 & 0.999987390119823 \tabularnewline
18 & 6.58380064075557e-07 & 1.31676012815111e-06 & 0.999999341619936 \tabularnewline
19 & 4.43923853722702e-07 & 8.87847707445403e-07 & 0.999999556076146 \tabularnewline
20 & 8.22659840659948e-08 & 1.64531968131990e-07 & 0.999999917734016 \tabularnewline
21 & 8.28178721129484e-09 & 1.65635744225897e-08 & 0.999999991718213 \tabularnewline
22 & 1.35694083684402e-09 & 2.71388167368803e-09 & 0.99999999864306 \tabularnewline
23 & 3.62917683675478e-09 & 7.25835367350955e-09 & 0.999999996370823 \tabularnewline
24 & 3.35977955664699e-06 & 6.71955911329397e-06 & 0.999996640220443 \tabularnewline
25 & 0.000202471680383882 & 0.000404943360767764 & 0.999797528319616 \tabularnewline
26 & 0.00601688441449387 & 0.0120337688289877 & 0.993983115585506 \tabularnewline
27 & 0.0196183995620030 & 0.0392367991240060 & 0.980381600437997 \tabularnewline
28 & 0.0697896688304588 & 0.139579337660918 & 0.930210331169541 \tabularnewline
29 & 0.19250399963042 & 0.38500799926084 & 0.80749600036958 \tabularnewline
30 & 0.304750117452173 & 0.609500234904346 & 0.695249882547827 \tabularnewline
31 & 0.490204862551215 & 0.98040972510243 & 0.509795137448785 \tabularnewline
32 & 0.653724902022921 & 0.692550195954157 & 0.346275097977079 \tabularnewline
33 & 0.72104578266651 & 0.557908434666981 & 0.278954217333490 \tabularnewline
34 & 0.751094142835486 & 0.497811714329029 & 0.248905857164514 \tabularnewline
35 & 0.828292564602725 & 0.343414870794549 & 0.171707435397275 \tabularnewline
36 & 0.859319650760368 & 0.281360698479265 & 0.140680349239632 \tabularnewline
37 & 0.870224577395054 & 0.259550845209892 & 0.129775422604946 \tabularnewline
38 & 0.891829357086893 & 0.216341285826214 & 0.108170642913107 \tabularnewline
39 & 0.895384734480529 & 0.209230531038943 & 0.104615265519471 \tabularnewline
40 & 0.880749366907859 & 0.238501266184281 & 0.119250633092141 \tabularnewline
41 & 0.842366822692594 & 0.315266354614813 & 0.157633177307406 \tabularnewline
42 & 0.780604267082116 & 0.438791465835769 & 0.219395732917884 \tabularnewline
43 & 0.703555962629808 & 0.592888074740383 & 0.296444037370192 \tabularnewline
44 & 0.584807527332678 & 0.830384945334645 & 0.415192472667322 \tabularnewline
45 & 0.438203582847041 & 0.876407165694083 & 0.561796417152959 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68016&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]16[/C][C]5.97189506083504e-05[/C][C]0.000119437901216701[/C][C]0.999940281049392[/C][/ROW]
[ROW][C]17[/C][C]1.26098801767863e-05[/C][C]2.52197603535725e-05[/C][C]0.999987390119823[/C][/ROW]
[ROW][C]18[/C][C]6.58380064075557e-07[/C][C]1.31676012815111e-06[/C][C]0.999999341619936[/C][/ROW]
[ROW][C]19[/C][C]4.43923853722702e-07[/C][C]8.87847707445403e-07[/C][C]0.999999556076146[/C][/ROW]
[ROW][C]20[/C][C]8.22659840659948e-08[/C][C]1.64531968131990e-07[/C][C]0.999999917734016[/C][/ROW]
[ROW][C]21[/C][C]8.28178721129484e-09[/C][C]1.65635744225897e-08[/C][C]0.999999991718213[/C][/ROW]
[ROW][C]22[/C][C]1.35694083684402e-09[/C][C]2.71388167368803e-09[/C][C]0.99999999864306[/C][/ROW]
[ROW][C]23[/C][C]3.62917683675478e-09[/C][C]7.25835367350955e-09[/C][C]0.999999996370823[/C][/ROW]
[ROW][C]24[/C][C]3.35977955664699e-06[/C][C]6.71955911329397e-06[/C][C]0.999996640220443[/C][/ROW]
[ROW][C]25[/C][C]0.000202471680383882[/C][C]0.000404943360767764[/C][C]0.999797528319616[/C][/ROW]
[ROW][C]26[/C][C]0.00601688441449387[/C][C]0.0120337688289877[/C][C]0.993983115585506[/C][/ROW]
[ROW][C]27[/C][C]0.0196183995620030[/C][C]0.0392367991240060[/C][C]0.980381600437997[/C][/ROW]
[ROW][C]28[/C][C]0.0697896688304588[/C][C]0.139579337660918[/C][C]0.930210331169541[/C][/ROW]
[ROW][C]29[/C][C]0.19250399963042[/C][C]0.38500799926084[/C][C]0.80749600036958[/C][/ROW]
[ROW][C]30[/C][C]0.304750117452173[/C][C]0.609500234904346[/C][C]0.695249882547827[/C][/ROW]
[ROW][C]31[/C][C]0.490204862551215[/C][C]0.98040972510243[/C][C]0.509795137448785[/C][/ROW]
[ROW][C]32[/C][C]0.653724902022921[/C][C]0.692550195954157[/C][C]0.346275097977079[/C][/ROW]
[ROW][C]33[/C][C]0.72104578266651[/C][C]0.557908434666981[/C][C]0.278954217333490[/C][/ROW]
[ROW][C]34[/C][C]0.751094142835486[/C][C]0.497811714329029[/C][C]0.248905857164514[/C][/ROW]
[ROW][C]35[/C][C]0.828292564602725[/C][C]0.343414870794549[/C][C]0.171707435397275[/C][/ROW]
[ROW][C]36[/C][C]0.859319650760368[/C][C]0.281360698479265[/C][C]0.140680349239632[/C][/ROW]
[ROW][C]37[/C][C]0.870224577395054[/C][C]0.259550845209892[/C][C]0.129775422604946[/C][/ROW]
[ROW][C]38[/C][C]0.891829357086893[/C][C]0.216341285826214[/C][C]0.108170642913107[/C][/ROW]
[ROW][C]39[/C][C]0.895384734480529[/C][C]0.209230531038943[/C][C]0.104615265519471[/C][/ROW]
[ROW][C]40[/C][C]0.880749366907859[/C][C]0.238501266184281[/C][C]0.119250633092141[/C][/ROW]
[ROW][C]41[/C][C]0.842366822692594[/C][C]0.315266354614813[/C][C]0.157633177307406[/C][/ROW]
[ROW][C]42[/C][C]0.780604267082116[/C][C]0.438791465835769[/C][C]0.219395732917884[/C][/ROW]
[ROW][C]43[/C][C]0.703555962629808[/C][C]0.592888074740383[/C][C]0.296444037370192[/C][/ROW]
[ROW][C]44[/C][C]0.584807527332678[/C][C]0.830384945334645[/C][C]0.415192472667322[/C][/ROW]
[ROW][C]45[/C][C]0.438203582847041[/C][C]0.876407165694083[/C][C]0.561796417152959[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68016&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68016&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
165.97189506083504e-050.0001194379012167010.999940281049392
171.26098801767863e-052.52197603535725e-050.999987390119823
186.58380064075557e-071.31676012815111e-060.999999341619936
194.43923853722702e-078.87847707445403e-070.999999556076146
208.22659840659948e-081.64531968131990e-070.999999917734016
218.28178721129484e-091.65635744225897e-080.999999991718213
221.35694083684402e-092.71388167368803e-090.99999999864306
233.62917683675478e-097.25835367350955e-090.999999996370823
243.35977955664699e-066.71955911329397e-060.999996640220443
250.0002024716803838820.0004049433607677640.999797528319616
260.006016884414493870.01203376882898770.993983115585506
270.01961839956200300.03923679912400600.980381600437997
280.06978966883045880.1395793376609180.930210331169541
290.192503999630420.385007999260840.80749600036958
300.3047501174521730.6095002349043460.695249882547827
310.4902048625512150.980409725102430.509795137448785
320.6537249020229210.6925501959541570.346275097977079
330.721045782666510.5579084346669810.278954217333490
340.7510941428354860.4978117143290290.248905857164514
350.8282925646027250.3434148707945490.171707435397275
360.8593196507603680.2813606984792650.140680349239632
370.8702245773950540.2595508452098920.129775422604946
380.8918293570868930.2163412858262140.108170642913107
390.8953847344805290.2092305310389430.104615265519471
400.8807493669078590.2385012661842810.119250633092141
410.8423668226925940.3152663546148130.157633177307406
420.7806042670821160.4387914658357690.219395732917884
430.7035559626298080.5928880747403830.296444037370192
440.5848075273326780.8303849453346450.415192472667322
450.4382035828470410.8764071656940830.561796417152959







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level100.333333333333333NOK
5% type I error level120.4NOK
10% type I error level120.4NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68016&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 level100.333333333333333NOK
5% type I error level120.4NOK
10% type I error level120.4NOK



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