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 13:00:46 -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/t1258660888990q65ewn7ufsjp.htm/, Retrieved Thu, 25 Apr 2024 22:21:17 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57924, Retrieved Thu, 25 Apr 2024 22:21:17 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWorkshop 7 link 3
Estimated Impact152
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-   PD    [Multiple Regression] [Workshop 7] [2009-11-19 19:38:01] [3e19a07d230ba260a720e0e03e0f40f2]
-   P         [Multiple Regression] [Workshop 7] [2009-11-19 20:00:46] [100339cefec36dfa6f2b82a1c918e250] [Current]
Feedback Forum

Post a new message
Dataseries X:
449	0
452	0
462	0
455	0
461	0
461	0
463	0
462	0
456	0
455	0
456	0
472	0
472	0
471	0
465	0
459	0
465	0
468	0
467	0
463	0
460	0
462	0
461	0
476	0
476	0
471	0
453	0
443	0
442	0
444	0
438	0
427	0
424	0
416	0
406	0
431	0
434	0
418	0
412	0
404	0
409	0
412	1
406	1
398	1
397	1
385	1
390	1
413	1
413	1
401	1
397	1
397	1
409	1
419	1
424	1
428	1
430	1
424	1
433	1
456	1
459	1




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 483.691428571429 -11.4133928571428X[t] -3.96173611111105M1[t] -17.4843650793651M2[t] -21.4641964285714M3[t] -26.8440277777778M4[t] -20.4238591269841M5[t] -13.7210119047619M6[t] -14.1008432539683M7[t] -17.2806746031746M8[t] -18.6605059523810M9[t] -22.8403373015873M10[t] -21.2201686507937M11[t] -0.820168650793652t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  483.691428571429 -11.4133928571428X[t] -3.96173611111105M1[t] -17.4843650793651M2[t] -21.4641964285714M3[t] -26.8440277777778M4[t] -20.4238591269841M5[t] -13.7210119047619M6[t] -14.1008432539683M7[t] -17.2806746031746M8[t] -18.6605059523810M9[t] -22.8403373015873M10[t] -21.2201686507937M11[t] -0.820168650793652t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57924&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  483.691428571429 -11.4133928571428X[t] -3.96173611111105M1[t] -17.4843650793651M2[t] -21.4641964285714M3[t] -26.8440277777778M4[t] -20.4238591269841M5[t] -13.7210119047619M6[t] -14.1008432539683M7[t] -17.2806746031746M8[t] -18.6605059523810M9[t] -22.8403373015873M10[t] -21.2201686507937M11[t] -0.820168650793652t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57924&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57924&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] = + 483.691428571429 -11.4133928571428X[t] -3.96173611111105M1[t] -17.4843650793651M2[t] -21.4641964285714M3[t] -26.8440277777778M4[t] -20.4238591269841M5[t] -13.7210119047619M6[t] -14.1008432539683M7[t] -17.2806746031746M8[t] -18.6605059523810M9[t] -22.8403373015873M10[t] -21.2201686507937M11[t] -0.820168650793652t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)483.69142857142910.49404546.09200
X-11.41339285714289.098821-1.25440.2159060.107953
M1-3.9617361111110511.574235-0.34230.7336590.36683
M2-17.484365079365112.142857-1.43990.1565270.078263
M3-21.464196428571412.126631-1.770.0832130.041607
M4-26.844027777777812.115197-2.21570.031590.015795
M5-20.423859126984112.10857-1.68670.0982830.049142
M6-13.721011904761912.146916-1.12960.2643820.132191
M7-14.100843253968312.120481-1.16340.2505440.125272
M8-17.280674603174612.09881-1.42830.1598190.079909
M9-18.660505952381012.081927-1.54450.1291750.064588
M10-22.840337301587312.069854-1.89230.0646140.032307
M11-21.220168650793712.062604-1.75920.0850570.042529
t-0.8201686507936520.241493-3.39620.0013980.000699

\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) & 483.691428571429 & 10.494045 & 46.092 & 0 & 0 \tabularnewline
X & -11.4133928571428 & 9.098821 & -1.2544 & 0.215906 & 0.107953 \tabularnewline
M1 & -3.96173611111105 & 11.574235 & -0.3423 & 0.733659 & 0.36683 \tabularnewline
M2 & -17.4843650793651 & 12.142857 & -1.4399 & 0.156527 & 0.078263 \tabularnewline
M3 & -21.4641964285714 & 12.126631 & -1.77 & 0.083213 & 0.041607 \tabularnewline
M4 & -26.8440277777778 & 12.115197 & -2.2157 & 0.03159 & 0.015795 \tabularnewline
M5 & -20.4238591269841 & 12.10857 & -1.6867 & 0.098283 & 0.049142 \tabularnewline
M6 & -13.7210119047619 & 12.146916 & -1.1296 & 0.264382 & 0.132191 \tabularnewline
M7 & -14.1008432539683 & 12.120481 & -1.1634 & 0.250544 & 0.125272 \tabularnewline
M8 & -17.2806746031746 & 12.09881 & -1.4283 & 0.159819 & 0.079909 \tabularnewline
M9 & -18.6605059523810 & 12.081927 & -1.5445 & 0.129175 & 0.064588 \tabularnewline
M10 & -22.8403373015873 & 12.069854 & -1.8923 & 0.064614 & 0.032307 \tabularnewline
M11 & -21.2201686507937 & 12.062604 & -1.7592 & 0.085057 & 0.042529 \tabularnewline
t & -0.820168650793652 & 0.241493 & -3.3962 & 0.001398 & 0.000699 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57924&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]483.691428571429[/C][C]10.494045[/C][C]46.092[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-11.4133928571428[/C][C]9.098821[/C][C]-1.2544[/C][C]0.215906[/C][C]0.107953[/C][/ROW]
[ROW][C]M1[/C][C]-3.96173611111105[/C][C]11.574235[/C][C]-0.3423[/C][C]0.733659[/C][C]0.36683[/C][/ROW]
[ROW][C]M2[/C][C]-17.4843650793651[/C][C]12.142857[/C][C]-1.4399[/C][C]0.156527[/C][C]0.078263[/C][/ROW]
[ROW][C]M3[/C][C]-21.4641964285714[/C][C]12.126631[/C][C]-1.77[/C][C]0.083213[/C][C]0.041607[/C][/ROW]
[ROW][C]M4[/C][C]-26.8440277777778[/C][C]12.115197[/C][C]-2.2157[/C][C]0.03159[/C][C]0.015795[/C][/ROW]
[ROW][C]M5[/C][C]-20.4238591269841[/C][C]12.10857[/C][C]-1.6867[/C][C]0.098283[/C][C]0.049142[/C][/ROW]
[ROW][C]M6[/C][C]-13.7210119047619[/C][C]12.146916[/C][C]-1.1296[/C][C]0.264382[/C][C]0.132191[/C][/ROW]
[ROW][C]M7[/C][C]-14.1008432539683[/C][C]12.120481[/C][C]-1.1634[/C][C]0.250544[/C][C]0.125272[/C][/ROW]
[ROW][C]M8[/C][C]-17.2806746031746[/C][C]12.09881[/C][C]-1.4283[/C][C]0.159819[/C][C]0.079909[/C][/ROW]
[ROW][C]M9[/C][C]-18.6605059523810[/C][C]12.081927[/C][C]-1.5445[/C][C]0.129175[/C][C]0.064588[/C][/ROW]
[ROW][C]M10[/C][C]-22.8403373015873[/C][C]12.069854[/C][C]-1.8923[/C][C]0.064614[/C][C]0.032307[/C][/ROW]
[ROW][C]M11[/C][C]-21.2201686507937[/C][C]12.062604[/C][C]-1.7592[/C][C]0.085057[/C][C]0.042529[/C][/ROW]
[ROW][C]t[/C][C]-0.820168650793652[/C][C]0.241493[/C][C]-3.3962[/C][C]0.001398[/C][C]0.000699[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57924&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57924&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)483.69142857142910.49404546.09200
X-11.41339285714289.098821-1.25440.2159060.107953
M1-3.9617361111110511.574235-0.34230.7336590.36683
M2-17.484365079365112.142857-1.43990.1565270.078263
M3-21.464196428571412.126631-1.770.0832130.041607
M4-26.844027777777812.115197-2.21570.031590.015795
M5-20.423859126984112.10857-1.68670.0982830.049142
M6-13.721011904761912.146916-1.12960.2643820.132191
M7-14.100843253968312.120481-1.16340.2505440.125272
M8-17.280674603174612.09881-1.42830.1598190.079909
M9-18.660505952381012.081927-1.54450.1291750.064588
M10-22.840337301587312.069854-1.89230.0646140.032307
M11-21.220168650793712.062604-1.75920.0850570.042529
t-0.8201686507936520.241493-3.39620.0013980.000699







Multiple Linear Regression - Regression Statistics
Multiple R0.76690115829855
R-squared0.588137386599658
Adjusted R-squared0.474217940339989
F-TEST (value)5.16274794084806
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value1.37133299228376e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19.0688290645920
Sum Squared Residuals17090.1513690476

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.76690115829855 \tabularnewline
R-squared & 0.588137386599658 \tabularnewline
Adjusted R-squared & 0.474217940339989 \tabularnewline
F-TEST (value) & 5.16274794084806 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 1.37133299228376e-05 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 19.0688290645920 \tabularnewline
Sum Squared Residuals & 17090.1513690476 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57924&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.76690115829855[/C][/ROW]
[ROW][C]R-squared[/C][C]0.588137386599658[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.474217940339989[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5.16274794084806[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]1.37133299228376e-05[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]19.0688290645920[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]17090.1513690476[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57924&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57924&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.76690115829855
R-squared0.588137386599658
Adjusted R-squared0.474217940339989
F-TEST (value)5.16274794084806
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value1.37133299228376e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19.0688290645920
Sum Squared Residuals17090.1513690476







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1449478.909523809523-29.9095238095235
2452464.566726190476-12.5667261904762
3462459.7667261904762.2332738095238
4455453.5667261904761.43327380952374
5461459.1667261904761.83327380952379
6461465.049404761905-4.04940476190479
7463463.849404761905-0.84940476190481
8462459.8494047619052.15059523809525
9456457.649404761905-1.64940476190476
10455452.6494047619052.35059523809522
11456453.4494047619052.55059523809523
12472473.849404761905-1.84940476190477
13472469.06752.93249999999991
14471454.72470238095216.2752976190476
15465449.92470238095215.0752976190476
16459443.72470238095215.2752976190476
17465449.32470238095215.6752976190476
18468455.20738095238112.7926190476190
19467454.00738095238112.9926190476191
20463450.00738095238112.9926190476190
21460447.80738095238112.1926190476190
22462442.80738095238119.1926190476191
23461443.60738095238117.3926190476190
24476464.00738095238111.9926190476190
25476459.22547619047616.7745238095237
26471444.88267857142926.1173214285714
27453440.08267857142912.9173214285714
28443433.8826785714299.11732142857146
29442439.4826785714292.51732142857144
30444445.365357142857-1.36535714285713
31438444.165357142857-6.16535714285712
32427440.165357142857-13.1653571428571
33424437.965357142857-13.9653571428571
34416432.965357142857-16.9653571428571
35406433.765357142857-27.7653571428571
36431454.165357142857-23.1653571428571
37434449.383452380952-15.3834523809524
38418435.040654761905-17.0406547619047
39412430.240654761905-18.2406547619048
40404424.040654761905-20.0406547619047
41409429.640654761905-20.6406547619048
42412424.10994047619-12.1099404761905
43406422.90994047619-16.9099404761905
44398418.90994047619-20.9099404761905
45397416.70994047619-19.7099404761905
46385411.70994047619-26.7099404761905
47390412.50994047619-22.5099404761905
48413432.90994047619-19.9099404761905
49413428.128035714286-15.1280357142858
50401413.785238095238-12.7852380952381
51397408.985238095238-11.9852380952381
52397402.785238095238-5.78523809523807
53409408.3852380952380.614761904761917
54419414.2679166666674.73208333333334
55424413.06791666666710.9320833333334
56428409.06791666666718.9320833333333
57430406.86791666666723.1320833333333
58424401.86791666666722.1320833333333
59433402.66791666666730.3320833333333
60456423.06791666666732.9320833333333
61459418.28601190476240.7139880952381

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 449 & 478.909523809523 & -29.9095238095235 \tabularnewline
2 & 452 & 464.566726190476 & -12.5667261904762 \tabularnewline
3 & 462 & 459.766726190476 & 2.2332738095238 \tabularnewline
4 & 455 & 453.566726190476 & 1.43327380952374 \tabularnewline
5 & 461 & 459.166726190476 & 1.83327380952379 \tabularnewline
6 & 461 & 465.049404761905 & -4.04940476190479 \tabularnewline
7 & 463 & 463.849404761905 & -0.84940476190481 \tabularnewline
8 & 462 & 459.849404761905 & 2.15059523809525 \tabularnewline
9 & 456 & 457.649404761905 & -1.64940476190476 \tabularnewline
10 & 455 & 452.649404761905 & 2.35059523809522 \tabularnewline
11 & 456 & 453.449404761905 & 2.55059523809523 \tabularnewline
12 & 472 & 473.849404761905 & -1.84940476190477 \tabularnewline
13 & 472 & 469.0675 & 2.93249999999991 \tabularnewline
14 & 471 & 454.724702380952 & 16.2752976190476 \tabularnewline
15 & 465 & 449.924702380952 & 15.0752976190476 \tabularnewline
16 & 459 & 443.724702380952 & 15.2752976190476 \tabularnewline
17 & 465 & 449.324702380952 & 15.6752976190476 \tabularnewline
18 & 468 & 455.207380952381 & 12.7926190476190 \tabularnewline
19 & 467 & 454.007380952381 & 12.9926190476191 \tabularnewline
20 & 463 & 450.007380952381 & 12.9926190476190 \tabularnewline
21 & 460 & 447.807380952381 & 12.1926190476190 \tabularnewline
22 & 462 & 442.807380952381 & 19.1926190476191 \tabularnewline
23 & 461 & 443.607380952381 & 17.3926190476190 \tabularnewline
24 & 476 & 464.007380952381 & 11.9926190476190 \tabularnewline
25 & 476 & 459.225476190476 & 16.7745238095237 \tabularnewline
26 & 471 & 444.882678571429 & 26.1173214285714 \tabularnewline
27 & 453 & 440.082678571429 & 12.9173214285714 \tabularnewline
28 & 443 & 433.882678571429 & 9.11732142857146 \tabularnewline
29 & 442 & 439.482678571429 & 2.51732142857144 \tabularnewline
30 & 444 & 445.365357142857 & -1.36535714285713 \tabularnewline
31 & 438 & 444.165357142857 & -6.16535714285712 \tabularnewline
32 & 427 & 440.165357142857 & -13.1653571428571 \tabularnewline
33 & 424 & 437.965357142857 & -13.9653571428571 \tabularnewline
34 & 416 & 432.965357142857 & -16.9653571428571 \tabularnewline
35 & 406 & 433.765357142857 & -27.7653571428571 \tabularnewline
36 & 431 & 454.165357142857 & -23.1653571428571 \tabularnewline
37 & 434 & 449.383452380952 & -15.3834523809524 \tabularnewline
38 & 418 & 435.040654761905 & -17.0406547619047 \tabularnewline
39 & 412 & 430.240654761905 & -18.2406547619048 \tabularnewline
40 & 404 & 424.040654761905 & -20.0406547619047 \tabularnewline
41 & 409 & 429.640654761905 & -20.6406547619048 \tabularnewline
42 & 412 & 424.10994047619 & -12.1099404761905 \tabularnewline
43 & 406 & 422.90994047619 & -16.9099404761905 \tabularnewline
44 & 398 & 418.90994047619 & -20.9099404761905 \tabularnewline
45 & 397 & 416.70994047619 & -19.7099404761905 \tabularnewline
46 & 385 & 411.70994047619 & -26.7099404761905 \tabularnewline
47 & 390 & 412.50994047619 & -22.5099404761905 \tabularnewline
48 & 413 & 432.90994047619 & -19.9099404761905 \tabularnewline
49 & 413 & 428.128035714286 & -15.1280357142858 \tabularnewline
50 & 401 & 413.785238095238 & -12.7852380952381 \tabularnewline
51 & 397 & 408.985238095238 & -11.9852380952381 \tabularnewline
52 & 397 & 402.785238095238 & -5.78523809523807 \tabularnewline
53 & 409 & 408.385238095238 & 0.614761904761917 \tabularnewline
54 & 419 & 414.267916666667 & 4.73208333333334 \tabularnewline
55 & 424 & 413.067916666667 & 10.9320833333334 \tabularnewline
56 & 428 & 409.067916666667 & 18.9320833333333 \tabularnewline
57 & 430 & 406.867916666667 & 23.1320833333333 \tabularnewline
58 & 424 & 401.867916666667 & 22.1320833333333 \tabularnewline
59 & 433 & 402.667916666667 & 30.3320833333333 \tabularnewline
60 & 456 & 423.067916666667 & 32.9320833333333 \tabularnewline
61 & 459 & 418.286011904762 & 40.7139880952381 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57924&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]449[/C][C]478.909523809523[/C][C]-29.9095238095235[/C][/ROW]
[ROW][C]2[/C][C]452[/C][C]464.566726190476[/C][C]-12.5667261904762[/C][/ROW]
[ROW][C]3[/C][C]462[/C][C]459.766726190476[/C][C]2.2332738095238[/C][/ROW]
[ROW][C]4[/C][C]455[/C][C]453.566726190476[/C][C]1.43327380952374[/C][/ROW]
[ROW][C]5[/C][C]461[/C][C]459.166726190476[/C][C]1.83327380952379[/C][/ROW]
[ROW][C]6[/C][C]461[/C][C]465.049404761905[/C][C]-4.04940476190479[/C][/ROW]
[ROW][C]7[/C][C]463[/C][C]463.849404761905[/C][C]-0.84940476190481[/C][/ROW]
[ROW][C]8[/C][C]462[/C][C]459.849404761905[/C][C]2.15059523809525[/C][/ROW]
[ROW][C]9[/C][C]456[/C][C]457.649404761905[/C][C]-1.64940476190476[/C][/ROW]
[ROW][C]10[/C][C]455[/C][C]452.649404761905[/C][C]2.35059523809522[/C][/ROW]
[ROW][C]11[/C][C]456[/C][C]453.449404761905[/C][C]2.55059523809523[/C][/ROW]
[ROW][C]12[/C][C]472[/C][C]473.849404761905[/C][C]-1.84940476190477[/C][/ROW]
[ROW][C]13[/C][C]472[/C][C]469.0675[/C][C]2.93249999999991[/C][/ROW]
[ROW][C]14[/C][C]471[/C][C]454.724702380952[/C][C]16.2752976190476[/C][/ROW]
[ROW][C]15[/C][C]465[/C][C]449.924702380952[/C][C]15.0752976190476[/C][/ROW]
[ROW][C]16[/C][C]459[/C][C]443.724702380952[/C][C]15.2752976190476[/C][/ROW]
[ROW][C]17[/C][C]465[/C][C]449.324702380952[/C][C]15.6752976190476[/C][/ROW]
[ROW][C]18[/C][C]468[/C][C]455.207380952381[/C][C]12.7926190476190[/C][/ROW]
[ROW][C]19[/C][C]467[/C][C]454.007380952381[/C][C]12.9926190476191[/C][/ROW]
[ROW][C]20[/C][C]463[/C][C]450.007380952381[/C][C]12.9926190476190[/C][/ROW]
[ROW][C]21[/C][C]460[/C][C]447.807380952381[/C][C]12.1926190476190[/C][/ROW]
[ROW][C]22[/C][C]462[/C][C]442.807380952381[/C][C]19.1926190476191[/C][/ROW]
[ROW][C]23[/C][C]461[/C][C]443.607380952381[/C][C]17.3926190476190[/C][/ROW]
[ROW][C]24[/C][C]476[/C][C]464.007380952381[/C][C]11.9926190476190[/C][/ROW]
[ROW][C]25[/C][C]476[/C][C]459.225476190476[/C][C]16.7745238095237[/C][/ROW]
[ROW][C]26[/C][C]471[/C][C]444.882678571429[/C][C]26.1173214285714[/C][/ROW]
[ROW][C]27[/C][C]453[/C][C]440.082678571429[/C][C]12.9173214285714[/C][/ROW]
[ROW][C]28[/C][C]443[/C][C]433.882678571429[/C][C]9.11732142857146[/C][/ROW]
[ROW][C]29[/C][C]442[/C][C]439.482678571429[/C][C]2.51732142857144[/C][/ROW]
[ROW][C]30[/C][C]444[/C][C]445.365357142857[/C][C]-1.36535714285713[/C][/ROW]
[ROW][C]31[/C][C]438[/C][C]444.165357142857[/C][C]-6.16535714285712[/C][/ROW]
[ROW][C]32[/C][C]427[/C][C]440.165357142857[/C][C]-13.1653571428571[/C][/ROW]
[ROW][C]33[/C][C]424[/C][C]437.965357142857[/C][C]-13.9653571428571[/C][/ROW]
[ROW][C]34[/C][C]416[/C][C]432.965357142857[/C][C]-16.9653571428571[/C][/ROW]
[ROW][C]35[/C][C]406[/C][C]433.765357142857[/C][C]-27.7653571428571[/C][/ROW]
[ROW][C]36[/C][C]431[/C][C]454.165357142857[/C][C]-23.1653571428571[/C][/ROW]
[ROW][C]37[/C][C]434[/C][C]449.383452380952[/C][C]-15.3834523809524[/C][/ROW]
[ROW][C]38[/C][C]418[/C][C]435.040654761905[/C][C]-17.0406547619047[/C][/ROW]
[ROW][C]39[/C][C]412[/C][C]430.240654761905[/C][C]-18.2406547619048[/C][/ROW]
[ROW][C]40[/C][C]404[/C][C]424.040654761905[/C][C]-20.0406547619047[/C][/ROW]
[ROW][C]41[/C][C]409[/C][C]429.640654761905[/C][C]-20.6406547619048[/C][/ROW]
[ROW][C]42[/C][C]412[/C][C]424.10994047619[/C][C]-12.1099404761905[/C][/ROW]
[ROW][C]43[/C][C]406[/C][C]422.90994047619[/C][C]-16.9099404761905[/C][/ROW]
[ROW][C]44[/C][C]398[/C][C]418.90994047619[/C][C]-20.9099404761905[/C][/ROW]
[ROW][C]45[/C][C]397[/C][C]416.70994047619[/C][C]-19.7099404761905[/C][/ROW]
[ROW][C]46[/C][C]385[/C][C]411.70994047619[/C][C]-26.7099404761905[/C][/ROW]
[ROW][C]47[/C][C]390[/C][C]412.50994047619[/C][C]-22.5099404761905[/C][/ROW]
[ROW][C]48[/C][C]413[/C][C]432.90994047619[/C][C]-19.9099404761905[/C][/ROW]
[ROW][C]49[/C][C]413[/C][C]428.128035714286[/C][C]-15.1280357142858[/C][/ROW]
[ROW][C]50[/C][C]401[/C][C]413.785238095238[/C][C]-12.7852380952381[/C][/ROW]
[ROW][C]51[/C][C]397[/C][C]408.985238095238[/C][C]-11.9852380952381[/C][/ROW]
[ROW][C]52[/C][C]397[/C][C]402.785238095238[/C][C]-5.78523809523807[/C][/ROW]
[ROW][C]53[/C][C]409[/C][C]408.385238095238[/C][C]0.614761904761917[/C][/ROW]
[ROW][C]54[/C][C]419[/C][C]414.267916666667[/C][C]4.73208333333334[/C][/ROW]
[ROW][C]55[/C][C]424[/C][C]413.067916666667[/C][C]10.9320833333334[/C][/ROW]
[ROW][C]56[/C][C]428[/C][C]409.067916666667[/C][C]18.9320833333333[/C][/ROW]
[ROW][C]57[/C][C]430[/C][C]406.867916666667[/C][C]23.1320833333333[/C][/ROW]
[ROW][C]58[/C][C]424[/C][C]401.867916666667[/C][C]22.1320833333333[/C][/ROW]
[ROW][C]59[/C][C]433[/C][C]402.667916666667[/C][C]30.3320833333333[/C][/ROW]
[ROW][C]60[/C][C]456[/C][C]423.067916666667[/C][C]32.9320833333333[/C][/ROW]
[ROW][C]61[/C][C]459[/C][C]418.286011904762[/C][C]40.7139880952381[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57924&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57924&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
1449478.909523809523-29.9095238095235
2452464.566726190476-12.5667261904762
3462459.7667261904762.2332738095238
4455453.5667261904761.43327380952374
5461459.1667261904761.83327380952379
6461465.049404761905-4.04940476190479
7463463.849404761905-0.84940476190481
8462459.8494047619052.15059523809525
9456457.649404761905-1.64940476190476
10455452.6494047619052.35059523809522
11456453.4494047619052.55059523809523
12472473.849404761905-1.84940476190477
13472469.06752.93249999999991
14471454.72470238095216.2752976190476
15465449.92470238095215.0752976190476
16459443.72470238095215.2752976190476
17465449.32470238095215.6752976190476
18468455.20738095238112.7926190476190
19467454.00738095238112.9926190476191
20463450.00738095238112.9926190476190
21460447.80738095238112.1926190476190
22462442.80738095238119.1926190476191
23461443.60738095238117.3926190476190
24476464.00738095238111.9926190476190
25476459.22547619047616.7745238095237
26471444.88267857142926.1173214285714
27453440.08267857142912.9173214285714
28443433.8826785714299.11732142857146
29442439.4826785714292.51732142857144
30444445.365357142857-1.36535714285713
31438444.165357142857-6.16535714285712
32427440.165357142857-13.1653571428571
33424437.965357142857-13.9653571428571
34416432.965357142857-16.9653571428571
35406433.765357142857-27.7653571428571
36431454.165357142857-23.1653571428571
37434449.383452380952-15.3834523809524
38418435.040654761905-17.0406547619047
39412430.240654761905-18.2406547619048
40404424.040654761905-20.0406547619047
41409429.640654761905-20.6406547619048
42412424.10994047619-12.1099404761905
43406422.90994047619-16.9099404761905
44398418.90994047619-20.9099404761905
45397416.70994047619-19.7099404761905
46385411.70994047619-26.7099404761905
47390412.50994047619-22.5099404761905
48413432.90994047619-19.9099404761905
49413428.128035714286-15.1280357142858
50401413.785238095238-12.7852380952381
51397408.985238095238-11.9852380952381
52397402.785238095238-5.78523809523807
53409408.3852380952380.614761904761917
54419414.2679166666674.73208333333334
55424413.06791666666710.9320833333334
56428409.06791666666718.9320833333333
57430406.86791666666723.1320833333333
58424401.86791666666722.1320833333333
59433402.66791666666730.3320833333333
60456423.06791666666732.9320833333333
61459418.28601190476240.7139880952381







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.05676785775805590.1135357155161120.943232142241944
180.01714225086726850.0342845017345370.982857749132731
190.005470929090359690.01094185818071940.99452907090964
200.002056540639392790.004113081278785580.997943459360607
210.0005918694303225390.001183738860645080.999408130569677
220.0001749696462689880.0003499392925379750.99982503035373
235.69802119387683e-050.0001139604238775370.999943019788061
241.84628907941010e-053.69257815882019e-050.999981537109206
257.78241757841023e-061.55648351568205e-050.999992217582422
269.0285995226325e-061.8057199045265e-050.999990971400477
270.0006334501453524840.001266900290704970.999366549854648
280.01793694381208530.03587388762417060.982063056187915
290.3474415009713690.6948830019427380.652558499028631
300.612363633301710.7752727333965810.387636366698290
310.8383488598050080.3233022803899840.161651140194992
320.9357964358950310.1284071282099380.0642035641049688
330.9616091818869780.0767816362260450.0383908181130225
340.9858943345353240.02821133092935180.0141056654646759
350.9899375874965560.02012482500688720.0100624125034436
360.9861887144613780.0276225710772440.013811285538622
370.9743109250871870.05137814982562650.0256890749128133
380.9655085067995530.06898298640089290.0344914932004465
390.9528385377191980.09432292456160490.0471614622808024
400.9231330254818060.1537339490363880.0768669745181939
410.867507350716640.2649852985667210.132492649283361
420.9496942422754460.1006115154491080.0503057577245541
430.9819335438508210.03613291229835780.0180664561491789
440.9758139484593640.04837210308127250.0241860515406362

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0567678577580559 & 0.113535715516112 & 0.943232142241944 \tabularnewline
18 & 0.0171422508672685 & 0.034284501734537 & 0.982857749132731 \tabularnewline
19 & 0.00547092909035969 & 0.0109418581807194 & 0.99452907090964 \tabularnewline
20 & 0.00205654063939279 & 0.00411308127878558 & 0.997943459360607 \tabularnewline
21 & 0.000591869430322539 & 0.00118373886064508 & 0.999408130569677 \tabularnewline
22 & 0.000174969646268988 & 0.000349939292537975 & 0.99982503035373 \tabularnewline
23 & 5.69802119387683e-05 & 0.000113960423877537 & 0.999943019788061 \tabularnewline
24 & 1.84628907941010e-05 & 3.69257815882019e-05 & 0.999981537109206 \tabularnewline
25 & 7.78241757841023e-06 & 1.55648351568205e-05 & 0.999992217582422 \tabularnewline
26 & 9.0285995226325e-06 & 1.8057199045265e-05 & 0.999990971400477 \tabularnewline
27 & 0.000633450145352484 & 0.00126690029070497 & 0.999366549854648 \tabularnewline
28 & 0.0179369438120853 & 0.0358738876241706 & 0.982063056187915 \tabularnewline
29 & 0.347441500971369 & 0.694883001942738 & 0.652558499028631 \tabularnewline
30 & 0.61236363330171 & 0.775272733396581 & 0.387636366698290 \tabularnewline
31 & 0.838348859805008 & 0.323302280389984 & 0.161651140194992 \tabularnewline
32 & 0.935796435895031 & 0.128407128209938 & 0.0642035641049688 \tabularnewline
33 & 0.961609181886978 & 0.076781636226045 & 0.0383908181130225 \tabularnewline
34 & 0.985894334535324 & 0.0282113309293518 & 0.0141056654646759 \tabularnewline
35 & 0.989937587496556 & 0.0201248250068872 & 0.0100624125034436 \tabularnewline
36 & 0.986188714461378 & 0.027622571077244 & 0.013811285538622 \tabularnewline
37 & 0.974310925087187 & 0.0513781498256265 & 0.0256890749128133 \tabularnewline
38 & 0.965508506799553 & 0.0689829864008929 & 0.0344914932004465 \tabularnewline
39 & 0.952838537719198 & 0.0943229245616049 & 0.0471614622808024 \tabularnewline
40 & 0.923133025481806 & 0.153733949036388 & 0.0768669745181939 \tabularnewline
41 & 0.86750735071664 & 0.264985298566721 & 0.132492649283361 \tabularnewline
42 & 0.949694242275446 & 0.100611515449108 & 0.0503057577245541 \tabularnewline
43 & 0.981933543850821 & 0.0361329122983578 & 0.0180664561491789 \tabularnewline
44 & 0.975813948459364 & 0.0483721030812725 & 0.0241860515406362 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57924&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.0567678577580559[/C][C]0.113535715516112[/C][C]0.943232142241944[/C][/ROW]
[ROW][C]18[/C][C]0.0171422508672685[/C][C]0.034284501734537[/C][C]0.982857749132731[/C][/ROW]
[ROW][C]19[/C][C]0.00547092909035969[/C][C]0.0109418581807194[/C][C]0.99452907090964[/C][/ROW]
[ROW][C]20[/C][C]0.00205654063939279[/C][C]0.00411308127878558[/C][C]0.997943459360607[/C][/ROW]
[ROW][C]21[/C][C]0.000591869430322539[/C][C]0.00118373886064508[/C][C]0.999408130569677[/C][/ROW]
[ROW][C]22[/C][C]0.000174969646268988[/C][C]0.000349939292537975[/C][C]0.99982503035373[/C][/ROW]
[ROW][C]23[/C][C]5.69802119387683e-05[/C][C]0.000113960423877537[/C][C]0.999943019788061[/C][/ROW]
[ROW][C]24[/C][C]1.84628907941010e-05[/C][C]3.69257815882019e-05[/C][C]0.999981537109206[/C][/ROW]
[ROW][C]25[/C][C]7.78241757841023e-06[/C][C]1.55648351568205e-05[/C][C]0.999992217582422[/C][/ROW]
[ROW][C]26[/C][C]9.0285995226325e-06[/C][C]1.8057199045265e-05[/C][C]0.999990971400477[/C][/ROW]
[ROW][C]27[/C][C]0.000633450145352484[/C][C]0.00126690029070497[/C][C]0.999366549854648[/C][/ROW]
[ROW][C]28[/C][C]0.0179369438120853[/C][C]0.0358738876241706[/C][C]0.982063056187915[/C][/ROW]
[ROW][C]29[/C][C]0.347441500971369[/C][C]0.694883001942738[/C][C]0.652558499028631[/C][/ROW]
[ROW][C]30[/C][C]0.61236363330171[/C][C]0.775272733396581[/C][C]0.387636366698290[/C][/ROW]
[ROW][C]31[/C][C]0.838348859805008[/C][C]0.323302280389984[/C][C]0.161651140194992[/C][/ROW]
[ROW][C]32[/C][C]0.935796435895031[/C][C]0.128407128209938[/C][C]0.0642035641049688[/C][/ROW]
[ROW][C]33[/C][C]0.961609181886978[/C][C]0.076781636226045[/C][C]0.0383908181130225[/C][/ROW]
[ROW][C]34[/C][C]0.985894334535324[/C][C]0.0282113309293518[/C][C]0.0141056654646759[/C][/ROW]
[ROW][C]35[/C][C]0.989937587496556[/C][C]0.0201248250068872[/C][C]0.0100624125034436[/C][/ROW]
[ROW][C]36[/C][C]0.986188714461378[/C][C]0.027622571077244[/C][C]0.013811285538622[/C][/ROW]
[ROW][C]37[/C][C]0.974310925087187[/C][C]0.0513781498256265[/C][C]0.0256890749128133[/C][/ROW]
[ROW][C]38[/C][C]0.965508506799553[/C][C]0.0689829864008929[/C][C]0.0344914932004465[/C][/ROW]
[ROW][C]39[/C][C]0.952838537719198[/C][C]0.0943229245616049[/C][C]0.0471614622808024[/C][/ROW]
[ROW][C]40[/C][C]0.923133025481806[/C][C]0.153733949036388[/C][C]0.0768669745181939[/C][/ROW]
[ROW][C]41[/C][C]0.86750735071664[/C][C]0.264985298566721[/C][C]0.132492649283361[/C][/ROW]
[ROW][C]42[/C][C]0.949694242275446[/C][C]0.100611515449108[/C][C]0.0503057577245541[/C][/ROW]
[ROW][C]43[/C][C]0.981933543850821[/C][C]0.0361329122983578[/C][C]0.0180664561491789[/C][/ROW]
[ROW][C]44[/C][C]0.975813948459364[/C][C]0.0483721030812725[/C][C]0.0241860515406362[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57924&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.05676785775805590.1135357155161120.943232142241944
180.01714225086726850.0342845017345370.982857749132731
190.005470929090359690.01094185818071940.99452907090964
200.002056540639392790.004113081278785580.997943459360607
210.0005918694303225390.001183738860645080.999408130569677
220.0001749696462689880.0003499392925379750.99982503035373
235.69802119387683e-050.0001139604238775370.999943019788061
241.84628907941010e-053.69257815882019e-050.999981537109206
257.78241757841023e-061.55648351568205e-050.999992217582422
269.0285995226325e-061.8057199045265e-050.999990971400477
270.0006334501453524840.001266900290704970.999366549854648
280.01793694381208530.03587388762417060.982063056187915
290.3474415009713690.6948830019427380.652558499028631
300.612363633301710.7752727333965810.387636366698290
310.8383488598050080.3233022803899840.161651140194992
320.9357964358950310.1284071282099380.0642035641049688
330.9616091818869780.0767816362260450.0383908181130225
340.9858943345353240.02821133092935180.0141056654646759
350.9899375874965560.02012482500688720.0100624125034436
360.9861887144613780.0276225710772440.013811285538622
370.9743109250871870.05137814982562650.0256890749128133
380.9655085067995530.06898298640089290.0344914932004465
390.9528385377191980.09432292456160490.0471614622808024
400.9231330254818060.1537339490363880.0768669745181939
410.867507350716640.2649852985667210.132492649283361
420.9496942422754460.1006115154491080.0503057577245541
430.9819335438508210.03613291229835780.0180664561491789
440.9758139484593640.04837210308127250.0241860515406362







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.285714285714286NOK
5% type I error level160.571428571428571NOK
10% type I error level200.714285714285714NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57924&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.285714285714286NOK
5% type I error level160.571428571428571NOK
10% type I error level200.714285714285714NOK



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