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, 29 Dec 2010 14:23:28 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/29/t1293632469qhy3nb7ga9okadr.htm/, Retrieved Fri, 03 May 2024 11:04:31 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=116862, Retrieved Fri, 03 May 2024 11:04:31 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact132
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]
- R  D    [Multiple Regression] [Regressiemodel - ...] [2009-11-19 17:01:55] [54d83950395cfb8ca1091bdb7440f70a]
- R  D        [Multiple Regression] [] [2010-12-29 14:23:28] [4afc4ea409ad669ec2851bc39795365d] [Current]
Feedback Forum

Post a new message
Dataseries X:
597141	25
593408	24
590072	21
579799	22
574205	20
572775	24
572942	24
619567	24
625809	24
619916	28
587625	27
565742	18
557274	25
560576	27
548854	25
531673	28
525919	28
511038	27
498662	25
555362	24
564591	24
541657	25
527070	18
509846	22
514258	20
516922	23
507561	23
492622	19
490243	17
469357	15
477580	13
528379	15
533590	17
517945	9
506174	4
501866	1
516141	6
528222	2
532638	2
536322	4
536535	7
523597	8
536214	9
586570	15
596594	15
580523	14
564478	16
557560	11
575093	11
580112	11
574761	13
563250	18
551531	13
537034	17
544686	19
600991	22
604378	22
586111	24
563668	26
548604	24




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

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

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116862&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
Werkloos[t] = + 515846.69583124 + 1373.48053741838cv[t] + 12236.1428176794M1[t] + 16102.7428176796M2[t] + 11856.0311401306M3[t] -110.841612255150M4[t] -3509.26496735309M5[t] -18083.8416122552M6[t] -14552.5455047715M7[t] + 34857.4934203918M8[t] + 41126.7012054244M9[t] + 25914.0934203918M10[t] + 8958.95838774484M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Werkloos[t] =  +  515846.69583124 +  1373.48053741838cv[t] +  12236.1428176794M1[t] +  16102.7428176796M2[t] +  11856.0311401306M3[t] -110.841612255150M4[t] -3509.26496735309M5[t] -18083.8416122552M6[t] -14552.5455047715M7[t] +  34857.4934203918M8[t] +  41126.7012054244M9[t] +  25914.0934203918M10[t] +  8958.95838774484M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116862&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Werkloos[t] =  +  515846.69583124 +  1373.48053741838cv[t] +  12236.1428176794M1[t] +  16102.7428176796M2[t] +  11856.0311401306M3[t] -110.841612255150M4[t] -3509.26496735309M5[t] -18083.8416122552M6[t] -14552.5455047715M7[t] +  34857.4934203918M8[t] +  41126.7012054244M9[t] +  25914.0934203918M10[t] +  8958.95838774484M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116862&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116862&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
Werkloos[t] = + 515846.69583124 + 1373.48053741838cv[t] + 12236.1428176794M1[t] + 16102.7428176796M2[t] + 11856.0311401306M3[t] -110.841612255150M4[t] -3509.26496735309M5[t] -18083.8416122552M6[t] -14552.5455047715M7[t] + 34857.4934203918M8[t] + 41126.7012054244M9[t] + 25914.0934203918M10[t] + 8958.95838774484M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)515846.6958312417403.23481329.640900
cv1373.48053741838590.6498442.32540.0244190.01221
M112236.142817679421124.1356670.57920.5651870.282594
M216102.742817679621124.1356670.76230.4496950.224848
M311856.031140130621105.3000540.56180.5769510.288476
M4-110.84161225515021158.459192-0.00520.9958420.497921
M5-3509.2649673530921110.919452-0.16620.8686890.434345
M6-18083.841612255221158.459192-0.85470.3970610.19853
M7-14552.545504771521148.89381-0.68810.4947720.247386
M834857.493420391821273.8922491.63850.1079930.053997
M941126.701205424421306.6646941.93020.0596250.029813
M1025914.093420391821273.8922491.21810.2292590.11463
M118958.9583877448421158.4591920.42340.6739190.336959

\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) & 515846.69583124 & 17403.234813 & 29.6409 & 0 & 0 \tabularnewline
cv & 1373.48053741838 & 590.649844 & 2.3254 & 0.024419 & 0.01221 \tabularnewline
M1 & 12236.1428176794 & 21124.135667 & 0.5792 & 0.565187 & 0.282594 \tabularnewline
M2 & 16102.7428176796 & 21124.135667 & 0.7623 & 0.449695 & 0.224848 \tabularnewline
M3 & 11856.0311401306 & 21105.300054 & 0.5618 & 0.576951 & 0.288476 \tabularnewline
M4 & -110.841612255150 & 21158.459192 & -0.0052 & 0.995842 & 0.497921 \tabularnewline
M5 & -3509.26496735309 & 21110.919452 & -0.1662 & 0.868689 & 0.434345 \tabularnewline
M6 & -18083.8416122552 & 21158.459192 & -0.8547 & 0.397061 & 0.19853 \tabularnewline
M7 & -14552.5455047715 & 21148.89381 & -0.6881 & 0.494772 & 0.247386 \tabularnewline
M8 & 34857.4934203918 & 21273.892249 & 1.6385 & 0.107993 & 0.053997 \tabularnewline
M9 & 41126.7012054244 & 21306.664694 & 1.9302 & 0.059625 & 0.029813 \tabularnewline
M10 & 25914.0934203918 & 21273.892249 & 1.2181 & 0.229259 & 0.11463 \tabularnewline
M11 & 8958.95838774484 & 21158.459192 & 0.4234 & 0.673919 & 0.336959 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116862&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]515846.69583124[/C][C]17403.234813[/C][C]29.6409[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]cv[/C][C]1373.48053741838[/C][C]590.649844[/C][C]2.3254[/C][C]0.024419[/C][C]0.01221[/C][/ROW]
[ROW][C]M1[/C][C]12236.1428176794[/C][C]21124.135667[/C][C]0.5792[/C][C]0.565187[/C][C]0.282594[/C][/ROW]
[ROW][C]M2[/C][C]16102.7428176796[/C][C]21124.135667[/C][C]0.7623[/C][C]0.449695[/C][C]0.224848[/C][/ROW]
[ROW][C]M3[/C][C]11856.0311401306[/C][C]21105.300054[/C][C]0.5618[/C][C]0.576951[/C][C]0.288476[/C][/ROW]
[ROW][C]M4[/C][C]-110.841612255150[/C][C]21158.459192[/C][C]-0.0052[/C][C]0.995842[/C][C]0.497921[/C][/ROW]
[ROW][C]M5[/C][C]-3509.26496735309[/C][C]21110.919452[/C][C]-0.1662[/C][C]0.868689[/C][C]0.434345[/C][/ROW]
[ROW][C]M6[/C][C]-18083.8416122552[/C][C]21158.459192[/C][C]-0.8547[/C][C]0.397061[/C][C]0.19853[/C][/ROW]
[ROW][C]M7[/C][C]-14552.5455047715[/C][C]21148.89381[/C][C]-0.6881[/C][C]0.494772[/C][C]0.247386[/C][/ROW]
[ROW][C]M8[/C][C]34857.4934203918[/C][C]21273.892249[/C][C]1.6385[/C][C]0.107993[/C][C]0.053997[/C][/ROW]
[ROW][C]M9[/C][C]41126.7012054244[/C][C]21306.664694[/C][C]1.9302[/C][C]0.059625[/C][C]0.029813[/C][/ROW]
[ROW][C]M10[/C][C]25914.0934203918[/C][C]21273.892249[/C][C]1.2181[/C][C]0.229259[/C][C]0.11463[/C][/ROW]
[ROW][C]M11[/C][C]8958.95838774484[/C][C]21158.459192[/C][C]0.4234[/C][C]0.673919[/C][C]0.336959[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116862&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116862&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)515846.6958312417403.23481329.640900
cv1373.48053741838590.6498442.32540.0244190.01221
M112236.142817679421124.1356670.57920.5651870.282594
M216102.742817679621124.1356670.76230.4496950.224848
M311856.031140130621105.3000540.56180.5769510.288476
M4-110.84161225515021158.459192-0.00520.9958420.497921
M5-3509.2649673530921110.919452-0.16620.8686890.434345
M6-18083.841612255221158.459192-0.85470.3970610.19853
M7-14552.545504771521148.89381-0.68810.4947720.247386
M834857.493420391821273.8922491.63850.1079930.053997
M941126.701205424421306.6646941.93020.0596250.029813
M1025914.093420391821273.8922491.21810.2292590.11463
M118958.9583877448421158.4591920.42340.6739190.336959







Multiple Linear Regression - Regression Statistics
Multiple R0.584188194038514
R-squared0.34127584605398
Adjusted R-squared0.173090955684783
F-TEST (value)2.02917066631144
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.0424051193047795
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation33336.9386056947
Sum Squared Residuals52233519353.1933

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.584188194038514 \tabularnewline
R-squared & 0.34127584605398 \tabularnewline
Adjusted R-squared & 0.173090955684783 \tabularnewline
F-TEST (value) & 2.02917066631144 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.0424051193047795 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 33336.9386056947 \tabularnewline
Sum Squared Residuals & 52233519353.1933 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116862&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.584188194038514[/C][/ROW]
[ROW][C]R-squared[/C][C]0.34127584605398[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.173090955684783[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.02917066631144[/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]0.0424051193047795[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]33336.9386056947[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]52233519353.1933[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116862&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116862&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.584188194038514
R-squared0.34127584605398
Adjusted R-squared0.173090955684783
F-TEST (value)2.02917066631144
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.0424051193047795
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation33336.9386056947
Sum Squared Residuals52233519353.1933







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1597141562419.8520843834721.1479156195
2593408564912.97154696128495.0284530387
3590072556545.81825715733526.1817428428
4579799545952.4260421933846.5739578102
5574205539807.04161225534397.9583877449
6572775530726.38711702742048.6128829734
7572942534257.6832245138684.3167754897
8619567583667.72214967435899.2778503265
9625809589936.92993470635872.0700652938
10619916580218.24429934739697.755700653
11587625561889.62872928225735.3712707182
12565742540569.34550477125172.6544952285
13557274562419.85208438-5145.85208437949
14560576569033.413159216-8457.41315921646
15548854562039.740406831-13185.7404068307
16531673554193.3092667-22520.3092667001
17525919550794.885911602-24875.8859116022
18511038534846.828729282-23808.8287292817
19498662535631.163761929-36969.1637619287
20555362583667.722149674-28305.7221496735
21564591589936.929934706-25345.9299347062
22541657576097.802687092-34440.8026870919
23527070549528.303892516-22458.3038925163
24509846546063.267654445-36217.267654445
25514258555552.449397288-41294.4493972876
26516922563539.491009543-46617.4910095429
27507561559292.779331994-51731.7793319939
28492622541831.984429935-49209.9844299347
29490243535686.6-45443.6
30469357518365.062280261-49008.0622802612
31477580519149.397312908-41569.3973129081
32528379571306.397312908-42927.3973129081
33533590580322.566172778-46732.5661727775
34517945554122.114088398-36177.1140883978
35506174530299.576368659-24125.576368659
36501866517220.176368659-15354.176368659
37516141536323.72187343-20182.7218734303
38528222534696.399723757-6474.39972375694
39532638530449.6880462082188.31195379204
40536322521229.77636865915092.223631341
41536535521951.79462581614583.2053741838
42523597508750.69851833314846.3014816675
43536214513655.47516323522558.5248367654
44586570571306.39731290815263.6026870919
45596594577575.60509794119018.3949020592
46580523560989.5167754919533.4832245103
47564478546781.3428176817696.6571823204
48557560530954.98174284326605.0182571572
49575093543191.12456052231901.8754394778
50580112547057.72456052233054.2754394776
51574761545557.9739578129203.0260421898
52563250540458.50389251622791.4961074837
53551531530192.67785032721338.3221496735
54537034521112.02335509815921.9766449021
55544686527390.28053741817295.7194625816
56600991580920.76107483720070.2389251633
57604378587189.96885986917188.0311401306
58586111574724.32214967311386.6778503265
59563668560516.1481918633151.85180813665
60548604548810.228729282-206.228729281760

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 597141 & 562419.85208438 & 34721.1479156195 \tabularnewline
2 & 593408 & 564912.971546961 & 28495.0284530387 \tabularnewline
3 & 590072 & 556545.818257157 & 33526.1817428428 \tabularnewline
4 & 579799 & 545952.42604219 & 33846.5739578102 \tabularnewline
5 & 574205 & 539807.041612255 & 34397.9583877449 \tabularnewline
6 & 572775 & 530726.387117027 & 42048.6128829734 \tabularnewline
7 & 572942 & 534257.68322451 & 38684.3167754897 \tabularnewline
8 & 619567 & 583667.722149674 & 35899.2778503265 \tabularnewline
9 & 625809 & 589936.929934706 & 35872.0700652938 \tabularnewline
10 & 619916 & 580218.244299347 & 39697.755700653 \tabularnewline
11 & 587625 & 561889.628729282 & 25735.3712707182 \tabularnewline
12 & 565742 & 540569.345504771 & 25172.6544952285 \tabularnewline
13 & 557274 & 562419.85208438 & -5145.85208437949 \tabularnewline
14 & 560576 & 569033.413159216 & -8457.41315921646 \tabularnewline
15 & 548854 & 562039.740406831 & -13185.7404068307 \tabularnewline
16 & 531673 & 554193.3092667 & -22520.3092667001 \tabularnewline
17 & 525919 & 550794.885911602 & -24875.8859116022 \tabularnewline
18 & 511038 & 534846.828729282 & -23808.8287292817 \tabularnewline
19 & 498662 & 535631.163761929 & -36969.1637619287 \tabularnewline
20 & 555362 & 583667.722149674 & -28305.7221496735 \tabularnewline
21 & 564591 & 589936.929934706 & -25345.9299347062 \tabularnewline
22 & 541657 & 576097.802687092 & -34440.8026870919 \tabularnewline
23 & 527070 & 549528.303892516 & -22458.3038925163 \tabularnewline
24 & 509846 & 546063.267654445 & -36217.267654445 \tabularnewline
25 & 514258 & 555552.449397288 & -41294.4493972876 \tabularnewline
26 & 516922 & 563539.491009543 & -46617.4910095429 \tabularnewline
27 & 507561 & 559292.779331994 & -51731.7793319939 \tabularnewline
28 & 492622 & 541831.984429935 & -49209.9844299347 \tabularnewline
29 & 490243 & 535686.6 & -45443.6 \tabularnewline
30 & 469357 & 518365.062280261 & -49008.0622802612 \tabularnewline
31 & 477580 & 519149.397312908 & -41569.3973129081 \tabularnewline
32 & 528379 & 571306.397312908 & -42927.3973129081 \tabularnewline
33 & 533590 & 580322.566172778 & -46732.5661727775 \tabularnewline
34 & 517945 & 554122.114088398 & -36177.1140883978 \tabularnewline
35 & 506174 & 530299.576368659 & -24125.576368659 \tabularnewline
36 & 501866 & 517220.176368659 & -15354.176368659 \tabularnewline
37 & 516141 & 536323.72187343 & -20182.7218734303 \tabularnewline
38 & 528222 & 534696.399723757 & -6474.39972375694 \tabularnewline
39 & 532638 & 530449.688046208 & 2188.31195379204 \tabularnewline
40 & 536322 & 521229.776368659 & 15092.223631341 \tabularnewline
41 & 536535 & 521951.794625816 & 14583.2053741838 \tabularnewline
42 & 523597 & 508750.698518333 & 14846.3014816675 \tabularnewline
43 & 536214 & 513655.475163235 & 22558.5248367654 \tabularnewline
44 & 586570 & 571306.397312908 & 15263.6026870919 \tabularnewline
45 & 596594 & 577575.605097941 & 19018.3949020592 \tabularnewline
46 & 580523 & 560989.51677549 & 19533.4832245103 \tabularnewline
47 & 564478 & 546781.34281768 & 17696.6571823204 \tabularnewline
48 & 557560 & 530954.981742843 & 26605.0182571572 \tabularnewline
49 & 575093 & 543191.124560522 & 31901.8754394778 \tabularnewline
50 & 580112 & 547057.724560522 & 33054.2754394776 \tabularnewline
51 & 574761 & 545557.97395781 & 29203.0260421898 \tabularnewline
52 & 563250 & 540458.503892516 & 22791.4961074837 \tabularnewline
53 & 551531 & 530192.677850327 & 21338.3221496735 \tabularnewline
54 & 537034 & 521112.023355098 & 15921.9766449021 \tabularnewline
55 & 544686 & 527390.280537418 & 17295.7194625816 \tabularnewline
56 & 600991 & 580920.761074837 & 20070.2389251633 \tabularnewline
57 & 604378 & 587189.968859869 & 17188.0311401306 \tabularnewline
58 & 586111 & 574724.322149673 & 11386.6778503265 \tabularnewline
59 & 563668 & 560516.148191863 & 3151.85180813665 \tabularnewline
60 & 548604 & 548810.228729282 & -206.228729281760 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116862&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]597141[/C][C]562419.85208438[/C][C]34721.1479156195[/C][/ROW]
[ROW][C]2[/C][C]593408[/C][C]564912.971546961[/C][C]28495.0284530387[/C][/ROW]
[ROW][C]3[/C][C]590072[/C][C]556545.818257157[/C][C]33526.1817428428[/C][/ROW]
[ROW][C]4[/C][C]579799[/C][C]545952.42604219[/C][C]33846.5739578102[/C][/ROW]
[ROW][C]5[/C][C]574205[/C][C]539807.041612255[/C][C]34397.9583877449[/C][/ROW]
[ROW][C]6[/C][C]572775[/C][C]530726.387117027[/C][C]42048.6128829734[/C][/ROW]
[ROW][C]7[/C][C]572942[/C][C]534257.68322451[/C][C]38684.3167754897[/C][/ROW]
[ROW][C]8[/C][C]619567[/C][C]583667.722149674[/C][C]35899.2778503265[/C][/ROW]
[ROW][C]9[/C][C]625809[/C][C]589936.929934706[/C][C]35872.0700652938[/C][/ROW]
[ROW][C]10[/C][C]619916[/C][C]580218.244299347[/C][C]39697.755700653[/C][/ROW]
[ROW][C]11[/C][C]587625[/C][C]561889.628729282[/C][C]25735.3712707182[/C][/ROW]
[ROW][C]12[/C][C]565742[/C][C]540569.345504771[/C][C]25172.6544952285[/C][/ROW]
[ROW][C]13[/C][C]557274[/C][C]562419.85208438[/C][C]-5145.85208437949[/C][/ROW]
[ROW][C]14[/C][C]560576[/C][C]569033.413159216[/C][C]-8457.41315921646[/C][/ROW]
[ROW][C]15[/C][C]548854[/C][C]562039.740406831[/C][C]-13185.7404068307[/C][/ROW]
[ROW][C]16[/C][C]531673[/C][C]554193.3092667[/C][C]-22520.3092667001[/C][/ROW]
[ROW][C]17[/C][C]525919[/C][C]550794.885911602[/C][C]-24875.8859116022[/C][/ROW]
[ROW][C]18[/C][C]511038[/C][C]534846.828729282[/C][C]-23808.8287292817[/C][/ROW]
[ROW][C]19[/C][C]498662[/C][C]535631.163761929[/C][C]-36969.1637619287[/C][/ROW]
[ROW][C]20[/C][C]555362[/C][C]583667.722149674[/C][C]-28305.7221496735[/C][/ROW]
[ROW][C]21[/C][C]564591[/C][C]589936.929934706[/C][C]-25345.9299347062[/C][/ROW]
[ROW][C]22[/C][C]541657[/C][C]576097.802687092[/C][C]-34440.8026870919[/C][/ROW]
[ROW][C]23[/C][C]527070[/C][C]549528.303892516[/C][C]-22458.3038925163[/C][/ROW]
[ROW][C]24[/C][C]509846[/C][C]546063.267654445[/C][C]-36217.267654445[/C][/ROW]
[ROW][C]25[/C][C]514258[/C][C]555552.449397288[/C][C]-41294.4493972876[/C][/ROW]
[ROW][C]26[/C][C]516922[/C][C]563539.491009543[/C][C]-46617.4910095429[/C][/ROW]
[ROW][C]27[/C][C]507561[/C][C]559292.779331994[/C][C]-51731.7793319939[/C][/ROW]
[ROW][C]28[/C][C]492622[/C][C]541831.984429935[/C][C]-49209.9844299347[/C][/ROW]
[ROW][C]29[/C][C]490243[/C][C]535686.6[/C][C]-45443.6[/C][/ROW]
[ROW][C]30[/C][C]469357[/C][C]518365.062280261[/C][C]-49008.0622802612[/C][/ROW]
[ROW][C]31[/C][C]477580[/C][C]519149.397312908[/C][C]-41569.3973129081[/C][/ROW]
[ROW][C]32[/C][C]528379[/C][C]571306.397312908[/C][C]-42927.3973129081[/C][/ROW]
[ROW][C]33[/C][C]533590[/C][C]580322.566172778[/C][C]-46732.5661727775[/C][/ROW]
[ROW][C]34[/C][C]517945[/C][C]554122.114088398[/C][C]-36177.1140883978[/C][/ROW]
[ROW][C]35[/C][C]506174[/C][C]530299.576368659[/C][C]-24125.576368659[/C][/ROW]
[ROW][C]36[/C][C]501866[/C][C]517220.176368659[/C][C]-15354.176368659[/C][/ROW]
[ROW][C]37[/C][C]516141[/C][C]536323.72187343[/C][C]-20182.7218734303[/C][/ROW]
[ROW][C]38[/C][C]528222[/C][C]534696.399723757[/C][C]-6474.39972375694[/C][/ROW]
[ROW][C]39[/C][C]532638[/C][C]530449.688046208[/C][C]2188.31195379204[/C][/ROW]
[ROW][C]40[/C][C]536322[/C][C]521229.776368659[/C][C]15092.223631341[/C][/ROW]
[ROW][C]41[/C][C]536535[/C][C]521951.794625816[/C][C]14583.2053741838[/C][/ROW]
[ROW][C]42[/C][C]523597[/C][C]508750.698518333[/C][C]14846.3014816675[/C][/ROW]
[ROW][C]43[/C][C]536214[/C][C]513655.475163235[/C][C]22558.5248367654[/C][/ROW]
[ROW][C]44[/C][C]586570[/C][C]571306.397312908[/C][C]15263.6026870919[/C][/ROW]
[ROW][C]45[/C][C]596594[/C][C]577575.605097941[/C][C]19018.3949020592[/C][/ROW]
[ROW][C]46[/C][C]580523[/C][C]560989.51677549[/C][C]19533.4832245103[/C][/ROW]
[ROW][C]47[/C][C]564478[/C][C]546781.34281768[/C][C]17696.6571823204[/C][/ROW]
[ROW][C]48[/C][C]557560[/C][C]530954.981742843[/C][C]26605.0182571572[/C][/ROW]
[ROW][C]49[/C][C]575093[/C][C]543191.124560522[/C][C]31901.8754394778[/C][/ROW]
[ROW][C]50[/C][C]580112[/C][C]547057.724560522[/C][C]33054.2754394776[/C][/ROW]
[ROW][C]51[/C][C]574761[/C][C]545557.97395781[/C][C]29203.0260421898[/C][/ROW]
[ROW][C]52[/C][C]563250[/C][C]540458.503892516[/C][C]22791.4961074837[/C][/ROW]
[ROW][C]53[/C][C]551531[/C][C]530192.677850327[/C][C]21338.3221496735[/C][/ROW]
[ROW][C]54[/C][C]537034[/C][C]521112.023355098[/C][C]15921.9766449021[/C][/ROW]
[ROW][C]55[/C][C]544686[/C][C]527390.280537418[/C][C]17295.7194625816[/C][/ROW]
[ROW][C]56[/C][C]600991[/C][C]580920.761074837[/C][C]20070.2389251633[/C][/ROW]
[ROW][C]57[/C][C]604378[/C][C]587189.968859869[/C][C]17188.0311401306[/C][/ROW]
[ROW][C]58[/C][C]586111[/C][C]574724.322149673[/C][C]11386.6778503265[/C][/ROW]
[ROW][C]59[/C][C]563668[/C][C]560516.148191863[/C][C]3151.85180813665[/C][/ROW]
[ROW][C]60[/C][C]548604[/C][C]548810.228729282[/C][C]-206.228729281760[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116862&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116862&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
1597141562419.8520843834721.1479156195
2593408564912.97154696128495.0284530387
3590072556545.81825715733526.1817428428
4579799545952.4260421933846.5739578102
5574205539807.04161225534397.9583877449
6572775530726.38711702742048.6128829734
7572942534257.6832245138684.3167754897
8619567583667.72214967435899.2778503265
9625809589936.92993470635872.0700652938
10619916580218.24429934739697.755700653
11587625561889.62872928225735.3712707182
12565742540569.34550477125172.6544952285
13557274562419.85208438-5145.85208437949
14560576569033.413159216-8457.41315921646
15548854562039.740406831-13185.7404068307
16531673554193.3092667-22520.3092667001
17525919550794.885911602-24875.8859116022
18511038534846.828729282-23808.8287292817
19498662535631.163761929-36969.1637619287
20555362583667.722149674-28305.7221496735
21564591589936.929934706-25345.9299347062
22541657576097.802687092-34440.8026870919
23527070549528.303892516-22458.3038925163
24509846546063.267654445-36217.267654445
25514258555552.449397288-41294.4493972876
26516922563539.491009543-46617.4910095429
27507561559292.779331994-51731.7793319939
28492622541831.984429935-49209.9844299347
29490243535686.6-45443.6
30469357518365.062280261-49008.0622802612
31477580519149.397312908-41569.3973129081
32528379571306.397312908-42927.3973129081
33533590580322.566172778-46732.5661727775
34517945554122.114088398-36177.1140883978
35506174530299.576368659-24125.576368659
36501866517220.176368659-15354.176368659
37516141536323.72187343-20182.7218734303
38528222534696.399723757-6474.39972375694
39532638530449.6880462082188.31195379204
40536322521229.77636865915092.223631341
41536535521951.79462581614583.2053741838
42523597508750.69851833314846.3014816675
43536214513655.47516323522558.5248367654
44586570571306.39731290815263.6026870919
45596594577575.60509794119018.3949020592
46580523560989.5167754919533.4832245103
47564478546781.3428176817696.6571823204
48557560530954.98174284326605.0182571572
49575093543191.12456052231901.8754394778
50580112547057.72456052233054.2754394776
51574761545557.9739578129203.0260421898
52563250540458.50389251622791.4961074837
53551531530192.67785032721338.3221496735
54537034521112.02335509815921.9766449021
55544686527390.28053741817295.7194625816
56600991580920.76107483720070.2389251633
57604378587189.96885986917188.0311401306
58586111574724.32214967311386.6778503265
59563668560516.1481918633151.85180813665
60548604548810.228729282-206.228729281760







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1594267093083930.3188534186167870.840573290691607
170.08427190829235950.1685438165847190.91572809170764
180.1005425373677690.2010850747355390.89945746263223
190.2599169080355170.5198338160710340.740083091964483
200.3651540336221050.7303080672442110.634845966377894
210.4189682580558170.8379365161116330.581031741944183
220.6636076052446570.6727847895106870.336392394755343
230.7722039245482010.4555921509035980.227796075451799
240.7427241552879960.5145516894240080.257275844712004
250.7888113329264630.4223773341470740.211188667073537
260.8224825350200770.3550349299598460.177517464979923
270.8805721188455380.2388557623089240.119427881154462
280.9297201312105040.1405597375789920.0702798687894958
290.9586840707744120.08263185845117670.0413159292255884
300.9773829092246630.04523418155067420.0226170907753371
310.9856765289086210.02864694218275710.0143234710913786
320.991830508923680.01633898215263930.00816949107631967
330.998341607194970.003316785610060750.00165839280503038
340.998989984467820.002020031064360120.00101001553218006
350.9983063091288520.003387381742295740.00169369087114787
360.9972412496935960.005517500612808460.00275875030640423
370.9993463114937620.001307377012476450.000653688506238226
380.999847702110530.0003045957789412140.000152297889470607
390.9999619185738357.61628523294494e-053.80814261647247e-05
400.9999500064634159.99870731706652e-054.99935365853326e-05
410.9998697855900870.0002604288198259840.000130214409912992
420.9995586312356050.0008827375287898610.000441368764394930
430.9978270168897450.004345966220509180.00217298311025459
440.99579156451580.008416870968398740.00420843548419937

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.159426709308393 & 0.318853418616787 & 0.840573290691607 \tabularnewline
17 & 0.0842719082923595 & 0.168543816584719 & 0.91572809170764 \tabularnewline
18 & 0.100542537367769 & 0.201085074735539 & 0.89945746263223 \tabularnewline
19 & 0.259916908035517 & 0.519833816071034 & 0.740083091964483 \tabularnewline
20 & 0.365154033622105 & 0.730308067244211 & 0.634845966377894 \tabularnewline
21 & 0.418968258055817 & 0.837936516111633 & 0.581031741944183 \tabularnewline
22 & 0.663607605244657 & 0.672784789510687 & 0.336392394755343 \tabularnewline
23 & 0.772203924548201 & 0.455592150903598 & 0.227796075451799 \tabularnewline
24 & 0.742724155287996 & 0.514551689424008 & 0.257275844712004 \tabularnewline
25 & 0.788811332926463 & 0.422377334147074 & 0.211188667073537 \tabularnewline
26 & 0.822482535020077 & 0.355034929959846 & 0.177517464979923 \tabularnewline
27 & 0.880572118845538 & 0.238855762308924 & 0.119427881154462 \tabularnewline
28 & 0.929720131210504 & 0.140559737578992 & 0.0702798687894958 \tabularnewline
29 & 0.958684070774412 & 0.0826318584511767 & 0.0413159292255884 \tabularnewline
30 & 0.977382909224663 & 0.0452341815506742 & 0.0226170907753371 \tabularnewline
31 & 0.985676528908621 & 0.0286469421827571 & 0.0143234710913786 \tabularnewline
32 & 0.99183050892368 & 0.0163389821526393 & 0.00816949107631967 \tabularnewline
33 & 0.99834160719497 & 0.00331678561006075 & 0.00165839280503038 \tabularnewline
34 & 0.99898998446782 & 0.00202003106436012 & 0.00101001553218006 \tabularnewline
35 & 0.998306309128852 & 0.00338738174229574 & 0.00169369087114787 \tabularnewline
36 & 0.997241249693596 & 0.00551750061280846 & 0.00275875030640423 \tabularnewline
37 & 0.999346311493762 & 0.00130737701247645 & 0.000653688506238226 \tabularnewline
38 & 0.99984770211053 & 0.000304595778941214 & 0.000152297889470607 \tabularnewline
39 & 0.999961918573835 & 7.61628523294494e-05 & 3.80814261647247e-05 \tabularnewline
40 & 0.999950006463415 & 9.99870731706652e-05 & 4.99935365853326e-05 \tabularnewline
41 & 0.999869785590087 & 0.000260428819825984 & 0.000130214409912992 \tabularnewline
42 & 0.999558631235605 & 0.000882737528789861 & 0.000441368764394930 \tabularnewline
43 & 0.997827016889745 & 0.00434596622050918 & 0.00217298311025459 \tabularnewline
44 & 0.9957915645158 & 0.00841687096839874 & 0.00420843548419937 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116862&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.159426709308393[/C][C]0.318853418616787[/C][C]0.840573290691607[/C][/ROW]
[ROW][C]17[/C][C]0.0842719082923595[/C][C]0.168543816584719[/C][C]0.91572809170764[/C][/ROW]
[ROW][C]18[/C][C]0.100542537367769[/C][C]0.201085074735539[/C][C]0.89945746263223[/C][/ROW]
[ROW][C]19[/C][C]0.259916908035517[/C][C]0.519833816071034[/C][C]0.740083091964483[/C][/ROW]
[ROW][C]20[/C][C]0.365154033622105[/C][C]0.730308067244211[/C][C]0.634845966377894[/C][/ROW]
[ROW][C]21[/C][C]0.418968258055817[/C][C]0.837936516111633[/C][C]0.581031741944183[/C][/ROW]
[ROW][C]22[/C][C]0.663607605244657[/C][C]0.672784789510687[/C][C]0.336392394755343[/C][/ROW]
[ROW][C]23[/C][C]0.772203924548201[/C][C]0.455592150903598[/C][C]0.227796075451799[/C][/ROW]
[ROW][C]24[/C][C]0.742724155287996[/C][C]0.514551689424008[/C][C]0.257275844712004[/C][/ROW]
[ROW][C]25[/C][C]0.788811332926463[/C][C]0.422377334147074[/C][C]0.211188667073537[/C][/ROW]
[ROW][C]26[/C][C]0.822482535020077[/C][C]0.355034929959846[/C][C]0.177517464979923[/C][/ROW]
[ROW][C]27[/C][C]0.880572118845538[/C][C]0.238855762308924[/C][C]0.119427881154462[/C][/ROW]
[ROW][C]28[/C][C]0.929720131210504[/C][C]0.140559737578992[/C][C]0.0702798687894958[/C][/ROW]
[ROW][C]29[/C][C]0.958684070774412[/C][C]0.0826318584511767[/C][C]0.0413159292255884[/C][/ROW]
[ROW][C]30[/C][C]0.977382909224663[/C][C]0.0452341815506742[/C][C]0.0226170907753371[/C][/ROW]
[ROW][C]31[/C][C]0.985676528908621[/C][C]0.0286469421827571[/C][C]0.0143234710913786[/C][/ROW]
[ROW][C]32[/C][C]0.99183050892368[/C][C]0.0163389821526393[/C][C]0.00816949107631967[/C][/ROW]
[ROW][C]33[/C][C]0.99834160719497[/C][C]0.00331678561006075[/C][C]0.00165839280503038[/C][/ROW]
[ROW][C]34[/C][C]0.99898998446782[/C][C]0.00202003106436012[/C][C]0.00101001553218006[/C][/ROW]
[ROW][C]35[/C][C]0.998306309128852[/C][C]0.00338738174229574[/C][C]0.00169369087114787[/C][/ROW]
[ROW][C]36[/C][C]0.997241249693596[/C][C]0.00551750061280846[/C][C]0.00275875030640423[/C][/ROW]
[ROW][C]37[/C][C]0.999346311493762[/C][C]0.00130737701247645[/C][C]0.000653688506238226[/C][/ROW]
[ROW][C]38[/C][C]0.99984770211053[/C][C]0.000304595778941214[/C][C]0.000152297889470607[/C][/ROW]
[ROW][C]39[/C][C]0.999961918573835[/C][C]7.61628523294494e-05[/C][C]3.80814261647247e-05[/C][/ROW]
[ROW][C]40[/C][C]0.999950006463415[/C][C]9.99870731706652e-05[/C][C]4.99935365853326e-05[/C][/ROW]
[ROW][C]41[/C][C]0.999869785590087[/C][C]0.000260428819825984[/C][C]0.000130214409912992[/C][/ROW]
[ROW][C]42[/C][C]0.999558631235605[/C][C]0.000882737528789861[/C][C]0.000441368764394930[/C][/ROW]
[ROW][C]43[/C][C]0.997827016889745[/C][C]0.00434596622050918[/C][C]0.00217298311025459[/C][/ROW]
[ROW][C]44[/C][C]0.9957915645158[/C][C]0.00841687096839874[/C][C]0.00420843548419937[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116862&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116862&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.1594267093083930.3188534186167870.840573290691607
170.08427190829235950.1685438165847190.91572809170764
180.1005425373677690.2010850747355390.89945746263223
190.2599169080355170.5198338160710340.740083091964483
200.3651540336221050.7303080672442110.634845966377894
210.4189682580558170.8379365161116330.581031741944183
220.6636076052446570.6727847895106870.336392394755343
230.7722039245482010.4555921509035980.227796075451799
240.7427241552879960.5145516894240080.257275844712004
250.7888113329264630.4223773341470740.211188667073537
260.8224825350200770.3550349299598460.177517464979923
270.8805721188455380.2388557623089240.119427881154462
280.9297201312105040.1405597375789920.0702798687894958
290.9586840707744120.08263185845117670.0413159292255884
300.9773829092246630.04523418155067420.0226170907753371
310.9856765289086210.02864694218275710.0143234710913786
320.991830508923680.01633898215263930.00816949107631967
330.998341607194970.003316785610060750.00165839280503038
340.998989984467820.002020031064360120.00101001553218006
350.9983063091288520.003387381742295740.00169369087114787
360.9972412496935960.005517500612808460.00275875030640423
370.9993463114937620.001307377012476450.000653688506238226
380.999847702110530.0003045957789412140.000152297889470607
390.9999619185738357.61628523294494e-053.80814261647247e-05
400.9999500064634159.99870731706652e-054.99935365853326e-05
410.9998697855900870.0002604288198259840.000130214409912992
420.9995586312356050.0008827375287898610.000441368764394930
430.9978270168897450.004345966220509180.00217298311025459
440.99579156451580.008416870968398740.00420843548419937







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level120.413793103448276NOK
5% type I error level150.517241379310345NOK
10% type I error level160.551724137931034NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116862&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 level120.413793103448276NOK
5% type I error level150.517241379310345NOK
10% type I error level160.551724137931034NOK



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