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 12:25:15 -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/t1258658768dvfi8u0uvij335v.htm/, Retrieved Wed, 24 Apr 2024 04:33:54 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57911, Retrieved Wed, 24 Apr 2024 04:33:54 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact168
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:14:11] [b98453cac15ba1066b407e146608df68]
- R  D      [Multiple Regression] [] [2009-11-19 19:25:15] [6974478841a4d28b8cb590971bfdefb0] [Current]
Feedback Forum

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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57911&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] = + 32.0112178808194 + 12.8517679356726X[t] + 0.912623590451367Y1[t] + 0.0121064299814901Y2[t] + 16.312803980732M1[t] + 16.7900026964816M2[t] + 10.8342316766507M3[t] + 6.12167292170496M4[t] + 9.48466383471706M5[t] + 3.23537468192878M6[t] + 15.9983473560093M7[t] + 65.6072237839268M8[t] + 27.1353181179752M9[t] + 4.52518290329523M10[t] -2.53197257686806M11[t] -0.281056311117769t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  32.0112178808194 +  12.8517679356726X[t] +  0.912623590451367Y1[t] +  0.0121064299814901Y2[t] +  16.312803980732M1[t] +  16.7900026964816M2[t] +  10.8342316766507M3[t] +  6.12167292170496M4[t] +  9.48466383471706M5[t] +  3.23537468192878M6[t] +  15.9983473560093M7[t] +  65.6072237839268M8[t] +  27.1353181179752M9[t] +  4.52518290329523M10[t] -2.53197257686806M11[t] -0.281056311117769t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57911&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  32.0112178808194 +  12.8517679356726X[t] +  0.912623590451367Y1[t] +  0.0121064299814901Y2[t] +  16.312803980732M1[t] +  16.7900026964816M2[t] +  10.8342316766507M3[t] +  6.12167292170496M4[t] +  9.48466383471706M5[t] +  3.23537468192878M6[t] +  15.9983473560093M7[t] +  65.6072237839268M8[t] +  27.1353181179752M9[t] +  4.52518290329523M10[t] -2.53197257686806M11[t] -0.281056311117769t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57911&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57911&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] = + 32.0112178808194 + 12.8517679356726X[t] + 0.912623590451367Y1[t] + 0.0121064299814901Y2[t] + 16.312803980732M1[t] + 16.7900026964816M2[t] + 10.8342316766507M3[t] + 6.12167292170496M4[t] + 9.48466383471706M5[t] + 3.23537468192878M6[t] + 15.9983473560093M7[t] + 65.6072237839268M8[t] + 27.1353181179752M9[t] + 4.52518290329523M10[t] -2.53197257686806M11[t] -0.281056311117769t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)32.011217880819426.7468141.19680.2380870.119044
X12.85176793567263.5768423.5930.0008510.000425
Y10.9126235904513670.1503696.069200
Y20.01210642998149010.150130.08060.9361110.468056
M116.3128039807324.3252193.77160.0005020.000251
M216.79000269648165.3579773.13360.0031440.001572
M310.83423167665075.3166892.03780.0479030.023952
M46.121672921704964.8102171.27260.2101460.105073
M59.484663834717064.5663522.07710.0439480.021974
M63.235374681928784.8252930.67050.5062070.253104
M715.99834735600934.5606233.50790.001090.000545
M865.60722378392685.46422912.006700
M927.135318117975211.3338422.39420.0211990.010599
M104.525182903295235.7878250.78180.4386910.219346
M11-2.531972576868064.613779-0.54880.5860590.293029
t-0.2810563111177690.12654-2.22110.0317920.015896

\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) & 32.0112178808194 & 26.746814 & 1.1968 & 0.238087 & 0.119044 \tabularnewline
X & 12.8517679356726 & 3.576842 & 3.593 & 0.000851 & 0.000425 \tabularnewline
Y1 & 0.912623590451367 & 0.150369 & 6.0692 & 0 & 0 \tabularnewline
Y2 & 0.0121064299814901 & 0.15013 & 0.0806 & 0.936111 & 0.468056 \tabularnewline
M1 & 16.312803980732 & 4.325219 & 3.7716 & 0.000502 & 0.000251 \tabularnewline
M2 & 16.7900026964816 & 5.357977 & 3.1336 & 0.003144 & 0.001572 \tabularnewline
M3 & 10.8342316766507 & 5.316689 & 2.0378 & 0.047903 & 0.023952 \tabularnewline
M4 & 6.12167292170496 & 4.810217 & 1.2726 & 0.210146 & 0.105073 \tabularnewline
M5 & 9.48466383471706 & 4.566352 & 2.0771 & 0.043948 & 0.021974 \tabularnewline
M6 & 3.23537468192878 & 4.825293 & 0.6705 & 0.506207 & 0.253104 \tabularnewline
M7 & 15.9983473560093 & 4.560623 & 3.5079 & 0.00109 & 0.000545 \tabularnewline
M8 & 65.6072237839268 & 5.464229 & 12.0067 & 0 & 0 \tabularnewline
M9 & 27.1353181179752 & 11.333842 & 2.3942 & 0.021199 & 0.010599 \tabularnewline
M10 & 4.52518290329523 & 5.787825 & 0.7818 & 0.438691 & 0.219346 \tabularnewline
M11 & -2.53197257686806 & 4.613779 & -0.5488 & 0.586059 & 0.293029 \tabularnewline
t & -0.281056311117769 & 0.12654 & -2.2211 & 0.031792 & 0.015896 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57911&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]32.0112178808194[/C][C]26.746814[/C][C]1.1968[/C][C]0.238087[/C][C]0.119044[/C][/ROW]
[ROW][C]X[/C][C]12.8517679356726[/C][C]3.576842[/C][C]3.593[/C][C]0.000851[/C][C]0.000425[/C][/ROW]
[ROW][C]Y1[/C][C]0.912623590451367[/C][C]0.150369[/C][C]6.0692[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]0.0121064299814901[/C][C]0.15013[/C][C]0.0806[/C][C]0.936111[/C][C]0.468056[/C][/ROW]
[ROW][C]M1[/C][C]16.312803980732[/C][C]4.325219[/C][C]3.7716[/C][C]0.000502[/C][C]0.000251[/C][/ROW]
[ROW][C]M2[/C][C]16.7900026964816[/C][C]5.357977[/C][C]3.1336[/C][C]0.003144[/C][C]0.001572[/C][/ROW]
[ROW][C]M3[/C][C]10.8342316766507[/C][C]5.316689[/C][C]2.0378[/C][C]0.047903[/C][C]0.023952[/C][/ROW]
[ROW][C]M4[/C][C]6.12167292170496[/C][C]4.810217[/C][C]1.2726[/C][C]0.210146[/C][C]0.105073[/C][/ROW]
[ROW][C]M5[/C][C]9.48466383471706[/C][C]4.566352[/C][C]2.0771[/C][C]0.043948[/C][C]0.021974[/C][/ROW]
[ROW][C]M6[/C][C]3.23537468192878[/C][C]4.825293[/C][C]0.6705[/C][C]0.506207[/C][C]0.253104[/C][/ROW]
[ROW][C]M7[/C][C]15.9983473560093[/C][C]4.560623[/C][C]3.5079[/C][C]0.00109[/C][C]0.000545[/C][/ROW]
[ROW][C]M8[/C][C]65.6072237839268[/C][C]5.464229[/C][C]12.0067[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]27.1353181179752[/C][C]11.333842[/C][C]2.3942[/C][C]0.021199[/C][C]0.010599[/C][/ROW]
[ROW][C]M10[/C][C]4.52518290329523[/C][C]5.787825[/C][C]0.7818[/C][C]0.438691[/C][C]0.219346[/C][/ROW]
[ROW][C]M11[/C][C]-2.53197257686806[/C][C]4.613779[/C][C]-0.5488[/C][C]0.586059[/C][C]0.293029[/C][/ROW]
[ROW][C]t[/C][C]-0.281056311117769[/C][C]0.12654[/C][C]-2.2211[/C][C]0.031792[/C][C]0.015896[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57911&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57911&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)32.011217880819426.7468141.19680.2380870.119044
X12.85176793567263.5768423.5930.0008510.000425
Y10.9126235904513670.1503696.069200
Y20.01210642998149010.150130.08060.9361110.468056
M116.3128039807324.3252193.77160.0005020.000251
M216.79000269648165.3579773.13360.0031440.001572
M310.83423167665075.3166892.03780.0479030.023952
M46.121672921704964.8102171.27260.2101460.105073
M59.484663834717064.5663522.07710.0439480.021974
M63.235374681928784.8252930.67050.5062070.253104
M715.99834735600934.5606233.50790.001090.000545
M865.60722378392685.46422912.006700
M927.135318117975211.3338422.39420.0211990.010599
M104.525182903295235.7878250.78180.4386910.219346
M11-2.531972576868064.613779-0.54880.5860590.293029
t-0.2810563111177690.12654-2.22110.0317920.015896







Multiple Linear Regression - Regression Statistics
Multiple R0.99150564049245
R-squared0.983083435128344
Adjusted R-squared0.977041804817038
F-TEST (value)162.718237375218
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.3018287623476
Sum Squared Residuals1667.94792149796

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.99150564049245 \tabularnewline
R-squared & 0.983083435128344 \tabularnewline
Adjusted R-squared & 0.977041804817038 \tabularnewline
F-TEST (value) & 162.718237375218 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 6.3018287623476 \tabularnewline
Sum Squared Residuals & 1667.94792149796 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57911&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.99150564049245[/C][/ROW]
[ROW][C]R-squared[/C][C]0.983083435128344[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.977041804817038[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]162.718237375218[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]6.3018287623476[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1667.94792149796[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57911&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57911&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.99150564049245
R-squared0.983083435128344
Adjusted R-squared0.977041804817038
F-TEST (value)162.718237375218
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.3018287623476
Sum Squared Residuals1667.94792149796







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1595597.538406997237-2.53840699723690
2591598.441363682634-7.44136368263409
3589588.5661484198620.433851580138386
4584581.6988604529692.30113954703075
5573580.193464242644-7.19346424264373
6567563.5637271338653.43627286613481
7569570.436731224323-1.43673122432336
8621621.517159942137-0.517159942136772
9629630.244837528502-1.24483752850162
10628615.28416908535212.7158309146477
11612607.1301851434724.8698148565282
12595594.7670175320190.232982467981304
13597595.0904612842561.90953871574416
14593596.906041560105-3.90604156010503
15590587.0429327273142.95706727268607
16580579.263021169970.73697883002963
17574573.1824005774060.817599422593482
18573561.05524927097711.9447507290226
19573572.55190346360.448096536400176
20620621.867617150418-1.86761715041804
21626626.007963924563-0.00796392456298972
22620609.16151615060310.8384838493965
23588596.420201396503-8.42020139650315
24566569.394524187921-3.39452418792072
25557564.961147108197-7.96114710819718
26561556.6773357391744.32266426082613
27549553.982044900197-4.98204490019733
28532538.085372468643-6.08537246864337
29526525.5074288730860.492571126913469
30511513.295532556787-2.29553255678695
31499512.01545648309-13.0154564830903
32555550.2101970647514.78980293524882
33565562.418878993182.58112100681942
34542549.33188345086-7.33188345085994
35527521.1243933790125.87560662098768
36510509.4075078984180.592492101582176
37514509.7430580806364.25694191936355
38517513.3838855373883.61611446261162
39508509.93335469772-1.93335469771984
40493496.762446607538-3.76244660753850
41490486.0460694828293.95393051717114
42469476.596256797846-7.59625679784636
43478469.8767584713868.12324152861406
44528527.1639558726370.836044127363355
45534534.151131287969-0.151131287969133
46518530.192770739627-12.1927707396267
47506508.325220081013-2.32522008101273
48502499.4309503816432.56904961835724
49516511.6669265296744.33307347032636
50528524.5913734806993.40862651930139
51533529.4755192549073.52448074509272
52536529.1902993008796.80970069912149
53537535.0706368240341.92936317596564
54524529.489234240524-5.48923424052415
55536530.11915035765.88084964239938
56587590.241069970057-3.24106997005736
57597598.177188265786-1.17718826578568
58581585.029660573558-4.02966057355759

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 595 & 597.538406997237 & -2.53840699723690 \tabularnewline
2 & 591 & 598.441363682634 & -7.44136368263409 \tabularnewline
3 & 589 & 588.566148419862 & 0.433851580138386 \tabularnewline
4 & 584 & 581.698860452969 & 2.30113954703075 \tabularnewline
5 & 573 & 580.193464242644 & -7.19346424264373 \tabularnewline
6 & 567 & 563.563727133865 & 3.43627286613481 \tabularnewline
7 & 569 & 570.436731224323 & -1.43673122432336 \tabularnewline
8 & 621 & 621.517159942137 & -0.517159942136772 \tabularnewline
9 & 629 & 630.244837528502 & -1.24483752850162 \tabularnewline
10 & 628 & 615.284169085352 & 12.7158309146477 \tabularnewline
11 & 612 & 607.130185143472 & 4.8698148565282 \tabularnewline
12 & 595 & 594.767017532019 & 0.232982467981304 \tabularnewline
13 & 597 & 595.090461284256 & 1.90953871574416 \tabularnewline
14 & 593 & 596.906041560105 & -3.90604156010503 \tabularnewline
15 & 590 & 587.042932727314 & 2.95706727268607 \tabularnewline
16 & 580 & 579.26302116997 & 0.73697883002963 \tabularnewline
17 & 574 & 573.182400577406 & 0.817599422593482 \tabularnewline
18 & 573 & 561.055249270977 & 11.9447507290226 \tabularnewline
19 & 573 & 572.5519034636 & 0.448096536400176 \tabularnewline
20 & 620 & 621.867617150418 & -1.86761715041804 \tabularnewline
21 & 626 & 626.007963924563 & -0.00796392456298972 \tabularnewline
22 & 620 & 609.161516150603 & 10.8384838493965 \tabularnewline
23 & 588 & 596.420201396503 & -8.42020139650315 \tabularnewline
24 & 566 & 569.394524187921 & -3.39452418792072 \tabularnewline
25 & 557 & 564.961147108197 & -7.96114710819718 \tabularnewline
26 & 561 & 556.677335739174 & 4.32266426082613 \tabularnewline
27 & 549 & 553.982044900197 & -4.98204490019733 \tabularnewline
28 & 532 & 538.085372468643 & -6.08537246864337 \tabularnewline
29 & 526 & 525.507428873086 & 0.492571126913469 \tabularnewline
30 & 511 & 513.295532556787 & -2.29553255678695 \tabularnewline
31 & 499 & 512.01545648309 & -13.0154564830903 \tabularnewline
32 & 555 & 550.210197064751 & 4.78980293524882 \tabularnewline
33 & 565 & 562.41887899318 & 2.58112100681942 \tabularnewline
34 & 542 & 549.33188345086 & -7.33188345085994 \tabularnewline
35 & 527 & 521.124393379012 & 5.87560662098768 \tabularnewline
36 & 510 & 509.407507898418 & 0.592492101582176 \tabularnewline
37 & 514 & 509.743058080636 & 4.25694191936355 \tabularnewline
38 & 517 & 513.383885537388 & 3.61611446261162 \tabularnewline
39 & 508 & 509.93335469772 & -1.93335469771984 \tabularnewline
40 & 493 & 496.762446607538 & -3.76244660753850 \tabularnewline
41 & 490 & 486.046069482829 & 3.95393051717114 \tabularnewline
42 & 469 & 476.596256797846 & -7.59625679784636 \tabularnewline
43 & 478 & 469.876758471386 & 8.12324152861406 \tabularnewline
44 & 528 & 527.163955872637 & 0.836044127363355 \tabularnewline
45 & 534 & 534.151131287969 & -0.151131287969133 \tabularnewline
46 & 518 & 530.192770739627 & -12.1927707396267 \tabularnewline
47 & 506 & 508.325220081013 & -2.32522008101273 \tabularnewline
48 & 502 & 499.430950381643 & 2.56904961835724 \tabularnewline
49 & 516 & 511.666926529674 & 4.33307347032636 \tabularnewline
50 & 528 & 524.591373480699 & 3.40862651930139 \tabularnewline
51 & 533 & 529.475519254907 & 3.52448074509272 \tabularnewline
52 & 536 & 529.190299300879 & 6.80970069912149 \tabularnewline
53 & 537 & 535.070636824034 & 1.92936317596564 \tabularnewline
54 & 524 & 529.489234240524 & -5.48923424052415 \tabularnewline
55 & 536 & 530.1191503576 & 5.88084964239938 \tabularnewline
56 & 587 & 590.241069970057 & -3.24106997005736 \tabularnewline
57 & 597 & 598.177188265786 & -1.17718826578568 \tabularnewline
58 & 581 & 585.029660573558 & -4.02966057355759 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57911&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]595[/C][C]597.538406997237[/C][C]-2.53840699723690[/C][/ROW]
[ROW][C]2[/C][C]591[/C][C]598.441363682634[/C][C]-7.44136368263409[/C][/ROW]
[ROW][C]3[/C][C]589[/C][C]588.566148419862[/C][C]0.433851580138386[/C][/ROW]
[ROW][C]4[/C][C]584[/C][C]581.698860452969[/C][C]2.30113954703075[/C][/ROW]
[ROW][C]5[/C][C]573[/C][C]580.193464242644[/C][C]-7.19346424264373[/C][/ROW]
[ROW][C]6[/C][C]567[/C][C]563.563727133865[/C][C]3.43627286613481[/C][/ROW]
[ROW][C]7[/C][C]569[/C][C]570.436731224323[/C][C]-1.43673122432336[/C][/ROW]
[ROW][C]8[/C][C]621[/C][C]621.517159942137[/C][C]-0.517159942136772[/C][/ROW]
[ROW][C]9[/C][C]629[/C][C]630.244837528502[/C][C]-1.24483752850162[/C][/ROW]
[ROW][C]10[/C][C]628[/C][C]615.284169085352[/C][C]12.7158309146477[/C][/ROW]
[ROW][C]11[/C][C]612[/C][C]607.130185143472[/C][C]4.8698148565282[/C][/ROW]
[ROW][C]12[/C][C]595[/C][C]594.767017532019[/C][C]0.232982467981304[/C][/ROW]
[ROW][C]13[/C][C]597[/C][C]595.090461284256[/C][C]1.90953871574416[/C][/ROW]
[ROW][C]14[/C][C]593[/C][C]596.906041560105[/C][C]-3.90604156010503[/C][/ROW]
[ROW][C]15[/C][C]590[/C][C]587.042932727314[/C][C]2.95706727268607[/C][/ROW]
[ROW][C]16[/C][C]580[/C][C]579.26302116997[/C][C]0.73697883002963[/C][/ROW]
[ROW][C]17[/C][C]574[/C][C]573.182400577406[/C][C]0.817599422593482[/C][/ROW]
[ROW][C]18[/C][C]573[/C][C]561.055249270977[/C][C]11.9447507290226[/C][/ROW]
[ROW][C]19[/C][C]573[/C][C]572.5519034636[/C][C]0.448096536400176[/C][/ROW]
[ROW][C]20[/C][C]620[/C][C]621.867617150418[/C][C]-1.86761715041804[/C][/ROW]
[ROW][C]21[/C][C]626[/C][C]626.007963924563[/C][C]-0.00796392456298972[/C][/ROW]
[ROW][C]22[/C][C]620[/C][C]609.161516150603[/C][C]10.8384838493965[/C][/ROW]
[ROW][C]23[/C][C]588[/C][C]596.420201396503[/C][C]-8.42020139650315[/C][/ROW]
[ROW][C]24[/C][C]566[/C][C]569.394524187921[/C][C]-3.39452418792072[/C][/ROW]
[ROW][C]25[/C][C]557[/C][C]564.961147108197[/C][C]-7.96114710819718[/C][/ROW]
[ROW][C]26[/C][C]561[/C][C]556.677335739174[/C][C]4.32266426082613[/C][/ROW]
[ROW][C]27[/C][C]549[/C][C]553.982044900197[/C][C]-4.98204490019733[/C][/ROW]
[ROW][C]28[/C][C]532[/C][C]538.085372468643[/C][C]-6.08537246864337[/C][/ROW]
[ROW][C]29[/C][C]526[/C][C]525.507428873086[/C][C]0.492571126913469[/C][/ROW]
[ROW][C]30[/C][C]511[/C][C]513.295532556787[/C][C]-2.29553255678695[/C][/ROW]
[ROW][C]31[/C][C]499[/C][C]512.01545648309[/C][C]-13.0154564830903[/C][/ROW]
[ROW][C]32[/C][C]555[/C][C]550.210197064751[/C][C]4.78980293524882[/C][/ROW]
[ROW][C]33[/C][C]565[/C][C]562.41887899318[/C][C]2.58112100681942[/C][/ROW]
[ROW][C]34[/C][C]542[/C][C]549.33188345086[/C][C]-7.33188345085994[/C][/ROW]
[ROW][C]35[/C][C]527[/C][C]521.124393379012[/C][C]5.87560662098768[/C][/ROW]
[ROW][C]36[/C][C]510[/C][C]509.407507898418[/C][C]0.592492101582176[/C][/ROW]
[ROW][C]37[/C][C]514[/C][C]509.743058080636[/C][C]4.25694191936355[/C][/ROW]
[ROW][C]38[/C][C]517[/C][C]513.383885537388[/C][C]3.61611446261162[/C][/ROW]
[ROW][C]39[/C][C]508[/C][C]509.93335469772[/C][C]-1.93335469771984[/C][/ROW]
[ROW][C]40[/C][C]493[/C][C]496.762446607538[/C][C]-3.76244660753850[/C][/ROW]
[ROW][C]41[/C][C]490[/C][C]486.046069482829[/C][C]3.95393051717114[/C][/ROW]
[ROW][C]42[/C][C]469[/C][C]476.596256797846[/C][C]-7.59625679784636[/C][/ROW]
[ROW][C]43[/C][C]478[/C][C]469.876758471386[/C][C]8.12324152861406[/C][/ROW]
[ROW][C]44[/C][C]528[/C][C]527.163955872637[/C][C]0.836044127363355[/C][/ROW]
[ROW][C]45[/C][C]534[/C][C]534.151131287969[/C][C]-0.151131287969133[/C][/ROW]
[ROW][C]46[/C][C]518[/C][C]530.192770739627[/C][C]-12.1927707396267[/C][/ROW]
[ROW][C]47[/C][C]506[/C][C]508.325220081013[/C][C]-2.32522008101273[/C][/ROW]
[ROW][C]48[/C][C]502[/C][C]499.430950381643[/C][C]2.56904961835724[/C][/ROW]
[ROW][C]49[/C][C]516[/C][C]511.666926529674[/C][C]4.33307347032636[/C][/ROW]
[ROW][C]50[/C][C]528[/C][C]524.591373480699[/C][C]3.40862651930139[/C][/ROW]
[ROW][C]51[/C][C]533[/C][C]529.475519254907[/C][C]3.52448074509272[/C][/ROW]
[ROW][C]52[/C][C]536[/C][C]529.190299300879[/C][C]6.80970069912149[/C][/ROW]
[ROW][C]53[/C][C]537[/C][C]535.070636824034[/C][C]1.92936317596564[/C][/ROW]
[ROW][C]54[/C][C]524[/C][C]529.489234240524[/C][C]-5.48923424052415[/C][/ROW]
[ROW][C]55[/C][C]536[/C][C]530.1191503576[/C][C]5.88084964239938[/C][/ROW]
[ROW][C]56[/C][C]587[/C][C]590.241069970057[/C][C]-3.24106997005736[/C][/ROW]
[ROW][C]57[/C][C]597[/C][C]598.177188265786[/C][C]-1.17718826578568[/C][/ROW]
[ROW][C]58[/C][C]581[/C][C]585.029660573558[/C][C]-4.02966057355759[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57911&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57911&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
1595597.538406997237-2.53840699723690
2591598.441363682634-7.44136368263409
3589588.5661484198620.433851580138386
4584581.6988604529692.30113954703075
5573580.193464242644-7.19346424264373
6567563.5637271338653.43627286613481
7569570.436731224323-1.43673122432336
8621621.517159942137-0.517159942136772
9629630.244837528502-1.24483752850162
10628615.28416908535212.7158309146477
11612607.1301851434724.8698148565282
12595594.7670175320190.232982467981304
13597595.0904612842561.90953871574416
14593596.906041560105-3.90604156010503
15590587.0429327273142.95706727268607
16580579.263021169970.73697883002963
17574573.1824005774060.817599422593482
18573561.05524927097711.9447507290226
19573572.55190346360.448096536400176
20620621.867617150418-1.86761715041804
21626626.007963924563-0.00796392456298972
22620609.16151615060310.8384838493965
23588596.420201396503-8.42020139650315
24566569.394524187921-3.39452418792072
25557564.961147108197-7.96114710819718
26561556.6773357391744.32266426082613
27549553.982044900197-4.98204490019733
28532538.085372468643-6.08537246864337
29526525.5074288730860.492571126913469
30511513.295532556787-2.29553255678695
31499512.01545648309-13.0154564830903
32555550.2101970647514.78980293524882
33565562.418878993182.58112100681942
34542549.33188345086-7.33188345085994
35527521.1243933790125.87560662098768
36510509.4075078984180.592492101582176
37514509.7430580806364.25694191936355
38517513.3838855373883.61611446261162
39508509.93335469772-1.93335469771984
40493496.762446607538-3.76244660753850
41490486.0460694828293.95393051717114
42469476.596256797846-7.59625679784636
43478469.8767584713868.12324152861406
44528527.1639558726370.836044127363355
45534534.151131287969-0.151131287969133
46518530.192770739627-12.1927707396267
47506508.325220081013-2.32522008101273
48502499.4309503816432.56904961835724
49516511.6669265296744.33307347032636
50528524.5913734806993.40862651930139
51533529.4755192549073.52448074509272
52536529.1902993008796.80970069912149
53537535.0706368240341.92936317596564
54524529.489234240524-5.48923424052415
55536530.11915035765.88084964239938
56587590.241069970057-3.24106997005736
57597598.177188265786-1.17718826578568
58581585.029660573558-4.02966057355759







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.03447397873196360.06894795746392720.965526021268036
200.009776077508697830.01955215501739570.990223922491302
210.002274139549273350.00454827909854670.997725860450727
220.06149572620719570.1229914524143910.938504273792804
230.3378324714780150.675664942956030.662167528521985
240.2776622375250460.5553244750500920.722337762474954
250.2425784168358610.4851568336717220.757421583164139
260.4966261590215840.9932523180431680.503373840978416
270.4676166801237550.935233360247510.532383319876245
280.418347127099580.836694254199160.58165287290042
290.3763024012683790.7526048025367570.623697598731621
300.3600648082397210.7201296164794410.639935191760279
310.8316747262670360.3366505474659290.168325273732964
320.9297821129682260.1404357740635480.0702178870317741
330.9221705724864520.1556588550270970.0778294275135484
340.9228231129683720.1543537740632550.0771768870316277
350.9661564674888860.06768706502222790.0338435325111139
360.9370030672785250.1259938654429510.0629969327214755
370.9223816866229090.1552366267541830.0776183133770914
380.9530769639979350.09384607200413030.0469230360020651
390.9947623078802920.01047538423941590.00523769211970797

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.0344739787319636 & 0.0689479574639272 & 0.965526021268036 \tabularnewline
20 & 0.00977607750869783 & 0.0195521550173957 & 0.990223922491302 \tabularnewline
21 & 0.00227413954927335 & 0.0045482790985467 & 0.997725860450727 \tabularnewline
22 & 0.0614957262071957 & 0.122991452414391 & 0.938504273792804 \tabularnewline
23 & 0.337832471478015 & 0.67566494295603 & 0.662167528521985 \tabularnewline
24 & 0.277662237525046 & 0.555324475050092 & 0.722337762474954 \tabularnewline
25 & 0.242578416835861 & 0.485156833671722 & 0.757421583164139 \tabularnewline
26 & 0.496626159021584 & 0.993252318043168 & 0.503373840978416 \tabularnewline
27 & 0.467616680123755 & 0.93523336024751 & 0.532383319876245 \tabularnewline
28 & 0.41834712709958 & 0.83669425419916 & 0.58165287290042 \tabularnewline
29 & 0.376302401268379 & 0.752604802536757 & 0.623697598731621 \tabularnewline
30 & 0.360064808239721 & 0.720129616479441 & 0.639935191760279 \tabularnewline
31 & 0.831674726267036 & 0.336650547465929 & 0.168325273732964 \tabularnewline
32 & 0.929782112968226 & 0.140435774063548 & 0.0702178870317741 \tabularnewline
33 & 0.922170572486452 & 0.155658855027097 & 0.0778294275135484 \tabularnewline
34 & 0.922823112968372 & 0.154353774063255 & 0.0771768870316277 \tabularnewline
35 & 0.966156467488886 & 0.0676870650222279 & 0.0338435325111139 \tabularnewline
36 & 0.937003067278525 & 0.125993865442951 & 0.0629969327214755 \tabularnewline
37 & 0.922381686622909 & 0.155236626754183 & 0.0776183133770914 \tabularnewline
38 & 0.953076963997935 & 0.0938460720041303 & 0.0469230360020651 \tabularnewline
39 & 0.994762307880292 & 0.0104753842394159 & 0.00523769211970797 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57911&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]19[/C][C]0.0344739787319636[/C][C]0.0689479574639272[/C][C]0.965526021268036[/C][/ROW]
[ROW][C]20[/C][C]0.00977607750869783[/C][C]0.0195521550173957[/C][C]0.990223922491302[/C][/ROW]
[ROW][C]21[/C][C]0.00227413954927335[/C][C]0.0045482790985467[/C][C]0.997725860450727[/C][/ROW]
[ROW][C]22[/C][C]0.0614957262071957[/C][C]0.122991452414391[/C][C]0.938504273792804[/C][/ROW]
[ROW][C]23[/C][C]0.337832471478015[/C][C]0.67566494295603[/C][C]0.662167528521985[/C][/ROW]
[ROW][C]24[/C][C]0.277662237525046[/C][C]0.555324475050092[/C][C]0.722337762474954[/C][/ROW]
[ROW][C]25[/C][C]0.242578416835861[/C][C]0.485156833671722[/C][C]0.757421583164139[/C][/ROW]
[ROW][C]26[/C][C]0.496626159021584[/C][C]0.993252318043168[/C][C]0.503373840978416[/C][/ROW]
[ROW][C]27[/C][C]0.467616680123755[/C][C]0.93523336024751[/C][C]0.532383319876245[/C][/ROW]
[ROW][C]28[/C][C]0.41834712709958[/C][C]0.83669425419916[/C][C]0.58165287290042[/C][/ROW]
[ROW][C]29[/C][C]0.376302401268379[/C][C]0.752604802536757[/C][C]0.623697598731621[/C][/ROW]
[ROW][C]30[/C][C]0.360064808239721[/C][C]0.720129616479441[/C][C]0.639935191760279[/C][/ROW]
[ROW][C]31[/C][C]0.831674726267036[/C][C]0.336650547465929[/C][C]0.168325273732964[/C][/ROW]
[ROW][C]32[/C][C]0.929782112968226[/C][C]0.140435774063548[/C][C]0.0702178870317741[/C][/ROW]
[ROW][C]33[/C][C]0.922170572486452[/C][C]0.155658855027097[/C][C]0.0778294275135484[/C][/ROW]
[ROW][C]34[/C][C]0.922823112968372[/C][C]0.154353774063255[/C][C]0.0771768870316277[/C][/ROW]
[ROW][C]35[/C][C]0.966156467488886[/C][C]0.0676870650222279[/C][C]0.0338435325111139[/C][/ROW]
[ROW][C]36[/C][C]0.937003067278525[/C][C]0.125993865442951[/C][C]0.0629969327214755[/C][/ROW]
[ROW][C]37[/C][C]0.922381686622909[/C][C]0.155236626754183[/C][C]0.0776183133770914[/C][/ROW]
[ROW][C]38[/C][C]0.953076963997935[/C][C]0.0938460720041303[/C][C]0.0469230360020651[/C][/ROW]
[ROW][C]39[/C][C]0.994762307880292[/C][C]0.0104753842394159[/C][C]0.00523769211970797[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57911&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57911&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
190.03447397873196360.06894795746392720.965526021268036
200.009776077508697830.01955215501739570.990223922491302
210.002274139549273350.00454827909854670.997725860450727
220.06149572620719570.1229914524143910.938504273792804
230.3378324714780150.675664942956030.662167528521985
240.2776622375250460.5553244750500920.722337762474954
250.2425784168358610.4851568336717220.757421583164139
260.4966261590215840.9932523180431680.503373840978416
270.4676166801237550.935233360247510.532383319876245
280.418347127099580.836694254199160.58165287290042
290.3763024012683790.7526048025367570.623697598731621
300.3600648082397210.7201296164794410.639935191760279
310.8316747262670360.3366505474659290.168325273732964
320.9297821129682260.1404357740635480.0702178870317741
330.9221705724864520.1556588550270970.0778294275135484
340.9228231129683720.1543537740632550.0771768870316277
350.9661564674888860.06768706502222790.0338435325111139
360.9370030672785250.1259938654429510.0629969327214755
370.9223816866229090.1552366267541830.0776183133770914
380.9530769639979350.09384607200413030.0469230360020651
390.9947623078802920.01047538423941590.00523769211970797







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0476190476190476NOK
5% type I error level30.142857142857143NOK
10% type I error level60.285714285714286NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57911&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.0476190476190476NOK
5% type I error level30.142857142857143NOK
10% type I error level60.285714285714286NOK



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