Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 18 Nov 2009 11:45:45 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/18/t1258570119u1nvv0c1054c9ir.htm/, Retrieved Sun, 05 May 2024 15:55:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57588, Retrieved Sun, 05 May 2024 15:55:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact142
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]
-    D      [Multiple Regression] [Model 1] [2009-11-18 18:45:45] [82f29a5d509ab8039aab37a0145f886d] [Current]
Feedback Forum

Post a new message
Dataseries X:
562	0
561	0
555	0
544	0
537	0
543	0
594	0
611	0
613	0
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	1
510	1
514	1
517	1
508	1
493	1
490	1
469	1
478	1
528	1
534	1
518	1
506	1
502	1
516	1
528	1




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57588&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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 577.222222222222 -68.5972222222222X[t] + e[t]

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57588&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] = + 577.222222222222 -68.5972222222222X[t] + e[t]







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

\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) & 577.222222222222 & 4.312533 & 133.8476 & 0 & 0 \tabularnewline
X & -68.5972222222222 & 8.420489 & -8.1465 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57588&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]577.222222222222[/C][C]4.312533[/C][C]133.8476[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-68.5972222222222[/C][C]8.420489[/C][C]-8.1465[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57588&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57588&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)577.2222222222224.312533133.847600
X-68.59722222222228.420489-8.146500







Multiple Linear Regression - Regression Statistics
Multiple R0.727580800319605
R-squared0.529373820993717
Adjusted R-squared0.521397106095305
F-TEST (value)66.3648917800901
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value3.09468006776115e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation28.9293492922120
Sum Squared Residuals49377.5277777778

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.727580800319605 \tabularnewline
R-squared & 0.529373820993717 \tabularnewline
Adjusted R-squared & 0.521397106095305 \tabularnewline
F-TEST (value) & 66.3648917800901 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 59 \tabularnewline
p-value & 3.09468006776115e-11 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 28.9293492922120 \tabularnewline
Sum Squared Residuals & 49377.5277777778 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57588&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.727580800319605[/C][/ROW]
[ROW][C]R-squared[/C][C]0.529373820993717[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.521397106095305[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]66.3648917800901[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]59[/C][/ROW]
[ROW][C]p-value[/C][C]3.09468006776115e-11[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]28.9293492922120[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]49377.5277777778[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57588&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57588&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.727580800319605
R-squared0.529373820993717
Adjusted R-squared0.521397106095305
F-TEST (value)66.3648917800901
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value3.09468006776115e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation28.9293492922120
Sum Squared Residuals49377.5277777778







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1562577.222222222222-15.222222222222
2561577.222222222222-16.2222222222222
3555577.222222222222-22.2222222222222
4544577.222222222222-33.2222222222222
5537577.222222222222-40.2222222222222
6543577.222222222222-34.2222222222222
7594577.22222222222216.7777777777778
8611577.22222222222233.7777777777778
9613577.22222222222235.7777777777778
10611577.22222222222233.7777777777778
11594577.22222222222216.7777777777778
12595577.22222222222217.7777777777778
13591577.22222222222213.7777777777778
14589577.22222222222211.7777777777778
15584577.2222222222226.77777777777777
16573577.222222222222-4.22222222222223
17567577.222222222222-10.2222222222222
18569577.222222222222-8.22222222222223
19621577.22222222222243.7777777777778
20629577.22222222222251.7777777777778
21628577.22222222222250.7777777777778
22612577.22222222222234.7777777777778
23595577.22222222222217.7777777777778
24597577.22222222222219.7777777777778
25593577.22222222222215.7777777777778
26590577.22222222222212.7777777777778
27580577.2222222222222.77777777777777
28574577.222222222222-3.22222222222223
29573577.222222222222-4.22222222222223
30573577.222222222222-4.22222222222223
31620577.22222222222242.7777777777778
32626577.22222222222248.7777777777778
33620577.22222222222242.7777777777778
34588577.22222222222210.7777777777778
35566577.222222222222-11.2222222222222
36557577.222222222222-20.2222222222222
37561577.222222222222-16.2222222222222
38549577.222222222222-28.2222222222222
39532577.222222222222-45.2222222222222
40526577.222222222222-51.2222222222222
41511577.222222222222-66.2222222222222
42499577.222222222222-78.2222222222222
43555577.222222222222-22.2222222222222
44565577.222222222222-12.2222222222222
45542577.222222222222-35.2222222222222
46527508.62518.375
47510508.6251.37500000000000
48514508.6255.375
49517508.6258.375
50508508.625-0.625000000000003
51493508.625-15.625
52490508.625-18.625
53469508.625-39.625
54478508.625-30.625
55528508.62519.375
56534508.62525.375
57518508.6259.375
58506508.625-2.62500000000000
59502508.625-6.625
60516508.6257.375
61528508.62519.375

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 562 & 577.222222222222 & -15.222222222222 \tabularnewline
2 & 561 & 577.222222222222 & -16.2222222222222 \tabularnewline
3 & 555 & 577.222222222222 & -22.2222222222222 \tabularnewline
4 & 544 & 577.222222222222 & -33.2222222222222 \tabularnewline
5 & 537 & 577.222222222222 & -40.2222222222222 \tabularnewline
6 & 543 & 577.222222222222 & -34.2222222222222 \tabularnewline
7 & 594 & 577.222222222222 & 16.7777777777778 \tabularnewline
8 & 611 & 577.222222222222 & 33.7777777777778 \tabularnewline
9 & 613 & 577.222222222222 & 35.7777777777778 \tabularnewline
10 & 611 & 577.222222222222 & 33.7777777777778 \tabularnewline
11 & 594 & 577.222222222222 & 16.7777777777778 \tabularnewline
12 & 595 & 577.222222222222 & 17.7777777777778 \tabularnewline
13 & 591 & 577.222222222222 & 13.7777777777778 \tabularnewline
14 & 589 & 577.222222222222 & 11.7777777777778 \tabularnewline
15 & 584 & 577.222222222222 & 6.77777777777777 \tabularnewline
16 & 573 & 577.222222222222 & -4.22222222222223 \tabularnewline
17 & 567 & 577.222222222222 & -10.2222222222222 \tabularnewline
18 & 569 & 577.222222222222 & -8.22222222222223 \tabularnewline
19 & 621 & 577.222222222222 & 43.7777777777778 \tabularnewline
20 & 629 & 577.222222222222 & 51.7777777777778 \tabularnewline
21 & 628 & 577.222222222222 & 50.7777777777778 \tabularnewline
22 & 612 & 577.222222222222 & 34.7777777777778 \tabularnewline
23 & 595 & 577.222222222222 & 17.7777777777778 \tabularnewline
24 & 597 & 577.222222222222 & 19.7777777777778 \tabularnewline
25 & 593 & 577.222222222222 & 15.7777777777778 \tabularnewline
26 & 590 & 577.222222222222 & 12.7777777777778 \tabularnewline
27 & 580 & 577.222222222222 & 2.77777777777777 \tabularnewline
28 & 574 & 577.222222222222 & -3.22222222222223 \tabularnewline
29 & 573 & 577.222222222222 & -4.22222222222223 \tabularnewline
30 & 573 & 577.222222222222 & -4.22222222222223 \tabularnewline
31 & 620 & 577.222222222222 & 42.7777777777778 \tabularnewline
32 & 626 & 577.222222222222 & 48.7777777777778 \tabularnewline
33 & 620 & 577.222222222222 & 42.7777777777778 \tabularnewline
34 & 588 & 577.222222222222 & 10.7777777777778 \tabularnewline
35 & 566 & 577.222222222222 & -11.2222222222222 \tabularnewline
36 & 557 & 577.222222222222 & -20.2222222222222 \tabularnewline
37 & 561 & 577.222222222222 & -16.2222222222222 \tabularnewline
38 & 549 & 577.222222222222 & -28.2222222222222 \tabularnewline
39 & 532 & 577.222222222222 & -45.2222222222222 \tabularnewline
40 & 526 & 577.222222222222 & -51.2222222222222 \tabularnewline
41 & 511 & 577.222222222222 & -66.2222222222222 \tabularnewline
42 & 499 & 577.222222222222 & -78.2222222222222 \tabularnewline
43 & 555 & 577.222222222222 & -22.2222222222222 \tabularnewline
44 & 565 & 577.222222222222 & -12.2222222222222 \tabularnewline
45 & 542 & 577.222222222222 & -35.2222222222222 \tabularnewline
46 & 527 & 508.625 & 18.375 \tabularnewline
47 & 510 & 508.625 & 1.37500000000000 \tabularnewline
48 & 514 & 508.625 & 5.375 \tabularnewline
49 & 517 & 508.625 & 8.375 \tabularnewline
50 & 508 & 508.625 & -0.625000000000003 \tabularnewline
51 & 493 & 508.625 & -15.625 \tabularnewline
52 & 490 & 508.625 & -18.625 \tabularnewline
53 & 469 & 508.625 & -39.625 \tabularnewline
54 & 478 & 508.625 & -30.625 \tabularnewline
55 & 528 & 508.625 & 19.375 \tabularnewline
56 & 534 & 508.625 & 25.375 \tabularnewline
57 & 518 & 508.625 & 9.375 \tabularnewline
58 & 506 & 508.625 & -2.62500000000000 \tabularnewline
59 & 502 & 508.625 & -6.625 \tabularnewline
60 & 516 & 508.625 & 7.375 \tabularnewline
61 & 528 & 508.625 & 19.375 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57588&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]562[/C][C]577.222222222222[/C][C]-15.222222222222[/C][/ROW]
[ROW][C]2[/C][C]561[/C][C]577.222222222222[/C][C]-16.2222222222222[/C][/ROW]
[ROW][C]3[/C][C]555[/C][C]577.222222222222[/C][C]-22.2222222222222[/C][/ROW]
[ROW][C]4[/C][C]544[/C][C]577.222222222222[/C][C]-33.2222222222222[/C][/ROW]
[ROW][C]5[/C][C]537[/C][C]577.222222222222[/C][C]-40.2222222222222[/C][/ROW]
[ROW][C]6[/C][C]543[/C][C]577.222222222222[/C][C]-34.2222222222222[/C][/ROW]
[ROW][C]7[/C][C]594[/C][C]577.222222222222[/C][C]16.7777777777778[/C][/ROW]
[ROW][C]8[/C][C]611[/C][C]577.222222222222[/C][C]33.7777777777778[/C][/ROW]
[ROW][C]9[/C][C]613[/C][C]577.222222222222[/C][C]35.7777777777778[/C][/ROW]
[ROW][C]10[/C][C]611[/C][C]577.222222222222[/C][C]33.7777777777778[/C][/ROW]
[ROW][C]11[/C][C]594[/C][C]577.222222222222[/C][C]16.7777777777778[/C][/ROW]
[ROW][C]12[/C][C]595[/C][C]577.222222222222[/C][C]17.7777777777778[/C][/ROW]
[ROW][C]13[/C][C]591[/C][C]577.222222222222[/C][C]13.7777777777778[/C][/ROW]
[ROW][C]14[/C][C]589[/C][C]577.222222222222[/C][C]11.7777777777778[/C][/ROW]
[ROW][C]15[/C][C]584[/C][C]577.222222222222[/C][C]6.77777777777777[/C][/ROW]
[ROW][C]16[/C][C]573[/C][C]577.222222222222[/C][C]-4.22222222222223[/C][/ROW]
[ROW][C]17[/C][C]567[/C][C]577.222222222222[/C][C]-10.2222222222222[/C][/ROW]
[ROW][C]18[/C][C]569[/C][C]577.222222222222[/C][C]-8.22222222222223[/C][/ROW]
[ROW][C]19[/C][C]621[/C][C]577.222222222222[/C][C]43.7777777777778[/C][/ROW]
[ROW][C]20[/C][C]629[/C][C]577.222222222222[/C][C]51.7777777777778[/C][/ROW]
[ROW][C]21[/C][C]628[/C][C]577.222222222222[/C][C]50.7777777777778[/C][/ROW]
[ROW][C]22[/C][C]612[/C][C]577.222222222222[/C][C]34.7777777777778[/C][/ROW]
[ROW][C]23[/C][C]595[/C][C]577.222222222222[/C][C]17.7777777777778[/C][/ROW]
[ROW][C]24[/C][C]597[/C][C]577.222222222222[/C][C]19.7777777777778[/C][/ROW]
[ROW][C]25[/C][C]593[/C][C]577.222222222222[/C][C]15.7777777777778[/C][/ROW]
[ROW][C]26[/C][C]590[/C][C]577.222222222222[/C][C]12.7777777777778[/C][/ROW]
[ROW][C]27[/C][C]580[/C][C]577.222222222222[/C][C]2.77777777777777[/C][/ROW]
[ROW][C]28[/C][C]574[/C][C]577.222222222222[/C][C]-3.22222222222223[/C][/ROW]
[ROW][C]29[/C][C]573[/C][C]577.222222222222[/C][C]-4.22222222222223[/C][/ROW]
[ROW][C]30[/C][C]573[/C][C]577.222222222222[/C][C]-4.22222222222223[/C][/ROW]
[ROW][C]31[/C][C]620[/C][C]577.222222222222[/C][C]42.7777777777778[/C][/ROW]
[ROW][C]32[/C][C]626[/C][C]577.222222222222[/C][C]48.7777777777778[/C][/ROW]
[ROW][C]33[/C][C]620[/C][C]577.222222222222[/C][C]42.7777777777778[/C][/ROW]
[ROW][C]34[/C][C]588[/C][C]577.222222222222[/C][C]10.7777777777778[/C][/ROW]
[ROW][C]35[/C][C]566[/C][C]577.222222222222[/C][C]-11.2222222222222[/C][/ROW]
[ROW][C]36[/C][C]557[/C][C]577.222222222222[/C][C]-20.2222222222222[/C][/ROW]
[ROW][C]37[/C][C]561[/C][C]577.222222222222[/C][C]-16.2222222222222[/C][/ROW]
[ROW][C]38[/C][C]549[/C][C]577.222222222222[/C][C]-28.2222222222222[/C][/ROW]
[ROW][C]39[/C][C]532[/C][C]577.222222222222[/C][C]-45.2222222222222[/C][/ROW]
[ROW][C]40[/C][C]526[/C][C]577.222222222222[/C][C]-51.2222222222222[/C][/ROW]
[ROW][C]41[/C][C]511[/C][C]577.222222222222[/C][C]-66.2222222222222[/C][/ROW]
[ROW][C]42[/C][C]499[/C][C]577.222222222222[/C][C]-78.2222222222222[/C][/ROW]
[ROW][C]43[/C][C]555[/C][C]577.222222222222[/C][C]-22.2222222222222[/C][/ROW]
[ROW][C]44[/C][C]565[/C][C]577.222222222222[/C][C]-12.2222222222222[/C][/ROW]
[ROW][C]45[/C][C]542[/C][C]577.222222222222[/C][C]-35.2222222222222[/C][/ROW]
[ROW][C]46[/C][C]527[/C][C]508.625[/C][C]18.375[/C][/ROW]
[ROW][C]47[/C][C]510[/C][C]508.625[/C][C]1.37500000000000[/C][/ROW]
[ROW][C]48[/C][C]514[/C][C]508.625[/C][C]5.375[/C][/ROW]
[ROW][C]49[/C][C]517[/C][C]508.625[/C][C]8.375[/C][/ROW]
[ROW][C]50[/C][C]508[/C][C]508.625[/C][C]-0.625000000000003[/C][/ROW]
[ROW][C]51[/C][C]493[/C][C]508.625[/C][C]-15.625[/C][/ROW]
[ROW][C]52[/C][C]490[/C][C]508.625[/C][C]-18.625[/C][/ROW]
[ROW][C]53[/C][C]469[/C][C]508.625[/C][C]-39.625[/C][/ROW]
[ROW][C]54[/C][C]478[/C][C]508.625[/C][C]-30.625[/C][/ROW]
[ROW][C]55[/C][C]528[/C][C]508.625[/C][C]19.375[/C][/ROW]
[ROW][C]56[/C][C]534[/C][C]508.625[/C][C]25.375[/C][/ROW]
[ROW][C]57[/C][C]518[/C][C]508.625[/C][C]9.375[/C][/ROW]
[ROW][C]58[/C][C]506[/C][C]508.625[/C][C]-2.62500000000000[/C][/ROW]
[ROW][C]59[/C][C]502[/C][C]508.625[/C][C]-6.625[/C][/ROW]
[ROW][C]60[/C][C]516[/C][C]508.625[/C][C]7.375[/C][/ROW]
[ROW][C]61[/C][C]528[/C][C]508.625[/C][C]19.375[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57588&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57588&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
1562577.222222222222-15.222222222222
2561577.222222222222-16.2222222222222
3555577.222222222222-22.2222222222222
4544577.222222222222-33.2222222222222
5537577.222222222222-40.2222222222222
6543577.222222222222-34.2222222222222
7594577.22222222222216.7777777777778
8611577.22222222222233.7777777777778
9613577.22222222222235.7777777777778
10611577.22222222222233.7777777777778
11594577.22222222222216.7777777777778
12595577.22222222222217.7777777777778
13591577.22222222222213.7777777777778
14589577.22222222222211.7777777777778
15584577.2222222222226.77777777777777
16573577.222222222222-4.22222222222223
17567577.222222222222-10.2222222222222
18569577.222222222222-8.22222222222223
19621577.22222222222243.7777777777778
20629577.22222222222251.7777777777778
21628577.22222222222250.7777777777778
22612577.22222222222234.7777777777778
23595577.22222222222217.7777777777778
24597577.22222222222219.7777777777778
25593577.22222222222215.7777777777778
26590577.22222222222212.7777777777778
27580577.2222222222222.77777777777777
28574577.222222222222-3.22222222222223
29573577.222222222222-4.22222222222223
30573577.222222222222-4.22222222222223
31620577.22222222222242.7777777777778
32626577.22222222222248.7777777777778
33620577.22222222222242.7777777777778
34588577.22222222222210.7777777777778
35566577.222222222222-11.2222222222222
36557577.222222222222-20.2222222222222
37561577.222222222222-16.2222222222222
38549577.222222222222-28.2222222222222
39532577.222222222222-45.2222222222222
40526577.222222222222-51.2222222222222
41511577.222222222222-66.2222222222222
42499577.222222222222-78.2222222222222
43555577.222222222222-22.2222222222222
44565577.222222222222-12.2222222222222
45542577.222222222222-35.2222222222222
46527508.62518.375
47510508.6251.37500000000000
48514508.6255.375
49517508.6258.375
50508508.625-0.625000000000003
51493508.625-15.625
52490508.625-18.625
53469508.625-39.625
54478508.625-30.625
55528508.62519.375
56534508.62525.375
57518508.6259.375
58506508.625-2.62500000000000
59502508.625-6.625
60516508.6257.375
61528508.62519.375







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.09751368892936780.1950273778587360.902486311070632
60.04444773756674880.08889547513349770.955552262433251
70.2390507264944060.4781014529888120.760949273505594
80.5308733503937480.9382532992125050.469126649606252
90.676426194167880.647147611664240.32357380583212
100.7295694249206550.5408611501586890.270430575079345
110.6728011189158480.6543977621683040.327198881084152
120.613480178834930.773039642330140.38651982116507
130.5368417557882420.9263164884235170.463158244211758
140.4543614169087140.9087228338174280.545638583091286
150.3666963901674250.733392780334850.633303609832575
160.2867558207781640.5735116415563280.713244179221836
170.2249515763600000.4499031527200010.77504842364
180.1692038295226630.3384076590453260.830796170477337
190.2489481356804140.4978962713608270.751051864319586
200.3956254740097850.791250948019570.604374525990215
210.5369976853993160.9260046292013680.463002314600684
220.5594585242981440.8810829514037120.440541475701856
230.5098082736228130.9803834527543740.490191726377187
240.4699212031193760.9398424062387520.530078796880624
250.4220594035471970.8441188070943940.577940596452803
260.3715740112804450.743148022560890.628425988719555
270.3129631271228030.6259262542456070.687036872877197
280.2597694146698980.5195388293397960.740230585330102
290.2122150847961540.4244301695923070.787784915203846
300.1702476456642910.3404952913285810.82975235433571
310.2846636839549900.5693273679099790.71533631604501
320.5551917264175640.8896165471648720.444808273582436
330.838615928189660.3227681436206810.161384071810340
340.8924948439168860.2150103121662290.107505156083114
350.896821592954210.2063568140915810.103178407045790
360.8960851862654520.2078296274690970.103914813734548
370.9028981456886930.1942037086226130.0971018543113066
380.9029601411248090.1940797177503820.0970398588751908
390.9111271124857010.1777457750285980.0888728875142988
400.9219156022817220.1561687954365550.0780843977182776
410.958518856155750.08296228768849830.0414811438442491
420.9951663003385230.009667399322954350.00483369966147718
430.9913850281870280.01722994362594350.00861497181297177
440.987751543685340.02449691262931820.0122484563146591
450.9803836117577360.03923277648452710.0196163882422635
460.974216783591770.05156643281645870.0257832164082294
470.955442687580510.08911462483898170.0445573124194909
480.9274460670439720.1451078659120550.0725539329560275
490.8905751049519990.2188497900960030.109424895048001
500.830117662144550.3397646757109010.169882337855450
510.7714070389389380.4571859221221240.228592961061062
520.7157533264663910.5684933470672180.284246673533609
530.8609736932637310.2780526134725370.139026306736269
540.965761424615160.0684771507696790.0342385753848395
550.9320284452724940.1359431094550130.0679715547275064
560.925000978718290.1499980425634210.0749990212817106

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.0975136889293678 & 0.195027377858736 & 0.902486311070632 \tabularnewline
6 & 0.0444477375667488 & 0.0888954751334977 & 0.955552262433251 \tabularnewline
7 & 0.239050726494406 & 0.478101452988812 & 0.760949273505594 \tabularnewline
8 & 0.530873350393748 & 0.938253299212505 & 0.469126649606252 \tabularnewline
9 & 0.67642619416788 & 0.64714761166424 & 0.32357380583212 \tabularnewline
10 & 0.729569424920655 & 0.540861150158689 & 0.270430575079345 \tabularnewline
11 & 0.672801118915848 & 0.654397762168304 & 0.327198881084152 \tabularnewline
12 & 0.61348017883493 & 0.77303964233014 & 0.38651982116507 \tabularnewline
13 & 0.536841755788242 & 0.926316488423517 & 0.463158244211758 \tabularnewline
14 & 0.454361416908714 & 0.908722833817428 & 0.545638583091286 \tabularnewline
15 & 0.366696390167425 & 0.73339278033485 & 0.633303609832575 \tabularnewline
16 & 0.286755820778164 & 0.573511641556328 & 0.713244179221836 \tabularnewline
17 & 0.224951576360000 & 0.449903152720001 & 0.77504842364 \tabularnewline
18 & 0.169203829522663 & 0.338407659045326 & 0.830796170477337 \tabularnewline
19 & 0.248948135680414 & 0.497896271360827 & 0.751051864319586 \tabularnewline
20 & 0.395625474009785 & 0.79125094801957 & 0.604374525990215 \tabularnewline
21 & 0.536997685399316 & 0.926004629201368 & 0.463002314600684 \tabularnewline
22 & 0.559458524298144 & 0.881082951403712 & 0.440541475701856 \tabularnewline
23 & 0.509808273622813 & 0.980383452754374 & 0.490191726377187 \tabularnewline
24 & 0.469921203119376 & 0.939842406238752 & 0.530078796880624 \tabularnewline
25 & 0.422059403547197 & 0.844118807094394 & 0.577940596452803 \tabularnewline
26 & 0.371574011280445 & 0.74314802256089 & 0.628425988719555 \tabularnewline
27 & 0.312963127122803 & 0.625926254245607 & 0.687036872877197 \tabularnewline
28 & 0.259769414669898 & 0.519538829339796 & 0.740230585330102 \tabularnewline
29 & 0.212215084796154 & 0.424430169592307 & 0.787784915203846 \tabularnewline
30 & 0.170247645664291 & 0.340495291328581 & 0.82975235433571 \tabularnewline
31 & 0.284663683954990 & 0.569327367909979 & 0.71533631604501 \tabularnewline
32 & 0.555191726417564 & 0.889616547164872 & 0.444808273582436 \tabularnewline
33 & 0.83861592818966 & 0.322768143620681 & 0.161384071810340 \tabularnewline
34 & 0.892494843916886 & 0.215010312166229 & 0.107505156083114 \tabularnewline
35 & 0.89682159295421 & 0.206356814091581 & 0.103178407045790 \tabularnewline
36 & 0.896085186265452 & 0.207829627469097 & 0.103914813734548 \tabularnewline
37 & 0.902898145688693 & 0.194203708622613 & 0.0971018543113066 \tabularnewline
38 & 0.902960141124809 & 0.194079717750382 & 0.0970398588751908 \tabularnewline
39 & 0.911127112485701 & 0.177745775028598 & 0.0888728875142988 \tabularnewline
40 & 0.921915602281722 & 0.156168795436555 & 0.0780843977182776 \tabularnewline
41 & 0.95851885615575 & 0.0829622876884983 & 0.0414811438442491 \tabularnewline
42 & 0.995166300338523 & 0.00966739932295435 & 0.00483369966147718 \tabularnewline
43 & 0.991385028187028 & 0.0172299436259435 & 0.00861497181297177 \tabularnewline
44 & 0.98775154368534 & 0.0244969126293182 & 0.0122484563146591 \tabularnewline
45 & 0.980383611757736 & 0.0392327764845271 & 0.0196163882422635 \tabularnewline
46 & 0.97421678359177 & 0.0515664328164587 & 0.0257832164082294 \tabularnewline
47 & 0.95544268758051 & 0.0891146248389817 & 0.0445573124194909 \tabularnewline
48 & 0.927446067043972 & 0.145107865912055 & 0.0725539329560275 \tabularnewline
49 & 0.890575104951999 & 0.218849790096003 & 0.109424895048001 \tabularnewline
50 & 0.83011766214455 & 0.339764675710901 & 0.169882337855450 \tabularnewline
51 & 0.771407038938938 & 0.457185922122124 & 0.228592961061062 \tabularnewline
52 & 0.715753326466391 & 0.568493347067218 & 0.284246673533609 \tabularnewline
53 & 0.860973693263731 & 0.278052613472537 & 0.139026306736269 \tabularnewline
54 & 0.96576142461516 & 0.068477150769679 & 0.0342385753848395 \tabularnewline
55 & 0.932028445272494 & 0.135943109455013 & 0.0679715547275064 \tabularnewline
56 & 0.92500097871829 & 0.149998042563421 & 0.0749990212817106 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57588&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.0975136889293678[/C][C]0.195027377858736[/C][C]0.902486311070632[/C][/ROW]
[ROW][C]6[/C][C]0.0444477375667488[/C][C]0.0888954751334977[/C][C]0.955552262433251[/C][/ROW]
[ROW][C]7[/C][C]0.239050726494406[/C][C]0.478101452988812[/C][C]0.760949273505594[/C][/ROW]
[ROW][C]8[/C][C]0.530873350393748[/C][C]0.938253299212505[/C][C]0.469126649606252[/C][/ROW]
[ROW][C]9[/C][C]0.67642619416788[/C][C]0.64714761166424[/C][C]0.32357380583212[/C][/ROW]
[ROW][C]10[/C][C]0.729569424920655[/C][C]0.540861150158689[/C][C]0.270430575079345[/C][/ROW]
[ROW][C]11[/C][C]0.672801118915848[/C][C]0.654397762168304[/C][C]0.327198881084152[/C][/ROW]
[ROW][C]12[/C][C]0.61348017883493[/C][C]0.77303964233014[/C][C]0.38651982116507[/C][/ROW]
[ROW][C]13[/C][C]0.536841755788242[/C][C]0.926316488423517[/C][C]0.463158244211758[/C][/ROW]
[ROW][C]14[/C][C]0.454361416908714[/C][C]0.908722833817428[/C][C]0.545638583091286[/C][/ROW]
[ROW][C]15[/C][C]0.366696390167425[/C][C]0.73339278033485[/C][C]0.633303609832575[/C][/ROW]
[ROW][C]16[/C][C]0.286755820778164[/C][C]0.573511641556328[/C][C]0.713244179221836[/C][/ROW]
[ROW][C]17[/C][C]0.224951576360000[/C][C]0.449903152720001[/C][C]0.77504842364[/C][/ROW]
[ROW][C]18[/C][C]0.169203829522663[/C][C]0.338407659045326[/C][C]0.830796170477337[/C][/ROW]
[ROW][C]19[/C][C]0.248948135680414[/C][C]0.497896271360827[/C][C]0.751051864319586[/C][/ROW]
[ROW][C]20[/C][C]0.395625474009785[/C][C]0.79125094801957[/C][C]0.604374525990215[/C][/ROW]
[ROW][C]21[/C][C]0.536997685399316[/C][C]0.926004629201368[/C][C]0.463002314600684[/C][/ROW]
[ROW][C]22[/C][C]0.559458524298144[/C][C]0.881082951403712[/C][C]0.440541475701856[/C][/ROW]
[ROW][C]23[/C][C]0.509808273622813[/C][C]0.980383452754374[/C][C]0.490191726377187[/C][/ROW]
[ROW][C]24[/C][C]0.469921203119376[/C][C]0.939842406238752[/C][C]0.530078796880624[/C][/ROW]
[ROW][C]25[/C][C]0.422059403547197[/C][C]0.844118807094394[/C][C]0.577940596452803[/C][/ROW]
[ROW][C]26[/C][C]0.371574011280445[/C][C]0.74314802256089[/C][C]0.628425988719555[/C][/ROW]
[ROW][C]27[/C][C]0.312963127122803[/C][C]0.625926254245607[/C][C]0.687036872877197[/C][/ROW]
[ROW][C]28[/C][C]0.259769414669898[/C][C]0.519538829339796[/C][C]0.740230585330102[/C][/ROW]
[ROW][C]29[/C][C]0.212215084796154[/C][C]0.424430169592307[/C][C]0.787784915203846[/C][/ROW]
[ROW][C]30[/C][C]0.170247645664291[/C][C]0.340495291328581[/C][C]0.82975235433571[/C][/ROW]
[ROW][C]31[/C][C]0.284663683954990[/C][C]0.569327367909979[/C][C]0.71533631604501[/C][/ROW]
[ROW][C]32[/C][C]0.555191726417564[/C][C]0.889616547164872[/C][C]0.444808273582436[/C][/ROW]
[ROW][C]33[/C][C]0.83861592818966[/C][C]0.322768143620681[/C][C]0.161384071810340[/C][/ROW]
[ROW][C]34[/C][C]0.892494843916886[/C][C]0.215010312166229[/C][C]0.107505156083114[/C][/ROW]
[ROW][C]35[/C][C]0.89682159295421[/C][C]0.206356814091581[/C][C]0.103178407045790[/C][/ROW]
[ROW][C]36[/C][C]0.896085186265452[/C][C]0.207829627469097[/C][C]0.103914813734548[/C][/ROW]
[ROW][C]37[/C][C]0.902898145688693[/C][C]0.194203708622613[/C][C]0.0971018543113066[/C][/ROW]
[ROW][C]38[/C][C]0.902960141124809[/C][C]0.194079717750382[/C][C]0.0970398588751908[/C][/ROW]
[ROW][C]39[/C][C]0.911127112485701[/C][C]0.177745775028598[/C][C]0.0888728875142988[/C][/ROW]
[ROW][C]40[/C][C]0.921915602281722[/C][C]0.156168795436555[/C][C]0.0780843977182776[/C][/ROW]
[ROW][C]41[/C][C]0.95851885615575[/C][C]0.0829622876884983[/C][C]0.0414811438442491[/C][/ROW]
[ROW][C]42[/C][C]0.995166300338523[/C][C]0.00966739932295435[/C][C]0.00483369966147718[/C][/ROW]
[ROW][C]43[/C][C]0.991385028187028[/C][C]0.0172299436259435[/C][C]0.00861497181297177[/C][/ROW]
[ROW][C]44[/C][C]0.98775154368534[/C][C]0.0244969126293182[/C][C]0.0122484563146591[/C][/ROW]
[ROW][C]45[/C][C]0.980383611757736[/C][C]0.0392327764845271[/C][C]0.0196163882422635[/C][/ROW]
[ROW][C]46[/C][C]0.97421678359177[/C][C]0.0515664328164587[/C][C]0.0257832164082294[/C][/ROW]
[ROW][C]47[/C][C]0.95544268758051[/C][C]0.0891146248389817[/C][C]0.0445573124194909[/C][/ROW]
[ROW][C]48[/C][C]0.927446067043972[/C][C]0.145107865912055[/C][C]0.0725539329560275[/C][/ROW]
[ROW][C]49[/C][C]0.890575104951999[/C][C]0.218849790096003[/C][C]0.109424895048001[/C][/ROW]
[ROW][C]50[/C][C]0.83011766214455[/C][C]0.339764675710901[/C][C]0.169882337855450[/C][/ROW]
[ROW][C]51[/C][C]0.771407038938938[/C][C]0.457185922122124[/C][C]0.228592961061062[/C][/ROW]
[ROW][C]52[/C][C]0.715753326466391[/C][C]0.568493347067218[/C][C]0.284246673533609[/C][/ROW]
[ROW][C]53[/C][C]0.860973693263731[/C][C]0.278052613472537[/C][C]0.139026306736269[/C][/ROW]
[ROW][C]54[/C][C]0.96576142461516[/C][C]0.068477150769679[/C][C]0.0342385753848395[/C][/ROW]
[ROW][C]55[/C][C]0.932028445272494[/C][C]0.135943109455013[/C][C]0.0679715547275064[/C][/ROW]
[ROW][C]56[/C][C]0.92500097871829[/C][C]0.149998042563421[/C][C]0.0749990212817106[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57588&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57588&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.09751368892936780.1950273778587360.902486311070632
60.04444773756674880.08889547513349770.955552262433251
70.2390507264944060.4781014529888120.760949273505594
80.5308733503937480.9382532992125050.469126649606252
90.676426194167880.647147611664240.32357380583212
100.7295694249206550.5408611501586890.270430575079345
110.6728011189158480.6543977621683040.327198881084152
120.613480178834930.773039642330140.38651982116507
130.5368417557882420.9263164884235170.463158244211758
140.4543614169087140.9087228338174280.545638583091286
150.3666963901674250.733392780334850.633303609832575
160.2867558207781640.5735116415563280.713244179221836
170.2249515763600000.4499031527200010.77504842364
180.1692038295226630.3384076590453260.830796170477337
190.2489481356804140.4978962713608270.751051864319586
200.3956254740097850.791250948019570.604374525990215
210.5369976853993160.9260046292013680.463002314600684
220.5594585242981440.8810829514037120.440541475701856
230.5098082736228130.9803834527543740.490191726377187
240.4699212031193760.9398424062387520.530078796880624
250.4220594035471970.8441188070943940.577940596452803
260.3715740112804450.743148022560890.628425988719555
270.3129631271228030.6259262542456070.687036872877197
280.2597694146698980.5195388293397960.740230585330102
290.2122150847961540.4244301695923070.787784915203846
300.1702476456642910.3404952913285810.82975235433571
310.2846636839549900.5693273679099790.71533631604501
320.5551917264175640.8896165471648720.444808273582436
330.838615928189660.3227681436206810.161384071810340
340.8924948439168860.2150103121662290.107505156083114
350.896821592954210.2063568140915810.103178407045790
360.8960851862654520.2078296274690970.103914813734548
370.9028981456886930.1942037086226130.0971018543113066
380.9029601411248090.1940797177503820.0970398588751908
390.9111271124857010.1777457750285980.0888728875142988
400.9219156022817220.1561687954365550.0780843977182776
410.958518856155750.08296228768849830.0414811438442491
420.9951663003385230.009667399322954350.00483369966147718
430.9913850281870280.01722994362594350.00861497181297177
440.987751543685340.02449691262931820.0122484563146591
450.9803836117577360.03923277648452710.0196163882422635
460.974216783591770.05156643281645870.0257832164082294
470.955442687580510.08911462483898170.0445573124194909
480.9274460670439720.1451078659120550.0725539329560275
490.8905751049519990.2188497900960030.109424895048001
500.830117662144550.3397646757109010.169882337855450
510.7714070389389380.4571859221221240.228592961061062
520.7157533264663910.5684933470672180.284246673533609
530.8609736932637310.2780526134725370.139026306736269
540.965761424615160.0684771507696790.0342385753848395
550.9320284452724940.1359431094550130.0679715547275064
560.925000978718290.1499980425634210.0749990212817106







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0192307692307692NOK
5% type I error level40.0769230769230769NOK
10% type I error level90.173076923076923NOK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 1 & 0.0192307692307692 & NOK \tabularnewline
5% type I error level & 4 & 0.0769230769230769 & NOK \tabularnewline
10% type I error level & 9 & 0.173076923076923 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57588&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]1[/C][C]0.0192307692307692[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]4[/C][C]0.0769230769230769[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]9[/C][C]0.173076923076923[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57588&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0192307692307692NOK
5% type I error level40.0769230769230769NOK
10% type I error level90.173076923076923NOK



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