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, 23 Nov 2011 05:51:21 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Nov/23/t1322045531z7377y6lwx5goqd.htm/, Retrieved Wed, 08 May 2024 11:42:21 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=146483, Retrieved Wed, 08 May 2024 11:42:21 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact142
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] [Relatie levensduu...] [2011-11-23 10:51:21] [8a4496bd93dae12a8bdfa51e6ea7daab] [Current]
Feedback Forum

Post a new message
Dataseries X:
38.6	6654	3.3	5712
4.5	1	8.3	6.6
14	3.385	12.5	44.5
69	2547	3.9	4603
27	10.55	9.8	179.5
19	0.023	19.7	0.3
30.4	160	6.2	169
28	3.3	14.5	25.6
50	52.16	9.7	440
7	0.425	12.5	6.4
30	465	3.9	423
40	187.1	3.1	419
3.5	0.075	8.4	1.2
50	3	8.6	25
6	0.785	10.7	3.5
10.4	0.2	10.7	5
34	1.41	6.1	17.5
7	60	18.1	81
20	27.66	3.8	115
3.9	0.12	14.4	1
39.3	207	12	406
41	85	6.2	325
16.2	36.33	13	119.5
9	0.101	13.8	4
7.6	1.04	8.2	5.5
46	521	2.9	655
22.4	100	10.8	157
2.6	0.005	9.1	0.14
24	0.01	19.9	0.25
100	62	8	1320
3.2	0.023	13.2	0.4
2	0.048	12.8	0.33
5	1.7	19.4	6.3
6.5	3.5	17.4	10.8
12	0.48	17	15.5
20.2	10	10.9	115
13	1.62	13.7	11.4
27	192	8.4	180
18	2.5	8.4	12.1
13.7	4.288	12.5	39.2
4.7	0.28	13.2	1.9
9.8	4.235	9.8	50.4
29	6.8	9.6	179
7	0.75	6.6	12.3
6	3.6	5.4	21
17	14.83	2.6	98.2
20	55.5	3.8	175
12.7	1.4	11	12.5
3.5	0.06	10.3	1
4.5	0.9	13.3	2.6
7.5	2	5.4	12.3
2.3	0.104	15.8	2.5
24	4.19	10.3	58
3	3.5	19.4	3.9




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

\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 & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=146483&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]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=146483&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=146483&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'Herman Ole Andreas Wold' @ wold.wessa.net







Multiple Linear Regression - Estimated Regression Equation
LifeSpan[t] = + 25.1409590095113 -0.0257142684662824BodyWt[t] -0.890674525584274TotalSleep[t] + 0.0313667656126427BrainWt[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
LifeSpan[t] =  +  25.1409590095113 -0.0257142684662824BodyWt[t] -0.890674525584274TotalSleep[t] +  0.0313667656126427BrainWt[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=146483&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]LifeSpan[t] =  +  25.1409590095113 -0.0257142684662824BodyWt[t] -0.890674525584274TotalSleep[t] +  0.0313667656126427BrainWt[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=146483&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=146483&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
LifeSpan[t] = + 25.1409590095113 -0.0257142684662824BodyWt[t] -0.890674525584274TotalSleep[t] + 0.0313667656126427BrainWt[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)25.14095900951134.9323675.09715e-063e-06
BodyWt-0.02571426846628240.005301-4.85121.2e-056e-06
TotalSleep-0.8906745255842740.414099-2.15090.0363440.018172
BrainWt0.03136676561264270.0052355.992300

\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) & 25.1409590095113 & 4.932367 & 5.0971 & 5e-06 & 3e-06 \tabularnewline
BodyWt & -0.0257142684662824 & 0.005301 & -4.8512 & 1.2e-05 & 6e-06 \tabularnewline
TotalSleep & -0.890674525584274 & 0.414099 & -2.1509 & 0.036344 & 0.018172 \tabularnewline
BrainWt & 0.0313667656126427 & 0.005235 & 5.9923 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=146483&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]25.1409590095113[/C][C]4.932367[/C][C]5.0971[/C][C]5e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]BodyWt[/C][C]-0.0257142684662824[/C][C]0.005301[/C][C]-4.8512[/C][C]1.2e-05[/C][C]6e-06[/C][/ROW]
[ROW][C]TotalSleep[/C][C]-0.890674525584274[/C][C]0.414099[/C][C]-2.1509[/C][C]0.036344[/C][C]0.018172[/C][/ROW]
[ROW][C]BrainWt[/C][C]0.0313667656126427[/C][C]0.005235[/C][C]5.9923[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=146483&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=146483&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)25.14095900951134.9323675.09715e-063e-06
BodyWt-0.02571426846628240.005301-4.85121.2e-056e-06
TotalSleep-0.8906745255842740.414099-2.15090.0363440.018172
BrainWt0.03136676561264270.0052355.992300







Multiple Linear Regression - Regression Statistics
Multiple R0.731578731233332
R-squared0.535207439992971
Adjusted R-squared0.50731988639255
F-TEST (value)19.1916238929211
F-TEST (DF numerator)3
F-TEST (DF denominator)50
p-value2.04492558442126e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.2034675919384
Sum Squared Residuals8716.57782256832

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.731578731233332 \tabularnewline
R-squared & 0.535207439992971 \tabularnewline
Adjusted R-squared & 0.50731988639255 \tabularnewline
F-TEST (value) & 19.1916238929211 \tabularnewline
F-TEST (DF numerator) & 3 \tabularnewline
F-TEST (DF denominator) & 50 \tabularnewline
p-value & 2.04492558442126e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 13.2034675919384 \tabularnewline
Sum Squared Residuals & 8716.57782256832 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=146483&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.731578731233332[/C][/ROW]
[ROW][C]R-squared[/C][C]0.535207439992971[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.50731988639255[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]19.1916238929211[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]3[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]50[/C][/ROW]
[ROW][C]p-value[/C][C]2.04492558442126e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]13.2034675919384[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]8716.57782256832[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=146483&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=146483&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.731578731233332
R-squared0.535207439992971
Adjusted R-squared0.50731988639255
F-TEST (value)19.1916238929211
F-TEST (DF numerator)3
F-TEST (DF denominator)50
p-value2.04492558442126e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.2034675919384
Sum Squared Residuals8716.57782256832







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
138.630.26595587985568.33404412014445
24.517.929666831739-13.429666831739
31415.3163057107121-1.31630571071212
469100.554308691106-31.5543086911059
52721.77139755393555.22860244606449
6197.6034894570101811.3965105429898
730.420.80547738482039.59452261517975
82812.944310502284315.0556894977157
95028.961536737705421.0384632622946
10714.1973461755306-7.19734617553063
113022.97833537705927.02166462294079
124030.71140314185599.28859685814407
133.517.6950045432036-14.1950045432036
145018.188184424403831.8118155755962
15615.7003395646578-9.7003395646578
1610.415.7624325601295-5.36243256012954
173420.22050568313113.779494316869
18710.0176020030831-3.01760200308307
192024.6523171919676-4.65231719196761
203.912.3435268944945-8.44352689449445
2139.321.864917968712517.4350820312875
224127.627262955363713.3727370446363
2316.216.3763192942465-0.176319294246517
24912.9725204777838-3.97252047778381
257.617.9832022713849-10.3832022713849
264629.706100490664816.2938995093352
2722.417.87482948775784.52517051224218
282.617.0400836025379-14.4400836025379
29247.4241204991027616.5758795008972
3010057.82540876861642.174591231384
313.213.3960105498692-10.1960105498692
32213.7494418297984-11.7494418297984
3358.01576958014336-3.01576958014336
346.59.8919833933295-3.3919833933295
351210.47333409271081.5266659072892
3620.218.78264204143381.41735795856619
371313.2546420220755-0.254642022075509
382718.36817125935298.63182874064712
391817.97454518735070.0254548126493214
4013.715.1268418685401-1.42684186854006
414.713.4364521312924-8.73645213129236
429.817.8843337187079-8.08433371870791
432922.03027758299466.96972241700539
44719.6290326563409-12.6290326563409
45620.8974472827431-14.8974472827431
461725.5240790247987-8.52407902479874
472025.8184378946249-5.81843789462487
4812.715.6996238223895-2.99962382238954
493.515.9968353054979-12.4968353054979
504.513.3533985682137-8.85339856821368
517.520.6656992514592-13.1656992514592
522.311.1440441353909-8.84404413539089
532417.67854101665286.32145898334716
5437.89420365943371-4.89420365943371

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 38.6 & 30.2659558798556 & 8.33404412014445 \tabularnewline
2 & 4.5 & 17.929666831739 & -13.429666831739 \tabularnewline
3 & 14 & 15.3163057107121 & -1.31630571071212 \tabularnewline
4 & 69 & 100.554308691106 & -31.5543086911059 \tabularnewline
5 & 27 & 21.7713975539355 & 5.22860244606449 \tabularnewline
6 & 19 & 7.60348945701018 & 11.3965105429898 \tabularnewline
7 & 30.4 & 20.8054773848203 & 9.59452261517975 \tabularnewline
8 & 28 & 12.9443105022843 & 15.0556894977157 \tabularnewline
9 & 50 & 28.9615367377054 & 21.0384632622946 \tabularnewline
10 & 7 & 14.1973461755306 & -7.19734617553063 \tabularnewline
11 & 30 & 22.9783353770592 & 7.02166462294079 \tabularnewline
12 & 40 & 30.7114031418559 & 9.28859685814407 \tabularnewline
13 & 3.5 & 17.6950045432036 & -14.1950045432036 \tabularnewline
14 & 50 & 18.1881844244038 & 31.8118155755962 \tabularnewline
15 & 6 & 15.7003395646578 & -9.7003395646578 \tabularnewline
16 & 10.4 & 15.7624325601295 & -5.36243256012954 \tabularnewline
17 & 34 & 20.220505683131 & 13.779494316869 \tabularnewline
18 & 7 & 10.0176020030831 & -3.01760200308307 \tabularnewline
19 & 20 & 24.6523171919676 & -4.65231719196761 \tabularnewline
20 & 3.9 & 12.3435268944945 & -8.44352689449445 \tabularnewline
21 & 39.3 & 21.8649179687125 & 17.4350820312875 \tabularnewline
22 & 41 & 27.6272629553637 & 13.3727370446363 \tabularnewline
23 & 16.2 & 16.3763192942465 & -0.176319294246517 \tabularnewline
24 & 9 & 12.9725204777838 & -3.97252047778381 \tabularnewline
25 & 7.6 & 17.9832022713849 & -10.3832022713849 \tabularnewline
26 & 46 & 29.7061004906648 & 16.2938995093352 \tabularnewline
27 & 22.4 & 17.8748294877578 & 4.52517051224218 \tabularnewline
28 & 2.6 & 17.0400836025379 & -14.4400836025379 \tabularnewline
29 & 24 & 7.42412049910276 & 16.5758795008972 \tabularnewline
30 & 100 & 57.825408768616 & 42.174591231384 \tabularnewline
31 & 3.2 & 13.3960105498692 & -10.1960105498692 \tabularnewline
32 & 2 & 13.7494418297984 & -11.7494418297984 \tabularnewline
33 & 5 & 8.01576958014336 & -3.01576958014336 \tabularnewline
34 & 6.5 & 9.8919833933295 & -3.3919833933295 \tabularnewline
35 & 12 & 10.4733340927108 & 1.5266659072892 \tabularnewline
36 & 20.2 & 18.7826420414338 & 1.41735795856619 \tabularnewline
37 & 13 & 13.2546420220755 & -0.254642022075509 \tabularnewline
38 & 27 & 18.3681712593529 & 8.63182874064712 \tabularnewline
39 & 18 & 17.9745451873507 & 0.0254548126493214 \tabularnewline
40 & 13.7 & 15.1268418685401 & -1.42684186854006 \tabularnewline
41 & 4.7 & 13.4364521312924 & -8.73645213129236 \tabularnewline
42 & 9.8 & 17.8843337187079 & -8.08433371870791 \tabularnewline
43 & 29 & 22.0302775829946 & 6.96972241700539 \tabularnewline
44 & 7 & 19.6290326563409 & -12.6290326563409 \tabularnewline
45 & 6 & 20.8974472827431 & -14.8974472827431 \tabularnewline
46 & 17 & 25.5240790247987 & -8.52407902479874 \tabularnewline
47 & 20 & 25.8184378946249 & -5.81843789462487 \tabularnewline
48 & 12.7 & 15.6996238223895 & -2.99962382238954 \tabularnewline
49 & 3.5 & 15.9968353054979 & -12.4968353054979 \tabularnewline
50 & 4.5 & 13.3533985682137 & -8.85339856821368 \tabularnewline
51 & 7.5 & 20.6656992514592 & -13.1656992514592 \tabularnewline
52 & 2.3 & 11.1440441353909 & -8.84404413539089 \tabularnewline
53 & 24 & 17.6785410166528 & 6.32145898334716 \tabularnewline
54 & 3 & 7.89420365943371 & -4.89420365943371 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=146483&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]38.6[/C][C]30.2659558798556[/C][C]8.33404412014445[/C][/ROW]
[ROW][C]2[/C][C]4.5[/C][C]17.929666831739[/C][C]-13.429666831739[/C][/ROW]
[ROW][C]3[/C][C]14[/C][C]15.3163057107121[/C][C]-1.31630571071212[/C][/ROW]
[ROW][C]4[/C][C]69[/C][C]100.554308691106[/C][C]-31.5543086911059[/C][/ROW]
[ROW][C]5[/C][C]27[/C][C]21.7713975539355[/C][C]5.22860244606449[/C][/ROW]
[ROW][C]6[/C][C]19[/C][C]7.60348945701018[/C][C]11.3965105429898[/C][/ROW]
[ROW][C]7[/C][C]30.4[/C][C]20.8054773848203[/C][C]9.59452261517975[/C][/ROW]
[ROW][C]8[/C][C]28[/C][C]12.9443105022843[/C][C]15.0556894977157[/C][/ROW]
[ROW][C]9[/C][C]50[/C][C]28.9615367377054[/C][C]21.0384632622946[/C][/ROW]
[ROW][C]10[/C][C]7[/C][C]14.1973461755306[/C][C]-7.19734617553063[/C][/ROW]
[ROW][C]11[/C][C]30[/C][C]22.9783353770592[/C][C]7.02166462294079[/C][/ROW]
[ROW][C]12[/C][C]40[/C][C]30.7114031418559[/C][C]9.28859685814407[/C][/ROW]
[ROW][C]13[/C][C]3.5[/C][C]17.6950045432036[/C][C]-14.1950045432036[/C][/ROW]
[ROW][C]14[/C][C]50[/C][C]18.1881844244038[/C][C]31.8118155755962[/C][/ROW]
[ROW][C]15[/C][C]6[/C][C]15.7003395646578[/C][C]-9.7003395646578[/C][/ROW]
[ROW][C]16[/C][C]10.4[/C][C]15.7624325601295[/C][C]-5.36243256012954[/C][/ROW]
[ROW][C]17[/C][C]34[/C][C]20.220505683131[/C][C]13.779494316869[/C][/ROW]
[ROW][C]18[/C][C]7[/C][C]10.0176020030831[/C][C]-3.01760200308307[/C][/ROW]
[ROW][C]19[/C][C]20[/C][C]24.6523171919676[/C][C]-4.65231719196761[/C][/ROW]
[ROW][C]20[/C][C]3.9[/C][C]12.3435268944945[/C][C]-8.44352689449445[/C][/ROW]
[ROW][C]21[/C][C]39.3[/C][C]21.8649179687125[/C][C]17.4350820312875[/C][/ROW]
[ROW][C]22[/C][C]41[/C][C]27.6272629553637[/C][C]13.3727370446363[/C][/ROW]
[ROW][C]23[/C][C]16.2[/C][C]16.3763192942465[/C][C]-0.176319294246517[/C][/ROW]
[ROW][C]24[/C][C]9[/C][C]12.9725204777838[/C][C]-3.97252047778381[/C][/ROW]
[ROW][C]25[/C][C]7.6[/C][C]17.9832022713849[/C][C]-10.3832022713849[/C][/ROW]
[ROW][C]26[/C][C]46[/C][C]29.7061004906648[/C][C]16.2938995093352[/C][/ROW]
[ROW][C]27[/C][C]22.4[/C][C]17.8748294877578[/C][C]4.52517051224218[/C][/ROW]
[ROW][C]28[/C][C]2.6[/C][C]17.0400836025379[/C][C]-14.4400836025379[/C][/ROW]
[ROW][C]29[/C][C]24[/C][C]7.42412049910276[/C][C]16.5758795008972[/C][/ROW]
[ROW][C]30[/C][C]100[/C][C]57.825408768616[/C][C]42.174591231384[/C][/ROW]
[ROW][C]31[/C][C]3.2[/C][C]13.3960105498692[/C][C]-10.1960105498692[/C][/ROW]
[ROW][C]32[/C][C]2[/C][C]13.7494418297984[/C][C]-11.7494418297984[/C][/ROW]
[ROW][C]33[/C][C]5[/C][C]8.01576958014336[/C][C]-3.01576958014336[/C][/ROW]
[ROW][C]34[/C][C]6.5[/C][C]9.8919833933295[/C][C]-3.3919833933295[/C][/ROW]
[ROW][C]35[/C][C]12[/C][C]10.4733340927108[/C][C]1.5266659072892[/C][/ROW]
[ROW][C]36[/C][C]20.2[/C][C]18.7826420414338[/C][C]1.41735795856619[/C][/ROW]
[ROW][C]37[/C][C]13[/C][C]13.2546420220755[/C][C]-0.254642022075509[/C][/ROW]
[ROW][C]38[/C][C]27[/C][C]18.3681712593529[/C][C]8.63182874064712[/C][/ROW]
[ROW][C]39[/C][C]18[/C][C]17.9745451873507[/C][C]0.0254548126493214[/C][/ROW]
[ROW][C]40[/C][C]13.7[/C][C]15.1268418685401[/C][C]-1.42684186854006[/C][/ROW]
[ROW][C]41[/C][C]4.7[/C][C]13.4364521312924[/C][C]-8.73645213129236[/C][/ROW]
[ROW][C]42[/C][C]9.8[/C][C]17.8843337187079[/C][C]-8.08433371870791[/C][/ROW]
[ROW][C]43[/C][C]29[/C][C]22.0302775829946[/C][C]6.96972241700539[/C][/ROW]
[ROW][C]44[/C][C]7[/C][C]19.6290326563409[/C][C]-12.6290326563409[/C][/ROW]
[ROW][C]45[/C][C]6[/C][C]20.8974472827431[/C][C]-14.8974472827431[/C][/ROW]
[ROW][C]46[/C][C]17[/C][C]25.5240790247987[/C][C]-8.52407902479874[/C][/ROW]
[ROW][C]47[/C][C]20[/C][C]25.8184378946249[/C][C]-5.81843789462487[/C][/ROW]
[ROW][C]48[/C][C]12.7[/C][C]15.6996238223895[/C][C]-2.99962382238954[/C][/ROW]
[ROW][C]49[/C][C]3.5[/C][C]15.9968353054979[/C][C]-12.4968353054979[/C][/ROW]
[ROW][C]50[/C][C]4.5[/C][C]13.3533985682137[/C][C]-8.85339856821368[/C][/ROW]
[ROW][C]51[/C][C]7.5[/C][C]20.6656992514592[/C][C]-13.1656992514592[/C][/ROW]
[ROW][C]52[/C][C]2.3[/C][C]11.1440441353909[/C][C]-8.84404413539089[/C][/ROW]
[ROW][C]53[/C][C]24[/C][C]17.6785410166528[/C][C]6.32145898334716[/C][/ROW]
[ROW][C]54[/C][C]3[/C][C]7.89420365943371[/C][C]-4.89420365943371[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=146483&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=146483&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
138.630.26595587985568.33404412014445
24.517.929666831739-13.429666831739
31415.3163057107121-1.31630571071212
469100.554308691106-31.5543086911059
52721.77139755393555.22860244606449
6197.6034894570101811.3965105429898
730.420.80547738482039.59452261517975
82812.944310502284315.0556894977157
95028.961536737705421.0384632622946
10714.1973461755306-7.19734617553063
113022.97833537705927.02166462294079
124030.71140314185599.28859685814407
133.517.6950045432036-14.1950045432036
145018.188184424403831.8118155755962
15615.7003395646578-9.7003395646578
1610.415.7624325601295-5.36243256012954
173420.22050568313113.779494316869
18710.0176020030831-3.01760200308307
192024.6523171919676-4.65231719196761
203.912.3435268944945-8.44352689449445
2139.321.864917968712517.4350820312875
224127.627262955363713.3727370446363
2316.216.3763192942465-0.176319294246517
24912.9725204777838-3.97252047778381
257.617.9832022713849-10.3832022713849
264629.706100490664816.2938995093352
2722.417.87482948775784.52517051224218
282.617.0400836025379-14.4400836025379
29247.4241204991027616.5758795008972
3010057.82540876861642.174591231384
313.213.3960105498692-10.1960105498692
32213.7494418297984-11.7494418297984
3358.01576958014336-3.01576958014336
346.59.8919833933295-3.3919833933295
351210.47333409271081.5266659072892
3620.218.78264204143381.41735795856619
371313.2546420220755-0.254642022075509
382718.36817125935298.63182874064712
391817.97454518735070.0254548126493214
4013.715.1268418685401-1.42684186854006
414.713.4364521312924-8.73645213129236
429.817.8843337187079-8.08433371870791
432922.03027758299466.96972241700539
44719.6290326563409-12.6290326563409
45620.8974472827431-14.8974472827431
461725.5240790247987-8.52407902479874
472025.8184378946249-5.81843789462487
4812.715.6996238223895-2.99962382238954
493.515.9968353054979-12.4968353054979
504.513.3533985682137-8.85339856821368
517.520.6656992514592-13.1656992514592
522.311.1440441353909-8.84404413539089
532417.67854101665286.32145898334716
5437.89420365943371-4.89420365943371







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.7759080575123230.4481838849753540.224091942487677
80.7735751512198440.4528496975603130.226424848780156
90.9470713027495930.1058573945008150.0529286972504075
100.9558686967058110.08826260658837710.0441313032941885
110.9286548187475050.1426903625049890.0713451812524947
120.9037770451498510.1924459097002970.0962229548501485
130.9518457070694540.0963085858610920.048154292930546
140.999854943597680.0002901128046407720.000145056402320386
150.9998765804967950.0002468390064097660.000123419503204883
160.9998005326216810.0003989347566371030.000199467378318551
170.9999889381722462.21236555085045e-051.10618277542522e-05
180.9999822478669463.5504266108973e-051.77521330544865e-05
190.9999695034724636.09930550746127e-053.04965275373063e-05
200.9999607959921567.84080156877235e-053.92040078438618e-05
210.9999618827177947.62345644113939e-053.81172822056969e-05
220.9999731995085615.36009828780762e-052.68004914390381e-05
230.9999359566968780.0001280866062448516.40433031224253e-05
240.9998682315815410.0002635368369171190.000131768418458559
250.9998254582938370.0003490834123270610.00017454170616353
260.999861361050940.0002772778981191480.000138638949059574
270.9996820081518970.0006359836962062110.000317991848103106
280.9997290793993290.0005418412013420860.000270920600671043
290.9999835565325383.28869349237093e-051.64434674618546e-05
300.9999996982134676.03573066747033e-073.01786533373516e-07
310.999999330178081.33964383963347e-066.69821919816734e-07
320.9999988418682442.31626351156825e-061.15813175578413e-06
330.9999965486058486.90278830376801e-063.45139415188401e-06
340.999989565609142.08687817195762e-051.04343908597881e-05
350.9999713895789225.72208421554337e-052.86104210777168e-05
360.9999122873434270.0001754253131465978.77126565732983e-05
370.9998228265628380.0003543468743242820.000177173437162141
380.9998247713514440.0003504572971116310.000175228648555815
390.9999377114719770.0001245770560459366.22885280229679e-05
400.9998335963619180.0003328072761643870.000166403638082194
410.9994660586119180.001067882776163310.000533941388081656
420.9985600142629910.002879971474018430.00143998573700921
430.9989074323613410.002185135277318830.00109256763865942
440.9963780458158890.007243908368221890.00362195418411095
450.9892480787145510.02150384257089720.0107519212854486
460.9967546046111610.006490790777677770.00324539538883889
470.9865905567217670.02681888655646660.0134094432782333

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
7 & 0.775908057512323 & 0.448183884975354 & 0.224091942487677 \tabularnewline
8 & 0.773575151219844 & 0.452849697560313 & 0.226424848780156 \tabularnewline
9 & 0.947071302749593 & 0.105857394500815 & 0.0529286972504075 \tabularnewline
10 & 0.955868696705811 & 0.0882626065883771 & 0.0441313032941885 \tabularnewline
11 & 0.928654818747505 & 0.142690362504989 & 0.0713451812524947 \tabularnewline
12 & 0.903777045149851 & 0.192445909700297 & 0.0962229548501485 \tabularnewline
13 & 0.951845707069454 & 0.096308585861092 & 0.048154292930546 \tabularnewline
14 & 0.99985494359768 & 0.000290112804640772 & 0.000145056402320386 \tabularnewline
15 & 0.999876580496795 & 0.000246839006409766 & 0.000123419503204883 \tabularnewline
16 & 0.999800532621681 & 0.000398934756637103 & 0.000199467378318551 \tabularnewline
17 & 0.999988938172246 & 2.21236555085045e-05 & 1.10618277542522e-05 \tabularnewline
18 & 0.999982247866946 & 3.5504266108973e-05 & 1.77521330544865e-05 \tabularnewline
19 & 0.999969503472463 & 6.09930550746127e-05 & 3.04965275373063e-05 \tabularnewline
20 & 0.999960795992156 & 7.84080156877235e-05 & 3.92040078438618e-05 \tabularnewline
21 & 0.999961882717794 & 7.62345644113939e-05 & 3.81172822056969e-05 \tabularnewline
22 & 0.999973199508561 & 5.36009828780762e-05 & 2.68004914390381e-05 \tabularnewline
23 & 0.999935956696878 & 0.000128086606244851 & 6.40433031224253e-05 \tabularnewline
24 & 0.999868231581541 & 0.000263536836917119 & 0.000131768418458559 \tabularnewline
25 & 0.999825458293837 & 0.000349083412327061 & 0.00017454170616353 \tabularnewline
26 & 0.99986136105094 & 0.000277277898119148 & 0.000138638949059574 \tabularnewline
27 & 0.999682008151897 & 0.000635983696206211 & 0.000317991848103106 \tabularnewline
28 & 0.999729079399329 & 0.000541841201342086 & 0.000270920600671043 \tabularnewline
29 & 0.999983556532538 & 3.28869349237093e-05 & 1.64434674618546e-05 \tabularnewline
30 & 0.999999698213467 & 6.03573066747033e-07 & 3.01786533373516e-07 \tabularnewline
31 & 0.99999933017808 & 1.33964383963347e-06 & 6.69821919816734e-07 \tabularnewline
32 & 0.999998841868244 & 2.31626351156825e-06 & 1.15813175578413e-06 \tabularnewline
33 & 0.999996548605848 & 6.90278830376801e-06 & 3.45139415188401e-06 \tabularnewline
34 & 0.99998956560914 & 2.08687817195762e-05 & 1.04343908597881e-05 \tabularnewline
35 & 0.999971389578922 & 5.72208421554337e-05 & 2.86104210777168e-05 \tabularnewline
36 & 0.999912287343427 & 0.000175425313146597 & 8.77126565732983e-05 \tabularnewline
37 & 0.999822826562838 & 0.000354346874324282 & 0.000177173437162141 \tabularnewline
38 & 0.999824771351444 & 0.000350457297111631 & 0.000175228648555815 \tabularnewline
39 & 0.999937711471977 & 0.000124577056045936 & 6.22885280229679e-05 \tabularnewline
40 & 0.999833596361918 & 0.000332807276164387 & 0.000166403638082194 \tabularnewline
41 & 0.999466058611918 & 0.00106788277616331 & 0.000533941388081656 \tabularnewline
42 & 0.998560014262991 & 0.00287997147401843 & 0.00143998573700921 \tabularnewline
43 & 0.998907432361341 & 0.00218513527731883 & 0.00109256763865942 \tabularnewline
44 & 0.996378045815889 & 0.00724390836822189 & 0.00362195418411095 \tabularnewline
45 & 0.989248078714551 & 0.0215038425708972 & 0.0107519212854486 \tabularnewline
46 & 0.996754604611161 & 0.00649079077767777 & 0.00324539538883889 \tabularnewline
47 & 0.986590556721767 & 0.0268188865564666 & 0.0134094432782333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=146483&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]7[/C][C]0.775908057512323[/C][C]0.448183884975354[/C][C]0.224091942487677[/C][/ROW]
[ROW][C]8[/C][C]0.773575151219844[/C][C]0.452849697560313[/C][C]0.226424848780156[/C][/ROW]
[ROW][C]9[/C][C]0.947071302749593[/C][C]0.105857394500815[/C][C]0.0529286972504075[/C][/ROW]
[ROW][C]10[/C][C]0.955868696705811[/C][C]0.0882626065883771[/C][C]0.0441313032941885[/C][/ROW]
[ROW][C]11[/C][C]0.928654818747505[/C][C]0.142690362504989[/C][C]0.0713451812524947[/C][/ROW]
[ROW][C]12[/C][C]0.903777045149851[/C][C]0.192445909700297[/C][C]0.0962229548501485[/C][/ROW]
[ROW][C]13[/C][C]0.951845707069454[/C][C]0.096308585861092[/C][C]0.048154292930546[/C][/ROW]
[ROW][C]14[/C][C]0.99985494359768[/C][C]0.000290112804640772[/C][C]0.000145056402320386[/C][/ROW]
[ROW][C]15[/C][C]0.999876580496795[/C][C]0.000246839006409766[/C][C]0.000123419503204883[/C][/ROW]
[ROW][C]16[/C][C]0.999800532621681[/C][C]0.000398934756637103[/C][C]0.000199467378318551[/C][/ROW]
[ROW][C]17[/C][C]0.999988938172246[/C][C]2.21236555085045e-05[/C][C]1.10618277542522e-05[/C][/ROW]
[ROW][C]18[/C][C]0.999982247866946[/C][C]3.5504266108973e-05[/C][C]1.77521330544865e-05[/C][/ROW]
[ROW][C]19[/C][C]0.999969503472463[/C][C]6.09930550746127e-05[/C][C]3.04965275373063e-05[/C][/ROW]
[ROW][C]20[/C][C]0.999960795992156[/C][C]7.84080156877235e-05[/C][C]3.92040078438618e-05[/C][/ROW]
[ROW][C]21[/C][C]0.999961882717794[/C][C]7.62345644113939e-05[/C][C]3.81172822056969e-05[/C][/ROW]
[ROW][C]22[/C][C]0.999973199508561[/C][C]5.36009828780762e-05[/C][C]2.68004914390381e-05[/C][/ROW]
[ROW][C]23[/C][C]0.999935956696878[/C][C]0.000128086606244851[/C][C]6.40433031224253e-05[/C][/ROW]
[ROW][C]24[/C][C]0.999868231581541[/C][C]0.000263536836917119[/C][C]0.000131768418458559[/C][/ROW]
[ROW][C]25[/C][C]0.999825458293837[/C][C]0.000349083412327061[/C][C]0.00017454170616353[/C][/ROW]
[ROW][C]26[/C][C]0.99986136105094[/C][C]0.000277277898119148[/C][C]0.000138638949059574[/C][/ROW]
[ROW][C]27[/C][C]0.999682008151897[/C][C]0.000635983696206211[/C][C]0.000317991848103106[/C][/ROW]
[ROW][C]28[/C][C]0.999729079399329[/C][C]0.000541841201342086[/C][C]0.000270920600671043[/C][/ROW]
[ROW][C]29[/C][C]0.999983556532538[/C][C]3.28869349237093e-05[/C][C]1.64434674618546e-05[/C][/ROW]
[ROW][C]30[/C][C]0.999999698213467[/C][C]6.03573066747033e-07[/C][C]3.01786533373516e-07[/C][/ROW]
[ROW][C]31[/C][C]0.99999933017808[/C][C]1.33964383963347e-06[/C][C]6.69821919816734e-07[/C][/ROW]
[ROW][C]32[/C][C]0.999998841868244[/C][C]2.31626351156825e-06[/C][C]1.15813175578413e-06[/C][/ROW]
[ROW][C]33[/C][C]0.999996548605848[/C][C]6.90278830376801e-06[/C][C]3.45139415188401e-06[/C][/ROW]
[ROW][C]34[/C][C]0.99998956560914[/C][C]2.08687817195762e-05[/C][C]1.04343908597881e-05[/C][/ROW]
[ROW][C]35[/C][C]0.999971389578922[/C][C]5.72208421554337e-05[/C][C]2.86104210777168e-05[/C][/ROW]
[ROW][C]36[/C][C]0.999912287343427[/C][C]0.000175425313146597[/C][C]8.77126565732983e-05[/C][/ROW]
[ROW][C]37[/C][C]0.999822826562838[/C][C]0.000354346874324282[/C][C]0.000177173437162141[/C][/ROW]
[ROW][C]38[/C][C]0.999824771351444[/C][C]0.000350457297111631[/C][C]0.000175228648555815[/C][/ROW]
[ROW][C]39[/C][C]0.999937711471977[/C][C]0.000124577056045936[/C][C]6.22885280229679e-05[/C][/ROW]
[ROW][C]40[/C][C]0.999833596361918[/C][C]0.000332807276164387[/C][C]0.000166403638082194[/C][/ROW]
[ROW][C]41[/C][C]0.999466058611918[/C][C]0.00106788277616331[/C][C]0.000533941388081656[/C][/ROW]
[ROW][C]42[/C][C]0.998560014262991[/C][C]0.00287997147401843[/C][C]0.00143998573700921[/C][/ROW]
[ROW][C]43[/C][C]0.998907432361341[/C][C]0.00218513527731883[/C][C]0.00109256763865942[/C][/ROW]
[ROW][C]44[/C][C]0.996378045815889[/C][C]0.00724390836822189[/C][C]0.00362195418411095[/C][/ROW]
[ROW][C]45[/C][C]0.989248078714551[/C][C]0.0215038425708972[/C][C]0.0107519212854486[/C][/ROW]
[ROW][C]46[/C][C]0.996754604611161[/C][C]0.00649079077767777[/C][C]0.00324539538883889[/C][/ROW]
[ROW][C]47[/C][C]0.986590556721767[/C][C]0.0268188865564666[/C][C]0.0134094432782333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=146483&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=146483&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
70.7759080575123230.4481838849753540.224091942487677
80.7735751512198440.4528496975603130.226424848780156
90.9470713027495930.1058573945008150.0529286972504075
100.9558686967058110.08826260658837710.0441313032941885
110.9286548187475050.1426903625049890.0713451812524947
120.9037770451498510.1924459097002970.0962229548501485
130.9518457070694540.0963085858610920.048154292930546
140.999854943597680.0002901128046407720.000145056402320386
150.9998765804967950.0002468390064097660.000123419503204883
160.9998005326216810.0003989347566371030.000199467378318551
170.9999889381722462.21236555085045e-051.10618277542522e-05
180.9999822478669463.5504266108973e-051.77521330544865e-05
190.9999695034724636.09930550746127e-053.04965275373063e-05
200.9999607959921567.84080156877235e-053.92040078438618e-05
210.9999618827177947.62345644113939e-053.81172822056969e-05
220.9999731995085615.36009828780762e-052.68004914390381e-05
230.9999359566968780.0001280866062448516.40433031224253e-05
240.9998682315815410.0002635368369171190.000131768418458559
250.9998254582938370.0003490834123270610.00017454170616353
260.999861361050940.0002772778981191480.000138638949059574
270.9996820081518970.0006359836962062110.000317991848103106
280.9997290793993290.0005418412013420860.000270920600671043
290.9999835565325383.28869349237093e-051.64434674618546e-05
300.9999996982134676.03573066747033e-073.01786533373516e-07
310.999999330178081.33964383963347e-066.69821919816734e-07
320.9999988418682442.31626351156825e-061.15813175578413e-06
330.9999965486058486.90278830376801e-063.45139415188401e-06
340.999989565609142.08687817195762e-051.04343908597881e-05
350.9999713895789225.72208421554337e-052.86104210777168e-05
360.9999122873434270.0001754253131465978.77126565732983e-05
370.9998228265628380.0003543468743242820.000177173437162141
380.9998247713514440.0003504572971116310.000175228648555815
390.9999377114719770.0001245770560459366.22885280229679e-05
400.9998335963619180.0003328072761643870.000166403638082194
410.9994660586119180.001067882776163310.000533941388081656
420.9985600142629910.002879971474018430.00143998573700921
430.9989074323613410.002185135277318830.00109256763865942
440.9963780458158890.007243908368221890.00362195418411095
450.9892480787145510.02150384257089720.0107519212854486
460.9967546046111610.006490790777677770.00324539538883889
470.9865905567217670.02681888655646660.0134094432782333







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level320.780487804878049NOK
5% type I error level340.829268292682927NOK
10% type I error level360.878048780487805NOK

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

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



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