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 computationFri, 20 Nov 2009 10:50:38 -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/20/t1258740790v3gk7fqrb2la17m.htm/, Retrieved Thu, 18 Apr 2024 22:44:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58386, Retrieved Thu, 18 Apr 2024 22:44:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact211
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-20 17:50:38] [aa8eb70c35ea8a87edcd21d6427e653e] [Current]
-    D        [Multiple Regression] [] [2009-12-14 21:20:32] [73863f7f907331e734eff34b7de6fc83]
Feedback Forum

Post a new message
Dataseries X:
594	139
595	135
591	130
589	127
584	122
573	117
567	112
569	113
621	149
629	157
628	157
612	147
595	137
597	132
593	125
590	123
580	117
574	114
573	111
573	112
620	144
626	150
620	149
588	134
566	123
557	116
561	117
549	111
532	105
526	102
511	95
499	93
555	124
565	130
542	124
527	115
510	106
514	105
517	105
508	101
493	95
490	93
469	84
478	87
528	116
534	120
518	117
506	109
502	105
516	107
528	109
533	109
536	108
537	107
524	99
536	103
587	131
597	137
581	135
564	124




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

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

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

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

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







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)295.98985781273614.66405320.184700
X2.193484344274690.12230417.934700

\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) & 295.989857812736 & 14.664053 & 20.1847 & 0 & 0 \tabularnewline
X & 2.19348434427469 & 0.122304 & 17.9347 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58386&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]295.989857812736[/C][C]14.664053[/C][C]20.1847[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]2.19348434427469[/C][C]0.122304[/C][C]17.9347[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58386&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58386&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)295.98985781273614.66405320.184700
X2.193484344274690.12230417.934700







Multiple Linear Regression - Regression Statistics
Multiple R0.920450295083232
R-squared0.84722874571881
Adjusted R-squared0.84459475857603
F-TEST (value)321.652574516703
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16.2389882592519
Sum Squared Residuals15294.874901679

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.920450295083232 \tabularnewline
R-squared & 0.84722874571881 \tabularnewline
Adjusted R-squared & 0.84459475857603 \tabularnewline
F-TEST (value) & 321.652574516703 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 16.2389882592519 \tabularnewline
Sum Squared Residuals & 15294.874901679 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58386&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.920450295083232[/C][/ROW]
[ROW][C]R-squared[/C][C]0.84722874571881[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.84459475857603[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]321.652574516703[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]16.2389882592519[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]15294.874901679[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58386&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58386&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.920450295083232
R-squared0.84722874571881
Adjusted R-squared0.84459475857603
F-TEST (value)321.652574516703
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16.2389882592519
Sum Squared Residuals15294.874901679







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1594600.884181666918-6.8841816669177
2595592.110244289822.88975571017992
3591581.1428225684479.85717743155344
4589574.56236953562214.4376304643775
5584563.59494781424920.405052185751
6573552.62752609287620.3724739071245
7567541.66010437150225.3398956284979
8569543.85358871577725.1464112842233
9621622.819025109666-1.81902510966577
10629640.366899863863-11.3668998638633
11628640.366899863863-12.3668998638633
12612618.432056421116-6.43205642111638
13595596.49721297837-1.49721297836942
14597585.52979125699611.4702087430040
15593570.17540084707322.8245991529269
16590565.78843215852424.2115678414763
17580552.62752609287627.3724739071245
18574546.04707306005127.9529269399486
19573539.46662002722733.5333799727726
20573541.66010437150231.3398956284979
21620611.8516033882928.1483966117077
22626625.012509453940.987490546059543
23620622.819025109666-2.81902510966577
24588589.916759945545-1.91675994554534
25566565.7884321585240.211567841476303
26557550.4340417486016.56595825139917
27561552.6275260928768.37247390712447
28549539.4666200272279.53337997277264
29532526.3057139615795.69428603842081
30526519.7252609287556.2747390712449
31511504.3708705188326.62912948116776
32499499.983901830283-0.98390183028285
33555567.981916502798-12.9819165027984
34565581.142822568447-16.1428225684466
35542567.981916502798-25.9819165027984
36527548.240557404326-21.2405574043261
37510528.499198305854-18.4991983058539
38514526.305713961579-12.3057139615792
39517526.305713961579-9.30571396157919
40508517.53177658448-9.5317765844804
41493504.370870518832-11.3708705188322
42490499.983901830283-9.98390183028285
43469480.24254273181-11.2425427318106
44478486.822995764635-8.82299576463468
45528550.434041748601-22.4340417486008
46534559.2079791257-25.2079791256996
47518552.627526092876-34.6275260928755
48506535.079651338678-29.079651338678
49502526.305713961579-24.3057139615792
50516530.692682650129-14.6926826501286
51528535.079651338678-7.07965133867797
52533535.079651338678-2.07965133867797
53536532.8861669944033.11383300559673
54537530.6926826501296.30731734987142
55524513.14480789593110.8551921040690
56536521.9187452730314.0812547269702
57587583.3363069127213.66369308727874
58597596.497212978370.502787021630576
59581592.11024428982-11.1102442898200
60564567.981916502798-3.98191650279839

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 594 & 600.884181666918 & -6.8841816669177 \tabularnewline
2 & 595 & 592.11024428982 & 2.88975571017992 \tabularnewline
3 & 591 & 581.142822568447 & 9.85717743155344 \tabularnewline
4 & 589 & 574.562369535622 & 14.4376304643775 \tabularnewline
5 & 584 & 563.594947814249 & 20.405052185751 \tabularnewline
6 & 573 & 552.627526092876 & 20.3724739071245 \tabularnewline
7 & 567 & 541.660104371502 & 25.3398956284979 \tabularnewline
8 & 569 & 543.853588715777 & 25.1464112842233 \tabularnewline
9 & 621 & 622.819025109666 & -1.81902510966577 \tabularnewline
10 & 629 & 640.366899863863 & -11.3668998638633 \tabularnewline
11 & 628 & 640.366899863863 & -12.3668998638633 \tabularnewline
12 & 612 & 618.432056421116 & -6.43205642111638 \tabularnewline
13 & 595 & 596.49721297837 & -1.49721297836942 \tabularnewline
14 & 597 & 585.529791256996 & 11.4702087430040 \tabularnewline
15 & 593 & 570.175400847073 & 22.8245991529269 \tabularnewline
16 & 590 & 565.788432158524 & 24.2115678414763 \tabularnewline
17 & 580 & 552.627526092876 & 27.3724739071245 \tabularnewline
18 & 574 & 546.047073060051 & 27.9529269399486 \tabularnewline
19 & 573 & 539.466620027227 & 33.5333799727726 \tabularnewline
20 & 573 & 541.660104371502 & 31.3398956284979 \tabularnewline
21 & 620 & 611.851603388292 & 8.1483966117077 \tabularnewline
22 & 626 & 625.01250945394 & 0.987490546059543 \tabularnewline
23 & 620 & 622.819025109666 & -2.81902510966577 \tabularnewline
24 & 588 & 589.916759945545 & -1.91675994554534 \tabularnewline
25 & 566 & 565.788432158524 & 0.211567841476303 \tabularnewline
26 & 557 & 550.434041748601 & 6.56595825139917 \tabularnewline
27 & 561 & 552.627526092876 & 8.37247390712447 \tabularnewline
28 & 549 & 539.466620027227 & 9.53337997277264 \tabularnewline
29 & 532 & 526.305713961579 & 5.69428603842081 \tabularnewline
30 & 526 & 519.725260928755 & 6.2747390712449 \tabularnewline
31 & 511 & 504.370870518832 & 6.62912948116776 \tabularnewline
32 & 499 & 499.983901830283 & -0.98390183028285 \tabularnewline
33 & 555 & 567.981916502798 & -12.9819165027984 \tabularnewline
34 & 565 & 581.142822568447 & -16.1428225684466 \tabularnewline
35 & 542 & 567.981916502798 & -25.9819165027984 \tabularnewline
36 & 527 & 548.240557404326 & -21.2405574043261 \tabularnewline
37 & 510 & 528.499198305854 & -18.4991983058539 \tabularnewline
38 & 514 & 526.305713961579 & -12.3057139615792 \tabularnewline
39 & 517 & 526.305713961579 & -9.30571396157919 \tabularnewline
40 & 508 & 517.53177658448 & -9.5317765844804 \tabularnewline
41 & 493 & 504.370870518832 & -11.3708705188322 \tabularnewline
42 & 490 & 499.983901830283 & -9.98390183028285 \tabularnewline
43 & 469 & 480.24254273181 & -11.2425427318106 \tabularnewline
44 & 478 & 486.822995764635 & -8.82299576463468 \tabularnewline
45 & 528 & 550.434041748601 & -22.4340417486008 \tabularnewline
46 & 534 & 559.2079791257 & -25.2079791256996 \tabularnewline
47 & 518 & 552.627526092876 & -34.6275260928755 \tabularnewline
48 & 506 & 535.079651338678 & -29.079651338678 \tabularnewline
49 & 502 & 526.305713961579 & -24.3057139615792 \tabularnewline
50 & 516 & 530.692682650129 & -14.6926826501286 \tabularnewline
51 & 528 & 535.079651338678 & -7.07965133867797 \tabularnewline
52 & 533 & 535.079651338678 & -2.07965133867797 \tabularnewline
53 & 536 & 532.886166994403 & 3.11383300559673 \tabularnewline
54 & 537 & 530.692682650129 & 6.30731734987142 \tabularnewline
55 & 524 & 513.144807895931 & 10.8551921040690 \tabularnewline
56 & 536 & 521.91874527303 & 14.0812547269702 \tabularnewline
57 & 587 & 583.336306912721 & 3.66369308727874 \tabularnewline
58 & 597 & 596.49721297837 & 0.502787021630576 \tabularnewline
59 & 581 & 592.11024428982 & -11.1102442898200 \tabularnewline
60 & 564 & 567.981916502798 & -3.98191650279839 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58386&T=4

[TABLE]
[ROW][C]Multiple Linear Regression - Actuals, Interpolation, and Residuals[/C][/ROW]
[ROW][C]Time or Index[/C][C]Actuals[/C][C]InterpolationForecast[/C][C]ResidualsPrediction Error[/C][/ROW]
[ROW][C]1[/C][C]594[/C][C]600.884181666918[/C][C]-6.8841816669177[/C][/ROW]
[ROW][C]2[/C][C]595[/C][C]592.11024428982[/C][C]2.88975571017992[/C][/ROW]
[ROW][C]3[/C][C]591[/C][C]581.142822568447[/C][C]9.85717743155344[/C][/ROW]
[ROW][C]4[/C][C]589[/C][C]574.562369535622[/C][C]14.4376304643775[/C][/ROW]
[ROW][C]5[/C][C]584[/C][C]563.594947814249[/C][C]20.405052185751[/C][/ROW]
[ROW][C]6[/C][C]573[/C][C]552.627526092876[/C][C]20.3724739071245[/C][/ROW]
[ROW][C]7[/C][C]567[/C][C]541.660104371502[/C][C]25.3398956284979[/C][/ROW]
[ROW][C]8[/C][C]569[/C][C]543.853588715777[/C][C]25.1464112842233[/C][/ROW]
[ROW][C]9[/C][C]621[/C][C]622.819025109666[/C][C]-1.81902510966577[/C][/ROW]
[ROW][C]10[/C][C]629[/C][C]640.366899863863[/C][C]-11.3668998638633[/C][/ROW]
[ROW][C]11[/C][C]628[/C][C]640.366899863863[/C][C]-12.3668998638633[/C][/ROW]
[ROW][C]12[/C][C]612[/C][C]618.432056421116[/C][C]-6.43205642111638[/C][/ROW]
[ROW][C]13[/C][C]595[/C][C]596.49721297837[/C][C]-1.49721297836942[/C][/ROW]
[ROW][C]14[/C][C]597[/C][C]585.529791256996[/C][C]11.4702087430040[/C][/ROW]
[ROW][C]15[/C][C]593[/C][C]570.175400847073[/C][C]22.8245991529269[/C][/ROW]
[ROW][C]16[/C][C]590[/C][C]565.788432158524[/C][C]24.2115678414763[/C][/ROW]
[ROW][C]17[/C][C]580[/C][C]552.627526092876[/C][C]27.3724739071245[/C][/ROW]
[ROW][C]18[/C][C]574[/C][C]546.047073060051[/C][C]27.9529269399486[/C][/ROW]
[ROW][C]19[/C][C]573[/C][C]539.466620027227[/C][C]33.5333799727726[/C][/ROW]
[ROW][C]20[/C][C]573[/C][C]541.660104371502[/C][C]31.3398956284979[/C][/ROW]
[ROW][C]21[/C][C]620[/C][C]611.851603388292[/C][C]8.1483966117077[/C][/ROW]
[ROW][C]22[/C][C]626[/C][C]625.01250945394[/C][C]0.987490546059543[/C][/ROW]
[ROW][C]23[/C][C]620[/C][C]622.819025109666[/C][C]-2.81902510966577[/C][/ROW]
[ROW][C]24[/C][C]588[/C][C]589.916759945545[/C][C]-1.91675994554534[/C][/ROW]
[ROW][C]25[/C][C]566[/C][C]565.788432158524[/C][C]0.211567841476303[/C][/ROW]
[ROW][C]26[/C][C]557[/C][C]550.434041748601[/C][C]6.56595825139917[/C][/ROW]
[ROW][C]27[/C][C]561[/C][C]552.627526092876[/C][C]8.37247390712447[/C][/ROW]
[ROW][C]28[/C][C]549[/C][C]539.466620027227[/C][C]9.53337997277264[/C][/ROW]
[ROW][C]29[/C][C]532[/C][C]526.305713961579[/C][C]5.69428603842081[/C][/ROW]
[ROW][C]30[/C][C]526[/C][C]519.725260928755[/C][C]6.2747390712449[/C][/ROW]
[ROW][C]31[/C][C]511[/C][C]504.370870518832[/C][C]6.62912948116776[/C][/ROW]
[ROW][C]32[/C][C]499[/C][C]499.983901830283[/C][C]-0.98390183028285[/C][/ROW]
[ROW][C]33[/C][C]555[/C][C]567.981916502798[/C][C]-12.9819165027984[/C][/ROW]
[ROW][C]34[/C][C]565[/C][C]581.142822568447[/C][C]-16.1428225684466[/C][/ROW]
[ROW][C]35[/C][C]542[/C][C]567.981916502798[/C][C]-25.9819165027984[/C][/ROW]
[ROW][C]36[/C][C]527[/C][C]548.240557404326[/C][C]-21.2405574043261[/C][/ROW]
[ROW][C]37[/C][C]510[/C][C]528.499198305854[/C][C]-18.4991983058539[/C][/ROW]
[ROW][C]38[/C][C]514[/C][C]526.305713961579[/C][C]-12.3057139615792[/C][/ROW]
[ROW][C]39[/C][C]517[/C][C]526.305713961579[/C][C]-9.30571396157919[/C][/ROW]
[ROW][C]40[/C][C]508[/C][C]517.53177658448[/C][C]-9.5317765844804[/C][/ROW]
[ROW][C]41[/C][C]493[/C][C]504.370870518832[/C][C]-11.3708705188322[/C][/ROW]
[ROW][C]42[/C][C]490[/C][C]499.983901830283[/C][C]-9.98390183028285[/C][/ROW]
[ROW][C]43[/C][C]469[/C][C]480.24254273181[/C][C]-11.2425427318106[/C][/ROW]
[ROW][C]44[/C][C]478[/C][C]486.822995764635[/C][C]-8.82299576463468[/C][/ROW]
[ROW][C]45[/C][C]528[/C][C]550.434041748601[/C][C]-22.4340417486008[/C][/ROW]
[ROW][C]46[/C][C]534[/C][C]559.2079791257[/C][C]-25.2079791256996[/C][/ROW]
[ROW][C]47[/C][C]518[/C][C]552.627526092876[/C][C]-34.6275260928755[/C][/ROW]
[ROW][C]48[/C][C]506[/C][C]535.079651338678[/C][C]-29.079651338678[/C][/ROW]
[ROW][C]49[/C][C]502[/C][C]526.305713961579[/C][C]-24.3057139615792[/C][/ROW]
[ROW][C]50[/C][C]516[/C][C]530.692682650129[/C][C]-14.6926826501286[/C][/ROW]
[ROW][C]51[/C][C]528[/C][C]535.079651338678[/C][C]-7.07965133867797[/C][/ROW]
[ROW][C]52[/C][C]533[/C][C]535.079651338678[/C][C]-2.07965133867797[/C][/ROW]
[ROW][C]53[/C][C]536[/C][C]532.886166994403[/C][C]3.11383300559673[/C][/ROW]
[ROW][C]54[/C][C]537[/C][C]530.692682650129[/C][C]6.30731734987142[/C][/ROW]
[ROW][C]55[/C][C]524[/C][C]513.144807895931[/C][C]10.8551921040690[/C][/ROW]
[ROW][C]56[/C][C]536[/C][C]521.91874527303[/C][C]14.0812547269702[/C][/ROW]
[ROW][C]57[/C][C]587[/C][C]583.336306912721[/C][C]3.66369308727874[/C][/ROW]
[ROW][C]58[/C][C]597[/C][C]596.49721297837[/C][C]0.502787021630576[/C][/ROW]
[ROW][C]59[/C][C]581[/C][C]592.11024428982[/C][C]-11.1102442898200[/C][/ROW]
[ROW][C]60[/C][C]564[/C][C]567.981916502798[/C][C]-3.98191650279839[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58386&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58386&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
1594600.884181666918-6.8841816669177
2595592.110244289822.88975571017992
3591581.1428225684479.85717743155344
4589574.56236953562214.4376304643775
5584563.59494781424920.405052185751
6573552.62752609287620.3724739071245
7567541.66010437150225.3398956284979
8569543.85358871577725.1464112842233
9621622.819025109666-1.81902510966577
10629640.366899863863-11.3668998638633
11628640.366899863863-12.3668998638633
12612618.432056421116-6.43205642111638
13595596.49721297837-1.49721297836942
14597585.52979125699611.4702087430040
15593570.17540084707322.8245991529269
16590565.78843215852424.2115678414763
17580552.62752609287627.3724739071245
18574546.04707306005127.9529269399486
19573539.46662002722733.5333799727726
20573541.66010437150231.3398956284979
21620611.8516033882928.1483966117077
22626625.012509453940.987490546059543
23620622.819025109666-2.81902510966577
24588589.916759945545-1.91675994554534
25566565.7884321585240.211567841476303
26557550.4340417486016.56595825139917
27561552.6275260928768.37247390712447
28549539.4666200272279.53337997277264
29532526.3057139615795.69428603842081
30526519.7252609287556.2747390712449
31511504.3708705188326.62912948116776
32499499.983901830283-0.98390183028285
33555567.981916502798-12.9819165027984
34565581.142822568447-16.1428225684466
35542567.981916502798-25.9819165027984
36527548.240557404326-21.2405574043261
37510528.499198305854-18.4991983058539
38514526.305713961579-12.3057139615792
39517526.305713961579-9.30571396157919
40508517.53177658448-9.5317765844804
41493504.370870518832-11.3708705188322
42490499.983901830283-9.98390183028285
43469480.24254273181-11.2425427318106
44478486.822995764635-8.82299576463468
45528550.434041748601-22.4340417486008
46534559.2079791257-25.2079791256996
47518552.627526092876-34.6275260928755
48506535.079651338678-29.079651338678
49502526.305713961579-24.3057139615792
50516530.692682650129-14.6926826501286
51528535.079651338678-7.07965133867797
52533535.079651338678-2.07965133867797
53536532.8861669944033.11383300559673
54537530.6926826501296.30731734987142
55524513.14480789593110.8551921040690
56536521.9187452730314.0812547269702
57587583.3363069127213.66369308727874
58597596.497212978370.502787021630576
59581592.11024428982-11.1102442898200
60564567.981916502798-3.98191650279839







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.001508164975137300.003016329950274600.998491835024863
60.003537975808300730.007075951616601450.9964620241917
70.001360142443866160.002720284887732330.998639857556134
80.0003299248738867480.0006598497477734960.999670075126113
90.0006040936402443190.001208187280488640.999395906359756
100.0001737976362516720.0003475952725033430.999826202363748
114.20460973741466e-058.40921947482933e-050.999957953902626
121.03873661505277e-052.07747323010555e-050.99998961263385
135.38679202537246e-061.07735840507449e-050.999994613207975
141.89827393233831e-063.79654786467663e-060.999998101726068
154.22451908174427e-068.44903816348855e-060.999995775480918
165.4025931050441e-061.08051862100882e-050.999994597406895
174.0188041111402e-068.0376082222804e-060.99999598119589
182.59973881449693e-065.19947762899386e-060.999997400261186
194.20728308965899e-068.41456617931797e-060.99999579271691
207.3606063258039e-061.47212126516078e-050.999992639393674
212.14644127143787e-054.29288254287574e-050.999978535587286
222.14307786120394e-054.28615572240789e-050.999978569221388
239.01847660517522e-061.80369532103504e-050.999990981523395
242.22718507655450e-054.45437015310900e-050.999977728149234
250.0003541567888327830.0007083135776655660.999645843211167
260.001739435898795510.003478871797591020.998260564101205
270.003661972349272030.007323944698544060.996338027650728
280.009983898812709640.01996779762541930.99001610118729
290.03787770105633750.0757554021126750.962122298943662
300.08473176550143760.1694635310028750.915268234498562
310.1587889452626870.3175778905253750.841211054737313
320.2721863886638400.5443727773276790.72781361133616
330.328652936195860.657305872391720.67134706380414
340.3755915169522350.751183033904470.624408483047765
350.5901070579778640.8197858840442720.409892942022136
360.7054182541560910.5891634916878190.294581745843909
370.7685651620191420.4628696759617170.231434837980858
380.7606108424085520.4787783151828960.239389157591448
390.7284667877810280.5430664244379430.271533212218972
400.6913540274968770.6172919450062460.308645972503123
410.6566460937652860.6867078124694280.343353906234714
420.6058050745358180.7883898509283640.394194925464182
430.5558466509886520.8883066980226950.444153349011348
440.4870191286590220.9740382573180450.512980871340978
450.505459158983870.989081682032260.49454084101613
460.5582581500345540.8834836999308920.441741849965446
470.7940632569271840.4118734861456320.205936743072816
480.9227029302838940.1545941394322120.0772970697161058
490.9847941938441740.03041161231165130.0152058061558256
500.995775080708730.008449838582538420.00422491929126921
510.997079504548760.005840990902478950.00292049545123947
520.9960510804557240.007897839088551750.00394891954427587
530.9897107504973690.02057849900526270.0102892495026313
540.9688447357289330.0623105285421330.0311552642710665
550.9135826795783950.172834640843210.086417320421605

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.00150816497513730 & 0.00301632995027460 & 0.998491835024863 \tabularnewline
6 & 0.00353797580830073 & 0.00707595161660145 & 0.9964620241917 \tabularnewline
7 & 0.00136014244386616 & 0.00272028488773233 & 0.998639857556134 \tabularnewline
8 & 0.000329924873886748 & 0.000659849747773496 & 0.999670075126113 \tabularnewline
9 & 0.000604093640244319 & 0.00120818728048864 & 0.999395906359756 \tabularnewline
10 & 0.000173797636251672 & 0.000347595272503343 & 0.999826202363748 \tabularnewline
11 & 4.20460973741466e-05 & 8.40921947482933e-05 & 0.999957953902626 \tabularnewline
12 & 1.03873661505277e-05 & 2.07747323010555e-05 & 0.99998961263385 \tabularnewline
13 & 5.38679202537246e-06 & 1.07735840507449e-05 & 0.999994613207975 \tabularnewline
14 & 1.89827393233831e-06 & 3.79654786467663e-06 & 0.999998101726068 \tabularnewline
15 & 4.22451908174427e-06 & 8.44903816348855e-06 & 0.999995775480918 \tabularnewline
16 & 5.4025931050441e-06 & 1.08051862100882e-05 & 0.999994597406895 \tabularnewline
17 & 4.0188041111402e-06 & 8.0376082222804e-06 & 0.99999598119589 \tabularnewline
18 & 2.59973881449693e-06 & 5.19947762899386e-06 & 0.999997400261186 \tabularnewline
19 & 4.20728308965899e-06 & 8.41456617931797e-06 & 0.99999579271691 \tabularnewline
20 & 7.3606063258039e-06 & 1.47212126516078e-05 & 0.999992639393674 \tabularnewline
21 & 2.14644127143787e-05 & 4.29288254287574e-05 & 0.999978535587286 \tabularnewline
22 & 2.14307786120394e-05 & 4.28615572240789e-05 & 0.999978569221388 \tabularnewline
23 & 9.01847660517522e-06 & 1.80369532103504e-05 & 0.999990981523395 \tabularnewline
24 & 2.22718507655450e-05 & 4.45437015310900e-05 & 0.999977728149234 \tabularnewline
25 & 0.000354156788832783 & 0.000708313577665566 & 0.999645843211167 \tabularnewline
26 & 0.00173943589879551 & 0.00347887179759102 & 0.998260564101205 \tabularnewline
27 & 0.00366197234927203 & 0.00732394469854406 & 0.996338027650728 \tabularnewline
28 & 0.00998389881270964 & 0.0199677976254193 & 0.99001610118729 \tabularnewline
29 & 0.0378777010563375 & 0.075755402112675 & 0.962122298943662 \tabularnewline
30 & 0.0847317655014376 & 0.169463531002875 & 0.915268234498562 \tabularnewline
31 & 0.158788945262687 & 0.317577890525375 & 0.841211054737313 \tabularnewline
32 & 0.272186388663840 & 0.544372777327679 & 0.72781361133616 \tabularnewline
33 & 0.32865293619586 & 0.65730587239172 & 0.67134706380414 \tabularnewline
34 & 0.375591516952235 & 0.75118303390447 & 0.624408483047765 \tabularnewline
35 & 0.590107057977864 & 0.819785884044272 & 0.409892942022136 \tabularnewline
36 & 0.705418254156091 & 0.589163491687819 & 0.294581745843909 \tabularnewline
37 & 0.768565162019142 & 0.462869675961717 & 0.231434837980858 \tabularnewline
38 & 0.760610842408552 & 0.478778315182896 & 0.239389157591448 \tabularnewline
39 & 0.728466787781028 & 0.543066424437943 & 0.271533212218972 \tabularnewline
40 & 0.691354027496877 & 0.617291945006246 & 0.308645972503123 \tabularnewline
41 & 0.656646093765286 & 0.686707812469428 & 0.343353906234714 \tabularnewline
42 & 0.605805074535818 & 0.788389850928364 & 0.394194925464182 \tabularnewline
43 & 0.555846650988652 & 0.888306698022695 & 0.444153349011348 \tabularnewline
44 & 0.487019128659022 & 0.974038257318045 & 0.512980871340978 \tabularnewline
45 & 0.50545915898387 & 0.98908168203226 & 0.49454084101613 \tabularnewline
46 & 0.558258150034554 & 0.883483699930892 & 0.441741849965446 \tabularnewline
47 & 0.794063256927184 & 0.411873486145632 & 0.205936743072816 \tabularnewline
48 & 0.922702930283894 & 0.154594139432212 & 0.0772970697161058 \tabularnewline
49 & 0.984794193844174 & 0.0304116123116513 & 0.0152058061558256 \tabularnewline
50 & 0.99577508070873 & 0.00844983858253842 & 0.00422491929126921 \tabularnewline
51 & 0.99707950454876 & 0.00584099090247895 & 0.00292049545123947 \tabularnewline
52 & 0.996051080455724 & 0.00789783908855175 & 0.00394891954427587 \tabularnewline
53 & 0.989710750497369 & 0.0205784990052627 & 0.0102892495026313 \tabularnewline
54 & 0.968844735728933 & 0.062310528542133 & 0.0311552642710665 \tabularnewline
55 & 0.913582679578395 & 0.17283464084321 & 0.086417320421605 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58386&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]5[/C][C]0.00150816497513730[/C][C]0.00301632995027460[/C][C]0.998491835024863[/C][/ROW]
[ROW][C]6[/C][C]0.00353797580830073[/C][C]0.00707595161660145[/C][C]0.9964620241917[/C][/ROW]
[ROW][C]7[/C][C]0.00136014244386616[/C][C]0.00272028488773233[/C][C]0.998639857556134[/C][/ROW]
[ROW][C]8[/C][C]0.000329924873886748[/C][C]0.000659849747773496[/C][C]0.999670075126113[/C][/ROW]
[ROW][C]9[/C][C]0.000604093640244319[/C][C]0.00120818728048864[/C][C]0.999395906359756[/C][/ROW]
[ROW][C]10[/C][C]0.000173797636251672[/C][C]0.000347595272503343[/C][C]0.999826202363748[/C][/ROW]
[ROW][C]11[/C][C]4.20460973741466e-05[/C][C]8.40921947482933e-05[/C][C]0.999957953902626[/C][/ROW]
[ROW][C]12[/C][C]1.03873661505277e-05[/C][C]2.07747323010555e-05[/C][C]0.99998961263385[/C][/ROW]
[ROW][C]13[/C][C]5.38679202537246e-06[/C][C]1.07735840507449e-05[/C][C]0.999994613207975[/C][/ROW]
[ROW][C]14[/C][C]1.89827393233831e-06[/C][C]3.79654786467663e-06[/C][C]0.999998101726068[/C][/ROW]
[ROW][C]15[/C][C]4.22451908174427e-06[/C][C]8.44903816348855e-06[/C][C]0.999995775480918[/C][/ROW]
[ROW][C]16[/C][C]5.4025931050441e-06[/C][C]1.08051862100882e-05[/C][C]0.999994597406895[/C][/ROW]
[ROW][C]17[/C][C]4.0188041111402e-06[/C][C]8.0376082222804e-06[/C][C]0.99999598119589[/C][/ROW]
[ROW][C]18[/C][C]2.59973881449693e-06[/C][C]5.19947762899386e-06[/C][C]0.999997400261186[/C][/ROW]
[ROW][C]19[/C][C]4.20728308965899e-06[/C][C]8.41456617931797e-06[/C][C]0.99999579271691[/C][/ROW]
[ROW][C]20[/C][C]7.3606063258039e-06[/C][C]1.47212126516078e-05[/C][C]0.999992639393674[/C][/ROW]
[ROW][C]21[/C][C]2.14644127143787e-05[/C][C]4.29288254287574e-05[/C][C]0.999978535587286[/C][/ROW]
[ROW][C]22[/C][C]2.14307786120394e-05[/C][C]4.28615572240789e-05[/C][C]0.999978569221388[/C][/ROW]
[ROW][C]23[/C][C]9.01847660517522e-06[/C][C]1.80369532103504e-05[/C][C]0.999990981523395[/C][/ROW]
[ROW][C]24[/C][C]2.22718507655450e-05[/C][C]4.45437015310900e-05[/C][C]0.999977728149234[/C][/ROW]
[ROW][C]25[/C][C]0.000354156788832783[/C][C]0.000708313577665566[/C][C]0.999645843211167[/C][/ROW]
[ROW][C]26[/C][C]0.00173943589879551[/C][C]0.00347887179759102[/C][C]0.998260564101205[/C][/ROW]
[ROW][C]27[/C][C]0.00366197234927203[/C][C]0.00732394469854406[/C][C]0.996338027650728[/C][/ROW]
[ROW][C]28[/C][C]0.00998389881270964[/C][C]0.0199677976254193[/C][C]0.99001610118729[/C][/ROW]
[ROW][C]29[/C][C]0.0378777010563375[/C][C]0.075755402112675[/C][C]0.962122298943662[/C][/ROW]
[ROW][C]30[/C][C]0.0847317655014376[/C][C]0.169463531002875[/C][C]0.915268234498562[/C][/ROW]
[ROW][C]31[/C][C]0.158788945262687[/C][C]0.317577890525375[/C][C]0.841211054737313[/C][/ROW]
[ROW][C]32[/C][C]0.272186388663840[/C][C]0.544372777327679[/C][C]0.72781361133616[/C][/ROW]
[ROW][C]33[/C][C]0.32865293619586[/C][C]0.65730587239172[/C][C]0.67134706380414[/C][/ROW]
[ROW][C]34[/C][C]0.375591516952235[/C][C]0.75118303390447[/C][C]0.624408483047765[/C][/ROW]
[ROW][C]35[/C][C]0.590107057977864[/C][C]0.819785884044272[/C][C]0.409892942022136[/C][/ROW]
[ROW][C]36[/C][C]0.705418254156091[/C][C]0.589163491687819[/C][C]0.294581745843909[/C][/ROW]
[ROW][C]37[/C][C]0.768565162019142[/C][C]0.462869675961717[/C][C]0.231434837980858[/C][/ROW]
[ROW][C]38[/C][C]0.760610842408552[/C][C]0.478778315182896[/C][C]0.239389157591448[/C][/ROW]
[ROW][C]39[/C][C]0.728466787781028[/C][C]0.543066424437943[/C][C]0.271533212218972[/C][/ROW]
[ROW][C]40[/C][C]0.691354027496877[/C][C]0.617291945006246[/C][C]0.308645972503123[/C][/ROW]
[ROW][C]41[/C][C]0.656646093765286[/C][C]0.686707812469428[/C][C]0.343353906234714[/C][/ROW]
[ROW][C]42[/C][C]0.605805074535818[/C][C]0.788389850928364[/C][C]0.394194925464182[/C][/ROW]
[ROW][C]43[/C][C]0.555846650988652[/C][C]0.888306698022695[/C][C]0.444153349011348[/C][/ROW]
[ROW][C]44[/C][C]0.487019128659022[/C][C]0.974038257318045[/C][C]0.512980871340978[/C][/ROW]
[ROW][C]45[/C][C]0.50545915898387[/C][C]0.98908168203226[/C][C]0.49454084101613[/C][/ROW]
[ROW][C]46[/C][C]0.558258150034554[/C][C]0.883483699930892[/C][C]0.441741849965446[/C][/ROW]
[ROW][C]47[/C][C]0.794063256927184[/C][C]0.411873486145632[/C][C]0.205936743072816[/C][/ROW]
[ROW][C]48[/C][C]0.922702930283894[/C][C]0.154594139432212[/C][C]0.0772970697161058[/C][/ROW]
[ROW][C]49[/C][C]0.984794193844174[/C][C]0.0304116123116513[/C][C]0.0152058061558256[/C][/ROW]
[ROW][C]50[/C][C]0.99577508070873[/C][C]0.00844983858253842[/C][C]0.00422491929126921[/C][/ROW]
[ROW][C]51[/C][C]0.99707950454876[/C][C]0.00584099090247895[/C][C]0.00292049545123947[/C][/ROW]
[ROW][C]52[/C][C]0.996051080455724[/C][C]0.00789783908855175[/C][C]0.00394891954427587[/C][/ROW]
[ROW][C]53[/C][C]0.989710750497369[/C][C]0.0205784990052627[/C][C]0.0102892495026313[/C][/ROW]
[ROW][C]54[/C][C]0.968844735728933[/C][C]0.062310528542133[/C][C]0.0311552642710665[/C][/ROW]
[ROW][C]55[/C][C]0.913582679578395[/C][C]0.17283464084321[/C][C]0.086417320421605[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58386&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.001508164975137300.003016329950274600.998491835024863
60.003537975808300730.007075951616601450.9964620241917
70.001360142443866160.002720284887732330.998639857556134
80.0003299248738867480.0006598497477734960.999670075126113
90.0006040936402443190.001208187280488640.999395906359756
100.0001737976362516720.0003475952725033430.999826202363748
114.20460973741466e-058.40921947482933e-050.999957953902626
121.03873661505277e-052.07747323010555e-050.99998961263385
135.38679202537246e-061.07735840507449e-050.999994613207975
141.89827393233831e-063.79654786467663e-060.999998101726068
154.22451908174427e-068.44903816348855e-060.999995775480918
165.4025931050441e-061.08051862100882e-050.999994597406895
174.0188041111402e-068.0376082222804e-060.99999598119589
182.59973881449693e-065.19947762899386e-060.999997400261186
194.20728308965899e-068.41456617931797e-060.99999579271691
207.3606063258039e-061.47212126516078e-050.999992639393674
212.14644127143787e-054.29288254287574e-050.999978535587286
222.14307786120394e-054.28615572240789e-050.999978569221388
239.01847660517522e-061.80369532103504e-050.999990981523395
242.22718507655450e-054.45437015310900e-050.999977728149234
250.0003541567888327830.0007083135776655660.999645843211167
260.001739435898795510.003478871797591020.998260564101205
270.003661972349272030.007323944698544060.996338027650728
280.009983898812709640.01996779762541930.99001610118729
290.03787770105633750.0757554021126750.962122298943662
300.08473176550143760.1694635310028750.915268234498562
310.1587889452626870.3175778905253750.841211054737313
320.2721863886638400.5443727773276790.72781361133616
330.328652936195860.657305872391720.67134706380414
340.3755915169522350.751183033904470.624408483047765
350.5901070579778640.8197858840442720.409892942022136
360.7054182541560910.5891634916878190.294581745843909
370.7685651620191420.4628696759617170.231434837980858
380.7606108424085520.4787783151828960.239389157591448
390.7284667877810280.5430664244379430.271533212218972
400.6913540274968770.6172919450062460.308645972503123
410.6566460937652860.6867078124694280.343353906234714
420.6058050745358180.7883898509283640.394194925464182
430.5558466509886520.8883066980226950.444153349011348
440.4870191286590220.9740382573180450.512980871340978
450.505459158983870.989081682032260.49454084101613
460.5582581500345540.8834836999308920.441741849965446
470.7940632569271840.4118734861456320.205936743072816
480.9227029302838940.1545941394322120.0772970697161058
490.9847941938441740.03041161231165130.0152058061558256
500.995775080708730.008449838582538420.00422491929126921
510.997079504548760.005840990902478950.00292049545123947
520.9960510804557240.007897839088551750.00394891954427587
530.9897107504973690.02057849900526270.0102892495026313
540.9688447357289330.0623105285421330.0311552642710665
550.9135826795783950.172834640843210.086417320421605







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level260.509803921568627NOK
5% type I error level290.568627450980392NOK
10% type I error level310.607843137254902NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58386&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 level260.509803921568627NOK
5% type I error level290.568627450980392NOK
10% type I error level310.607843137254902NOK



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