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 computationSat, 19 Dec 2009 12:37:22 -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/Dec/19/t1261251488dj6k7p2e5yq4p2n.htm/, Retrieved Sat, 04 May 2024 02:00:27 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69738, Retrieved Sat, 04 May 2024 02:00:27 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
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 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-12-19 19:37:22] [7cc673c2b3a8ab442a3ec6ca430f2445] [Current]
Feedback Forum

Post a new message
Dataseries X:
19915	23322
19843	22558
19761	19185
20858	17869
21968	21515
23061	17686
22661	18044
22269	20398
21857	22894
21568	22016
21274	25325
20987	27683
19683	17333
19381	20190
19071	22589
20772	14588
22485	14296
24181	12237
23479	7607
22782	9303
22067	9226
21489	9351
20903	21266
20330	21377
19736	22034
19483	22483
19242	15122
20334	18982
21423	19653
22523	16653
21986	23528
21462	24612
20908	24733
20575	21839
20237	22421
19904	26543
19610	27067
19251	31403
18941	25762
20450	29359
21946	34174
23409	20163
22741	25226
22069	25077
21539	29764
21189	21372
20960	34136
20704	29126
19697	17279
19598	16163
19456	8058
20316	17888
21083	7642
22158	7458
21469	4639
20892	10276
20578	3129
20233	20023
19947	3744
20049	7848




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69738&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69738&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
X[t] = + 20145.6162252401 + 0.0110672595094855Y[t] -654.33304955969M1[t] -884.086959418418M2[t] -1052.21172797263M3[t] + 181.947060369252M4[t] + 1420.05917374332M5[t] + 2756.55228399481M6[t] + 2146.62368262631M7[t] + 1550.71239652436M8[t] + 1045.53532037221M9[t] + 655.789011388502M10[t] + 281.983474062285M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
X[t] =  +  20145.6162252401 +  0.0110672595094855Y[t] -654.33304955969M1[t] -884.086959418418M2[t] -1052.21172797263M3[t] +  181.947060369252M4[t] +  1420.05917374332M5[t] +  2756.55228399481M6[t] +  2146.62368262631M7[t] +  1550.71239652436M8[t] +  1045.53532037221M9[t] +  655.789011388502M10[t] +  281.983474062285M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69738&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]X[t] =  +  20145.6162252401 +  0.0110672595094855Y[t] -654.33304955969M1[t] -884.086959418418M2[t] -1052.21172797263M3[t] +  181.947060369252M4[t] +  1420.05917374332M5[t] +  2756.55228399481M6[t] +  2146.62368262631M7[t] +  1550.71239652436M8[t] +  1045.53532037221M9[t] +  655.789011388502M10[t] +  281.983474062285M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69738&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69738&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
X[t] = + 20145.6162252401 + 0.0110672595094855Y[t] -654.33304955969M1[t] -884.086959418418M2[t] -1052.21172797263M3[t] + 181.947060369252M4[t] + 1420.05917374332M5[t] + 2756.55228399481M6[t] + 2146.62368262631M7[t] + 1550.71239652436M8[t] + 1045.53532037221M9[t] + 655.789011388502M10[t] + 281.983474062285M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)20145.6162252401328.23573761.375500
Y0.01106725950948550.009871.12130.2678520.133926
M1-654.33304955969341.802632-1.91440.0616730.030837
M2-884.086959418418341.627792-2.58790.0128080.006404
M3-1052.21172797263344.342218-3.05570.0036950.001847
M4181.947060369252342.7262010.53090.5980010.299
M51420.05917374332342.9594144.14060.0001437.1e-05
M62756.55228399481349.9273687.877500
M72146.62368262631347.9812516.168800
M81550.71239652436344.6081044.49994.5e-052.2e-05
M91045.53532037221344.5874143.03420.0039220.001961
M10655.789011388502343.4654231.90930.0623350.031167
M11281.983474062285341.8117830.8250.4135580.206779

\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) & 20145.6162252401 & 328.235737 & 61.3755 & 0 & 0 \tabularnewline
Y & 0.0110672595094855 & 0.00987 & 1.1213 & 0.267852 & 0.133926 \tabularnewline
M1 & -654.33304955969 & 341.802632 & -1.9144 & 0.061673 & 0.030837 \tabularnewline
M2 & -884.086959418418 & 341.627792 & -2.5879 & 0.012808 & 0.006404 \tabularnewline
M3 & -1052.21172797263 & 344.342218 & -3.0557 & 0.003695 & 0.001847 \tabularnewline
M4 & 181.947060369252 & 342.726201 & 0.5309 & 0.598001 & 0.299 \tabularnewline
M5 & 1420.05917374332 & 342.959414 & 4.1406 & 0.000143 & 7.1e-05 \tabularnewline
M6 & 2756.55228399481 & 349.927368 & 7.8775 & 0 & 0 \tabularnewline
M7 & 2146.62368262631 & 347.981251 & 6.1688 & 0 & 0 \tabularnewline
M8 & 1550.71239652436 & 344.608104 & 4.4999 & 4.5e-05 & 2.2e-05 \tabularnewline
M9 & 1045.53532037221 & 344.587414 & 3.0342 & 0.003922 & 0.001961 \tabularnewline
M10 & 655.789011388502 & 343.465423 & 1.9093 & 0.062335 & 0.031167 \tabularnewline
M11 & 281.983474062285 & 341.811783 & 0.825 & 0.413558 & 0.206779 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69738&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]20145.6162252401[/C][C]328.235737[/C][C]61.3755[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y[/C][C]0.0110672595094855[/C][C]0.00987[/C][C]1.1213[/C][C]0.267852[/C][C]0.133926[/C][/ROW]
[ROW][C]M1[/C][C]-654.33304955969[/C][C]341.802632[/C][C]-1.9144[/C][C]0.061673[/C][C]0.030837[/C][/ROW]
[ROW][C]M2[/C][C]-884.086959418418[/C][C]341.627792[/C][C]-2.5879[/C][C]0.012808[/C][C]0.006404[/C][/ROW]
[ROW][C]M3[/C][C]-1052.21172797263[/C][C]344.342218[/C][C]-3.0557[/C][C]0.003695[/C][C]0.001847[/C][/ROW]
[ROW][C]M4[/C][C]181.947060369252[/C][C]342.726201[/C][C]0.5309[/C][C]0.598001[/C][C]0.299[/C][/ROW]
[ROW][C]M5[/C][C]1420.05917374332[/C][C]342.959414[/C][C]4.1406[/C][C]0.000143[/C][C]7.1e-05[/C][/ROW]
[ROW][C]M6[/C][C]2756.55228399481[/C][C]349.927368[/C][C]7.8775[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]2146.62368262631[/C][C]347.981251[/C][C]6.1688[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]1550.71239652436[/C][C]344.608104[/C][C]4.4999[/C][C]4.5e-05[/C][C]2.2e-05[/C][/ROW]
[ROW][C]M9[/C][C]1045.53532037221[/C][C]344.587414[/C][C]3.0342[/C][C]0.003922[/C][C]0.001961[/C][/ROW]
[ROW][C]M10[/C][C]655.789011388502[/C][C]343.465423[/C][C]1.9093[/C][C]0.062335[/C][C]0.031167[/C][/ROW]
[ROW][C]M11[/C][C]281.983474062285[/C][C]341.811783[/C][C]0.825[/C][C]0.413558[/C][C]0.206779[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69738&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69738&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)20145.6162252401328.23573761.375500
Y0.01106725950948550.009871.12130.2678520.133926
M1-654.33304955969341.802632-1.91440.0616730.030837
M2-884.086959418418341.627792-2.58790.0128080.006404
M3-1052.21172797263344.342218-3.05570.0036950.001847
M4181.947060369252342.7262010.53090.5980010.299
M51420.05917374332342.9594144.14060.0001437.1e-05
M62756.55228399481349.9273687.877500
M72146.62368262631347.9812516.168800
M81550.71239652436344.6081044.49994.5e-052.2e-05
M91045.53532037221344.5874143.03420.0039220.001961
M10655.789011388502343.4654231.90930.0623350.031167
M11281.983474062285341.8117830.8250.4135580.206779







Multiple Linear Regression - Regression Statistics
Multiple R0.921689186463312
R-squared0.849510956443402
Adjusted R-squared0.811088221918313
F-TEST (value)22.1095912860835
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value2.33146835171283e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation540.160530461654
Sum Squared Residuals13713349.7374249

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.921689186463312 \tabularnewline
R-squared & 0.849510956443402 \tabularnewline
Adjusted R-squared & 0.811088221918313 \tabularnewline
F-TEST (value) & 22.1095912860835 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 2.33146835171283e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 540.160530461654 \tabularnewline
Sum Squared Residuals & 13713349.7374249 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69738&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.921689186463312[/C][/ROW]
[ROW][C]R-squared[/C][C]0.849510956443402[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.811088221918313[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]22.1095912860835[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]2.33146835171283e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]540.160530461654[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]13713349.7374249[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69738&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69738&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.921689186463312
R-squared0.849510956443402
Adjusted R-squared0.811088221918313
F-TEST (value)22.1095912860835
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value2.33146835171283e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation540.160530461654
Sum Squared Residuals13713349.7374249







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11991519749.3938019607165.606198039322
21984319511.1845058367331.815494163314
31976119305.729870957455.270129043018
42085820525.3241457844332.675854215621
52196821803.7874873300164.212512669968
62306123097.9040609197-36.9040609197011
72266122491.9375384556169.062461544398
82226921922.078581239346.921418761024
92185721444.5253848225412.474615177496
102156821045.0620219895522.937978010536
112127420707.8780463801566.121953619865
122098720451.9911702412535.008829758783
131968319683.1119847584-0.111984758352794
141938119484.9772353182-103.977235318225
151907119343.4028223273-272.402822327270
162077220489.0124673338282.987532666243
172248521723.8929409311761.107059068945
182418123037.59856385251143.40143614749
192347922376.42855095511102.57144904490
202278221799.2873369812982.71266301876
212206721293.2580818469773.741918153144
222148920904.8951803018584.104819698169
232090320662.9560400311240.043959968866
242033020382.2010317744-52.201031774402
251973619735.13917171240.860828287555886
261948319510.3544613735-27.3544613734757
271924219260.7635955699-18.7635955699425
282033420537.6420056184-203.642005618437
292142321783.1802501234-360.180250123368
302252323086.4715818464-563.471581846403
312198622552.6303896056-566.63038960562
322146221968.7160128120-506.716012811952
332090821464.8780750604-556.878075060447
342057521043.1031170563-468.103117056286
352023720675.7387247646-438.73872476459
361990420439.3744944004-535.374494400404
371961019790.8406888237-180.840688823685
381925119609.0744161981-358.074416198086
391894119378.5192367509-437.519236750868
402045020652.4869575484-202.486957548367
412194621943.88792546062.11207453939287
422340923125.3176627247283.682337275302
432274122571.4225962527169.577403747273
442206921973.862288483995.1377115161368
452153921520.557457652718.4425423473310
462118921037.9347068654151.065293134643
472096020805.3916699182154.608330081788
482070420467.9612257134236.038774286595
491969719682.514352744814.4856472551593
501959819440.4093812735157.590618726473
511945619182.5844743949273.415525605063
522031620525.5344237151-209.534423715059
532108321650.2513961549-567.251396154938
542215822984.7081306567-826.708130656684
552146922343.5809247309-874.58092473095
562089221810.0557804840-918.055780483969
572057821225.7810006175-647.781000617523
582023321023.0049737871-790.00497378706
591994720469.0355189059-522.03551890593
602004920232.4720778706-183.472077870573

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 19915 & 19749.3938019607 & 165.606198039322 \tabularnewline
2 & 19843 & 19511.1845058367 & 331.815494163314 \tabularnewline
3 & 19761 & 19305.729870957 & 455.270129043018 \tabularnewline
4 & 20858 & 20525.3241457844 & 332.675854215621 \tabularnewline
5 & 21968 & 21803.7874873300 & 164.212512669968 \tabularnewline
6 & 23061 & 23097.9040609197 & -36.9040609197011 \tabularnewline
7 & 22661 & 22491.9375384556 & 169.062461544398 \tabularnewline
8 & 22269 & 21922.078581239 & 346.921418761024 \tabularnewline
9 & 21857 & 21444.5253848225 & 412.474615177496 \tabularnewline
10 & 21568 & 21045.0620219895 & 522.937978010536 \tabularnewline
11 & 21274 & 20707.8780463801 & 566.121953619865 \tabularnewline
12 & 20987 & 20451.9911702412 & 535.008829758783 \tabularnewline
13 & 19683 & 19683.1119847584 & -0.111984758352794 \tabularnewline
14 & 19381 & 19484.9772353182 & -103.977235318225 \tabularnewline
15 & 19071 & 19343.4028223273 & -272.402822327270 \tabularnewline
16 & 20772 & 20489.0124673338 & 282.987532666243 \tabularnewline
17 & 22485 & 21723.8929409311 & 761.107059068945 \tabularnewline
18 & 24181 & 23037.5985638525 & 1143.40143614749 \tabularnewline
19 & 23479 & 22376.4285509551 & 1102.57144904490 \tabularnewline
20 & 22782 & 21799.2873369812 & 982.71266301876 \tabularnewline
21 & 22067 & 21293.2580818469 & 773.741918153144 \tabularnewline
22 & 21489 & 20904.8951803018 & 584.104819698169 \tabularnewline
23 & 20903 & 20662.9560400311 & 240.043959968866 \tabularnewline
24 & 20330 & 20382.2010317744 & -52.201031774402 \tabularnewline
25 & 19736 & 19735.1391717124 & 0.860828287555886 \tabularnewline
26 & 19483 & 19510.3544613735 & -27.3544613734757 \tabularnewline
27 & 19242 & 19260.7635955699 & -18.7635955699425 \tabularnewline
28 & 20334 & 20537.6420056184 & -203.642005618437 \tabularnewline
29 & 21423 & 21783.1802501234 & -360.180250123368 \tabularnewline
30 & 22523 & 23086.4715818464 & -563.471581846403 \tabularnewline
31 & 21986 & 22552.6303896056 & -566.63038960562 \tabularnewline
32 & 21462 & 21968.7160128120 & -506.716012811952 \tabularnewline
33 & 20908 & 21464.8780750604 & -556.878075060447 \tabularnewline
34 & 20575 & 21043.1031170563 & -468.103117056286 \tabularnewline
35 & 20237 & 20675.7387247646 & -438.73872476459 \tabularnewline
36 & 19904 & 20439.3744944004 & -535.374494400404 \tabularnewline
37 & 19610 & 19790.8406888237 & -180.840688823685 \tabularnewline
38 & 19251 & 19609.0744161981 & -358.074416198086 \tabularnewline
39 & 18941 & 19378.5192367509 & -437.519236750868 \tabularnewline
40 & 20450 & 20652.4869575484 & -202.486957548367 \tabularnewline
41 & 21946 & 21943.8879254606 & 2.11207453939287 \tabularnewline
42 & 23409 & 23125.3176627247 & 283.682337275302 \tabularnewline
43 & 22741 & 22571.4225962527 & 169.577403747273 \tabularnewline
44 & 22069 & 21973.8622884839 & 95.1377115161368 \tabularnewline
45 & 21539 & 21520.5574576527 & 18.4425423473310 \tabularnewline
46 & 21189 & 21037.9347068654 & 151.065293134643 \tabularnewline
47 & 20960 & 20805.3916699182 & 154.608330081788 \tabularnewline
48 & 20704 & 20467.9612257134 & 236.038774286595 \tabularnewline
49 & 19697 & 19682.5143527448 & 14.4856472551593 \tabularnewline
50 & 19598 & 19440.4093812735 & 157.590618726473 \tabularnewline
51 & 19456 & 19182.5844743949 & 273.415525605063 \tabularnewline
52 & 20316 & 20525.5344237151 & -209.534423715059 \tabularnewline
53 & 21083 & 21650.2513961549 & -567.251396154938 \tabularnewline
54 & 22158 & 22984.7081306567 & -826.708130656684 \tabularnewline
55 & 21469 & 22343.5809247309 & -874.58092473095 \tabularnewline
56 & 20892 & 21810.0557804840 & -918.055780483969 \tabularnewline
57 & 20578 & 21225.7810006175 & -647.781000617523 \tabularnewline
58 & 20233 & 21023.0049737871 & -790.00497378706 \tabularnewline
59 & 19947 & 20469.0355189059 & -522.03551890593 \tabularnewline
60 & 20049 & 20232.4720778706 & -183.472077870573 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69738&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]19915[/C][C]19749.3938019607[/C][C]165.606198039322[/C][/ROW]
[ROW][C]2[/C][C]19843[/C][C]19511.1845058367[/C][C]331.815494163314[/C][/ROW]
[ROW][C]3[/C][C]19761[/C][C]19305.729870957[/C][C]455.270129043018[/C][/ROW]
[ROW][C]4[/C][C]20858[/C][C]20525.3241457844[/C][C]332.675854215621[/C][/ROW]
[ROW][C]5[/C][C]21968[/C][C]21803.7874873300[/C][C]164.212512669968[/C][/ROW]
[ROW][C]6[/C][C]23061[/C][C]23097.9040609197[/C][C]-36.9040609197011[/C][/ROW]
[ROW][C]7[/C][C]22661[/C][C]22491.9375384556[/C][C]169.062461544398[/C][/ROW]
[ROW][C]8[/C][C]22269[/C][C]21922.078581239[/C][C]346.921418761024[/C][/ROW]
[ROW][C]9[/C][C]21857[/C][C]21444.5253848225[/C][C]412.474615177496[/C][/ROW]
[ROW][C]10[/C][C]21568[/C][C]21045.0620219895[/C][C]522.937978010536[/C][/ROW]
[ROW][C]11[/C][C]21274[/C][C]20707.8780463801[/C][C]566.121953619865[/C][/ROW]
[ROW][C]12[/C][C]20987[/C][C]20451.9911702412[/C][C]535.008829758783[/C][/ROW]
[ROW][C]13[/C][C]19683[/C][C]19683.1119847584[/C][C]-0.111984758352794[/C][/ROW]
[ROW][C]14[/C][C]19381[/C][C]19484.9772353182[/C][C]-103.977235318225[/C][/ROW]
[ROW][C]15[/C][C]19071[/C][C]19343.4028223273[/C][C]-272.402822327270[/C][/ROW]
[ROW][C]16[/C][C]20772[/C][C]20489.0124673338[/C][C]282.987532666243[/C][/ROW]
[ROW][C]17[/C][C]22485[/C][C]21723.8929409311[/C][C]761.107059068945[/C][/ROW]
[ROW][C]18[/C][C]24181[/C][C]23037.5985638525[/C][C]1143.40143614749[/C][/ROW]
[ROW][C]19[/C][C]23479[/C][C]22376.4285509551[/C][C]1102.57144904490[/C][/ROW]
[ROW][C]20[/C][C]22782[/C][C]21799.2873369812[/C][C]982.71266301876[/C][/ROW]
[ROW][C]21[/C][C]22067[/C][C]21293.2580818469[/C][C]773.741918153144[/C][/ROW]
[ROW][C]22[/C][C]21489[/C][C]20904.8951803018[/C][C]584.104819698169[/C][/ROW]
[ROW][C]23[/C][C]20903[/C][C]20662.9560400311[/C][C]240.043959968866[/C][/ROW]
[ROW][C]24[/C][C]20330[/C][C]20382.2010317744[/C][C]-52.201031774402[/C][/ROW]
[ROW][C]25[/C][C]19736[/C][C]19735.1391717124[/C][C]0.860828287555886[/C][/ROW]
[ROW][C]26[/C][C]19483[/C][C]19510.3544613735[/C][C]-27.3544613734757[/C][/ROW]
[ROW][C]27[/C][C]19242[/C][C]19260.7635955699[/C][C]-18.7635955699425[/C][/ROW]
[ROW][C]28[/C][C]20334[/C][C]20537.6420056184[/C][C]-203.642005618437[/C][/ROW]
[ROW][C]29[/C][C]21423[/C][C]21783.1802501234[/C][C]-360.180250123368[/C][/ROW]
[ROW][C]30[/C][C]22523[/C][C]23086.4715818464[/C][C]-563.471581846403[/C][/ROW]
[ROW][C]31[/C][C]21986[/C][C]22552.6303896056[/C][C]-566.63038960562[/C][/ROW]
[ROW][C]32[/C][C]21462[/C][C]21968.7160128120[/C][C]-506.716012811952[/C][/ROW]
[ROW][C]33[/C][C]20908[/C][C]21464.8780750604[/C][C]-556.878075060447[/C][/ROW]
[ROW][C]34[/C][C]20575[/C][C]21043.1031170563[/C][C]-468.103117056286[/C][/ROW]
[ROW][C]35[/C][C]20237[/C][C]20675.7387247646[/C][C]-438.73872476459[/C][/ROW]
[ROW][C]36[/C][C]19904[/C][C]20439.3744944004[/C][C]-535.374494400404[/C][/ROW]
[ROW][C]37[/C][C]19610[/C][C]19790.8406888237[/C][C]-180.840688823685[/C][/ROW]
[ROW][C]38[/C][C]19251[/C][C]19609.0744161981[/C][C]-358.074416198086[/C][/ROW]
[ROW][C]39[/C][C]18941[/C][C]19378.5192367509[/C][C]-437.519236750868[/C][/ROW]
[ROW][C]40[/C][C]20450[/C][C]20652.4869575484[/C][C]-202.486957548367[/C][/ROW]
[ROW][C]41[/C][C]21946[/C][C]21943.8879254606[/C][C]2.11207453939287[/C][/ROW]
[ROW][C]42[/C][C]23409[/C][C]23125.3176627247[/C][C]283.682337275302[/C][/ROW]
[ROW][C]43[/C][C]22741[/C][C]22571.4225962527[/C][C]169.577403747273[/C][/ROW]
[ROW][C]44[/C][C]22069[/C][C]21973.8622884839[/C][C]95.1377115161368[/C][/ROW]
[ROW][C]45[/C][C]21539[/C][C]21520.5574576527[/C][C]18.4425423473310[/C][/ROW]
[ROW][C]46[/C][C]21189[/C][C]21037.9347068654[/C][C]151.065293134643[/C][/ROW]
[ROW][C]47[/C][C]20960[/C][C]20805.3916699182[/C][C]154.608330081788[/C][/ROW]
[ROW][C]48[/C][C]20704[/C][C]20467.9612257134[/C][C]236.038774286595[/C][/ROW]
[ROW][C]49[/C][C]19697[/C][C]19682.5143527448[/C][C]14.4856472551593[/C][/ROW]
[ROW][C]50[/C][C]19598[/C][C]19440.4093812735[/C][C]157.590618726473[/C][/ROW]
[ROW][C]51[/C][C]19456[/C][C]19182.5844743949[/C][C]273.415525605063[/C][/ROW]
[ROW][C]52[/C][C]20316[/C][C]20525.5344237151[/C][C]-209.534423715059[/C][/ROW]
[ROW][C]53[/C][C]21083[/C][C]21650.2513961549[/C][C]-567.251396154938[/C][/ROW]
[ROW][C]54[/C][C]22158[/C][C]22984.7081306567[/C][C]-826.708130656684[/C][/ROW]
[ROW][C]55[/C][C]21469[/C][C]22343.5809247309[/C][C]-874.58092473095[/C][/ROW]
[ROW][C]56[/C][C]20892[/C][C]21810.0557804840[/C][C]-918.055780483969[/C][/ROW]
[ROW][C]57[/C][C]20578[/C][C]21225.7810006175[/C][C]-647.781000617523[/C][/ROW]
[ROW][C]58[/C][C]20233[/C][C]21023.0049737871[/C][C]-790.00497378706[/C][/ROW]
[ROW][C]59[/C][C]19947[/C][C]20469.0355189059[/C][C]-522.03551890593[/C][/ROW]
[ROW][C]60[/C][C]20049[/C][C]20232.4720778706[/C][C]-183.472077870573[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69738&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69738&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
11991519749.3938019607165.606198039322
21984319511.1845058367331.815494163314
31976119305.729870957455.270129043018
42085820525.3241457844332.675854215621
52196821803.7874873300164.212512669968
62306123097.9040609197-36.9040609197011
72266122491.9375384556169.062461544398
82226921922.078581239346.921418761024
92185721444.5253848225412.474615177496
102156821045.0620219895522.937978010536
112127420707.8780463801566.121953619865
122098720451.9911702412535.008829758783
131968319683.1119847584-0.111984758352794
141938119484.9772353182-103.977235318225
151907119343.4028223273-272.402822327270
162077220489.0124673338282.987532666243
172248521723.8929409311761.107059068945
182418123037.59856385251143.40143614749
192347922376.42855095511102.57144904490
202278221799.2873369812982.71266301876
212206721293.2580818469773.741918153144
222148920904.8951803018584.104819698169
232090320662.9560400311240.043959968866
242033020382.2010317744-52.201031774402
251973619735.13917171240.860828287555886
261948319510.3544613735-27.3544613734757
271924219260.7635955699-18.7635955699425
282033420537.6420056184-203.642005618437
292142321783.1802501234-360.180250123368
302252323086.4715818464-563.471581846403
312198622552.6303896056-566.63038960562
322146221968.7160128120-506.716012811952
332090821464.8780750604-556.878075060447
342057521043.1031170563-468.103117056286
352023720675.7387247646-438.73872476459
361990420439.3744944004-535.374494400404
371961019790.8406888237-180.840688823685
381925119609.0744161981-358.074416198086
391894119378.5192367509-437.519236750868
402045020652.4869575484-202.486957548367
412194621943.88792546062.11207453939287
422340923125.3176627247283.682337275302
432274122571.4225962527169.577403747273
442206921973.862288483995.1377115161368
452153921520.557457652718.4425423473310
462118921037.9347068654151.065293134643
472096020805.3916699182154.608330081788
482070420467.9612257134236.038774286595
491969719682.514352744814.4856472551593
501959819440.4093812735157.590618726473
511945619182.5844743949273.415525605063
522031620525.5344237151-209.534423715059
532108321650.2513961549-567.251396154938
542215822984.7081306567-826.708130656684
552146922343.5809247309-874.58092473095
562089221810.0557804840-918.055780483969
572057821225.7810006175-647.781000617523
582023321023.0049737871-790.00497378706
591994720469.0355189059-522.03551890593
602004920232.4720778706-183.472077870573







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2035156122126080.4070312244252160.796484387787392
170.1435909162434890.2871818324869780.856409083756511
180.2607014054634850.5214028109269690.739298594536515
190.2386415709109380.4772831418218750.761358429089062
200.2653747876820640.5307495753641270.734625212317936
210.3801427952049990.7602855904099990.619857204795
220.5499907011282920.9000185977434160.450009298871708
230.5566656170106020.8866687659787970.443334382989398
240.6293980303956640.7412039392086720.370601969604336
250.5283120250920330.9433759498159340.471687974907967
260.4300323482746560.8600646965493120.569967651725344
270.3621290126005750.724258025201150.637870987399425
280.3172368079779030.6344736159558050.682763192022097
290.3646192901989360.7292385803978710.635380709801064
300.5140211874230340.9719576251539320.485978812576966
310.5256173314132610.9487653371734790.474382668586739
320.4973833235630880.9947666471261760.502616676436912
330.4813087332515520.9626174665031040.518691266748448
340.4356921997898210.8713843995796420.564307800210179
350.4514116254756920.9028232509513840.548588374524308
360.5002740598553350.999451880289330.499725940144665
370.4248394607845450.849678921569090.575160539215455
380.4599943733542760.9199887467085520.540005626645724
390.687304010886640.6253919782267210.312695989113361
400.6232463774652440.7535072450695130.376753622534756
410.5645660509722840.8708678980554320.435433949027716
420.593239370854810.813521258290380.40676062914519
430.5210549032716310.9578901934567390.478945096728369
440.5247151870028240.9505696259943520.475284812997176

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.203515612212608 & 0.407031224425216 & 0.796484387787392 \tabularnewline
17 & 0.143590916243489 & 0.287181832486978 & 0.856409083756511 \tabularnewline
18 & 0.260701405463485 & 0.521402810926969 & 0.739298594536515 \tabularnewline
19 & 0.238641570910938 & 0.477283141821875 & 0.761358429089062 \tabularnewline
20 & 0.265374787682064 & 0.530749575364127 & 0.734625212317936 \tabularnewline
21 & 0.380142795204999 & 0.760285590409999 & 0.619857204795 \tabularnewline
22 & 0.549990701128292 & 0.900018597743416 & 0.450009298871708 \tabularnewline
23 & 0.556665617010602 & 0.886668765978797 & 0.443334382989398 \tabularnewline
24 & 0.629398030395664 & 0.741203939208672 & 0.370601969604336 \tabularnewline
25 & 0.528312025092033 & 0.943375949815934 & 0.471687974907967 \tabularnewline
26 & 0.430032348274656 & 0.860064696549312 & 0.569967651725344 \tabularnewline
27 & 0.362129012600575 & 0.72425802520115 & 0.637870987399425 \tabularnewline
28 & 0.317236807977903 & 0.634473615955805 & 0.682763192022097 \tabularnewline
29 & 0.364619290198936 & 0.729238580397871 & 0.635380709801064 \tabularnewline
30 & 0.514021187423034 & 0.971957625153932 & 0.485978812576966 \tabularnewline
31 & 0.525617331413261 & 0.948765337173479 & 0.474382668586739 \tabularnewline
32 & 0.497383323563088 & 0.994766647126176 & 0.502616676436912 \tabularnewline
33 & 0.481308733251552 & 0.962617466503104 & 0.518691266748448 \tabularnewline
34 & 0.435692199789821 & 0.871384399579642 & 0.564307800210179 \tabularnewline
35 & 0.451411625475692 & 0.902823250951384 & 0.548588374524308 \tabularnewline
36 & 0.500274059855335 & 0.99945188028933 & 0.499725940144665 \tabularnewline
37 & 0.424839460784545 & 0.84967892156909 & 0.575160539215455 \tabularnewline
38 & 0.459994373354276 & 0.919988746708552 & 0.540005626645724 \tabularnewline
39 & 0.68730401088664 & 0.625391978226721 & 0.312695989113361 \tabularnewline
40 & 0.623246377465244 & 0.753507245069513 & 0.376753622534756 \tabularnewline
41 & 0.564566050972284 & 0.870867898055432 & 0.435433949027716 \tabularnewline
42 & 0.59323937085481 & 0.81352125829038 & 0.40676062914519 \tabularnewline
43 & 0.521054903271631 & 0.957890193456739 & 0.478945096728369 \tabularnewline
44 & 0.524715187002824 & 0.950569625994352 & 0.475284812997176 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69738&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]16[/C][C]0.203515612212608[/C][C]0.407031224425216[/C][C]0.796484387787392[/C][/ROW]
[ROW][C]17[/C][C]0.143590916243489[/C][C]0.287181832486978[/C][C]0.856409083756511[/C][/ROW]
[ROW][C]18[/C][C]0.260701405463485[/C][C]0.521402810926969[/C][C]0.739298594536515[/C][/ROW]
[ROW][C]19[/C][C]0.238641570910938[/C][C]0.477283141821875[/C][C]0.761358429089062[/C][/ROW]
[ROW][C]20[/C][C]0.265374787682064[/C][C]0.530749575364127[/C][C]0.734625212317936[/C][/ROW]
[ROW][C]21[/C][C]0.380142795204999[/C][C]0.760285590409999[/C][C]0.619857204795[/C][/ROW]
[ROW][C]22[/C][C]0.549990701128292[/C][C]0.900018597743416[/C][C]0.450009298871708[/C][/ROW]
[ROW][C]23[/C][C]0.556665617010602[/C][C]0.886668765978797[/C][C]0.443334382989398[/C][/ROW]
[ROW][C]24[/C][C]0.629398030395664[/C][C]0.741203939208672[/C][C]0.370601969604336[/C][/ROW]
[ROW][C]25[/C][C]0.528312025092033[/C][C]0.943375949815934[/C][C]0.471687974907967[/C][/ROW]
[ROW][C]26[/C][C]0.430032348274656[/C][C]0.860064696549312[/C][C]0.569967651725344[/C][/ROW]
[ROW][C]27[/C][C]0.362129012600575[/C][C]0.72425802520115[/C][C]0.637870987399425[/C][/ROW]
[ROW][C]28[/C][C]0.317236807977903[/C][C]0.634473615955805[/C][C]0.682763192022097[/C][/ROW]
[ROW][C]29[/C][C]0.364619290198936[/C][C]0.729238580397871[/C][C]0.635380709801064[/C][/ROW]
[ROW][C]30[/C][C]0.514021187423034[/C][C]0.971957625153932[/C][C]0.485978812576966[/C][/ROW]
[ROW][C]31[/C][C]0.525617331413261[/C][C]0.948765337173479[/C][C]0.474382668586739[/C][/ROW]
[ROW][C]32[/C][C]0.497383323563088[/C][C]0.994766647126176[/C][C]0.502616676436912[/C][/ROW]
[ROW][C]33[/C][C]0.481308733251552[/C][C]0.962617466503104[/C][C]0.518691266748448[/C][/ROW]
[ROW][C]34[/C][C]0.435692199789821[/C][C]0.871384399579642[/C][C]0.564307800210179[/C][/ROW]
[ROW][C]35[/C][C]0.451411625475692[/C][C]0.902823250951384[/C][C]0.548588374524308[/C][/ROW]
[ROW][C]36[/C][C]0.500274059855335[/C][C]0.99945188028933[/C][C]0.499725940144665[/C][/ROW]
[ROW][C]37[/C][C]0.424839460784545[/C][C]0.84967892156909[/C][C]0.575160539215455[/C][/ROW]
[ROW][C]38[/C][C]0.459994373354276[/C][C]0.919988746708552[/C][C]0.540005626645724[/C][/ROW]
[ROW][C]39[/C][C]0.68730401088664[/C][C]0.625391978226721[/C][C]0.312695989113361[/C][/ROW]
[ROW][C]40[/C][C]0.623246377465244[/C][C]0.753507245069513[/C][C]0.376753622534756[/C][/ROW]
[ROW][C]41[/C][C]0.564566050972284[/C][C]0.870867898055432[/C][C]0.435433949027716[/C][/ROW]
[ROW][C]42[/C][C]0.59323937085481[/C][C]0.81352125829038[/C][C]0.40676062914519[/C][/ROW]
[ROW][C]43[/C][C]0.521054903271631[/C][C]0.957890193456739[/C][C]0.478945096728369[/C][/ROW]
[ROW][C]44[/C][C]0.524715187002824[/C][C]0.950569625994352[/C][C]0.475284812997176[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69738&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69738&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
160.2035156122126080.4070312244252160.796484387787392
170.1435909162434890.2871818324869780.856409083756511
180.2607014054634850.5214028109269690.739298594536515
190.2386415709109380.4772831418218750.761358429089062
200.2653747876820640.5307495753641270.734625212317936
210.3801427952049990.7602855904099990.619857204795
220.5499907011282920.9000185977434160.450009298871708
230.5566656170106020.8866687659787970.443334382989398
240.6293980303956640.7412039392086720.370601969604336
250.5283120250920330.9433759498159340.471687974907967
260.4300323482746560.8600646965493120.569967651725344
270.3621290126005750.724258025201150.637870987399425
280.3172368079779030.6344736159558050.682763192022097
290.3646192901989360.7292385803978710.635380709801064
300.5140211874230340.9719576251539320.485978812576966
310.5256173314132610.9487653371734790.474382668586739
320.4973833235630880.9947666471261760.502616676436912
330.4813087332515520.9626174665031040.518691266748448
340.4356921997898210.8713843995796420.564307800210179
350.4514116254756920.9028232509513840.548588374524308
360.5002740598553350.999451880289330.499725940144665
370.4248394607845450.849678921569090.575160539215455
380.4599943733542760.9199887467085520.540005626645724
390.687304010886640.6253919782267210.312695989113361
400.6232463774652440.7535072450695130.376753622534756
410.5645660509722840.8708678980554320.435433949027716
420.593239370854810.813521258290380.40676062914519
430.5210549032716310.9578901934567390.478945096728369
440.5247151870028240.9505696259943520.475284812997176







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69738&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 level00OK
5% type I error level00OK
10% type I error level00OK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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')
}