Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 01 Dec 2010 12:42:11 +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/t1291207257cghonqixg2mque6.htm/, Retrieved Sun, 05 May 2024 08:02:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=103935, Retrieved Sun, 05 May 2024 08:02:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact147
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Competence to learn] [2010-11-17 07:43:53] [b98453cac15ba1066b407e146608df68]
-   PD    [Multiple Regression] [workshop7- link 1] [2010-12-01 12:42:11] [1dfa1ba56570598ee4b0a030302dbc63] [Current]
Feedback Forum

Post a new message
Dataseries X:
1	162556	1081	213118	6282154
1	29790	309	81767	4321023
1	87550	458	153198	4111912
0	84738	588	-26007	223193
1	54660	302	126942	1491348
1	42634	156	157214	1629616
0	40949	481	129352	1398893
1	45187	353	234817	1926517
1	37704	452	60448	983660
1	16275	109	47818	1443586
0	25830	115	245546	1073089
0	12679	110	48020	984885
1	18014	239	-1710	        1405225
0	43556	247	32648	227132
1	24811	505	95350	929118
0	6575	        159	151352	1071292
0	7123	        109	288170	638830
1	21950	519	114337	856956
1	37597	248	37884	992426
0	17821	373	122844	444477
1	12988	119	82340	857217
1	22330	84	79801	711969
0	13326	102	165548	702380
0	16189	295	116384	358589
0	7146 	        105	134028	297978
0	15824	64	63838	585715
1	27664	282	74996	657954
0	11920	182	31080	209458
0	8568	        37	32168        786690
0	14416	361	49857	439798
1	3369	        28	87161	688779
1	11819	85	106113	574339
1	6984	        45	80570	741409
1	4519	        49	102129	597793
0	2220	        22	301670	644190
0	18562	155	102313	377934
0	10327  	91	88577	640273
1	5336	        81	112477	697458
1	2365	        79	191778	550608
0	4069	        145	79804	207393
0	8636          855	128294	301607
0	13718 	61	96448	345783
1	4525	        226	93811	501749
0	6869	        105	117520	379983
0	4628	        62	69159	387475
1	3689	        25	101792	377305
1	4891	        217	210568	370837
1	7489	        322	136996	430866
0	4901	        84	121920	469107
0	2284	        33	76403	194493
1	3160	        108	108094	530670
1	4150	        150	134759	518365




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
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.

\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
R Framework error message & 
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=103935&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]
[ROW][C]R Framework error message[/C][C]
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=103935&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103935&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
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.







Multiple Linear Regression - Estimated Regression Equation
Wealth [t] = -221951.996780993 + 477656.359683362Group[t] + 29.9579732094198Costs[t] -263.091169044559Trades[t] + 2.95275419706209Dividends[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Wealth
[t] =  -221951.996780993 +  477656.359683362Group[t] +  29.9579732094198Costs[t] -263.091169044559Trades[t] +  2.95275419706209Dividends[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103935&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Wealth
[t] =  -221951.996780993 +  477656.359683362Group[t] +  29.9579732094198Costs[t] -263.091169044559Trades[t] +  2.95275419706209Dividends[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103935&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103935&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] = -221951.996780993 + 477656.359683362Group[t] + 29.9579732094198Costs[t] -263.091169044559Trades[t] + 2.95275419706209Dividends[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-221951.996780993217672.342763-1.01970.3131090.156555
Group477656.359683362184867.5579882.58380.0129420.006471
Costs29.95797320941984.9074296.104600
Trades-263.091169044559630.208396-0.41750.6782380.339119
Dividends2.952754197062091.3901372.12410.0389550.019477

\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) & -221951.996780993 & 217672.342763 & -1.0197 & 0.313109 & 0.156555 \tabularnewline
Group & 477656.359683362 & 184867.557988 & 2.5838 & 0.012942 & 0.006471 \tabularnewline
Costs & 29.9579732094198 & 4.907429 & 6.1046 & 0 & 0 \tabularnewline
Trades & -263.091169044559 & 630.208396 & -0.4175 & 0.678238 & 0.339119 \tabularnewline
Dividends & 2.95275419706209 & 1.390137 & 2.1241 & 0.038955 & 0.019477 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103935&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]-221951.996780993[/C][C]217672.342763[/C][C]-1.0197[/C][C]0.313109[/C][C]0.156555[/C][/ROW]
[ROW][C]Group[/C][C]477656.359683362[/C][C]184867.557988[/C][C]2.5838[/C][C]0.012942[/C][C]0.006471[/C][/ROW]
[ROW][C]Costs[/C][C]29.9579732094198[/C][C]4.907429[/C][C]6.1046[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Trades[/C][C]-263.091169044559[/C][C]630.208396[/C][C]-0.4175[/C][C]0.678238[/C][C]0.339119[/C][/ROW]
[ROW][C]Dividends[/C][C]2.95275419706209[/C][C]1.390137[/C][C]2.1241[/C][C]0.038955[/C][C]0.019477[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103935&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103935&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)-221951.996780993217672.342763-1.01970.3131090.156555
Group477656.359683362184867.5579882.58380.0129420.006471
Costs29.95797320941984.9074296.104600
Trades-263.091169044559630.208396-0.41750.6782380.339119
Dividends2.952754197062091.3901372.12410.0389550.019477







Multiple Linear Regression - Regression Statistics
Multiple R0.81822113248815
R-squared0.66948582165019
Adjusted R-squared0.641356955407653
F-TEST (value)23.8006685330879
F-TEST (DF numerator)4
F-TEST (DF denominator)47
p-value8.40502112353647e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation654607.592285178
Sum Squared Residuals20140021694237.7

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.81822113248815 \tabularnewline
R-squared & 0.66948582165019 \tabularnewline
Adjusted R-squared & 0.641356955407653 \tabularnewline
F-TEST (value) & 23.8006685330879 \tabularnewline
F-TEST (DF numerator) & 4 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 8.40502112353647e-11 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 654607.592285178 \tabularnewline
Sum Squared Residuals & 20140021694237.7 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103935&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.81822113248815[/C][/ROW]
[ROW][C]R-squared[/C][C]0.66948582165019[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.641356955407653[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]23.8006685330879[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]4[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]8.40502112353647e-11[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]654607.592285178[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]20140021694237.7[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103935&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103935&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.81822113248815
R-squared0.66948582165019
Adjusted R-squared0.641356955407653
F-TEST (value)23.8006685330879
F-TEST (DF numerator)4
F-TEST (DF denominator)47
p-value8.40502112353647e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation654607.592285178
Sum Squared Residuals20140021694237.7







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
162821545470436.17116513811717.828834872
243210231308295.066007393012727.93399261
341119123210385.19944619901526.800553815
42231932085136.85123763-1861943.85123763
514913482188582.16876126-697234.168761255
616296161956104.66867874-326488.668678742
713988931260194.85675948138698.143240518
819265172209900.99793522-283383.997935222
99836601444810.66208620-461150.662086203
101443586855788.239654935587797.760345065
1110730891246643.94885000-173554.948850005
12984885270736.373489261714148.626510739
131405225727439.293218232677785.706781768
142271321114315.48460017-887183.484600174
159291181147675.70852365-218557.708523652
161071292380095.434426599691196.565573401
17638830813656.88593123-174826.88593123
188569561114346.61474450-257390.614744496
199924261428649.81173538-436223.811735376
20444477576524.174314352-132047.174314352
21857217856620.450416104596.549583896396
227119691138198.98414872-426229.984148723
23702380639255.20678042563124.7932195747
24358589529079.081109034-170490.081109034
25297978360254.84654768-62276.8465476802
26585715423763.058898064161951.941101936
276579541231714.77786006-573760.777860062
28209458179036.05155387130421.9484461287
29786690119977.741433761666712.25856624
30439798262161.698983842177636.301016158
31688779606631.23048178682147.7695182141
32574339900740.505008564-326401.505008564
33741409690995.15084724550413.8491527554
34597793679754.809944308-81961.8099443082
35644190729524.05665266-85334.0566526595
36377934595453.910894365-217519.910894365
37640273325028.804682799315244.195317201
38697458726366.657078177-28908.6570781769
39550608872044.0615923-321436.061592300
4020739397440.3726390183109952.627360982
41301607190642.757280342110964.242719658
42345783457750.155192355-111967.155192355
43501749608806.411451516-107057.411451516
44379983303212.4216835776770.5783164301
45387475104591.378266057282883.621733943
46377305660208.80207315-282903.802073150
47370837966893.571953943-596056.571953943
48430866799859.781816084-368993.781816084
49469107262772.163424441206334.836575559
5019449363389.2843689865131103.715631014
51530670641132.724164553-110462.724164553
52518365738476.479206668-220111.479206668

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 6282154 & 5470436.17116513 & 811717.828834872 \tabularnewline
2 & 4321023 & 1308295.06600739 & 3012727.93399261 \tabularnewline
3 & 4111912 & 3210385.19944619 & 901526.800553815 \tabularnewline
4 & 223193 & 2085136.85123763 & -1861943.85123763 \tabularnewline
5 & 1491348 & 2188582.16876126 & -697234.168761255 \tabularnewline
6 & 1629616 & 1956104.66867874 & -326488.668678742 \tabularnewline
7 & 1398893 & 1260194.85675948 & 138698.143240518 \tabularnewline
8 & 1926517 & 2209900.99793522 & -283383.997935222 \tabularnewline
9 & 983660 & 1444810.66208620 & -461150.662086203 \tabularnewline
10 & 1443586 & 855788.239654935 & 587797.760345065 \tabularnewline
11 & 1073089 & 1246643.94885000 & -173554.948850005 \tabularnewline
12 & 984885 & 270736.373489261 & 714148.626510739 \tabularnewline
13 & 1405225 & 727439.293218232 & 677785.706781768 \tabularnewline
14 & 227132 & 1114315.48460017 & -887183.484600174 \tabularnewline
15 & 929118 & 1147675.70852365 & -218557.708523652 \tabularnewline
16 & 1071292 & 380095.434426599 & 691196.565573401 \tabularnewline
17 & 638830 & 813656.88593123 & -174826.88593123 \tabularnewline
18 & 856956 & 1114346.61474450 & -257390.614744496 \tabularnewline
19 & 992426 & 1428649.81173538 & -436223.811735376 \tabularnewline
20 & 444477 & 576524.174314352 & -132047.174314352 \tabularnewline
21 & 857217 & 856620.450416104 & 596.549583896396 \tabularnewline
22 & 711969 & 1138198.98414872 & -426229.984148723 \tabularnewline
23 & 702380 & 639255.206780425 & 63124.7932195747 \tabularnewline
24 & 358589 & 529079.081109034 & -170490.081109034 \tabularnewline
25 & 297978 & 360254.84654768 & -62276.8465476802 \tabularnewline
26 & 585715 & 423763.058898064 & 161951.941101936 \tabularnewline
27 & 657954 & 1231714.77786006 & -573760.777860062 \tabularnewline
28 & 209458 & 179036.051553871 & 30421.9484461287 \tabularnewline
29 & 786690 & 119977.741433761 & 666712.25856624 \tabularnewline
30 & 439798 & 262161.698983842 & 177636.301016158 \tabularnewline
31 & 688779 & 606631.230481786 & 82147.7695182141 \tabularnewline
32 & 574339 & 900740.505008564 & -326401.505008564 \tabularnewline
33 & 741409 & 690995.150847245 & 50413.8491527554 \tabularnewline
34 & 597793 & 679754.809944308 & -81961.8099443082 \tabularnewline
35 & 644190 & 729524.05665266 & -85334.0566526595 \tabularnewline
36 & 377934 & 595453.910894365 & -217519.910894365 \tabularnewline
37 & 640273 & 325028.804682799 & 315244.195317201 \tabularnewline
38 & 697458 & 726366.657078177 & -28908.6570781769 \tabularnewline
39 & 550608 & 872044.0615923 & -321436.061592300 \tabularnewline
40 & 207393 & 97440.3726390183 & 109952.627360982 \tabularnewline
41 & 301607 & 190642.757280342 & 110964.242719658 \tabularnewline
42 & 345783 & 457750.155192355 & -111967.155192355 \tabularnewline
43 & 501749 & 608806.411451516 & -107057.411451516 \tabularnewline
44 & 379983 & 303212.42168357 & 76770.5783164301 \tabularnewline
45 & 387475 & 104591.378266057 & 282883.621733943 \tabularnewline
46 & 377305 & 660208.80207315 & -282903.802073150 \tabularnewline
47 & 370837 & 966893.571953943 & -596056.571953943 \tabularnewline
48 & 430866 & 799859.781816084 & -368993.781816084 \tabularnewline
49 & 469107 & 262772.163424441 & 206334.836575559 \tabularnewline
50 & 194493 & 63389.2843689865 & 131103.715631014 \tabularnewline
51 & 530670 & 641132.724164553 & -110462.724164553 \tabularnewline
52 & 518365 & 738476.479206668 & -220111.479206668 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103935&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]5470436.17116513[/C][C]811717.828834872[/C][/ROW]
[ROW][C]2[/C][C]4321023[/C][C]1308295.06600739[/C][C]3012727.93399261[/C][/ROW]
[ROW][C]3[/C][C]4111912[/C][C]3210385.19944619[/C][C]901526.800553815[/C][/ROW]
[ROW][C]4[/C][C]223193[/C][C]2085136.85123763[/C][C]-1861943.85123763[/C][/ROW]
[ROW][C]5[/C][C]1491348[/C][C]2188582.16876126[/C][C]-697234.168761255[/C][/ROW]
[ROW][C]6[/C][C]1629616[/C][C]1956104.66867874[/C][C]-326488.668678742[/C][/ROW]
[ROW][C]7[/C][C]1398893[/C][C]1260194.85675948[/C][C]138698.143240518[/C][/ROW]
[ROW][C]8[/C][C]1926517[/C][C]2209900.99793522[/C][C]-283383.997935222[/C][/ROW]
[ROW][C]9[/C][C]983660[/C][C]1444810.66208620[/C][C]-461150.662086203[/C][/ROW]
[ROW][C]10[/C][C]1443586[/C][C]855788.239654935[/C][C]587797.760345065[/C][/ROW]
[ROW][C]11[/C][C]1073089[/C][C]1246643.94885000[/C][C]-173554.948850005[/C][/ROW]
[ROW][C]12[/C][C]984885[/C][C]270736.373489261[/C][C]714148.626510739[/C][/ROW]
[ROW][C]13[/C][C]1405225[/C][C]727439.293218232[/C][C]677785.706781768[/C][/ROW]
[ROW][C]14[/C][C]227132[/C][C]1114315.48460017[/C][C]-887183.484600174[/C][/ROW]
[ROW][C]15[/C][C]929118[/C][C]1147675.70852365[/C][C]-218557.708523652[/C][/ROW]
[ROW][C]16[/C][C]1071292[/C][C]380095.434426599[/C][C]691196.565573401[/C][/ROW]
[ROW][C]17[/C][C]638830[/C][C]813656.88593123[/C][C]-174826.88593123[/C][/ROW]
[ROW][C]18[/C][C]856956[/C][C]1114346.61474450[/C][C]-257390.614744496[/C][/ROW]
[ROW][C]19[/C][C]992426[/C][C]1428649.81173538[/C][C]-436223.811735376[/C][/ROW]
[ROW][C]20[/C][C]444477[/C][C]576524.174314352[/C][C]-132047.174314352[/C][/ROW]
[ROW][C]21[/C][C]857217[/C][C]856620.450416104[/C][C]596.549583896396[/C][/ROW]
[ROW][C]22[/C][C]711969[/C][C]1138198.98414872[/C][C]-426229.984148723[/C][/ROW]
[ROW][C]23[/C][C]702380[/C][C]639255.206780425[/C][C]63124.7932195747[/C][/ROW]
[ROW][C]24[/C][C]358589[/C][C]529079.081109034[/C][C]-170490.081109034[/C][/ROW]
[ROW][C]25[/C][C]297978[/C][C]360254.84654768[/C][C]-62276.8465476802[/C][/ROW]
[ROW][C]26[/C][C]585715[/C][C]423763.058898064[/C][C]161951.941101936[/C][/ROW]
[ROW][C]27[/C][C]657954[/C][C]1231714.77786006[/C][C]-573760.777860062[/C][/ROW]
[ROW][C]28[/C][C]209458[/C][C]179036.051553871[/C][C]30421.9484461287[/C][/ROW]
[ROW][C]29[/C][C]786690[/C][C]119977.741433761[/C][C]666712.25856624[/C][/ROW]
[ROW][C]30[/C][C]439798[/C][C]262161.698983842[/C][C]177636.301016158[/C][/ROW]
[ROW][C]31[/C][C]688779[/C][C]606631.230481786[/C][C]82147.7695182141[/C][/ROW]
[ROW][C]32[/C][C]574339[/C][C]900740.505008564[/C][C]-326401.505008564[/C][/ROW]
[ROW][C]33[/C][C]741409[/C][C]690995.150847245[/C][C]50413.8491527554[/C][/ROW]
[ROW][C]34[/C][C]597793[/C][C]679754.809944308[/C][C]-81961.8099443082[/C][/ROW]
[ROW][C]35[/C][C]644190[/C][C]729524.05665266[/C][C]-85334.0566526595[/C][/ROW]
[ROW][C]36[/C][C]377934[/C][C]595453.910894365[/C][C]-217519.910894365[/C][/ROW]
[ROW][C]37[/C][C]640273[/C][C]325028.804682799[/C][C]315244.195317201[/C][/ROW]
[ROW][C]38[/C][C]697458[/C][C]726366.657078177[/C][C]-28908.6570781769[/C][/ROW]
[ROW][C]39[/C][C]550608[/C][C]872044.0615923[/C][C]-321436.061592300[/C][/ROW]
[ROW][C]40[/C][C]207393[/C][C]97440.3726390183[/C][C]109952.627360982[/C][/ROW]
[ROW][C]41[/C][C]301607[/C][C]190642.757280342[/C][C]110964.242719658[/C][/ROW]
[ROW][C]42[/C][C]345783[/C][C]457750.155192355[/C][C]-111967.155192355[/C][/ROW]
[ROW][C]43[/C][C]501749[/C][C]608806.411451516[/C][C]-107057.411451516[/C][/ROW]
[ROW][C]44[/C][C]379983[/C][C]303212.42168357[/C][C]76770.5783164301[/C][/ROW]
[ROW][C]45[/C][C]387475[/C][C]104591.378266057[/C][C]282883.621733943[/C][/ROW]
[ROW][C]46[/C][C]377305[/C][C]660208.80207315[/C][C]-282903.802073150[/C][/ROW]
[ROW][C]47[/C][C]370837[/C][C]966893.571953943[/C][C]-596056.571953943[/C][/ROW]
[ROW][C]48[/C][C]430866[/C][C]799859.781816084[/C][C]-368993.781816084[/C][/ROW]
[ROW][C]49[/C][C]469107[/C][C]262772.163424441[/C][C]206334.836575559[/C][/ROW]
[ROW][C]50[/C][C]194493[/C][C]63389.2843689865[/C][C]131103.715631014[/C][/ROW]
[ROW][C]51[/C][C]530670[/C][C]641132.724164553[/C][C]-110462.724164553[/C][/ROW]
[ROW][C]52[/C][C]518365[/C][C]738476.479206668[/C][C]-220111.479206668[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103935&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103935&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
162821545470436.17116513811717.828834872
243210231308295.066007393012727.93399261
341119123210385.19944619901526.800553815
42231932085136.85123763-1861943.85123763
514913482188582.16876126-697234.168761255
616296161956104.66867874-326488.668678742
713988931260194.85675948138698.143240518
819265172209900.99793522-283383.997935222
99836601444810.66208620-461150.662086203
101443586855788.239654935587797.760345065
1110730891246643.94885000-173554.948850005
12984885270736.373489261714148.626510739
131405225727439.293218232677785.706781768
142271321114315.48460017-887183.484600174
159291181147675.70852365-218557.708523652
161071292380095.434426599691196.565573401
17638830813656.88593123-174826.88593123
188569561114346.61474450-257390.614744496
199924261428649.81173538-436223.811735376
20444477576524.174314352-132047.174314352
21857217856620.450416104596.549583896396
227119691138198.98414872-426229.984148723
23702380639255.20678042563124.7932195747
24358589529079.081109034-170490.081109034
25297978360254.84654768-62276.8465476802
26585715423763.058898064161951.941101936
276579541231714.77786006-573760.777860062
28209458179036.05155387130421.9484461287
29786690119977.741433761666712.25856624
30439798262161.698983842177636.301016158
31688779606631.23048178682147.7695182141
32574339900740.505008564-326401.505008564
33741409690995.15084724550413.8491527554
34597793679754.809944308-81961.8099443082
35644190729524.05665266-85334.0566526595
36377934595453.910894365-217519.910894365
37640273325028.804682799315244.195317201
38697458726366.657078177-28908.6570781769
39550608872044.0615923-321436.061592300
4020739397440.3726390183109952.627360982
41301607190642.757280342110964.242719658
42345783457750.155192355-111967.155192355
43501749608806.411451516-107057.411451516
44379983303212.4216835776770.5783164301
45387475104591.378266057282883.621733943
46377305660208.80207315-282903.802073150
47370837966893.571953943-596056.571953943
48430866799859.781816084-368993.781816084
49469107262772.163424441206334.836575559
5019449363389.2843689865131103.715631014
51530670641132.724164553-110462.724164553
52518365738476.479206668-220111.479206668







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.9999999906213841.87572320221311e-089.37861601106556e-09
90.9999999999978034.39312972159231e-122.19656486079616e-12
100.9999999999991951.60935808959663e-128.04679044798316e-13
110.9999999999989452.1092015199661e-121.05460075998305e-12
120.999999999999843.20199698655625e-131.60099849327812e-13
130.9999999999999941.21083347501290e-146.05416737506449e-15
140.9999999999999983.80192995143026e-151.90096497571513e-15
150.9999999999999983.80005210880683e-151.90002605440342e-15
1612.73552190141335e-171.36776095070668e-17
1711.40976213093326e-167.04881065466632e-17
1812.34720406089502e-161.17360203044751e-16
1917.65145189822483e-163.82572594911242e-16
200.9999999999999975.60599933817721e-152.80299966908860e-15
210.9999999999999951.03736847676637e-145.18684238383185e-15
220.9999999999999735.29952152183245e-142.64976076091622e-14
230.9999999999999271.45434863563569e-137.27174317817844e-14
240.9999999999995638.74897187275538e-134.37448593637769e-13
250.9999999999981243.75301170712456e-121.87650585356228e-12
260.9999999999912311.75379519334393e-118.76897596671964e-12
270.9999999999625747.48527382831071e-113.74263691415535e-11
280.999999999913111.73781585938473e-108.68907929692366e-11
290.9999999999798264.03480187472561e-112.01740093736280e-11
300.9999999998934052.13190904160730e-101.06595452080365e-10
310.9999999996473337.05333521968439e-103.52666760984219e-10
320.9999999979722514.05549803724521e-092.02774901862261e-09
330.9999999966155686.76886342308474e-093.38443171154237e-09
340.9999999841155853.17688304913531e-081.58844152456765e-08
350.9999999486261231.02747755012271e-075.13738775061356e-08
360.9999997801786224.39642756576804e-072.19821378288402e-07
370.9999997706680544.5866389116576e-072.2933194558288e-07
380.9999997233328915.53334217357296e-072.76667108678648e-07
390.9999985039948332.99201033445802e-061.49600516722901e-06
400.9999942962737411.14074525175525e-055.70372625877624e-06
410.9999602633237647.94733524713547e-053.97366762356773e-05
420.9997461379743810.0005077240512379810.000253862025618991
430.9983750535399950.003249892920009520.00162494646000476
440.9899610863968280.02007782720634360.0100389136031718

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
8 & 0.999999990621384 & 1.87572320221311e-08 & 9.37861601106556e-09 \tabularnewline
9 & 0.999999999997803 & 4.39312972159231e-12 & 2.19656486079616e-12 \tabularnewline
10 & 0.999999999999195 & 1.60935808959663e-12 & 8.04679044798316e-13 \tabularnewline
11 & 0.999999999998945 & 2.1092015199661e-12 & 1.05460075998305e-12 \tabularnewline
12 & 0.99999999999984 & 3.20199698655625e-13 & 1.60099849327812e-13 \tabularnewline
13 & 0.999999999999994 & 1.21083347501290e-14 & 6.05416737506449e-15 \tabularnewline
14 & 0.999999999999998 & 3.80192995143026e-15 & 1.90096497571513e-15 \tabularnewline
15 & 0.999999999999998 & 3.80005210880683e-15 & 1.90002605440342e-15 \tabularnewline
16 & 1 & 2.73552190141335e-17 & 1.36776095070668e-17 \tabularnewline
17 & 1 & 1.40976213093326e-16 & 7.04881065466632e-17 \tabularnewline
18 & 1 & 2.34720406089502e-16 & 1.17360203044751e-16 \tabularnewline
19 & 1 & 7.65145189822483e-16 & 3.82572594911242e-16 \tabularnewline
20 & 0.999999999999997 & 5.60599933817721e-15 & 2.80299966908860e-15 \tabularnewline
21 & 0.999999999999995 & 1.03736847676637e-14 & 5.18684238383185e-15 \tabularnewline
22 & 0.999999999999973 & 5.29952152183245e-14 & 2.64976076091622e-14 \tabularnewline
23 & 0.999999999999927 & 1.45434863563569e-13 & 7.27174317817844e-14 \tabularnewline
24 & 0.999999999999563 & 8.74897187275538e-13 & 4.37448593637769e-13 \tabularnewline
25 & 0.999999999998124 & 3.75301170712456e-12 & 1.87650585356228e-12 \tabularnewline
26 & 0.999999999991231 & 1.75379519334393e-11 & 8.76897596671964e-12 \tabularnewline
27 & 0.999999999962574 & 7.48527382831071e-11 & 3.74263691415535e-11 \tabularnewline
28 & 0.99999999991311 & 1.73781585938473e-10 & 8.68907929692366e-11 \tabularnewline
29 & 0.999999999979826 & 4.03480187472561e-11 & 2.01740093736280e-11 \tabularnewline
30 & 0.999999999893405 & 2.13190904160730e-10 & 1.06595452080365e-10 \tabularnewline
31 & 0.999999999647333 & 7.05333521968439e-10 & 3.52666760984219e-10 \tabularnewline
32 & 0.999999997972251 & 4.05549803724521e-09 & 2.02774901862261e-09 \tabularnewline
33 & 0.999999996615568 & 6.76886342308474e-09 & 3.38443171154237e-09 \tabularnewline
34 & 0.999999984115585 & 3.17688304913531e-08 & 1.58844152456765e-08 \tabularnewline
35 & 0.999999948626123 & 1.02747755012271e-07 & 5.13738775061356e-08 \tabularnewline
36 & 0.999999780178622 & 4.39642756576804e-07 & 2.19821378288402e-07 \tabularnewline
37 & 0.999999770668054 & 4.5866389116576e-07 & 2.2933194558288e-07 \tabularnewline
38 & 0.999999723332891 & 5.53334217357296e-07 & 2.76667108678648e-07 \tabularnewline
39 & 0.999998503994833 & 2.99201033445802e-06 & 1.49600516722901e-06 \tabularnewline
40 & 0.999994296273741 & 1.14074525175525e-05 & 5.70372625877624e-06 \tabularnewline
41 & 0.999960263323764 & 7.94733524713547e-05 & 3.97366762356773e-05 \tabularnewline
42 & 0.999746137974381 & 0.000507724051237981 & 0.000253862025618991 \tabularnewline
43 & 0.998375053539995 & 0.00324989292000952 & 0.00162494646000476 \tabularnewline
44 & 0.989961086396828 & 0.0200778272063436 & 0.0100389136031718 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103935&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.999999990621384[/C][C]1.87572320221311e-08[/C][C]9.37861601106556e-09[/C][/ROW]
[ROW][C]9[/C][C]0.999999999997803[/C][C]4.39312972159231e-12[/C][C]2.19656486079616e-12[/C][/ROW]
[ROW][C]10[/C][C]0.999999999999195[/C][C]1.60935808959663e-12[/C][C]8.04679044798316e-13[/C][/ROW]
[ROW][C]11[/C][C]0.999999999998945[/C][C]2.1092015199661e-12[/C][C]1.05460075998305e-12[/C][/ROW]
[ROW][C]12[/C][C]0.99999999999984[/C][C]3.20199698655625e-13[/C][C]1.60099849327812e-13[/C][/ROW]
[ROW][C]13[/C][C]0.999999999999994[/C][C]1.21083347501290e-14[/C][C]6.05416737506449e-15[/C][/ROW]
[ROW][C]14[/C][C]0.999999999999998[/C][C]3.80192995143026e-15[/C][C]1.90096497571513e-15[/C][/ROW]
[ROW][C]15[/C][C]0.999999999999998[/C][C]3.80005210880683e-15[/C][C]1.90002605440342e-15[/C][/ROW]
[ROW][C]16[/C][C]1[/C][C]2.73552190141335e-17[/C][C]1.36776095070668e-17[/C][/ROW]
[ROW][C]17[/C][C]1[/C][C]1.40976213093326e-16[/C][C]7.04881065466632e-17[/C][/ROW]
[ROW][C]18[/C][C]1[/C][C]2.34720406089502e-16[/C][C]1.17360203044751e-16[/C][/ROW]
[ROW][C]19[/C][C]1[/C][C]7.65145189822483e-16[/C][C]3.82572594911242e-16[/C][/ROW]
[ROW][C]20[/C][C]0.999999999999997[/C][C]5.60599933817721e-15[/C][C]2.80299966908860e-15[/C][/ROW]
[ROW][C]21[/C][C]0.999999999999995[/C][C]1.03736847676637e-14[/C][C]5.18684238383185e-15[/C][/ROW]
[ROW][C]22[/C][C]0.999999999999973[/C][C]5.29952152183245e-14[/C][C]2.64976076091622e-14[/C][/ROW]
[ROW][C]23[/C][C]0.999999999999927[/C][C]1.45434863563569e-13[/C][C]7.27174317817844e-14[/C][/ROW]
[ROW][C]24[/C][C]0.999999999999563[/C][C]8.74897187275538e-13[/C][C]4.37448593637769e-13[/C][/ROW]
[ROW][C]25[/C][C]0.999999999998124[/C][C]3.75301170712456e-12[/C][C]1.87650585356228e-12[/C][/ROW]
[ROW][C]26[/C][C]0.999999999991231[/C][C]1.75379519334393e-11[/C][C]8.76897596671964e-12[/C][/ROW]
[ROW][C]27[/C][C]0.999999999962574[/C][C]7.48527382831071e-11[/C][C]3.74263691415535e-11[/C][/ROW]
[ROW][C]28[/C][C]0.99999999991311[/C][C]1.73781585938473e-10[/C][C]8.68907929692366e-11[/C][/ROW]
[ROW][C]29[/C][C]0.999999999979826[/C][C]4.03480187472561e-11[/C][C]2.01740093736280e-11[/C][/ROW]
[ROW][C]30[/C][C]0.999999999893405[/C][C]2.13190904160730e-10[/C][C]1.06595452080365e-10[/C][/ROW]
[ROW][C]31[/C][C]0.999999999647333[/C][C]7.05333521968439e-10[/C][C]3.52666760984219e-10[/C][/ROW]
[ROW][C]32[/C][C]0.999999997972251[/C][C]4.05549803724521e-09[/C][C]2.02774901862261e-09[/C][/ROW]
[ROW][C]33[/C][C]0.999999996615568[/C][C]6.76886342308474e-09[/C][C]3.38443171154237e-09[/C][/ROW]
[ROW][C]34[/C][C]0.999999984115585[/C][C]3.17688304913531e-08[/C][C]1.58844152456765e-08[/C][/ROW]
[ROW][C]35[/C][C]0.999999948626123[/C][C]1.02747755012271e-07[/C][C]5.13738775061356e-08[/C][/ROW]
[ROW][C]36[/C][C]0.999999780178622[/C][C]4.39642756576804e-07[/C][C]2.19821378288402e-07[/C][/ROW]
[ROW][C]37[/C][C]0.999999770668054[/C][C]4.5866389116576e-07[/C][C]2.2933194558288e-07[/C][/ROW]
[ROW][C]38[/C][C]0.999999723332891[/C][C]5.53334217357296e-07[/C][C]2.76667108678648e-07[/C][/ROW]
[ROW][C]39[/C][C]0.999998503994833[/C][C]2.99201033445802e-06[/C][C]1.49600516722901e-06[/C][/ROW]
[ROW][C]40[/C][C]0.999994296273741[/C][C]1.14074525175525e-05[/C][C]5.70372625877624e-06[/C][/ROW]
[ROW][C]41[/C][C]0.999960263323764[/C][C]7.94733524713547e-05[/C][C]3.97366762356773e-05[/C][/ROW]
[ROW][C]42[/C][C]0.999746137974381[/C][C]0.000507724051237981[/C][C]0.000253862025618991[/C][/ROW]
[ROW][C]43[/C][C]0.998375053539995[/C][C]0.00324989292000952[/C][C]0.00162494646000476[/C][/ROW]
[ROW][C]44[/C][C]0.989961086396828[/C][C]0.0200778272063436[/C][C]0.0100389136031718[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103935&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103935&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.9999999906213841.87572320221311e-089.37861601106556e-09
90.9999999999978034.39312972159231e-122.19656486079616e-12
100.9999999999991951.60935808959663e-128.04679044798316e-13
110.9999999999989452.1092015199661e-121.05460075998305e-12
120.999999999999843.20199698655625e-131.60099849327812e-13
130.9999999999999941.21083347501290e-146.05416737506449e-15
140.9999999999999983.80192995143026e-151.90096497571513e-15
150.9999999999999983.80005210880683e-151.90002605440342e-15
1612.73552190141335e-171.36776095070668e-17
1711.40976213093326e-167.04881065466632e-17
1812.34720406089502e-161.17360203044751e-16
1917.65145189822483e-163.82572594911242e-16
200.9999999999999975.60599933817721e-152.80299966908860e-15
210.9999999999999951.03736847676637e-145.18684238383185e-15
220.9999999999999735.29952152183245e-142.64976076091622e-14
230.9999999999999271.45434863563569e-137.27174317817844e-14
240.9999999999995638.74897187275538e-134.37448593637769e-13
250.9999999999981243.75301170712456e-121.87650585356228e-12
260.9999999999912311.75379519334393e-118.76897596671964e-12
270.9999999999625747.48527382831071e-113.74263691415535e-11
280.999999999913111.73781585938473e-108.68907929692366e-11
290.9999999999798264.03480187472561e-112.01740093736280e-11
300.9999999998934052.13190904160730e-101.06595452080365e-10
310.9999999996473337.05333521968439e-103.52666760984219e-10
320.9999999979722514.05549803724521e-092.02774901862261e-09
330.9999999966155686.76886342308474e-093.38443171154237e-09
340.9999999841155853.17688304913531e-081.58844152456765e-08
350.9999999486261231.02747755012271e-075.13738775061356e-08
360.9999997801786224.39642756576804e-072.19821378288402e-07
370.9999997706680544.5866389116576e-072.2933194558288e-07
380.9999997233328915.53334217357296e-072.76667108678648e-07
390.9999985039948332.99201033445802e-061.49600516722901e-06
400.9999942962737411.14074525175525e-055.70372625877624e-06
410.9999602633237647.94733524713547e-053.97366762356773e-05
420.9997461379743810.0005077240512379810.000253862025618991
430.9983750535399950.003249892920009520.00162494646000476
440.9899610863968280.02007782720634360.0100389136031718







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

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

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



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