Free Statistics

of Irreproducible Research!

Author's title

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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact125
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]
- R  D      [Multiple Regression] [] [2009-11-18 16:30:58] [d5837f25ec8937f9733a894c487f865c] [Current]
Feedback Forum

Post a new message
Dataseries X:
521	104.29
501	104.56
518	104.79
547	105.08
629	105.21
572	105.43
582	105.69
574	105.74
461	106.2
576	106.04
460	106.45
455	106.4
444	106.48
488	106.83
513	107.14
468	107.94
488	108.46
536	108.81
486	108.92
460	108.99
376	109.16
503	109.22
369	109.43
353	109.23
359	109.93
400	110.09
374	110.33
430	110.11
433	110.35
418	110.09
438	110.44
389	110.39
368	110.62
386	110.43
261	110.46
294	110.55
263	110.94
293	111.56
303	111.82
326	111.73
314	111.57
332	111.85
347	112.06
290	112.2
340	112.47
371	112.15
340	112.36
376	112.32
322	112.67
364	113.02
379	113.05
343	113.5
358	113.67
433	113.65
344	114
357	114.03
385	114.08
392	114.49
308	114.48
294	114.25




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57518&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
AvgBouw[t] = + 3066.15011706504 -24.1528003127978Gzhidx[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
AvgBouw[t] =  +  3066.15011706504 -24.1528003127978Gzhidx[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57518&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]AvgBouw[t] =  +  3066.15011706504 -24.1528003127978Gzhidx[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57518&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57518&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
AvgBouw[t] = + 3066.15011706504 -24.1528003127978Gzhidx[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3066.15011706504269.39730411.381500
Gzhidx-24.15280031279782.44887-9.862800

\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) & 3066.15011706504 & 269.397304 & 11.3815 & 0 & 0 \tabularnewline
Gzhidx & -24.1528003127978 & 2.44887 & -9.8628 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57518&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]3066.15011706504[/C][C]269.397304[/C][C]11.3815[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Gzhidx[/C][C]-24.1528003127978[/C][C]2.44887[/C][C]-9.8628[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57518&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57518&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)3066.15011706504269.39730411.381500
Gzhidx-24.15280031279782.44887-9.862800







Multiple Linear Regression - Regression Statistics
Multiple R0.791498856641332
R-squared0.626470440064537
Adjusted R-squared0.620030275238063
F-TEST (value)97.275528956854
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value5.17363929475323e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation55.4405727636788
Sum Squared Residuals178272.112285156

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.791498856641332 \tabularnewline
R-squared & 0.626470440064537 \tabularnewline
Adjusted R-squared & 0.620030275238063 \tabularnewline
F-TEST (value) & 97.275528956854 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 5.17363929475323e-14 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 55.4405727636788 \tabularnewline
Sum Squared Residuals & 178272.112285156 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57518&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.791498856641332[/C][/ROW]
[ROW][C]R-squared[/C][C]0.626470440064537[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.620030275238063[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]97.275528956854[/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]5.17363929475323e-14[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]55.4405727636788[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]178272.112285156[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57518&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57518&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.791498856641332
R-squared0.626470440064537
Adjusted R-squared0.620030275238063
F-TEST (value)97.275528956854
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value5.17363929475323e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation55.4405727636788
Sum Squared Residuals178272.112285156







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1521547.254572443359-26.2545724433594
2501540.733316358902-39.7333163589025
3518535.178172286959-17.1781722869590
4547528.17386019624818.8261398037522
5629525.033996155584103.966003844416
6572519.72038008676852.2796199132316
7582513.44065200544168.5593479945588
8574512.23301198980161.7669880101986
9461501.122723845914-40.1227238459142
10576504.98717189596271.0128281040382
11460495.084523767715-35.0845237677148
12455496.292163783355-41.2921637833546
13444494.359939758331-50.3599397583308
14488485.9064596488522.09354035114829
15513478.41909155188434.5809084481157
16468459.0968513016468.90314869835381
17488446.53739513899141.4626048610086
18536438.08391502951297.916084970488
19486435.42710699510450.5728930048957
20460433.73641097320926.2635890267914
21376429.630434920033-53.6304349200329
22503428.18126690126574.818733098735
23369423.109178835577-54.1091788355773
24353427.939738898137-74.9397388981369
25359411.032778679178-52.0327786791784
26400407.168330629131-7.16833062913084
27374401.371658554059-27.3716585540595
28430406.68527462287523.3147253771250
29433400.88860254780432.1113974521964
30418407.16833062913110.8316693708692
31438398.71485051965239.2851494803483
32389399.922490535292-10.9224905352916
33368394.367346463348-26.367346463348
34386398.956378522780-12.9563785227795
35261398.231794513396-137.231794513396
36294396.058042485244-102.058042485244
37263386.638450363253-123.638450363253
38293371.663714169318-78.6637141693181
39303365.383986087991-62.3839860879909
40326367.557738116142-41.5577381161425
41314371.422186166190-57.4221861661904
42332364.659402078607-32.659402078607
43347359.587314012919-12.5873140129192
44290356.205921969128-66.2059219691275
45340349.684665884672-9.68466588467223
46371357.41356198476713.5864380152326
47340352.34147391908-12.3414739190800
48376353.30758593159222.6924140684080
49322344.854105822113-22.8541058221126
50364336.40062571263427.5993742873665
51379335.67604170325043.3239582967504
52343324.80728156249118.1927184375095
53358320.70130550931537.2986944906852
54433321.184361515571111.815638484429
55344312.73088140609231.2691185939084
56357312.00629739670844.9937026032923
57385310.79865738106874.2013426189322
58392300.89600925282191.1039907471792
59308301.1375372559496.86246274405142
60294306.692681327892-12.6926813278922

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 521 & 547.254572443359 & -26.2545724433594 \tabularnewline
2 & 501 & 540.733316358902 & -39.7333163589025 \tabularnewline
3 & 518 & 535.178172286959 & -17.1781722869590 \tabularnewline
4 & 547 & 528.173860196248 & 18.8261398037522 \tabularnewline
5 & 629 & 525.033996155584 & 103.966003844416 \tabularnewline
6 & 572 & 519.720380086768 & 52.2796199132316 \tabularnewline
7 & 582 & 513.440652005441 & 68.5593479945588 \tabularnewline
8 & 574 & 512.233011989801 & 61.7669880101986 \tabularnewline
9 & 461 & 501.122723845914 & -40.1227238459142 \tabularnewline
10 & 576 & 504.987171895962 & 71.0128281040382 \tabularnewline
11 & 460 & 495.084523767715 & -35.0845237677148 \tabularnewline
12 & 455 & 496.292163783355 & -41.2921637833546 \tabularnewline
13 & 444 & 494.359939758331 & -50.3599397583308 \tabularnewline
14 & 488 & 485.906459648852 & 2.09354035114829 \tabularnewline
15 & 513 & 478.419091551884 & 34.5809084481157 \tabularnewline
16 & 468 & 459.096851301646 & 8.90314869835381 \tabularnewline
17 & 488 & 446.537395138991 & 41.4626048610086 \tabularnewline
18 & 536 & 438.083915029512 & 97.916084970488 \tabularnewline
19 & 486 & 435.427106995104 & 50.5728930048957 \tabularnewline
20 & 460 & 433.736410973209 & 26.2635890267914 \tabularnewline
21 & 376 & 429.630434920033 & -53.6304349200329 \tabularnewline
22 & 503 & 428.181266901265 & 74.818733098735 \tabularnewline
23 & 369 & 423.109178835577 & -54.1091788355773 \tabularnewline
24 & 353 & 427.939738898137 & -74.9397388981369 \tabularnewline
25 & 359 & 411.032778679178 & -52.0327786791784 \tabularnewline
26 & 400 & 407.168330629131 & -7.16833062913084 \tabularnewline
27 & 374 & 401.371658554059 & -27.3716585540595 \tabularnewline
28 & 430 & 406.685274622875 & 23.3147253771250 \tabularnewline
29 & 433 & 400.888602547804 & 32.1113974521964 \tabularnewline
30 & 418 & 407.168330629131 & 10.8316693708692 \tabularnewline
31 & 438 & 398.714850519652 & 39.2851494803483 \tabularnewline
32 & 389 & 399.922490535292 & -10.9224905352916 \tabularnewline
33 & 368 & 394.367346463348 & -26.367346463348 \tabularnewline
34 & 386 & 398.956378522780 & -12.9563785227795 \tabularnewline
35 & 261 & 398.231794513396 & -137.231794513396 \tabularnewline
36 & 294 & 396.058042485244 & -102.058042485244 \tabularnewline
37 & 263 & 386.638450363253 & -123.638450363253 \tabularnewline
38 & 293 & 371.663714169318 & -78.6637141693181 \tabularnewline
39 & 303 & 365.383986087991 & -62.3839860879909 \tabularnewline
40 & 326 & 367.557738116142 & -41.5577381161425 \tabularnewline
41 & 314 & 371.422186166190 & -57.4221861661904 \tabularnewline
42 & 332 & 364.659402078607 & -32.659402078607 \tabularnewline
43 & 347 & 359.587314012919 & -12.5873140129192 \tabularnewline
44 & 290 & 356.205921969128 & -66.2059219691275 \tabularnewline
45 & 340 & 349.684665884672 & -9.68466588467223 \tabularnewline
46 & 371 & 357.413561984767 & 13.5864380152326 \tabularnewline
47 & 340 & 352.34147391908 & -12.3414739190800 \tabularnewline
48 & 376 & 353.307585931592 & 22.6924140684080 \tabularnewline
49 & 322 & 344.854105822113 & -22.8541058221126 \tabularnewline
50 & 364 & 336.400625712634 & 27.5993742873665 \tabularnewline
51 & 379 & 335.676041703250 & 43.3239582967504 \tabularnewline
52 & 343 & 324.807281562491 & 18.1927184375095 \tabularnewline
53 & 358 & 320.701305509315 & 37.2986944906852 \tabularnewline
54 & 433 & 321.184361515571 & 111.815638484429 \tabularnewline
55 & 344 & 312.730881406092 & 31.2691185939084 \tabularnewline
56 & 357 & 312.006297396708 & 44.9937026032923 \tabularnewline
57 & 385 & 310.798657381068 & 74.2013426189322 \tabularnewline
58 & 392 & 300.896009252821 & 91.1039907471792 \tabularnewline
59 & 308 & 301.137537255949 & 6.86246274405142 \tabularnewline
60 & 294 & 306.692681327892 & -12.6926813278922 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57518&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]521[/C][C]547.254572443359[/C][C]-26.2545724433594[/C][/ROW]
[ROW][C]2[/C][C]501[/C][C]540.733316358902[/C][C]-39.7333163589025[/C][/ROW]
[ROW][C]3[/C][C]518[/C][C]535.178172286959[/C][C]-17.1781722869590[/C][/ROW]
[ROW][C]4[/C][C]547[/C][C]528.173860196248[/C][C]18.8261398037522[/C][/ROW]
[ROW][C]5[/C][C]629[/C][C]525.033996155584[/C][C]103.966003844416[/C][/ROW]
[ROW][C]6[/C][C]572[/C][C]519.720380086768[/C][C]52.2796199132316[/C][/ROW]
[ROW][C]7[/C][C]582[/C][C]513.440652005441[/C][C]68.5593479945588[/C][/ROW]
[ROW][C]8[/C][C]574[/C][C]512.233011989801[/C][C]61.7669880101986[/C][/ROW]
[ROW][C]9[/C][C]461[/C][C]501.122723845914[/C][C]-40.1227238459142[/C][/ROW]
[ROW][C]10[/C][C]576[/C][C]504.987171895962[/C][C]71.0128281040382[/C][/ROW]
[ROW][C]11[/C][C]460[/C][C]495.084523767715[/C][C]-35.0845237677148[/C][/ROW]
[ROW][C]12[/C][C]455[/C][C]496.292163783355[/C][C]-41.2921637833546[/C][/ROW]
[ROW][C]13[/C][C]444[/C][C]494.359939758331[/C][C]-50.3599397583308[/C][/ROW]
[ROW][C]14[/C][C]488[/C][C]485.906459648852[/C][C]2.09354035114829[/C][/ROW]
[ROW][C]15[/C][C]513[/C][C]478.419091551884[/C][C]34.5809084481157[/C][/ROW]
[ROW][C]16[/C][C]468[/C][C]459.096851301646[/C][C]8.90314869835381[/C][/ROW]
[ROW][C]17[/C][C]488[/C][C]446.537395138991[/C][C]41.4626048610086[/C][/ROW]
[ROW][C]18[/C][C]536[/C][C]438.083915029512[/C][C]97.916084970488[/C][/ROW]
[ROW][C]19[/C][C]486[/C][C]435.427106995104[/C][C]50.5728930048957[/C][/ROW]
[ROW][C]20[/C][C]460[/C][C]433.736410973209[/C][C]26.2635890267914[/C][/ROW]
[ROW][C]21[/C][C]376[/C][C]429.630434920033[/C][C]-53.6304349200329[/C][/ROW]
[ROW][C]22[/C][C]503[/C][C]428.181266901265[/C][C]74.818733098735[/C][/ROW]
[ROW][C]23[/C][C]369[/C][C]423.109178835577[/C][C]-54.1091788355773[/C][/ROW]
[ROW][C]24[/C][C]353[/C][C]427.939738898137[/C][C]-74.9397388981369[/C][/ROW]
[ROW][C]25[/C][C]359[/C][C]411.032778679178[/C][C]-52.0327786791784[/C][/ROW]
[ROW][C]26[/C][C]400[/C][C]407.168330629131[/C][C]-7.16833062913084[/C][/ROW]
[ROW][C]27[/C][C]374[/C][C]401.371658554059[/C][C]-27.3716585540595[/C][/ROW]
[ROW][C]28[/C][C]430[/C][C]406.685274622875[/C][C]23.3147253771250[/C][/ROW]
[ROW][C]29[/C][C]433[/C][C]400.888602547804[/C][C]32.1113974521964[/C][/ROW]
[ROW][C]30[/C][C]418[/C][C]407.168330629131[/C][C]10.8316693708692[/C][/ROW]
[ROW][C]31[/C][C]438[/C][C]398.714850519652[/C][C]39.2851494803483[/C][/ROW]
[ROW][C]32[/C][C]389[/C][C]399.922490535292[/C][C]-10.9224905352916[/C][/ROW]
[ROW][C]33[/C][C]368[/C][C]394.367346463348[/C][C]-26.367346463348[/C][/ROW]
[ROW][C]34[/C][C]386[/C][C]398.956378522780[/C][C]-12.9563785227795[/C][/ROW]
[ROW][C]35[/C][C]261[/C][C]398.231794513396[/C][C]-137.231794513396[/C][/ROW]
[ROW][C]36[/C][C]294[/C][C]396.058042485244[/C][C]-102.058042485244[/C][/ROW]
[ROW][C]37[/C][C]263[/C][C]386.638450363253[/C][C]-123.638450363253[/C][/ROW]
[ROW][C]38[/C][C]293[/C][C]371.663714169318[/C][C]-78.6637141693181[/C][/ROW]
[ROW][C]39[/C][C]303[/C][C]365.383986087991[/C][C]-62.3839860879909[/C][/ROW]
[ROW][C]40[/C][C]326[/C][C]367.557738116142[/C][C]-41.5577381161425[/C][/ROW]
[ROW][C]41[/C][C]314[/C][C]371.422186166190[/C][C]-57.4221861661904[/C][/ROW]
[ROW][C]42[/C][C]332[/C][C]364.659402078607[/C][C]-32.659402078607[/C][/ROW]
[ROW][C]43[/C][C]347[/C][C]359.587314012919[/C][C]-12.5873140129192[/C][/ROW]
[ROW][C]44[/C][C]290[/C][C]356.205921969128[/C][C]-66.2059219691275[/C][/ROW]
[ROW][C]45[/C][C]340[/C][C]349.684665884672[/C][C]-9.68466588467223[/C][/ROW]
[ROW][C]46[/C][C]371[/C][C]357.413561984767[/C][C]13.5864380152326[/C][/ROW]
[ROW][C]47[/C][C]340[/C][C]352.34147391908[/C][C]-12.3414739190800[/C][/ROW]
[ROW][C]48[/C][C]376[/C][C]353.307585931592[/C][C]22.6924140684080[/C][/ROW]
[ROW][C]49[/C][C]322[/C][C]344.854105822113[/C][C]-22.8541058221126[/C][/ROW]
[ROW][C]50[/C][C]364[/C][C]336.400625712634[/C][C]27.5993742873665[/C][/ROW]
[ROW][C]51[/C][C]379[/C][C]335.676041703250[/C][C]43.3239582967504[/C][/ROW]
[ROW][C]52[/C][C]343[/C][C]324.807281562491[/C][C]18.1927184375095[/C][/ROW]
[ROW][C]53[/C][C]358[/C][C]320.701305509315[/C][C]37.2986944906852[/C][/ROW]
[ROW][C]54[/C][C]433[/C][C]321.184361515571[/C][C]111.815638484429[/C][/ROW]
[ROW][C]55[/C][C]344[/C][C]312.730881406092[/C][C]31.2691185939084[/C][/ROW]
[ROW][C]56[/C][C]357[/C][C]312.006297396708[/C][C]44.9937026032923[/C][/ROW]
[ROW][C]57[/C][C]385[/C][C]310.798657381068[/C][C]74.2013426189322[/C][/ROW]
[ROW][C]58[/C][C]392[/C][C]300.896009252821[/C][C]91.1039907471792[/C][/ROW]
[ROW][C]59[/C][C]308[/C][C]301.137537255949[/C][C]6.86246274405142[/C][/ROW]
[ROW][C]60[/C][C]294[/C][C]306.692681327892[/C][C]-12.6926813278922[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57518&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57518&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
1521547.254572443359-26.2545724433594
2501540.733316358902-39.7333163589025
3518535.178172286959-17.1781722869590
4547528.17386019624818.8261398037522
5629525.033996155584103.966003844416
6572519.72038008676852.2796199132316
7582513.44065200544168.5593479945588
8574512.23301198980161.7669880101986
9461501.122723845914-40.1227238459142
10576504.98717189596271.0128281040382
11460495.084523767715-35.0845237677148
12455496.292163783355-41.2921637833546
13444494.359939758331-50.3599397583308
14488485.9064596488522.09354035114829
15513478.41909155188434.5809084481157
16468459.0968513016468.90314869835381
17488446.53739513899141.4626048610086
18536438.08391502951297.916084970488
19486435.42710699510450.5728930048957
20460433.73641097320926.2635890267914
21376429.630434920033-53.6304349200329
22503428.18126690126574.818733098735
23369423.109178835577-54.1091788355773
24353427.939738898137-74.9397388981369
25359411.032778679178-52.0327786791784
26400407.168330629131-7.16833062913084
27374401.371658554059-27.3716585540595
28430406.68527462287523.3147253771250
29433400.88860254780432.1113974521964
30418407.16833062913110.8316693708692
31438398.71485051965239.2851494803483
32389399.922490535292-10.9224905352916
33368394.367346463348-26.367346463348
34386398.956378522780-12.9563785227795
35261398.231794513396-137.231794513396
36294396.058042485244-102.058042485244
37263386.638450363253-123.638450363253
38293371.663714169318-78.6637141693181
39303365.383986087991-62.3839860879909
40326367.557738116142-41.5577381161425
41314371.422186166190-57.4221861661904
42332364.659402078607-32.659402078607
43347359.587314012919-12.5873140129192
44290356.205921969128-66.2059219691275
45340349.684665884672-9.68466588467223
46371357.41356198476713.5864380152326
47340352.34147391908-12.3414739190800
48376353.30758593159222.6924140684080
49322344.854105822113-22.8541058221126
50364336.40062571263427.5993742873665
51379335.67604170325043.3239582967504
52343324.80728156249118.1927184375095
53358320.70130550931537.2986944906852
54433321.184361515571111.815638484429
55344312.73088140609231.2691185939084
56357312.00629739670844.9937026032923
57385310.79865738106874.2013426189322
58392300.89600925282191.1039907471792
59308301.1375372559496.86246274405142
60294306.692681327892-12.6926813278922







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.2917829061706420.5835658123412840.708217093829358
60.1974738856039050.394947771207810.802526114396095
70.1300560516648600.2601121033297210.86994394833514
80.08751944321120660.1750388864224130.912480556788793
90.5265903571953660.9468192856092680.473409642804634
100.4727432480337320.9454864960674630.527256751966268
110.5783375573534680.8433248852930630.421662442646532
120.5900344498898540.8199311002202910.409965550110146
130.5821918288763060.8356163422473870.417808171123694
140.4907493416098230.9814986832196460.509250658390177
150.4445292903497420.8890585806994830.555470709650258
160.3646350205594320.7292700411188640.635364979440568
170.3318506452421810.6637012904843630.668149354757819
180.4782627332695590.9565254665391190.521737266730441
190.4737965118880090.9475930237760190.526203488111991
200.4547364594989010.9094729189978020.545263540501099
210.5378858857486680.9242282285026640.462114114251332
220.6889399859639330.6221200280721340.311060014036067
230.7288458294191620.5423083411616760.271154170580838
240.7750380095201120.4499239809597770.224961990479888
250.7526442125287420.4947115749425160.247355787471258
260.705694764054190.5886104718916210.294305235945810
270.6467763975124410.7064472049751190.353223602487559
280.6601351618137750.679729676372450.339864838186225
290.7097956464359810.5804087071280380.290204353564019
300.7416951034743540.5166097930512920.258304896525646
310.8699918816169560.2600162367660890.130008118383044
320.895978641914450.20804271617110.10402135808555
330.903961581996640.1920768360067180.096038418003359
340.9559431484911540.08811370301769150.0440568515088458
350.9827376393084720.03452472138305640.0172623606915282
360.9824702005099790.03505959898004230.0175297994900212
370.9903589524996120.01928209500077590.00964104750038794
380.98884599580470.02230800839060150.0111540041953008
390.9854464011489560.02910719770208850.0145535988510442
400.9759933309166080.04801333816678320.0240066690833916
410.9661639665337950.06767206693240930.0338360334662047
420.9474924961850510.1050150076298980.052507503814949
430.9204542284959620.1590915430080760.0795457715040379
440.9458386486510540.1083227026978930.0541613513489463
450.924108715574190.1517825688516200.0758912844258101
460.8918093931920580.2163812136158850.108190606807942
470.8551760709375190.2896478581249620.144823929062481
480.8034627261197630.3930745477604750.196537273880237
490.815192996396280.3696140072074380.184807003603719
500.7600983019560110.4798033960879780.239901698043989
510.6867099340495910.6265801319008180.313290065950409
520.6647391712297420.6705216575405160.335260828770258
530.6125851696736650.774829660652670.387414830326335
540.6351102265995860.7297795468008280.364889773400414
550.4736547925765060.9473095851530120.526345207423494

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.291782906170642 & 0.583565812341284 & 0.708217093829358 \tabularnewline
6 & 0.197473885603905 & 0.39494777120781 & 0.802526114396095 \tabularnewline
7 & 0.130056051664860 & 0.260112103329721 & 0.86994394833514 \tabularnewline
8 & 0.0875194432112066 & 0.175038886422413 & 0.912480556788793 \tabularnewline
9 & 0.526590357195366 & 0.946819285609268 & 0.473409642804634 \tabularnewline
10 & 0.472743248033732 & 0.945486496067463 & 0.527256751966268 \tabularnewline
11 & 0.578337557353468 & 0.843324885293063 & 0.421662442646532 \tabularnewline
12 & 0.590034449889854 & 0.819931100220291 & 0.409965550110146 \tabularnewline
13 & 0.582191828876306 & 0.835616342247387 & 0.417808171123694 \tabularnewline
14 & 0.490749341609823 & 0.981498683219646 & 0.509250658390177 \tabularnewline
15 & 0.444529290349742 & 0.889058580699483 & 0.555470709650258 \tabularnewline
16 & 0.364635020559432 & 0.729270041118864 & 0.635364979440568 \tabularnewline
17 & 0.331850645242181 & 0.663701290484363 & 0.668149354757819 \tabularnewline
18 & 0.478262733269559 & 0.956525466539119 & 0.521737266730441 \tabularnewline
19 & 0.473796511888009 & 0.947593023776019 & 0.526203488111991 \tabularnewline
20 & 0.454736459498901 & 0.909472918997802 & 0.545263540501099 \tabularnewline
21 & 0.537885885748668 & 0.924228228502664 & 0.462114114251332 \tabularnewline
22 & 0.688939985963933 & 0.622120028072134 & 0.311060014036067 \tabularnewline
23 & 0.728845829419162 & 0.542308341161676 & 0.271154170580838 \tabularnewline
24 & 0.775038009520112 & 0.449923980959777 & 0.224961990479888 \tabularnewline
25 & 0.752644212528742 & 0.494711574942516 & 0.247355787471258 \tabularnewline
26 & 0.70569476405419 & 0.588610471891621 & 0.294305235945810 \tabularnewline
27 & 0.646776397512441 & 0.706447204975119 & 0.353223602487559 \tabularnewline
28 & 0.660135161813775 & 0.67972967637245 & 0.339864838186225 \tabularnewline
29 & 0.709795646435981 & 0.580408707128038 & 0.290204353564019 \tabularnewline
30 & 0.741695103474354 & 0.516609793051292 & 0.258304896525646 \tabularnewline
31 & 0.869991881616956 & 0.260016236766089 & 0.130008118383044 \tabularnewline
32 & 0.89597864191445 & 0.2080427161711 & 0.10402135808555 \tabularnewline
33 & 0.90396158199664 & 0.192076836006718 & 0.096038418003359 \tabularnewline
34 & 0.955943148491154 & 0.0881137030176915 & 0.0440568515088458 \tabularnewline
35 & 0.982737639308472 & 0.0345247213830564 & 0.0172623606915282 \tabularnewline
36 & 0.982470200509979 & 0.0350595989800423 & 0.0175297994900212 \tabularnewline
37 & 0.990358952499612 & 0.0192820950007759 & 0.00964104750038794 \tabularnewline
38 & 0.9888459958047 & 0.0223080083906015 & 0.0111540041953008 \tabularnewline
39 & 0.985446401148956 & 0.0291071977020885 & 0.0145535988510442 \tabularnewline
40 & 0.975993330916608 & 0.0480133381667832 & 0.0240066690833916 \tabularnewline
41 & 0.966163966533795 & 0.0676720669324093 & 0.0338360334662047 \tabularnewline
42 & 0.947492496185051 & 0.105015007629898 & 0.052507503814949 \tabularnewline
43 & 0.920454228495962 & 0.159091543008076 & 0.0795457715040379 \tabularnewline
44 & 0.945838648651054 & 0.108322702697893 & 0.0541613513489463 \tabularnewline
45 & 0.92410871557419 & 0.151782568851620 & 0.0758912844258101 \tabularnewline
46 & 0.891809393192058 & 0.216381213615885 & 0.108190606807942 \tabularnewline
47 & 0.855176070937519 & 0.289647858124962 & 0.144823929062481 \tabularnewline
48 & 0.803462726119763 & 0.393074547760475 & 0.196537273880237 \tabularnewline
49 & 0.81519299639628 & 0.369614007207438 & 0.184807003603719 \tabularnewline
50 & 0.760098301956011 & 0.479803396087978 & 0.239901698043989 \tabularnewline
51 & 0.686709934049591 & 0.626580131900818 & 0.313290065950409 \tabularnewline
52 & 0.664739171229742 & 0.670521657540516 & 0.335260828770258 \tabularnewline
53 & 0.612585169673665 & 0.77482966065267 & 0.387414830326335 \tabularnewline
54 & 0.635110226599586 & 0.729779546800828 & 0.364889773400414 \tabularnewline
55 & 0.473654792576506 & 0.947309585153012 & 0.526345207423494 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57518&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.291782906170642[/C][C]0.583565812341284[/C][C]0.708217093829358[/C][/ROW]
[ROW][C]6[/C][C]0.197473885603905[/C][C]0.39494777120781[/C][C]0.802526114396095[/C][/ROW]
[ROW][C]7[/C][C]0.130056051664860[/C][C]0.260112103329721[/C][C]0.86994394833514[/C][/ROW]
[ROW][C]8[/C][C]0.0875194432112066[/C][C]0.175038886422413[/C][C]0.912480556788793[/C][/ROW]
[ROW][C]9[/C][C]0.526590357195366[/C][C]0.946819285609268[/C][C]0.473409642804634[/C][/ROW]
[ROW][C]10[/C][C]0.472743248033732[/C][C]0.945486496067463[/C][C]0.527256751966268[/C][/ROW]
[ROW][C]11[/C][C]0.578337557353468[/C][C]0.843324885293063[/C][C]0.421662442646532[/C][/ROW]
[ROW][C]12[/C][C]0.590034449889854[/C][C]0.819931100220291[/C][C]0.409965550110146[/C][/ROW]
[ROW][C]13[/C][C]0.582191828876306[/C][C]0.835616342247387[/C][C]0.417808171123694[/C][/ROW]
[ROW][C]14[/C][C]0.490749341609823[/C][C]0.981498683219646[/C][C]0.509250658390177[/C][/ROW]
[ROW][C]15[/C][C]0.444529290349742[/C][C]0.889058580699483[/C][C]0.555470709650258[/C][/ROW]
[ROW][C]16[/C][C]0.364635020559432[/C][C]0.729270041118864[/C][C]0.635364979440568[/C][/ROW]
[ROW][C]17[/C][C]0.331850645242181[/C][C]0.663701290484363[/C][C]0.668149354757819[/C][/ROW]
[ROW][C]18[/C][C]0.478262733269559[/C][C]0.956525466539119[/C][C]0.521737266730441[/C][/ROW]
[ROW][C]19[/C][C]0.473796511888009[/C][C]0.947593023776019[/C][C]0.526203488111991[/C][/ROW]
[ROW][C]20[/C][C]0.454736459498901[/C][C]0.909472918997802[/C][C]0.545263540501099[/C][/ROW]
[ROW][C]21[/C][C]0.537885885748668[/C][C]0.924228228502664[/C][C]0.462114114251332[/C][/ROW]
[ROW][C]22[/C][C]0.688939985963933[/C][C]0.622120028072134[/C][C]0.311060014036067[/C][/ROW]
[ROW][C]23[/C][C]0.728845829419162[/C][C]0.542308341161676[/C][C]0.271154170580838[/C][/ROW]
[ROW][C]24[/C][C]0.775038009520112[/C][C]0.449923980959777[/C][C]0.224961990479888[/C][/ROW]
[ROW][C]25[/C][C]0.752644212528742[/C][C]0.494711574942516[/C][C]0.247355787471258[/C][/ROW]
[ROW][C]26[/C][C]0.70569476405419[/C][C]0.588610471891621[/C][C]0.294305235945810[/C][/ROW]
[ROW][C]27[/C][C]0.646776397512441[/C][C]0.706447204975119[/C][C]0.353223602487559[/C][/ROW]
[ROW][C]28[/C][C]0.660135161813775[/C][C]0.67972967637245[/C][C]0.339864838186225[/C][/ROW]
[ROW][C]29[/C][C]0.709795646435981[/C][C]0.580408707128038[/C][C]0.290204353564019[/C][/ROW]
[ROW][C]30[/C][C]0.741695103474354[/C][C]0.516609793051292[/C][C]0.258304896525646[/C][/ROW]
[ROW][C]31[/C][C]0.869991881616956[/C][C]0.260016236766089[/C][C]0.130008118383044[/C][/ROW]
[ROW][C]32[/C][C]0.89597864191445[/C][C]0.2080427161711[/C][C]0.10402135808555[/C][/ROW]
[ROW][C]33[/C][C]0.90396158199664[/C][C]0.192076836006718[/C][C]0.096038418003359[/C][/ROW]
[ROW][C]34[/C][C]0.955943148491154[/C][C]0.0881137030176915[/C][C]0.0440568515088458[/C][/ROW]
[ROW][C]35[/C][C]0.982737639308472[/C][C]0.0345247213830564[/C][C]0.0172623606915282[/C][/ROW]
[ROW][C]36[/C][C]0.982470200509979[/C][C]0.0350595989800423[/C][C]0.0175297994900212[/C][/ROW]
[ROW][C]37[/C][C]0.990358952499612[/C][C]0.0192820950007759[/C][C]0.00964104750038794[/C][/ROW]
[ROW][C]38[/C][C]0.9888459958047[/C][C]0.0223080083906015[/C][C]0.0111540041953008[/C][/ROW]
[ROW][C]39[/C][C]0.985446401148956[/C][C]0.0291071977020885[/C][C]0.0145535988510442[/C][/ROW]
[ROW][C]40[/C][C]0.975993330916608[/C][C]0.0480133381667832[/C][C]0.0240066690833916[/C][/ROW]
[ROW][C]41[/C][C]0.966163966533795[/C][C]0.0676720669324093[/C][C]0.0338360334662047[/C][/ROW]
[ROW][C]42[/C][C]0.947492496185051[/C][C]0.105015007629898[/C][C]0.052507503814949[/C][/ROW]
[ROW][C]43[/C][C]0.920454228495962[/C][C]0.159091543008076[/C][C]0.0795457715040379[/C][/ROW]
[ROW][C]44[/C][C]0.945838648651054[/C][C]0.108322702697893[/C][C]0.0541613513489463[/C][/ROW]
[ROW][C]45[/C][C]0.92410871557419[/C][C]0.151782568851620[/C][C]0.0758912844258101[/C][/ROW]
[ROW][C]46[/C][C]0.891809393192058[/C][C]0.216381213615885[/C][C]0.108190606807942[/C][/ROW]
[ROW][C]47[/C][C]0.855176070937519[/C][C]0.289647858124962[/C][C]0.144823929062481[/C][/ROW]
[ROW][C]48[/C][C]0.803462726119763[/C][C]0.393074547760475[/C][C]0.196537273880237[/C][/ROW]
[ROW][C]49[/C][C]0.81519299639628[/C][C]0.369614007207438[/C][C]0.184807003603719[/C][/ROW]
[ROW][C]50[/C][C]0.760098301956011[/C][C]0.479803396087978[/C][C]0.239901698043989[/C][/ROW]
[ROW][C]51[/C][C]0.686709934049591[/C][C]0.626580131900818[/C][C]0.313290065950409[/C][/ROW]
[ROW][C]52[/C][C]0.664739171229742[/C][C]0.670521657540516[/C][C]0.335260828770258[/C][/ROW]
[ROW][C]53[/C][C]0.612585169673665[/C][C]0.77482966065267[/C][C]0.387414830326335[/C][/ROW]
[ROW][C]54[/C][C]0.635110226599586[/C][C]0.729779546800828[/C][C]0.364889773400414[/C][/ROW]
[ROW][C]55[/C][C]0.473654792576506[/C][C]0.947309585153012[/C][C]0.526345207423494[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57518&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57518&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.2917829061706420.5835658123412840.708217093829358
60.1974738856039050.394947771207810.802526114396095
70.1300560516648600.2601121033297210.86994394833514
80.08751944321120660.1750388864224130.912480556788793
90.5265903571953660.9468192856092680.473409642804634
100.4727432480337320.9454864960674630.527256751966268
110.5783375573534680.8433248852930630.421662442646532
120.5900344498898540.8199311002202910.409965550110146
130.5821918288763060.8356163422473870.417808171123694
140.4907493416098230.9814986832196460.509250658390177
150.4445292903497420.8890585806994830.555470709650258
160.3646350205594320.7292700411188640.635364979440568
170.3318506452421810.6637012904843630.668149354757819
180.4782627332695590.9565254665391190.521737266730441
190.4737965118880090.9475930237760190.526203488111991
200.4547364594989010.9094729189978020.545263540501099
210.5378858857486680.9242282285026640.462114114251332
220.6889399859639330.6221200280721340.311060014036067
230.7288458294191620.5423083411616760.271154170580838
240.7750380095201120.4499239809597770.224961990479888
250.7526442125287420.4947115749425160.247355787471258
260.705694764054190.5886104718916210.294305235945810
270.6467763975124410.7064472049751190.353223602487559
280.6601351618137750.679729676372450.339864838186225
290.7097956464359810.5804087071280380.290204353564019
300.7416951034743540.5166097930512920.258304896525646
310.8699918816169560.2600162367660890.130008118383044
320.895978641914450.20804271617110.10402135808555
330.903961581996640.1920768360067180.096038418003359
340.9559431484911540.08811370301769150.0440568515088458
350.9827376393084720.03452472138305640.0172623606915282
360.9824702005099790.03505959898004230.0175297994900212
370.9903589524996120.01928209500077590.00964104750038794
380.98884599580470.02230800839060150.0111540041953008
390.9854464011489560.02910719770208850.0145535988510442
400.9759933309166080.04801333816678320.0240066690833916
410.9661639665337950.06767206693240930.0338360334662047
420.9474924961850510.1050150076298980.052507503814949
430.9204542284959620.1590915430080760.0795457715040379
440.9458386486510540.1083227026978930.0541613513489463
450.924108715574190.1517825688516200.0758912844258101
460.8918093931920580.2163812136158850.108190606807942
470.8551760709375190.2896478581249620.144823929062481
480.8034627261197630.3930745477604750.196537273880237
490.815192996396280.3696140072074380.184807003603719
500.7600983019560110.4798033960879780.239901698043989
510.6867099340495910.6265801319008180.313290065950409
520.6647391712297420.6705216575405160.335260828770258
530.6125851696736650.774829660652670.387414830326335
540.6351102265995860.7297795468008280.364889773400414
550.4736547925765060.9473095851530120.526345207423494







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57518&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 level60.117647058823529NOK
10% type I error level80.156862745098039NOK



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