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 computationThu, 19 Nov 2009 11:46:20 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/19/t1258656759wsfywwxal9j95mh.htm/, Retrieved Sat, 20 Apr 2024 11:10:23 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57891, Retrieved Sat, 20 Apr 2024 11:10:23 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact140
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 13:54:52] [b98453cac15ba1066b407e146608df68]
- R  D      [Multiple Regression] [] [2009-11-19 18:46:20] [6974478841a4d28b8cb590971bfdefb0] [Current]
Feedback Forum

Post a new message
Dataseries X:
611	0
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




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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 562.191489361702 -23.6530278232406X[t] + e[t]

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

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

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 562.191489361702 -23.6530278232406X[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)562.1914893617025.97489694.092300
X-23.653027823240612.836135-1.84270.0704870.035243

\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) & 562.191489361702 & 5.974896 & 94.0923 & 0 & 0 \tabularnewline
X & -23.6530278232406 & 12.836135 & -1.8427 & 0.070487 & 0.035243 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57891&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]562.191489361702[/C][C]5.974896[/C][C]94.0923[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-23.6530278232406[/C][C]12.836135[/C][C]-1.8427[/C][C]0.070487[/C][C]0.035243[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57891&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57891&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)562.1914893617025.97489694.092300
X-23.653027823240612.836135-1.84270.0704870.035243







Multiple Linear Regression - Regression Statistics
Multiple R0.235171212976024
R-squared0.0553054994126142
Adjusted R-squared0.0390176631955904
F-TEST (value)3.39550930373486
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.070486897756235
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation40.961821451658
Sum Squared Residuals97316.5073649755

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.235171212976024 \tabularnewline
R-squared & 0.0553054994126142 \tabularnewline
Adjusted R-squared & 0.0390176631955904 \tabularnewline
F-TEST (value) & 3.39550930373486 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 0.070486897756235 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 40.961821451658 \tabularnewline
Sum Squared Residuals & 97316.5073649755 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57891&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.235171212976024[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0553054994126142[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0390176631955904[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.39550930373486[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]0.070486897756235[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]40.961821451658[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]97316.5073649755[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57891&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57891&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.235171212976024
R-squared0.0553054994126142
Adjusted R-squared0.0390176631955904
F-TEST (value)3.39550930373486
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.070486897756235
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation40.961821451658
Sum Squared Residuals97316.5073649755







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1611562.19148936170248.8085106382982
2594562.19148936170231.8085106382979
3595562.19148936170232.8085106382979
4591562.19148936170228.8085106382979
5589562.19148936170226.8085106382979
6584562.19148936170221.8085106382979
7573562.19148936170210.8085106382979
8567562.1914893617024.80851063829787
9569562.1914893617026.80851063829787
10621562.19148936170258.8085106382979
11629562.19148936170266.8085106382979
12628562.19148936170265.8085106382979
13612562.19148936170249.8085106382979
14595562.19148936170232.8085106382979
15597562.19148936170234.8085106382979
16593562.19148936170230.8085106382979
17590562.19148936170227.8085106382979
18580562.19148936170217.8085106382979
19574562.19148936170211.8085106382979
20573562.19148936170210.8085106382979
21573562.19148936170210.8085106382979
22620562.19148936170257.8085106382979
23626562.19148936170263.8085106382979
24620562.19148936170257.8085106382979
25588562.19148936170225.8085106382979
26566562.1914893617023.80851063829787
27557562.191489361702-5.19148936170213
28561562.191489361702-1.19148936170213
29549562.191489361702-13.1914893617021
30532562.191489361702-30.1914893617021
31526562.191489361702-36.1914893617021
32511562.191489361702-51.1914893617021
33499562.191489361702-63.1914893617021
34555562.191489361702-7.19148936170213
35565562.1914893617022.80851063829787
36542562.191489361702-20.1914893617021
37527562.191489361702-35.1914893617021
38510562.191489361702-52.1914893617021
39514562.191489361702-48.1914893617021
40517562.191489361702-45.1914893617021
41508562.191489361702-54.1914893617021
42493562.191489361702-69.1914893617021
43490562.191489361702-72.1914893617021
44469562.191489361702-93.1914893617021
45478562.191489361702-84.1914893617021
46528562.191489361702-34.1914893617021
47534562.191489361702-28.1914893617021
48518538.538461538462-20.5384615384615
49506538.538461538462-32.5384615384615
50502538.538461538462-36.5384615384615
51516538.538461538462-22.5384615384615
52528538.538461538462-10.5384615384615
53533538.538461538462-5.53846153846154
54536538.538461538462-2.53846153846154
55537538.538461538462-1.53846153846154
56524538.538461538462-14.5384615384615
57536538.538461538462-2.53846153846154
58587538.53846153846248.4615384615385
59597538.53846153846258.4615384615385
60581538.53846153846242.4615384615385

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 611 & 562.191489361702 & 48.8085106382982 \tabularnewline
2 & 594 & 562.191489361702 & 31.8085106382979 \tabularnewline
3 & 595 & 562.191489361702 & 32.8085106382979 \tabularnewline
4 & 591 & 562.191489361702 & 28.8085106382979 \tabularnewline
5 & 589 & 562.191489361702 & 26.8085106382979 \tabularnewline
6 & 584 & 562.191489361702 & 21.8085106382979 \tabularnewline
7 & 573 & 562.191489361702 & 10.8085106382979 \tabularnewline
8 & 567 & 562.191489361702 & 4.80851063829787 \tabularnewline
9 & 569 & 562.191489361702 & 6.80851063829787 \tabularnewline
10 & 621 & 562.191489361702 & 58.8085106382979 \tabularnewline
11 & 629 & 562.191489361702 & 66.8085106382979 \tabularnewline
12 & 628 & 562.191489361702 & 65.8085106382979 \tabularnewline
13 & 612 & 562.191489361702 & 49.8085106382979 \tabularnewline
14 & 595 & 562.191489361702 & 32.8085106382979 \tabularnewline
15 & 597 & 562.191489361702 & 34.8085106382979 \tabularnewline
16 & 593 & 562.191489361702 & 30.8085106382979 \tabularnewline
17 & 590 & 562.191489361702 & 27.8085106382979 \tabularnewline
18 & 580 & 562.191489361702 & 17.8085106382979 \tabularnewline
19 & 574 & 562.191489361702 & 11.8085106382979 \tabularnewline
20 & 573 & 562.191489361702 & 10.8085106382979 \tabularnewline
21 & 573 & 562.191489361702 & 10.8085106382979 \tabularnewline
22 & 620 & 562.191489361702 & 57.8085106382979 \tabularnewline
23 & 626 & 562.191489361702 & 63.8085106382979 \tabularnewline
24 & 620 & 562.191489361702 & 57.8085106382979 \tabularnewline
25 & 588 & 562.191489361702 & 25.8085106382979 \tabularnewline
26 & 566 & 562.191489361702 & 3.80851063829787 \tabularnewline
27 & 557 & 562.191489361702 & -5.19148936170213 \tabularnewline
28 & 561 & 562.191489361702 & -1.19148936170213 \tabularnewline
29 & 549 & 562.191489361702 & -13.1914893617021 \tabularnewline
30 & 532 & 562.191489361702 & -30.1914893617021 \tabularnewline
31 & 526 & 562.191489361702 & -36.1914893617021 \tabularnewline
32 & 511 & 562.191489361702 & -51.1914893617021 \tabularnewline
33 & 499 & 562.191489361702 & -63.1914893617021 \tabularnewline
34 & 555 & 562.191489361702 & -7.19148936170213 \tabularnewline
35 & 565 & 562.191489361702 & 2.80851063829787 \tabularnewline
36 & 542 & 562.191489361702 & -20.1914893617021 \tabularnewline
37 & 527 & 562.191489361702 & -35.1914893617021 \tabularnewline
38 & 510 & 562.191489361702 & -52.1914893617021 \tabularnewline
39 & 514 & 562.191489361702 & -48.1914893617021 \tabularnewline
40 & 517 & 562.191489361702 & -45.1914893617021 \tabularnewline
41 & 508 & 562.191489361702 & -54.1914893617021 \tabularnewline
42 & 493 & 562.191489361702 & -69.1914893617021 \tabularnewline
43 & 490 & 562.191489361702 & -72.1914893617021 \tabularnewline
44 & 469 & 562.191489361702 & -93.1914893617021 \tabularnewline
45 & 478 & 562.191489361702 & -84.1914893617021 \tabularnewline
46 & 528 & 562.191489361702 & -34.1914893617021 \tabularnewline
47 & 534 & 562.191489361702 & -28.1914893617021 \tabularnewline
48 & 518 & 538.538461538462 & -20.5384615384615 \tabularnewline
49 & 506 & 538.538461538462 & -32.5384615384615 \tabularnewline
50 & 502 & 538.538461538462 & -36.5384615384615 \tabularnewline
51 & 516 & 538.538461538462 & -22.5384615384615 \tabularnewline
52 & 528 & 538.538461538462 & -10.5384615384615 \tabularnewline
53 & 533 & 538.538461538462 & -5.53846153846154 \tabularnewline
54 & 536 & 538.538461538462 & -2.53846153846154 \tabularnewline
55 & 537 & 538.538461538462 & -1.53846153846154 \tabularnewline
56 & 524 & 538.538461538462 & -14.5384615384615 \tabularnewline
57 & 536 & 538.538461538462 & -2.53846153846154 \tabularnewline
58 & 587 & 538.538461538462 & 48.4615384615385 \tabularnewline
59 & 597 & 538.538461538462 & 58.4615384615385 \tabularnewline
60 & 581 & 538.538461538462 & 42.4615384615385 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57891&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]611[/C][C]562.191489361702[/C][C]48.8085106382982[/C][/ROW]
[ROW][C]2[/C][C]594[/C][C]562.191489361702[/C][C]31.8085106382979[/C][/ROW]
[ROW][C]3[/C][C]595[/C][C]562.191489361702[/C][C]32.8085106382979[/C][/ROW]
[ROW][C]4[/C][C]591[/C][C]562.191489361702[/C][C]28.8085106382979[/C][/ROW]
[ROW][C]5[/C][C]589[/C][C]562.191489361702[/C][C]26.8085106382979[/C][/ROW]
[ROW][C]6[/C][C]584[/C][C]562.191489361702[/C][C]21.8085106382979[/C][/ROW]
[ROW][C]7[/C][C]573[/C][C]562.191489361702[/C][C]10.8085106382979[/C][/ROW]
[ROW][C]8[/C][C]567[/C][C]562.191489361702[/C][C]4.80851063829787[/C][/ROW]
[ROW][C]9[/C][C]569[/C][C]562.191489361702[/C][C]6.80851063829787[/C][/ROW]
[ROW][C]10[/C][C]621[/C][C]562.191489361702[/C][C]58.8085106382979[/C][/ROW]
[ROW][C]11[/C][C]629[/C][C]562.191489361702[/C][C]66.8085106382979[/C][/ROW]
[ROW][C]12[/C][C]628[/C][C]562.191489361702[/C][C]65.8085106382979[/C][/ROW]
[ROW][C]13[/C][C]612[/C][C]562.191489361702[/C][C]49.8085106382979[/C][/ROW]
[ROW][C]14[/C][C]595[/C][C]562.191489361702[/C][C]32.8085106382979[/C][/ROW]
[ROW][C]15[/C][C]597[/C][C]562.191489361702[/C][C]34.8085106382979[/C][/ROW]
[ROW][C]16[/C][C]593[/C][C]562.191489361702[/C][C]30.8085106382979[/C][/ROW]
[ROW][C]17[/C][C]590[/C][C]562.191489361702[/C][C]27.8085106382979[/C][/ROW]
[ROW][C]18[/C][C]580[/C][C]562.191489361702[/C][C]17.8085106382979[/C][/ROW]
[ROW][C]19[/C][C]574[/C][C]562.191489361702[/C][C]11.8085106382979[/C][/ROW]
[ROW][C]20[/C][C]573[/C][C]562.191489361702[/C][C]10.8085106382979[/C][/ROW]
[ROW][C]21[/C][C]573[/C][C]562.191489361702[/C][C]10.8085106382979[/C][/ROW]
[ROW][C]22[/C][C]620[/C][C]562.191489361702[/C][C]57.8085106382979[/C][/ROW]
[ROW][C]23[/C][C]626[/C][C]562.191489361702[/C][C]63.8085106382979[/C][/ROW]
[ROW][C]24[/C][C]620[/C][C]562.191489361702[/C][C]57.8085106382979[/C][/ROW]
[ROW][C]25[/C][C]588[/C][C]562.191489361702[/C][C]25.8085106382979[/C][/ROW]
[ROW][C]26[/C][C]566[/C][C]562.191489361702[/C][C]3.80851063829787[/C][/ROW]
[ROW][C]27[/C][C]557[/C][C]562.191489361702[/C][C]-5.19148936170213[/C][/ROW]
[ROW][C]28[/C][C]561[/C][C]562.191489361702[/C][C]-1.19148936170213[/C][/ROW]
[ROW][C]29[/C][C]549[/C][C]562.191489361702[/C][C]-13.1914893617021[/C][/ROW]
[ROW][C]30[/C][C]532[/C][C]562.191489361702[/C][C]-30.1914893617021[/C][/ROW]
[ROW][C]31[/C][C]526[/C][C]562.191489361702[/C][C]-36.1914893617021[/C][/ROW]
[ROW][C]32[/C][C]511[/C][C]562.191489361702[/C][C]-51.1914893617021[/C][/ROW]
[ROW][C]33[/C][C]499[/C][C]562.191489361702[/C][C]-63.1914893617021[/C][/ROW]
[ROW][C]34[/C][C]555[/C][C]562.191489361702[/C][C]-7.19148936170213[/C][/ROW]
[ROW][C]35[/C][C]565[/C][C]562.191489361702[/C][C]2.80851063829787[/C][/ROW]
[ROW][C]36[/C][C]542[/C][C]562.191489361702[/C][C]-20.1914893617021[/C][/ROW]
[ROW][C]37[/C][C]527[/C][C]562.191489361702[/C][C]-35.1914893617021[/C][/ROW]
[ROW][C]38[/C][C]510[/C][C]562.191489361702[/C][C]-52.1914893617021[/C][/ROW]
[ROW][C]39[/C][C]514[/C][C]562.191489361702[/C][C]-48.1914893617021[/C][/ROW]
[ROW][C]40[/C][C]517[/C][C]562.191489361702[/C][C]-45.1914893617021[/C][/ROW]
[ROW][C]41[/C][C]508[/C][C]562.191489361702[/C][C]-54.1914893617021[/C][/ROW]
[ROW][C]42[/C][C]493[/C][C]562.191489361702[/C][C]-69.1914893617021[/C][/ROW]
[ROW][C]43[/C][C]490[/C][C]562.191489361702[/C][C]-72.1914893617021[/C][/ROW]
[ROW][C]44[/C][C]469[/C][C]562.191489361702[/C][C]-93.1914893617021[/C][/ROW]
[ROW][C]45[/C][C]478[/C][C]562.191489361702[/C][C]-84.1914893617021[/C][/ROW]
[ROW][C]46[/C][C]528[/C][C]562.191489361702[/C][C]-34.1914893617021[/C][/ROW]
[ROW][C]47[/C][C]534[/C][C]562.191489361702[/C][C]-28.1914893617021[/C][/ROW]
[ROW][C]48[/C][C]518[/C][C]538.538461538462[/C][C]-20.5384615384615[/C][/ROW]
[ROW][C]49[/C][C]506[/C][C]538.538461538462[/C][C]-32.5384615384615[/C][/ROW]
[ROW][C]50[/C][C]502[/C][C]538.538461538462[/C][C]-36.5384615384615[/C][/ROW]
[ROW][C]51[/C][C]516[/C][C]538.538461538462[/C][C]-22.5384615384615[/C][/ROW]
[ROW][C]52[/C][C]528[/C][C]538.538461538462[/C][C]-10.5384615384615[/C][/ROW]
[ROW][C]53[/C][C]533[/C][C]538.538461538462[/C][C]-5.53846153846154[/C][/ROW]
[ROW][C]54[/C][C]536[/C][C]538.538461538462[/C][C]-2.53846153846154[/C][/ROW]
[ROW][C]55[/C][C]537[/C][C]538.538461538462[/C][C]-1.53846153846154[/C][/ROW]
[ROW][C]56[/C][C]524[/C][C]538.538461538462[/C][C]-14.5384615384615[/C][/ROW]
[ROW][C]57[/C][C]536[/C][C]538.538461538462[/C][C]-2.53846153846154[/C][/ROW]
[ROW][C]58[/C][C]587[/C][C]538.538461538462[/C][C]48.4615384615385[/C][/ROW]
[ROW][C]59[/C][C]597[/C][C]538.538461538462[/C][C]58.4615384615385[/C][/ROW]
[ROW][C]60[/C][C]581[/C][C]538.538461538462[/C][C]42.4615384615385[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57891&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57891&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
1611562.19148936170248.8085106382982
2594562.19148936170231.8085106382979
3595562.19148936170232.8085106382979
4591562.19148936170228.8085106382979
5589562.19148936170226.8085106382979
6584562.19148936170221.8085106382979
7573562.19148936170210.8085106382979
8567562.1914893617024.80851063829787
9569562.1914893617026.80851063829787
10621562.19148936170258.8085106382979
11629562.19148936170266.8085106382979
12628562.19148936170265.8085106382979
13612562.19148936170249.8085106382979
14595562.19148936170232.8085106382979
15597562.19148936170234.8085106382979
16593562.19148936170230.8085106382979
17590562.19148936170227.8085106382979
18580562.19148936170217.8085106382979
19574562.19148936170211.8085106382979
20573562.19148936170210.8085106382979
21573562.19148936170210.8085106382979
22620562.19148936170257.8085106382979
23626562.19148936170263.8085106382979
24620562.19148936170257.8085106382979
25588562.19148936170225.8085106382979
26566562.1914893617023.80851063829787
27557562.191489361702-5.19148936170213
28561562.191489361702-1.19148936170213
29549562.191489361702-13.1914893617021
30532562.191489361702-30.1914893617021
31526562.191489361702-36.1914893617021
32511562.191489361702-51.1914893617021
33499562.191489361702-63.1914893617021
34555562.191489361702-7.19148936170213
35565562.1914893617022.80851063829787
36542562.191489361702-20.1914893617021
37527562.191489361702-35.1914893617021
38510562.191489361702-52.1914893617021
39514562.191489361702-48.1914893617021
40517562.191489361702-45.1914893617021
41508562.191489361702-54.1914893617021
42493562.191489361702-69.1914893617021
43490562.191489361702-72.1914893617021
44469562.191489361702-93.1914893617021
45478562.191489361702-84.1914893617021
46528562.191489361702-34.1914893617021
47534562.191489361702-28.1914893617021
48518538.538461538462-20.5384615384615
49506538.538461538462-32.5384615384615
50502538.538461538462-36.5384615384615
51516538.538461538462-22.5384615384615
52528538.538461538462-10.5384615384615
53533538.538461538462-5.53846153846154
54536538.538461538462-2.53846153846154
55537538.538461538462-1.53846153846154
56524538.538461538462-14.5384615384615
57536538.538461538462-2.53846153846154
58587538.53846153846248.4615384615385
59597538.53846153846258.4615384615385
60581538.53846153846242.4615384615385







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.01911969870863970.03823939741727940.98088030129136
60.007149139417163350.01429827883432670.992850860582837
70.006725359163461960.01345071832692390.993274640836538
80.006704592876393760.01340918575278750.993295407123606
90.004087149149563680.008174298299127360.995912850850436
100.009289861875301650.01857972375060330.990710138124698
110.02112056962945010.04224113925890030.97887943037055
120.0314089670848310.0628179341696620.96859103291517
130.02355369613748260.04710739227496520.976446303862517
140.01381477273624160.02762954547248310.986185227263758
150.00817203062979860.01634406125959720.991827969370201
160.004792746816137890.009585493632275790.995207253183862
170.002849244529707470.005698489059414940.997150755470293
180.001958252905780010.003916505811560020.99804174709422
190.001570343620205170.003140687240410330.998429656379795
200.001258667430772420.002517334861544840.998741332569228
210.00098279647629450.0019655929525890.999017203523705
220.002243949193927430.004487898387854850.997756050806073
230.008908161662134390.01781632332426880.991091838337866
240.02904531567178110.05809063134356220.970954684328219
250.03825080450996640.07650160901993280.961749195490034
260.05505997846925540.1101199569385110.944940021530745
270.08641180396277780.1728236079255560.913588196037222
280.1216002431140900.2432004862281790.87839975688591
290.1818880567881010.3637761135762010.8181119432119
300.2964768612239530.5929537224479060.703523138776047
310.417983428625050.83596685725010.58201657137495
320.5791940383280740.8416119233438520.420805961671926
330.7386463119654490.5227073760691020.261353688034551
340.7563995466860230.4872009066279530.243600453313977
350.8192934694560180.3614130610879640.180706530543982
360.8394505760707870.3210988478584270.160549423929213
370.850404772768510.2991904544629810.149595227231490
380.8644671488009740.2710657023980520.135532851199026
390.8658964967955840.2682070064088320.134103503204416
400.8615796289828730.2768407420342550.138420371017127
410.8558460599677130.2883078800645740.144153940032287
420.8596792003565360.2806415992869280.140320799643464
430.8600980448664980.2798039102670030.139901955133502
440.9103013995940780.1793972008118440.0896986004059222
450.9429963289644220.1140073420711570.0570036710355784
460.9130933941551270.1738132116897450.0869066058448726
470.8686776021384550.262644795723090.131322397861545
480.8236387891671840.3527224216656320.176361210832816
490.8086072903710210.3827854192579580.191392709628979
500.8265152797348840.3469694405302320.173484720265116
510.8068617618041610.3862764763916780.193138238195839
520.7499864819682340.5000270360635320.250013518031766
530.6700334773492160.6599330453015670.329966522650784
540.5707625230049710.8584749539900570.429237476995029
550.4640697445735040.9281394891470090.535930255426496

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.0191196987086397 & 0.0382393974172794 & 0.98088030129136 \tabularnewline
6 & 0.00714913941716335 & 0.0142982788343267 & 0.992850860582837 \tabularnewline
7 & 0.00672535916346196 & 0.0134507183269239 & 0.993274640836538 \tabularnewline
8 & 0.00670459287639376 & 0.0134091857527875 & 0.993295407123606 \tabularnewline
9 & 0.00408714914956368 & 0.00817429829912736 & 0.995912850850436 \tabularnewline
10 & 0.00928986187530165 & 0.0185797237506033 & 0.990710138124698 \tabularnewline
11 & 0.0211205696294501 & 0.0422411392589003 & 0.97887943037055 \tabularnewline
12 & 0.031408967084831 & 0.062817934169662 & 0.96859103291517 \tabularnewline
13 & 0.0235536961374826 & 0.0471073922749652 & 0.976446303862517 \tabularnewline
14 & 0.0138147727362416 & 0.0276295454724831 & 0.986185227263758 \tabularnewline
15 & 0.0081720306297986 & 0.0163440612595972 & 0.991827969370201 \tabularnewline
16 & 0.00479274681613789 & 0.00958549363227579 & 0.995207253183862 \tabularnewline
17 & 0.00284924452970747 & 0.00569848905941494 & 0.997150755470293 \tabularnewline
18 & 0.00195825290578001 & 0.00391650581156002 & 0.99804174709422 \tabularnewline
19 & 0.00157034362020517 & 0.00314068724041033 & 0.998429656379795 \tabularnewline
20 & 0.00125866743077242 & 0.00251733486154484 & 0.998741332569228 \tabularnewline
21 & 0.0009827964762945 & 0.001965592952589 & 0.999017203523705 \tabularnewline
22 & 0.00224394919392743 & 0.00448789838785485 & 0.997756050806073 \tabularnewline
23 & 0.00890816166213439 & 0.0178163233242688 & 0.991091838337866 \tabularnewline
24 & 0.0290453156717811 & 0.0580906313435622 & 0.970954684328219 \tabularnewline
25 & 0.0382508045099664 & 0.0765016090199328 & 0.961749195490034 \tabularnewline
26 & 0.0550599784692554 & 0.110119956938511 & 0.944940021530745 \tabularnewline
27 & 0.0864118039627778 & 0.172823607925556 & 0.913588196037222 \tabularnewline
28 & 0.121600243114090 & 0.243200486228179 & 0.87839975688591 \tabularnewline
29 & 0.181888056788101 & 0.363776113576201 & 0.8181119432119 \tabularnewline
30 & 0.296476861223953 & 0.592953722447906 & 0.703523138776047 \tabularnewline
31 & 0.41798342862505 & 0.8359668572501 & 0.58201657137495 \tabularnewline
32 & 0.579194038328074 & 0.841611923343852 & 0.420805961671926 \tabularnewline
33 & 0.738646311965449 & 0.522707376069102 & 0.261353688034551 \tabularnewline
34 & 0.756399546686023 & 0.487200906627953 & 0.243600453313977 \tabularnewline
35 & 0.819293469456018 & 0.361413061087964 & 0.180706530543982 \tabularnewline
36 & 0.839450576070787 & 0.321098847858427 & 0.160549423929213 \tabularnewline
37 & 0.85040477276851 & 0.299190454462981 & 0.149595227231490 \tabularnewline
38 & 0.864467148800974 & 0.271065702398052 & 0.135532851199026 \tabularnewline
39 & 0.865896496795584 & 0.268207006408832 & 0.134103503204416 \tabularnewline
40 & 0.861579628982873 & 0.276840742034255 & 0.138420371017127 \tabularnewline
41 & 0.855846059967713 & 0.288307880064574 & 0.144153940032287 \tabularnewline
42 & 0.859679200356536 & 0.280641599286928 & 0.140320799643464 \tabularnewline
43 & 0.860098044866498 & 0.279803910267003 & 0.139901955133502 \tabularnewline
44 & 0.910301399594078 & 0.179397200811844 & 0.0896986004059222 \tabularnewline
45 & 0.942996328964422 & 0.114007342071157 & 0.0570036710355784 \tabularnewline
46 & 0.913093394155127 & 0.173813211689745 & 0.0869066058448726 \tabularnewline
47 & 0.868677602138455 & 0.26264479572309 & 0.131322397861545 \tabularnewline
48 & 0.823638789167184 & 0.352722421665632 & 0.176361210832816 \tabularnewline
49 & 0.808607290371021 & 0.382785419257958 & 0.191392709628979 \tabularnewline
50 & 0.826515279734884 & 0.346969440530232 & 0.173484720265116 \tabularnewline
51 & 0.806861761804161 & 0.386276476391678 & 0.193138238195839 \tabularnewline
52 & 0.749986481968234 & 0.500027036063532 & 0.250013518031766 \tabularnewline
53 & 0.670033477349216 & 0.659933045301567 & 0.329966522650784 \tabularnewline
54 & 0.570762523004971 & 0.858474953990057 & 0.429237476995029 \tabularnewline
55 & 0.464069744573504 & 0.928139489147009 & 0.535930255426496 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57891&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]5[/C][C]0.0191196987086397[/C][C]0.0382393974172794[/C][C]0.98088030129136[/C][/ROW]
[ROW][C]6[/C][C]0.00714913941716335[/C][C]0.0142982788343267[/C][C]0.992850860582837[/C][/ROW]
[ROW][C]7[/C][C]0.00672535916346196[/C][C]0.0134507183269239[/C][C]0.993274640836538[/C][/ROW]
[ROW][C]8[/C][C]0.00670459287639376[/C][C]0.0134091857527875[/C][C]0.993295407123606[/C][/ROW]
[ROW][C]9[/C][C]0.00408714914956368[/C][C]0.00817429829912736[/C][C]0.995912850850436[/C][/ROW]
[ROW][C]10[/C][C]0.00928986187530165[/C][C]0.0185797237506033[/C][C]0.990710138124698[/C][/ROW]
[ROW][C]11[/C][C]0.0211205696294501[/C][C]0.0422411392589003[/C][C]0.97887943037055[/C][/ROW]
[ROW][C]12[/C][C]0.031408967084831[/C][C]0.062817934169662[/C][C]0.96859103291517[/C][/ROW]
[ROW][C]13[/C][C]0.0235536961374826[/C][C]0.0471073922749652[/C][C]0.976446303862517[/C][/ROW]
[ROW][C]14[/C][C]0.0138147727362416[/C][C]0.0276295454724831[/C][C]0.986185227263758[/C][/ROW]
[ROW][C]15[/C][C]0.0081720306297986[/C][C]0.0163440612595972[/C][C]0.991827969370201[/C][/ROW]
[ROW][C]16[/C][C]0.00479274681613789[/C][C]0.00958549363227579[/C][C]0.995207253183862[/C][/ROW]
[ROW][C]17[/C][C]0.00284924452970747[/C][C]0.00569848905941494[/C][C]0.997150755470293[/C][/ROW]
[ROW][C]18[/C][C]0.00195825290578001[/C][C]0.00391650581156002[/C][C]0.99804174709422[/C][/ROW]
[ROW][C]19[/C][C]0.00157034362020517[/C][C]0.00314068724041033[/C][C]0.998429656379795[/C][/ROW]
[ROW][C]20[/C][C]0.00125866743077242[/C][C]0.00251733486154484[/C][C]0.998741332569228[/C][/ROW]
[ROW][C]21[/C][C]0.0009827964762945[/C][C]0.001965592952589[/C][C]0.999017203523705[/C][/ROW]
[ROW][C]22[/C][C]0.00224394919392743[/C][C]0.00448789838785485[/C][C]0.997756050806073[/C][/ROW]
[ROW][C]23[/C][C]0.00890816166213439[/C][C]0.0178163233242688[/C][C]0.991091838337866[/C][/ROW]
[ROW][C]24[/C][C]0.0290453156717811[/C][C]0.0580906313435622[/C][C]0.970954684328219[/C][/ROW]
[ROW][C]25[/C][C]0.0382508045099664[/C][C]0.0765016090199328[/C][C]0.961749195490034[/C][/ROW]
[ROW][C]26[/C][C]0.0550599784692554[/C][C]0.110119956938511[/C][C]0.944940021530745[/C][/ROW]
[ROW][C]27[/C][C]0.0864118039627778[/C][C]0.172823607925556[/C][C]0.913588196037222[/C][/ROW]
[ROW][C]28[/C][C]0.121600243114090[/C][C]0.243200486228179[/C][C]0.87839975688591[/C][/ROW]
[ROW][C]29[/C][C]0.181888056788101[/C][C]0.363776113576201[/C][C]0.8181119432119[/C][/ROW]
[ROW][C]30[/C][C]0.296476861223953[/C][C]0.592953722447906[/C][C]0.703523138776047[/C][/ROW]
[ROW][C]31[/C][C]0.41798342862505[/C][C]0.8359668572501[/C][C]0.58201657137495[/C][/ROW]
[ROW][C]32[/C][C]0.579194038328074[/C][C]0.841611923343852[/C][C]0.420805961671926[/C][/ROW]
[ROW][C]33[/C][C]0.738646311965449[/C][C]0.522707376069102[/C][C]0.261353688034551[/C][/ROW]
[ROW][C]34[/C][C]0.756399546686023[/C][C]0.487200906627953[/C][C]0.243600453313977[/C][/ROW]
[ROW][C]35[/C][C]0.819293469456018[/C][C]0.361413061087964[/C][C]0.180706530543982[/C][/ROW]
[ROW][C]36[/C][C]0.839450576070787[/C][C]0.321098847858427[/C][C]0.160549423929213[/C][/ROW]
[ROW][C]37[/C][C]0.85040477276851[/C][C]0.299190454462981[/C][C]0.149595227231490[/C][/ROW]
[ROW][C]38[/C][C]0.864467148800974[/C][C]0.271065702398052[/C][C]0.135532851199026[/C][/ROW]
[ROW][C]39[/C][C]0.865896496795584[/C][C]0.268207006408832[/C][C]0.134103503204416[/C][/ROW]
[ROW][C]40[/C][C]0.861579628982873[/C][C]0.276840742034255[/C][C]0.138420371017127[/C][/ROW]
[ROW][C]41[/C][C]0.855846059967713[/C][C]0.288307880064574[/C][C]0.144153940032287[/C][/ROW]
[ROW][C]42[/C][C]0.859679200356536[/C][C]0.280641599286928[/C][C]0.140320799643464[/C][/ROW]
[ROW][C]43[/C][C]0.860098044866498[/C][C]0.279803910267003[/C][C]0.139901955133502[/C][/ROW]
[ROW][C]44[/C][C]0.910301399594078[/C][C]0.179397200811844[/C][C]0.0896986004059222[/C][/ROW]
[ROW][C]45[/C][C]0.942996328964422[/C][C]0.114007342071157[/C][C]0.0570036710355784[/C][/ROW]
[ROW][C]46[/C][C]0.913093394155127[/C][C]0.173813211689745[/C][C]0.0869066058448726[/C][/ROW]
[ROW][C]47[/C][C]0.868677602138455[/C][C]0.26264479572309[/C][C]0.131322397861545[/C][/ROW]
[ROW][C]48[/C][C]0.823638789167184[/C][C]0.352722421665632[/C][C]0.176361210832816[/C][/ROW]
[ROW][C]49[/C][C]0.808607290371021[/C][C]0.382785419257958[/C][C]0.191392709628979[/C][/ROW]
[ROW][C]50[/C][C]0.826515279734884[/C][C]0.346969440530232[/C][C]0.173484720265116[/C][/ROW]
[ROW][C]51[/C][C]0.806861761804161[/C][C]0.386276476391678[/C][C]0.193138238195839[/C][/ROW]
[ROW][C]52[/C][C]0.749986481968234[/C][C]0.500027036063532[/C][C]0.250013518031766[/C][/ROW]
[ROW][C]53[/C][C]0.670033477349216[/C][C]0.659933045301567[/C][C]0.329966522650784[/C][/ROW]
[ROW][C]54[/C][C]0.570762523004971[/C][C]0.858474953990057[/C][C]0.429237476995029[/C][/ROW]
[ROW][C]55[/C][C]0.464069744573504[/C][C]0.928139489147009[/C][C]0.535930255426496[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57891&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.01911969870863970.03823939741727940.98088030129136
60.007149139417163350.01429827883432670.992850860582837
70.006725359163461960.01345071832692390.993274640836538
80.006704592876393760.01340918575278750.993295407123606
90.004087149149563680.008174298299127360.995912850850436
100.009289861875301650.01857972375060330.990710138124698
110.02112056962945010.04224113925890030.97887943037055
120.0314089670848310.0628179341696620.96859103291517
130.02355369613748260.04710739227496520.976446303862517
140.01381477273624160.02762954547248310.986185227263758
150.00817203062979860.01634406125959720.991827969370201
160.004792746816137890.009585493632275790.995207253183862
170.002849244529707470.005698489059414940.997150755470293
180.001958252905780010.003916505811560020.99804174709422
190.001570343620205170.003140687240410330.998429656379795
200.001258667430772420.002517334861544840.998741332569228
210.00098279647629450.0019655929525890.999017203523705
220.002243949193927430.004487898387854850.997756050806073
230.008908161662134390.01781632332426880.991091838337866
240.02904531567178110.05809063134356220.970954684328219
250.03825080450996640.07650160901993280.961749195490034
260.05505997846925540.1101199569385110.944940021530745
270.08641180396277780.1728236079255560.913588196037222
280.1216002431140900.2432004862281790.87839975688591
290.1818880567881010.3637761135762010.8181119432119
300.2964768612239530.5929537224479060.703523138776047
310.417983428625050.83596685725010.58201657137495
320.5791940383280740.8416119233438520.420805961671926
330.7386463119654490.5227073760691020.261353688034551
340.7563995466860230.4872009066279530.243600453313977
350.8192934694560180.3614130610879640.180706530543982
360.8394505760707870.3210988478584270.160549423929213
370.850404772768510.2991904544629810.149595227231490
380.8644671488009740.2710657023980520.135532851199026
390.8658964967955840.2682070064088320.134103503204416
400.8615796289828730.2768407420342550.138420371017127
410.8558460599677130.2883078800645740.144153940032287
420.8596792003565360.2806415992869280.140320799643464
430.8600980448664980.2798039102670030.139901955133502
440.9103013995940780.1793972008118440.0896986004059222
450.9429963289644220.1140073420711570.0570036710355784
460.9130933941551270.1738132116897450.0869066058448726
470.8686776021384550.262644795723090.131322397861545
480.8236387891671840.3527224216656320.176361210832816
490.8086072903710210.3827854192579580.191392709628979
500.8265152797348840.3469694405302320.173484720265116
510.8068617618041610.3862764763916780.193138238195839
520.7499864819682340.5000270360635320.250013518031766
530.6700334773492160.6599330453015670.329966522650784
540.5707625230049710.8584749539900570.429237476995029
550.4640697445735040.9281394891470090.535930255426496







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.156862745098039NOK
5% type I error level180.352941176470588NOK
10% type I error level210.411764705882353NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57891&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 level80.156862745098039NOK
5% type I error level180.352941176470588NOK
10% type I error level210.411764705882353NOK



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