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, 01 Dec 2010 17:47:50 +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/01/t129122561357786xfuv29y81v.htm/, Retrieved Sat, 04 May 2024 21:51:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=104138, Retrieved Sat, 04 May 2024 21:51:34 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact160
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F       [Multiple Regression] [Workshop 4] [2010-12-01 17:47:50] [ae555db68faeb138426117ca316fbf2a] [Current]
-    D    [Multiple Regression] [] [2010-12-02 15:18:47] [fd57ceeb2f72ef497e1390930b11fced]
-    D      [Multiple Regression] [] [2010-12-02 15:36:00] [fd57ceeb2f72ef497e1390930b11fced]
Feedback Forum
2010-12-03 16:38:22 [ba649bcbce610ec46a1b86e55eeb8571] [reply
Beste,

Je hebt je gegevens niet gerandomiseerd waardoor het volgens mij niet meer dan logisch is dat je een normaalverdeling krijgt. Je had dus beter gewoon alle gegevens genomen oftewel ze eerst eens goed door elkaar geschud. Doordat je niet alle gegevens hebt genomen heb je immers geen goed beeld van de markt volgens mij. Vraag dit voor de zekerheid eens na bij prof Wessa!

Post a new message
Dataseries X:
162556	807	213118	6282154
29790	444	81767	4321023
87550	412	153198	4111912
84738	428	-26007	223193
54660	315	126942	1491348
42634	168	157214	1629616
40949	263	129352	1398893
45187	267	234817	1926517
37704	228	60448	983660
16275	129	47818	1443586
25830	104	245546	1073089
12679	122	48020	984885
18014	393	-1710	1405225
43556	190	32648	227132
24811	280	95350	929118
6575	63	151352	1071292
7123	102	288170	638830
21950	265	114337	856956
37597	234	37884	992426
17821	277	122844	444477
12988	73	82340	857217
22330	67	79801	711969
13326	103	165548	702380
16189	290	116384	358589
7146	83	134028	297978
15824	56	63838	585715
27664	236	74996	657954
11920	73	31080	209458
8568	34	32168	786690
14416	139	49857	439798
3369	26	87161	688779
11819	70	106113	574339
6984	40	80570	741409
4519	42	102129	597793
2220	12	301670	644190
18562	211	102313	377934
10327	74	88577	640273
5336	80	112477	697458
2365	83	191778	550608
4069	131	79804	207393
8636	203	128294	301607
13718	56	96448	345783
4525	89	93811	501749
6869	88	117520	379983
4628	39	69159	387475
3689	25	101792	377305
4891	49	210568	370837
7489	149	136996	430866
4901	58	121920	469107
2284	41	76403	194493




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 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 & 4 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=104138&T=0

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Wealth[t] = + 23546.9979632041 + 13.9716805944773Costs[t] + 2839.80734684669Orders[t] + 3.4504396643183Dividends[t] -9004.44968489971t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Wealth[t] =  +  23546.9979632041 +  13.9716805944773Costs[t] +  2839.80734684669Orders[t] +  3.4504396643183Dividends[t] -9004.44968489971t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=104138&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Wealth[t] =  +  23546.9979632041 +  13.9716805944773Costs[t] +  2839.80734684669Orders[t] +  3.4504396643183Dividends[t] -9004.44968489971t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=104138&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=104138&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
Wealth[t] = + 23546.9979632041 + 13.9716805944773Costs[t] + 2839.80734684669Orders[t] + 3.4504396643183Dividends[t] -9004.44968489971t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)23546.9979632041380044.0533970.0620.950870.475435
Costs13.97168059447736.9774342.00240.0512890.025644
Orders2839.807346846691296.7102862.190.0337480.016874
Dividends3.45043966431831.4276792.41680.0197740.009887
t-9004.449684899718948.121956-1.00630.3196540.159827

\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) & 23546.9979632041 & 380044.053397 & 0.062 & 0.95087 & 0.475435 \tabularnewline
Costs & 13.9716805944773 & 6.977434 & 2.0024 & 0.051289 & 0.025644 \tabularnewline
Orders & 2839.80734684669 & 1296.710286 & 2.19 & 0.033748 & 0.016874 \tabularnewline
Dividends & 3.4504396643183 & 1.427679 & 2.4168 & 0.019774 & 0.009887 \tabularnewline
t & -9004.44968489971 & 8948.121956 & -1.0063 & 0.319654 & 0.159827 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=104138&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]23546.9979632041[/C][C]380044.053397[/C][C]0.062[/C][C]0.95087[/C][C]0.475435[/C][/ROW]
[ROW][C]Costs[/C][C]13.9716805944773[/C][C]6.977434[/C][C]2.0024[/C][C]0.051289[/C][C]0.025644[/C][/ROW]
[ROW][C]Orders[/C][C]2839.80734684669[/C][C]1296.710286[/C][C]2.19[/C][C]0.033748[/C][C]0.016874[/C][/ROW]
[ROW][C]Dividends[/C][C]3.4504396643183[/C][C]1.427679[/C][C]2.4168[/C][C]0.019774[/C][C]0.009887[/C][/ROW]
[ROW][C]t[/C][C]-9004.44968489971[/C][C]8948.121956[/C][C]-1.0063[/C][C]0.319654[/C][C]0.159827[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=104138&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=104138&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)23546.9979632041380044.0533970.0620.950870.475435
Costs13.97168059447736.9774342.00240.0512890.025644
Orders2839.807346846691296.7102862.190.0337480.016874
Dividends3.45043966431831.4276792.41680.0197740.009887
t-9004.449684899718948.121956-1.00630.3196540.159827







Multiple Linear Regression - Regression Statistics
Multiple R0.819356821074545
R-squared0.671345600241384
Adjusted R-squared0.642131875818396
F-TEST (value)22.9804865179431
F-TEST (DF numerator)4
F-TEST (DF denominator)45
p-value2.15578666029614e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation665198.538833598
Sum Squared Residuals19912009322985.9

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.819356821074545 \tabularnewline
R-squared & 0.671345600241384 \tabularnewline
Adjusted R-squared & 0.642131875818396 \tabularnewline
F-TEST (value) & 22.9804865179431 \tabularnewline
F-TEST (DF numerator) & 4 \tabularnewline
F-TEST (DF denominator) & 45 \tabularnewline
p-value & 2.15578666029614e-10 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 665198.538833598 \tabularnewline
Sum Squared Residuals & 19912009322985.9 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=104138&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.819356821074545[/C][/ROW]
[ROW][C]R-squared[/C][C]0.671345600241384[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.642131875818396[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]22.9804865179431[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]4[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]45[/C][/ROW]
[ROW][C]p-value[/C][C]2.15578666029614e-10[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]665198.538833598[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]19912009322985.9[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=104138&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=104138&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.819356821074545
R-squared0.671345600241384
Adjusted R-squared0.642131875818396
F-TEST (value)22.9804865179431
F-TEST (DF numerator)4
F-TEST (DF denominator)45
p-value2.15578666029614e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation665198.538833598
Sum Squared Residuals19912009322985.9







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
162821545312798.38827962969355.611720383
243210231964761.025535132356261.97446487
341119122918355.367550061193556.63244994
42231932297163.42953888-2073970.42953888
514913482074761.83695743-583413.836957434
616296161584733.9859751344882.0140248697
713988931725832.80251174-326939.802511736
819265172151300.18377095-224783.183770947
99836601325343.44784304-341683.447843035
101443586692219.87440092751366.12559908
1110730891427968.18307141-354879.183071411
12984885604787.148997646380097.851002354
1314052251268319.04177319136905.958226813
142271321158248.57240919-931116.572409195
159291181359277.09902911-430159.099029107
161071292672478.409838741398813.590161259
176388301253965.18163934-615135.181639337
188569561315207.15949732-458251.15949732
199924261172987.10466583-180561.104665831
204444771302939.76933944-858462.76933944
21857217507332.880421158349884.119578842
22711969603052.36046108108916.639538920
23702380866344.81308629-163964.813086290
243585891258747.84314716-900158.843147165
25297978596436.922486374-298458.922486374
26585715389817.558596986195897.441403014
276579541095903.13535757-437949.135357565
28209458252510.440559002-43052.4405590021
2978669089674.509349172697015.490650828
30439798521591.046421804-81793.0464218044
31688779166058.412253768522720.587746232
32574339465458.919371616108880.080628384
33741409215572.593261336525836.406738664
34597793252195.594327781345597.405672219
35644190814380.211608515-170190.211608515
36377934910953.328061551-533019.328061551
37640273350443.242934058289829.757065942
38697458371210.48746041326247.51253959
39550608602838.912589964-52230.9125899638
40207393367593.428314317-160200.428314317
41301607794175.592200152-492568.592200152
42345783328840.84176004116942.1582399590
43501749276009.565421245225739.434578755
44379983378721.4017042761261.5982957237
4538747532389.1432055677355085.856794432
4637730583106.1801522993294198.819847701
47370837534376.091792169-163539.091792169
48430866591795.055993165-160929.055993165
49469107236190.599987446232916.400012554
50194493-14708.1249103702209201.124910370

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 6282154 & 5312798.38827962 & 969355.611720383 \tabularnewline
2 & 4321023 & 1964761.02553513 & 2356261.97446487 \tabularnewline
3 & 4111912 & 2918355.36755006 & 1193556.63244994 \tabularnewline
4 & 223193 & 2297163.42953888 & -2073970.42953888 \tabularnewline
5 & 1491348 & 2074761.83695743 & -583413.836957434 \tabularnewline
6 & 1629616 & 1584733.98597513 & 44882.0140248697 \tabularnewline
7 & 1398893 & 1725832.80251174 & -326939.802511736 \tabularnewline
8 & 1926517 & 2151300.18377095 & -224783.183770947 \tabularnewline
9 & 983660 & 1325343.44784304 & -341683.447843035 \tabularnewline
10 & 1443586 & 692219.87440092 & 751366.12559908 \tabularnewline
11 & 1073089 & 1427968.18307141 & -354879.183071411 \tabularnewline
12 & 984885 & 604787.148997646 & 380097.851002354 \tabularnewline
13 & 1405225 & 1268319.04177319 & 136905.958226813 \tabularnewline
14 & 227132 & 1158248.57240919 & -931116.572409195 \tabularnewline
15 & 929118 & 1359277.09902911 & -430159.099029107 \tabularnewline
16 & 1071292 & 672478.409838741 & 398813.590161259 \tabularnewline
17 & 638830 & 1253965.18163934 & -615135.181639337 \tabularnewline
18 & 856956 & 1315207.15949732 & -458251.15949732 \tabularnewline
19 & 992426 & 1172987.10466583 & -180561.104665831 \tabularnewline
20 & 444477 & 1302939.76933944 & -858462.76933944 \tabularnewline
21 & 857217 & 507332.880421158 & 349884.119578842 \tabularnewline
22 & 711969 & 603052.36046108 & 108916.639538920 \tabularnewline
23 & 702380 & 866344.81308629 & -163964.813086290 \tabularnewline
24 & 358589 & 1258747.84314716 & -900158.843147165 \tabularnewline
25 & 297978 & 596436.922486374 & -298458.922486374 \tabularnewline
26 & 585715 & 389817.558596986 & 195897.441403014 \tabularnewline
27 & 657954 & 1095903.13535757 & -437949.135357565 \tabularnewline
28 & 209458 & 252510.440559002 & -43052.4405590021 \tabularnewline
29 & 786690 & 89674.509349172 & 697015.490650828 \tabularnewline
30 & 439798 & 521591.046421804 & -81793.0464218044 \tabularnewline
31 & 688779 & 166058.412253768 & 522720.587746232 \tabularnewline
32 & 574339 & 465458.919371616 & 108880.080628384 \tabularnewline
33 & 741409 & 215572.593261336 & 525836.406738664 \tabularnewline
34 & 597793 & 252195.594327781 & 345597.405672219 \tabularnewline
35 & 644190 & 814380.211608515 & -170190.211608515 \tabularnewline
36 & 377934 & 910953.328061551 & -533019.328061551 \tabularnewline
37 & 640273 & 350443.242934058 & 289829.757065942 \tabularnewline
38 & 697458 & 371210.48746041 & 326247.51253959 \tabularnewline
39 & 550608 & 602838.912589964 & -52230.9125899638 \tabularnewline
40 & 207393 & 367593.428314317 & -160200.428314317 \tabularnewline
41 & 301607 & 794175.592200152 & -492568.592200152 \tabularnewline
42 & 345783 & 328840.841760041 & 16942.1582399590 \tabularnewline
43 & 501749 & 276009.565421245 & 225739.434578755 \tabularnewline
44 & 379983 & 378721.401704276 & 1261.5982957237 \tabularnewline
45 & 387475 & 32389.1432055677 & 355085.856794432 \tabularnewline
46 & 377305 & 83106.1801522993 & 294198.819847701 \tabularnewline
47 & 370837 & 534376.091792169 & -163539.091792169 \tabularnewline
48 & 430866 & 591795.055993165 & -160929.055993165 \tabularnewline
49 & 469107 & 236190.599987446 & 232916.400012554 \tabularnewline
50 & 194493 & -14708.1249103702 & 209201.124910370 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=104138&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]6282154[/C][C]5312798.38827962[/C][C]969355.611720383[/C][/ROW]
[ROW][C]2[/C][C]4321023[/C][C]1964761.02553513[/C][C]2356261.97446487[/C][/ROW]
[ROW][C]3[/C][C]4111912[/C][C]2918355.36755006[/C][C]1193556.63244994[/C][/ROW]
[ROW][C]4[/C][C]223193[/C][C]2297163.42953888[/C][C]-2073970.42953888[/C][/ROW]
[ROW][C]5[/C][C]1491348[/C][C]2074761.83695743[/C][C]-583413.836957434[/C][/ROW]
[ROW][C]6[/C][C]1629616[/C][C]1584733.98597513[/C][C]44882.0140248697[/C][/ROW]
[ROW][C]7[/C][C]1398893[/C][C]1725832.80251174[/C][C]-326939.802511736[/C][/ROW]
[ROW][C]8[/C][C]1926517[/C][C]2151300.18377095[/C][C]-224783.183770947[/C][/ROW]
[ROW][C]9[/C][C]983660[/C][C]1325343.44784304[/C][C]-341683.447843035[/C][/ROW]
[ROW][C]10[/C][C]1443586[/C][C]692219.87440092[/C][C]751366.12559908[/C][/ROW]
[ROW][C]11[/C][C]1073089[/C][C]1427968.18307141[/C][C]-354879.183071411[/C][/ROW]
[ROW][C]12[/C][C]984885[/C][C]604787.148997646[/C][C]380097.851002354[/C][/ROW]
[ROW][C]13[/C][C]1405225[/C][C]1268319.04177319[/C][C]136905.958226813[/C][/ROW]
[ROW][C]14[/C][C]227132[/C][C]1158248.57240919[/C][C]-931116.572409195[/C][/ROW]
[ROW][C]15[/C][C]929118[/C][C]1359277.09902911[/C][C]-430159.099029107[/C][/ROW]
[ROW][C]16[/C][C]1071292[/C][C]672478.409838741[/C][C]398813.590161259[/C][/ROW]
[ROW][C]17[/C][C]638830[/C][C]1253965.18163934[/C][C]-615135.181639337[/C][/ROW]
[ROW][C]18[/C][C]856956[/C][C]1315207.15949732[/C][C]-458251.15949732[/C][/ROW]
[ROW][C]19[/C][C]992426[/C][C]1172987.10466583[/C][C]-180561.104665831[/C][/ROW]
[ROW][C]20[/C][C]444477[/C][C]1302939.76933944[/C][C]-858462.76933944[/C][/ROW]
[ROW][C]21[/C][C]857217[/C][C]507332.880421158[/C][C]349884.119578842[/C][/ROW]
[ROW][C]22[/C][C]711969[/C][C]603052.36046108[/C][C]108916.639538920[/C][/ROW]
[ROW][C]23[/C][C]702380[/C][C]866344.81308629[/C][C]-163964.813086290[/C][/ROW]
[ROW][C]24[/C][C]358589[/C][C]1258747.84314716[/C][C]-900158.843147165[/C][/ROW]
[ROW][C]25[/C][C]297978[/C][C]596436.922486374[/C][C]-298458.922486374[/C][/ROW]
[ROW][C]26[/C][C]585715[/C][C]389817.558596986[/C][C]195897.441403014[/C][/ROW]
[ROW][C]27[/C][C]657954[/C][C]1095903.13535757[/C][C]-437949.135357565[/C][/ROW]
[ROW][C]28[/C][C]209458[/C][C]252510.440559002[/C][C]-43052.4405590021[/C][/ROW]
[ROW][C]29[/C][C]786690[/C][C]89674.509349172[/C][C]697015.490650828[/C][/ROW]
[ROW][C]30[/C][C]439798[/C][C]521591.046421804[/C][C]-81793.0464218044[/C][/ROW]
[ROW][C]31[/C][C]688779[/C][C]166058.412253768[/C][C]522720.587746232[/C][/ROW]
[ROW][C]32[/C][C]574339[/C][C]465458.919371616[/C][C]108880.080628384[/C][/ROW]
[ROW][C]33[/C][C]741409[/C][C]215572.593261336[/C][C]525836.406738664[/C][/ROW]
[ROW][C]34[/C][C]597793[/C][C]252195.594327781[/C][C]345597.405672219[/C][/ROW]
[ROW][C]35[/C][C]644190[/C][C]814380.211608515[/C][C]-170190.211608515[/C][/ROW]
[ROW][C]36[/C][C]377934[/C][C]910953.328061551[/C][C]-533019.328061551[/C][/ROW]
[ROW][C]37[/C][C]640273[/C][C]350443.242934058[/C][C]289829.757065942[/C][/ROW]
[ROW][C]38[/C][C]697458[/C][C]371210.48746041[/C][C]326247.51253959[/C][/ROW]
[ROW][C]39[/C][C]550608[/C][C]602838.912589964[/C][C]-52230.9125899638[/C][/ROW]
[ROW][C]40[/C][C]207393[/C][C]367593.428314317[/C][C]-160200.428314317[/C][/ROW]
[ROW][C]41[/C][C]301607[/C][C]794175.592200152[/C][C]-492568.592200152[/C][/ROW]
[ROW][C]42[/C][C]345783[/C][C]328840.841760041[/C][C]16942.1582399590[/C][/ROW]
[ROW][C]43[/C][C]501749[/C][C]276009.565421245[/C][C]225739.434578755[/C][/ROW]
[ROW][C]44[/C][C]379983[/C][C]378721.401704276[/C][C]1261.5982957237[/C][/ROW]
[ROW][C]45[/C][C]387475[/C][C]32389.1432055677[/C][C]355085.856794432[/C][/ROW]
[ROW][C]46[/C][C]377305[/C][C]83106.1801522993[/C][C]294198.819847701[/C][/ROW]
[ROW][C]47[/C][C]370837[/C][C]534376.091792169[/C][C]-163539.091792169[/C][/ROW]
[ROW][C]48[/C][C]430866[/C][C]591795.055993165[/C][C]-160929.055993165[/C][/ROW]
[ROW][C]49[/C][C]469107[/C][C]236190.599987446[/C][C]232916.400012554[/C][/ROW]
[ROW][C]50[/C][C]194493[/C][C]-14708.1249103702[/C][C]209201.124910370[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=104138&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=104138&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
162821545312798.38827962969355.611720383
243210231964761.025535132356261.97446487
341119122918355.367550061193556.63244994
42231932297163.42953888-2073970.42953888
514913482074761.83695743-583413.836957434
616296161584733.9859751344882.0140248697
713988931725832.80251174-326939.802511736
819265172151300.18377095-224783.183770947
99836601325343.44784304-341683.447843035
101443586692219.87440092751366.12559908
1110730891427968.18307141-354879.183071411
12984885604787.148997646380097.851002354
1314052251268319.04177319136905.958226813
142271321158248.57240919-931116.572409195
159291181359277.09902911-430159.099029107
161071292672478.409838741398813.590161259
176388301253965.18163934-615135.181639337
188569561315207.15949732-458251.15949732
199924261172987.10466583-180561.104665831
204444771302939.76933944-858462.76933944
21857217507332.880421158349884.119578842
22711969603052.36046108108916.639538920
23702380866344.81308629-163964.813086290
243585891258747.84314716-900158.843147165
25297978596436.922486374-298458.922486374
26585715389817.558596986195897.441403014
276579541095903.13535757-437949.135357565
28209458252510.440559002-43052.4405590021
2978669089674.509349172697015.490650828
30439798521591.046421804-81793.0464218044
31688779166058.412253768522720.587746232
32574339465458.919371616108880.080628384
33741409215572.593261336525836.406738664
34597793252195.594327781345597.405672219
35644190814380.211608515-170190.211608515
36377934910953.328061551-533019.328061551
37640273350443.242934058289829.757065942
38697458371210.48746041326247.51253959
39550608602838.912589964-52230.9125899638
40207393367593.428314317-160200.428314317
41301607794175.592200152-492568.592200152
42345783328840.84176004116942.1582399590
43501749276009.565421245225739.434578755
44379983378721.4017042761261.5982957237
4538747532389.1432055677355085.856794432
4637730583106.1801522993294198.819847701
47370837534376.091792169-163539.091792169
48430866591795.055993165-160929.055993165
49469107236190.599987446232916.400012554
50194493-14708.1249103702209201.124910370







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.9965073641560430.006985271687913620.00349263584395681
90.9999999155757471.68848505856559e-078.44242529282793e-08
100.9999999999621757.56497392957813e-113.78248696478907e-11
110.9999999999211751.57649079762029e-107.88245398810143e-11
120.9999999999075061.84987113470480e-109.24935567352399e-11
130.9999999999883642.327196614098e-111.163598307049e-11
140.9999999999994281.14480665504541e-125.72403327522705e-13
150.9999999999987752.44957312459637e-121.22478656229818e-12
160.9999999999995748.5281339558329e-134.26406697791645e-13
170.9999999999992481.50442013722568e-127.52210068612842e-13
180.999999999998542.92152805809135e-121.46076402904568e-12
190.9999999999993351.33023257481046e-126.65116287405231e-13
200.9999999999974735.05368201986704e-122.52684100993352e-12
210.9999999999987732.45336240116369e-121.22668120058185e-12
220.9999999999969536.09438168460284e-123.04719084230142e-12
230.9999999999838473.23059375217913e-111.61529687608957e-11
240.9999999999354341.29132475870623e-106.45662379353113e-11
250.9999999999675236.49539117069232e-113.24769558534616e-11
260.9999999999049931.90013328470725e-109.50066642353624e-11
270.9999999997341725.31656405211626e-102.65828202605813e-10
280.9999999999867952.64092849132215e-111.32046424566108e-11
290.9999999999665556.68891716037278e-113.34445858018639e-11
300.9999999998523162.95368350504495e-101.47684175252247e-10
310.9999999991594351.68113033363307e-098.40565166816536e-10
320.9999999948938421.02123164506304e-085.10615822531519e-09
330.9999999793197184.13605648519324e-082.06802824259662e-08
340.9999998666281762.66743647837215e-071.33371823918608e-07
350.9999993738971681.25220566479113e-066.26102832395563e-07
360.9999964962921537.00741569405198e-063.50370784702599e-06
370.9999860637024492.78725951024098e-051.39362975512049e-05
380.999985143118212.97137635789386e-051.48568817894693e-05
390.9999313739978670.0001372520042663266.8626002133163e-05
400.9997408551899070.000518289620187010.000259144810093505
410.9994112351069420.001177529786116040.000588764893058021
420.995714661898580.008570676202840530.00428533810142026

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
8 & 0.996507364156043 & 0.00698527168791362 & 0.00349263584395681 \tabularnewline
9 & 0.999999915575747 & 1.68848505856559e-07 & 8.44242529282793e-08 \tabularnewline
10 & 0.999999999962175 & 7.56497392957813e-11 & 3.78248696478907e-11 \tabularnewline
11 & 0.999999999921175 & 1.57649079762029e-10 & 7.88245398810143e-11 \tabularnewline
12 & 0.999999999907506 & 1.84987113470480e-10 & 9.24935567352399e-11 \tabularnewline
13 & 0.999999999988364 & 2.327196614098e-11 & 1.163598307049e-11 \tabularnewline
14 & 0.999999999999428 & 1.14480665504541e-12 & 5.72403327522705e-13 \tabularnewline
15 & 0.999999999998775 & 2.44957312459637e-12 & 1.22478656229818e-12 \tabularnewline
16 & 0.999999999999574 & 8.5281339558329e-13 & 4.26406697791645e-13 \tabularnewline
17 & 0.999999999999248 & 1.50442013722568e-12 & 7.52210068612842e-13 \tabularnewline
18 & 0.99999999999854 & 2.92152805809135e-12 & 1.46076402904568e-12 \tabularnewline
19 & 0.999999999999335 & 1.33023257481046e-12 & 6.65116287405231e-13 \tabularnewline
20 & 0.999999999997473 & 5.05368201986704e-12 & 2.52684100993352e-12 \tabularnewline
21 & 0.999999999998773 & 2.45336240116369e-12 & 1.22668120058185e-12 \tabularnewline
22 & 0.999999999996953 & 6.09438168460284e-12 & 3.04719084230142e-12 \tabularnewline
23 & 0.999999999983847 & 3.23059375217913e-11 & 1.61529687608957e-11 \tabularnewline
24 & 0.999999999935434 & 1.29132475870623e-10 & 6.45662379353113e-11 \tabularnewline
25 & 0.999999999967523 & 6.49539117069232e-11 & 3.24769558534616e-11 \tabularnewline
26 & 0.999999999904993 & 1.90013328470725e-10 & 9.50066642353624e-11 \tabularnewline
27 & 0.999999999734172 & 5.31656405211626e-10 & 2.65828202605813e-10 \tabularnewline
28 & 0.999999999986795 & 2.64092849132215e-11 & 1.32046424566108e-11 \tabularnewline
29 & 0.999999999966555 & 6.68891716037278e-11 & 3.34445858018639e-11 \tabularnewline
30 & 0.999999999852316 & 2.95368350504495e-10 & 1.47684175252247e-10 \tabularnewline
31 & 0.999999999159435 & 1.68113033363307e-09 & 8.40565166816536e-10 \tabularnewline
32 & 0.999999994893842 & 1.02123164506304e-08 & 5.10615822531519e-09 \tabularnewline
33 & 0.999999979319718 & 4.13605648519324e-08 & 2.06802824259662e-08 \tabularnewline
34 & 0.999999866628176 & 2.66743647837215e-07 & 1.33371823918608e-07 \tabularnewline
35 & 0.999999373897168 & 1.25220566479113e-06 & 6.26102832395563e-07 \tabularnewline
36 & 0.999996496292153 & 7.00741569405198e-06 & 3.50370784702599e-06 \tabularnewline
37 & 0.999986063702449 & 2.78725951024098e-05 & 1.39362975512049e-05 \tabularnewline
38 & 0.99998514311821 & 2.97137635789386e-05 & 1.48568817894693e-05 \tabularnewline
39 & 0.999931373997867 & 0.000137252004266326 & 6.8626002133163e-05 \tabularnewline
40 & 0.999740855189907 & 0.00051828962018701 & 0.000259144810093505 \tabularnewline
41 & 0.999411235106942 & 0.00117752978611604 & 0.000588764893058021 \tabularnewline
42 & 0.99571466189858 & 0.00857067620284053 & 0.00428533810142026 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=104138&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]8[/C][C]0.996507364156043[/C][C]0.00698527168791362[/C][C]0.00349263584395681[/C][/ROW]
[ROW][C]9[/C][C]0.999999915575747[/C][C]1.68848505856559e-07[/C][C]8.44242529282793e-08[/C][/ROW]
[ROW][C]10[/C][C]0.999999999962175[/C][C]7.56497392957813e-11[/C][C]3.78248696478907e-11[/C][/ROW]
[ROW][C]11[/C][C]0.999999999921175[/C][C]1.57649079762029e-10[/C][C]7.88245398810143e-11[/C][/ROW]
[ROW][C]12[/C][C]0.999999999907506[/C][C]1.84987113470480e-10[/C][C]9.24935567352399e-11[/C][/ROW]
[ROW][C]13[/C][C]0.999999999988364[/C][C]2.327196614098e-11[/C][C]1.163598307049e-11[/C][/ROW]
[ROW][C]14[/C][C]0.999999999999428[/C][C]1.14480665504541e-12[/C][C]5.72403327522705e-13[/C][/ROW]
[ROW][C]15[/C][C]0.999999999998775[/C][C]2.44957312459637e-12[/C][C]1.22478656229818e-12[/C][/ROW]
[ROW][C]16[/C][C]0.999999999999574[/C][C]8.5281339558329e-13[/C][C]4.26406697791645e-13[/C][/ROW]
[ROW][C]17[/C][C]0.999999999999248[/C][C]1.50442013722568e-12[/C][C]7.52210068612842e-13[/C][/ROW]
[ROW][C]18[/C][C]0.99999999999854[/C][C]2.92152805809135e-12[/C][C]1.46076402904568e-12[/C][/ROW]
[ROW][C]19[/C][C]0.999999999999335[/C][C]1.33023257481046e-12[/C][C]6.65116287405231e-13[/C][/ROW]
[ROW][C]20[/C][C]0.999999999997473[/C][C]5.05368201986704e-12[/C][C]2.52684100993352e-12[/C][/ROW]
[ROW][C]21[/C][C]0.999999999998773[/C][C]2.45336240116369e-12[/C][C]1.22668120058185e-12[/C][/ROW]
[ROW][C]22[/C][C]0.999999999996953[/C][C]6.09438168460284e-12[/C][C]3.04719084230142e-12[/C][/ROW]
[ROW][C]23[/C][C]0.999999999983847[/C][C]3.23059375217913e-11[/C][C]1.61529687608957e-11[/C][/ROW]
[ROW][C]24[/C][C]0.999999999935434[/C][C]1.29132475870623e-10[/C][C]6.45662379353113e-11[/C][/ROW]
[ROW][C]25[/C][C]0.999999999967523[/C][C]6.49539117069232e-11[/C][C]3.24769558534616e-11[/C][/ROW]
[ROW][C]26[/C][C]0.999999999904993[/C][C]1.90013328470725e-10[/C][C]9.50066642353624e-11[/C][/ROW]
[ROW][C]27[/C][C]0.999999999734172[/C][C]5.31656405211626e-10[/C][C]2.65828202605813e-10[/C][/ROW]
[ROW][C]28[/C][C]0.999999999986795[/C][C]2.64092849132215e-11[/C][C]1.32046424566108e-11[/C][/ROW]
[ROW][C]29[/C][C]0.999999999966555[/C][C]6.68891716037278e-11[/C][C]3.34445858018639e-11[/C][/ROW]
[ROW][C]30[/C][C]0.999999999852316[/C][C]2.95368350504495e-10[/C][C]1.47684175252247e-10[/C][/ROW]
[ROW][C]31[/C][C]0.999999999159435[/C][C]1.68113033363307e-09[/C][C]8.40565166816536e-10[/C][/ROW]
[ROW][C]32[/C][C]0.999999994893842[/C][C]1.02123164506304e-08[/C][C]5.10615822531519e-09[/C][/ROW]
[ROW][C]33[/C][C]0.999999979319718[/C][C]4.13605648519324e-08[/C][C]2.06802824259662e-08[/C][/ROW]
[ROW][C]34[/C][C]0.999999866628176[/C][C]2.66743647837215e-07[/C][C]1.33371823918608e-07[/C][/ROW]
[ROW][C]35[/C][C]0.999999373897168[/C][C]1.25220566479113e-06[/C][C]6.26102832395563e-07[/C][/ROW]
[ROW][C]36[/C][C]0.999996496292153[/C][C]7.00741569405198e-06[/C][C]3.50370784702599e-06[/C][/ROW]
[ROW][C]37[/C][C]0.999986063702449[/C][C]2.78725951024098e-05[/C][C]1.39362975512049e-05[/C][/ROW]
[ROW][C]38[/C][C]0.99998514311821[/C][C]2.97137635789386e-05[/C][C]1.48568817894693e-05[/C][/ROW]
[ROW][C]39[/C][C]0.999931373997867[/C][C]0.000137252004266326[/C][C]6.8626002133163e-05[/C][/ROW]
[ROW][C]40[/C][C]0.999740855189907[/C][C]0.00051828962018701[/C][C]0.000259144810093505[/C][/ROW]
[ROW][C]41[/C][C]0.999411235106942[/C][C]0.00117752978611604[/C][C]0.000588764893058021[/C][/ROW]
[ROW][C]42[/C][C]0.99571466189858[/C][C]0.00857067620284053[/C][C]0.00428533810142026[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=104138&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=104138&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
80.9965073641560430.006985271687913620.00349263584395681
90.9999999155757471.68848505856559e-078.44242529282793e-08
100.9999999999621757.56497392957813e-113.78248696478907e-11
110.9999999999211751.57649079762029e-107.88245398810143e-11
120.9999999999075061.84987113470480e-109.24935567352399e-11
130.9999999999883642.327196614098e-111.163598307049e-11
140.9999999999994281.14480665504541e-125.72403327522705e-13
150.9999999999987752.44957312459637e-121.22478656229818e-12
160.9999999999995748.5281339558329e-134.26406697791645e-13
170.9999999999992481.50442013722568e-127.52210068612842e-13
180.999999999998542.92152805809135e-121.46076402904568e-12
190.9999999999993351.33023257481046e-126.65116287405231e-13
200.9999999999974735.05368201986704e-122.52684100993352e-12
210.9999999999987732.45336240116369e-121.22668120058185e-12
220.9999999999969536.09438168460284e-123.04719084230142e-12
230.9999999999838473.23059375217913e-111.61529687608957e-11
240.9999999999354341.29132475870623e-106.45662379353113e-11
250.9999999999675236.49539117069232e-113.24769558534616e-11
260.9999999999049931.90013328470725e-109.50066642353624e-11
270.9999999997341725.31656405211626e-102.65828202605813e-10
280.9999999999867952.64092849132215e-111.32046424566108e-11
290.9999999999665556.68891716037278e-113.34445858018639e-11
300.9999999998523162.95368350504495e-101.47684175252247e-10
310.9999999991594351.68113033363307e-098.40565166816536e-10
320.9999999948938421.02123164506304e-085.10615822531519e-09
330.9999999793197184.13605648519324e-082.06802824259662e-08
340.9999998666281762.66743647837215e-071.33371823918608e-07
350.9999993738971681.25220566479113e-066.26102832395563e-07
360.9999964962921537.00741569405198e-063.50370784702599e-06
370.9999860637024492.78725951024098e-051.39362975512049e-05
380.999985143118212.97137635789386e-051.48568817894693e-05
390.9999313739978670.0001372520042663266.8626002133163e-05
400.9997408551899070.000518289620187010.000259144810093505
410.9994112351069420.001177529786116040.000588764893058021
420.995714661898580.008570676202840530.00428533810142026







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

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

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



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