Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSun, 02 Nov 2008 08:01:55 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Nov/02/t1225638212bh7u6xp84t10nsc.htm/, Retrieved Sun, 19 May 2024 10:09:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=20592, Retrieved Sun, 19 May 2024 10:09:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact151
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Multiple Regressi...] [2008-11-02 15:01:55] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
69,97	6911	8488
72,13	7030,6	10900
78,27	7115,1	10456
80,31	7232,2	18508
79,06	7298,3	12880
78,98	7337,7	14034
87,35	7432,1	12419
86,16	7522,5	17256
88,71	7624,1	10407
90,16	7776,6	12245
94,09	7866,2	13394
93,57	8000,4	18333
96,73	8113,8	14076
94,67	8250,4	15359
101,05	8381,9	16592
105,16	8471,2	19188
105,27	8586,7	15428
104,88	8657,9	15564
107,11	8789,5	15451
99,41	8953,8	19825
101,37	9066,6	14813
98,86	9174,1	15309
100,64	9313,5	18573
97,16	9519,5	20255
98,1	9629,4	20138
96,79	9822,8	22204
102,71	9862,1	22981
102,95	9953,6	21986
104,07	10021,5	23139
104,31	10128,9	22081
105,02	10135,1	23989
106,08	10226,3	24503
105,28	10333,3	23818
99,36	10426,6	26013
101,53	10527,4	31911
99,32	10591,1	31889
96,91	10705,6	32091
92,65	10831,8	34476
95,7	11086,1	41941
93,2	11219,5	48062
91,93	11405,5	45848
92,24	11610,3	50496
95,32	11779,4	55803
88,72	11948,5	63784
87,99	12155,4	60869
89,2	12297,5	65960
93,78	12538,2	70186
94,99	12696,4	75412
92,9	12959,6	78046
90,61	13134,1	81311
94,26	13249,6	91629
94,17	13370,1	94094
94,81	13510,9	83424
95,77	13737,5	103268
99,4	13950,6	112481
98,76	14031,2	114416
99,37	14150,8	108963
101,02	14294,5	121533




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 6 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=20592&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=20592&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=20592&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 time6 seconds
R Server'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
exp[t] = -299135.534440977 -323.772985709723reer[t] + 49.8364278678448GDP[t] -5204.27341734299Q1[t] -3671.18155453822Q2[t] -1741.20861263880Q3[t] -4652.50574960861t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
exp[t] =  -299135.534440977 -323.772985709723reer[t] +  49.8364278678448GDP[t] -5204.27341734299Q1[t] -3671.18155453822Q2[t] -1741.20861263880Q3[t] -4652.50574960861t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=20592&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]exp[t] =  -299135.534440977 -323.772985709723reer[t] +  49.8364278678448GDP[t] -5204.27341734299Q1[t] -3671.18155453822Q2[t] -1741.20861263880Q3[t] -4652.50574960861t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=20592&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=20592&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
exp[t] = -299135.534440977 -323.772985709723reer[t] + 49.8364278678448GDP[t] -5204.27341734299Q1[t] -3671.18155453822Q2[t] -1741.20861263880Q3[t] -4652.50574960861t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-299135.53444097727795.997285-10.761800
reer-323.772985709723110.153034-2.93930.0049320.002466
GDP49.83642786784483.41825214.579500
Q1-5204.273417342992137.578523-2.43470.0184440.009222
Q2-3671.181554538222144.48321-1.71190.0929870.046494
Q3-1741.208612638802175.304135-0.80040.4271670.213583
t-4652.50574960861450.730815-10.322100

\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) & -299135.534440977 & 27795.997285 & -10.7618 & 0 & 0 \tabularnewline
reer & -323.772985709723 & 110.153034 & -2.9393 & 0.004932 & 0.002466 \tabularnewline
GDP & 49.8364278678448 & 3.418252 & 14.5795 & 0 & 0 \tabularnewline
Q1 & -5204.27341734299 & 2137.578523 & -2.4347 & 0.018444 & 0.009222 \tabularnewline
Q2 & -3671.18155453822 & 2144.48321 & -1.7119 & 0.092987 & 0.046494 \tabularnewline
Q3 & -1741.20861263880 & 2175.304135 & -0.8004 & 0.427167 & 0.213583 \tabularnewline
t & -4652.50574960861 & 450.730815 & -10.3221 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=20592&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]-299135.534440977[/C][C]27795.997285[/C][C]-10.7618[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]reer[/C][C]-323.772985709723[/C][C]110.153034[/C][C]-2.9393[/C][C]0.004932[/C][C]0.002466[/C][/ROW]
[ROW][C]GDP[/C][C]49.8364278678448[/C][C]3.418252[/C][C]14.5795[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Q1[/C][C]-5204.27341734299[/C][C]2137.578523[/C][C]-2.4347[/C][C]0.018444[/C][C]0.009222[/C][/ROW]
[ROW][C]Q2[/C][C]-3671.18155453822[/C][C]2144.48321[/C][C]-1.7119[/C][C]0.092987[/C][C]0.046494[/C][/ROW]
[ROW][C]Q3[/C][C]-1741.20861263880[/C][C]2175.304135[/C][C]-0.8004[/C][C]0.427167[/C][C]0.213583[/C][/ROW]
[ROW][C]t[/C][C]-4652.50574960861[/C][C]450.730815[/C][C]-10.3221[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=20592&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=20592&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)-299135.53444097727795.997285-10.761800
reer-323.772985709723110.153034-2.93930.0049320.002466
GDP49.83642786784483.41825214.579500
Q1-5204.273417342992137.578523-2.43470.0184440.009222
Q2-3671.181554538222144.48321-1.71190.0929870.046494
Q3-1741.208612638802175.304135-0.80040.4271670.213583
t-4652.50574960861450.730815-10.322100







Multiple Linear Regression - Regression Statistics
Multiple R0.985778046455531
R-squared0.971758356873684
Adjusted R-squared0.968435810623529
F-TEST (value)292.473989437587
F-TEST (DF numerator)6
F-TEST (DF denominator)51
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5738.82063417228
Sum Squared Residuals1679637175.83128

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.985778046455531 \tabularnewline
R-squared & 0.971758356873684 \tabularnewline
Adjusted R-squared & 0.968435810623529 \tabularnewline
F-TEST (value) & 292.473989437587 \tabularnewline
F-TEST (DF numerator) & 6 \tabularnewline
F-TEST (DF denominator) & 51 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5738.82063417228 \tabularnewline
Sum Squared Residuals & 1679637175.83128 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=20592&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.985778046455531[/C][/ROW]
[ROW][C]R-squared[/C][C]0.971758356873684[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.968435810623529[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]292.473989437587[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]6[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]51[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5738.82063417228[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1679637175.83128[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=20592&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=20592&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.985778046455531
R-squared0.971758356873684
Adjusted R-squared0.968435810623529
F-TEST (value)292.473989437587
F-TEST (DF numerator)6
F-TEST (DF denominator)51
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5738.82063417228
Sum Squared Residuals1679637175.83128







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1848812772.8435766348-4284.84357663484
21090014914.5168136948-4014.51681369479
31045614415.196028561-3959.19602856101
41850816679.24770406771828.75229593232
51288010521.37265131782358.6273486822
6140349391.415861363814642.58413863619
7124198663.461953988833755.53804601117
81725610642.66774926676613.33225073329
9104075023.648540128395383.35145987161
10122459034.819073891763210.18092610824
11133949505.202369302213888.79763069778
121833313450.31580476624882.68419523378
13140768221.864923185535854.13507681447
141535912577.07943369132781.92056630873
151659214342.36524177562249.63475822438
161918814550.75414213754637.24585786255
171542810414.46736549385013.53263450616
181556410969.67860730734594.32139269270
191545114083.60594887381367.39405112620
201982521853.4859005557-2028.48590055570
211481316983.6607451060-2170.66074510597
221530920034.3330482268-4725.33304822683
231857323682.6823707319-5109.68237073188
242025532164.4193648079-11909.4193648079
252013827480.3170139653-7342.31701396529
262220434423.4108880823-12219.4108880823
272298131742.7136201779-8761.71362017793
282198633313.7441165456-11327.7441165456
292313926478.2326578257-3339.23265782574
302208128633.5456074581-6552.54560745807
312398925990.1198326756-2001.11983267564
322450327280.7055524009-2777.70555240091
332381823015.4425558765802.557444123528
342601326462.5034645441-449.503464544140
353191128060.89520692363850.10479307645
363188929039.71682355402849.28317644603
373209125669.5015430316421.49845696898
383447630218.71777227254257.28222772747
394194139182.08096494172758.91903505834
404806243728.39576981664333.60423018339
414584843552.38387813552295.61612186452
425049650539.1007930962-43.1007930961945
435580355246.6871418536556.312858146387
446378462899.6316630205884.368336979486
456086963590.363701494-2721.36370149408
466596067160.9409020022-1200.94090200224
477018674951.1560075328-4765.15600753277
487541279532.2164465472-4120.21644654719
497804683469.0706345457-5423.07063454567
508131189787.553547956-8476.55354795597
519162991639.3567611424-10.3567611423654
529409494762.4887509617-668.488750961747
538342491715.4639169484-8291.46391694841
5410326899578.16251871693689.83748128312
55112481106300.4765515196180.5234484809
56114416107613.2102115526802.78978844818
57108963103519.3662963115443.63370368853
58121533107027.22166769614505.7783323041

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8488 & 12772.8435766348 & -4284.84357663484 \tabularnewline
2 & 10900 & 14914.5168136948 & -4014.51681369479 \tabularnewline
3 & 10456 & 14415.196028561 & -3959.19602856101 \tabularnewline
4 & 18508 & 16679.2477040677 & 1828.75229593232 \tabularnewline
5 & 12880 & 10521.3726513178 & 2358.6273486822 \tabularnewline
6 & 14034 & 9391.41586136381 & 4642.58413863619 \tabularnewline
7 & 12419 & 8663.46195398883 & 3755.53804601117 \tabularnewline
8 & 17256 & 10642.6677492667 & 6613.33225073329 \tabularnewline
9 & 10407 & 5023.64854012839 & 5383.35145987161 \tabularnewline
10 & 12245 & 9034.81907389176 & 3210.18092610824 \tabularnewline
11 & 13394 & 9505.20236930221 & 3888.79763069778 \tabularnewline
12 & 18333 & 13450.3158047662 & 4882.68419523378 \tabularnewline
13 & 14076 & 8221.86492318553 & 5854.13507681447 \tabularnewline
14 & 15359 & 12577.0794336913 & 2781.92056630873 \tabularnewline
15 & 16592 & 14342.3652417756 & 2249.63475822438 \tabularnewline
16 & 19188 & 14550.7541421375 & 4637.24585786255 \tabularnewline
17 & 15428 & 10414.4673654938 & 5013.53263450616 \tabularnewline
18 & 15564 & 10969.6786073073 & 4594.32139269270 \tabularnewline
19 & 15451 & 14083.6059488738 & 1367.39405112620 \tabularnewline
20 & 19825 & 21853.4859005557 & -2028.48590055570 \tabularnewline
21 & 14813 & 16983.6607451060 & -2170.66074510597 \tabularnewline
22 & 15309 & 20034.3330482268 & -4725.33304822683 \tabularnewline
23 & 18573 & 23682.6823707319 & -5109.68237073188 \tabularnewline
24 & 20255 & 32164.4193648079 & -11909.4193648079 \tabularnewline
25 & 20138 & 27480.3170139653 & -7342.31701396529 \tabularnewline
26 & 22204 & 34423.4108880823 & -12219.4108880823 \tabularnewline
27 & 22981 & 31742.7136201779 & -8761.71362017793 \tabularnewline
28 & 21986 & 33313.7441165456 & -11327.7441165456 \tabularnewline
29 & 23139 & 26478.2326578257 & -3339.23265782574 \tabularnewline
30 & 22081 & 28633.5456074581 & -6552.54560745807 \tabularnewline
31 & 23989 & 25990.1198326756 & -2001.11983267564 \tabularnewline
32 & 24503 & 27280.7055524009 & -2777.70555240091 \tabularnewline
33 & 23818 & 23015.4425558765 & 802.557444123528 \tabularnewline
34 & 26013 & 26462.5034645441 & -449.503464544140 \tabularnewline
35 & 31911 & 28060.8952069236 & 3850.10479307645 \tabularnewline
36 & 31889 & 29039.7168235540 & 2849.28317644603 \tabularnewline
37 & 32091 & 25669.501543031 & 6421.49845696898 \tabularnewline
38 & 34476 & 30218.7177722725 & 4257.28222772747 \tabularnewline
39 & 41941 & 39182.0809649417 & 2758.91903505834 \tabularnewline
40 & 48062 & 43728.3957698166 & 4333.60423018339 \tabularnewline
41 & 45848 & 43552.3838781355 & 2295.61612186452 \tabularnewline
42 & 50496 & 50539.1007930962 & -43.1007930961945 \tabularnewline
43 & 55803 & 55246.6871418536 & 556.312858146387 \tabularnewline
44 & 63784 & 62899.6316630205 & 884.368336979486 \tabularnewline
45 & 60869 & 63590.363701494 & -2721.36370149408 \tabularnewline
46 & 65960 & 67160.9409020022 & -1200.94090200224 \tabularnewline
47 & 70186 & 74951.1560075328 & -4765.15600753277 \tabularnewline
48 & 75412 & 79532.2164465472 & -4120.21644654719 \tabularnewline
49 & 78046 & 83469.0706345457 & -5423.07063454567 \tabularnewline
50 & 81311 & 89787.553547956 & -8476.55354795597 \tabularnewline
51 & 91629 & 91639.3567611424 & -10.3567611423654 \tabularnewline
52 & 94094 & 94762.4887509617 & -668.488750961747 \tabularnewline
53 & 83424 & 91715.4639169484 & -8291.46391694841 \tabularnewline
54 & 103268 & 99578.1625187169 & 3689.83748128312 \tabularnewline
55 & 112481 & 106300.476551519 & 6180.5234484809 \tabularnewline
56 & 114416 & 107613.210211552 & 6802.78978844818 \tabularnewline
57 & 108963 & 103519.366296311 & 5443.63370368853 \tabularnewline
58 & 121533 & 107027.221667696 & 14505.7783323041 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=20592&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]8488[/C][C]12772.8435766348[/C][C]-4284.84357663484[/C][/ROW]
[ROW][C]2[/C][C]10900[/C][C]14914.5168136948[/C][C]-4014.51681369479[/C][/ROW]
[ROW][C]3[/C][C]10456[/C][C]14415.196028561[/C][C]-3959.19602856101[/C][/ROW]
[ROW][C]4[/C][C]18508[/C][C]16679.2477040677[/C][C]1828.75229593232[/C][/ROW]
[ROW][C]5[/C][C]12880[/C][C]10521.3726513178[/C][C]2358.6273486822[/C][/ROW]
[ROW][C]6[/C][C]14034[/C][C]9391.41586136381[/C][C]4642.58413863619[/C][/ROW]
[ROW][C]7[/C][C]12419[/C][C]8663.46195398883[/C][C]3755.53804601117[/C][/ROW]
[ROW][C]8[/C][C]17256[/C][C]10642.6677492667[/C][C]6613.33225073329[/C][/ROW]
[ROW][C]9[/C][C]10407[/C][C]5023.64854012839[/C][C]5383.35145987161[/C][/ROW]
[ROW][C]10[/C][C]12245[/C][C]9034.81907389176[/C][C]3210.18092610824[/C][/ROW]
[ROW][C]11[/C][C]13394[/C][C]9505.20236930221[/C][C]3888.79763069778[/C][/ROW]
[ROW][C]12[/C][C]18333[/C][C]13450.3158047662[/C][C]4882.68419523378[/C][/ROW]
[ROW][C]13[/C][C]14076[/C][C]8221.86492318553[/C][C]5854.13507681447[/C][/ROW]
[ROW][C]14[/C][C]15359[/C][C]12577.0794336913[/C][C]2781.92056630873[/C][/ROW]
[ROW][C]15[/C][C]16592[/C][C]14342.3652417756[/C][C]2249.63475822438[/C][/ROW]
[ROW][C]16[/C][C]19188[/C][C]14550.7541421375[/C][C]4637.24585786255[/C][/ROW]
[ROW][C]17[/C][C]15428[/C][C]10414.4673654938[/C][C]5013.53263450616[/C][/ROW]
[ROW][C]18[/C][C]15564[/C][C]10969.6786073073[/C][C]4594.32139269270[/C][/ROW]
[ROW][C]19[/C][C]15451[/C][C]14083.6059488738[/C][C]1367.39405112620[/C][/ROW]
[ROW][C]20[/C][C]19825[/C][C]21853.4859005557[/C][C]-2028.48590055570[/C][/ROW]
[ROW][C]21[/C][C]14813[/C][C]16983.6607451060[/C][C]-2170.66074510597[/C][/ROW]
[ROW][C]22[/C][C]15309[/C][C]20034.3330482268[/C][C]-4725.33304822683[/C][/ROW]
[ROW][C]23[/C][C]18573[/C][C]23682.6823707319[/C][C]-5109.68237073188[/C][/ROW]
[ROW][C]24[/C][C]20255[/C][C]32164.4193648079[/C][C]-11909.4193648079[/C][/ROW]
[ROW][C]25[/C][C]20138[/C][C]27480.3170139653[/C][C]-7342.31701396529[/C][/ROW]
[ROW][C]26[/C][C]22204[/C][C]34423.4108880823[/C][C]-12219.4108880823[/C][/ROW]
[ROW][C]27[/C][C]22981[/C][C]31742.7136201779[/C][C]-8761.71362017793[/C][/ROW]
[ROW][C]28[/C][C]21986[/C][C]33313.7441165456[/C][C]-11327.7441165456[/C][/ROW]
[ROW][C]29[/C][C]23139[/C][C]26478.2326578257[/C][C]-3339.23265782574[/C][/ROW]
[ROW][C]30[/C][C]22081[/C][C]28633.5456074581[/C][C]-6552.54560745807[/C][/ROW]
[ROW][C]31[/C][C]23989[/C][C]25990.1198326756[/C][C]-2001.11983267564[/C][/ROW]
[ROW][C]32[/C][C]24503[/C][C]27280.7055524009[/C][C]-2777.70555240091[/C][/ROW]
[ROW][C]33[/C][C]23818[/C][C]23015.4425558765[/C][C]802.557444123528[/C][/ROW]
[ROW][C]34[/C][C]26013[/C][C]26462.5034645441[/C][C]-449.503464544140[/C][/ROW]
[ROW][C]35[/C][C]31911[/C][C]28060.8952069236[/C][C]3850.10479307645[/C][/ROW]
[ROW][C]36[/C][C]31889[/C][C]29039.7168235540[/C][C]2849.28317644603[/C][/ROW]
[ROW][C]37[/C][C]32091[/C][C]25669.501543031[/C][C]6421.49845696898[/C][/ROW]
[ROW][C]38[/C][C]34476[/C][C]30218.7177722725[/C][C]4257.28222772747[/C][/ROW]
[ROW][C]39[/C][C]41941[/C][C]39182.0809649417[/C][C]2758.91903505834[/C][/ROW]
[ROW][C]40[/C][C]48062[/C][C]43728.3957698166[/C][C]4333.60423018339[/C][/ROW]
[ROW][C]41[/C][C]45848[/C][C]43552.3838781355[/C][C]2295.61612186452[/C][/ROW]
[ROW][C]42[/C][C]50496[/C][C]50539.1007930962[/C][C]-43.1007930961945[/C][/ROW]
[ROW][C]43[/C][C]55803[/C][C]55246.6871418536[/C][C]556.312858146387[/C][/ROW]
[ROW][C]44[/C][C]63784[/C][C]62899.6316630205[/C][C]884.368336979486[/C][/ROW]
[ROW][C]45[/C][C]60869[/C][C]63590.363701494[/C][C]-2721.36370149408[/C][/ROW]
[ROW][C]46[/C][C]65960[/C][C]67160.9409020022[/C][C]-1200.94090200224[/C][/ROW]
[ROW][C]47[/C][C]70186[/C][C]74951.1560075328[/C][C]-4765.15600753277[/C][/ROW]
[ROW][C]48[/C][C]75412[/C][C]79532.2164465472[/C][C]-4120.21644654719[/C][/ROW]
[ROW][C]49[/C][C]78046[/C][C]83469.0706345457[/C][C]-5423.07063454567[/C][/ROW]
[ROW][C]50[/C][C]81311[/C][C]89787.553547956[/C][C]-8476.55354795597[/C][/ROW]
[ROW][C]51[/C][C]91629[/C][C]91639.3567611424[/C][C]-10.3567611423654[/C][/ROW]
[ROW][C]52[/C][C]94094[/C][C]94762.4887509617[/C][C]-668.488750961747[/C][/ROW]
[ROW][C]53[/C][C]83424[/C][C]91715.4639169484[/C][C]-8291.46391694841[/C][/ROW]
[ROW][C]54[/C][C]103268[/C][C]99578.1625187169[/C][C]3689.83748128312[/C][/ROW]
[ROW][C]55[/C][C]112481[/C][C]106300.476551519[/C][C]6180.5234484809[/C][/ROW]
[ROW][C]56[/C][C]114416[/C][C]107613.210211552[/C][C]6802.78978844818[/C][/ROW]
[ROW][C]57[/C][C]108963[/C][C]103519.366296311[/C][C]5443.63370368853[/C][/ROW]
[ROW][C]58[/C][C]121533[/C][C]107027.221667696[/C][C]14505.7783323041[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=20592&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=20592&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
1848812772.8435766348-4284.84357663484
21090014914.5168136948-4014.51681369479
31045614415.196028561-3959.19602856101
41850816679.24770406771828.75229593232
51288010521.37265131782358.6273486822
6140349391.415861363814642.58413863619
7124198663.461953988833755.53804601117
81725610642.66774926676613.33225073329
9104075023.648540128395383.35145987161
10122459034.819073891763210.18092610824
11133949505.202369302213888.79763069778
121833313450.31580476624882.68419523378
13140768221.864923185535854.13507681447
141535912577.07943369132781.92056630873
151659214342.36524177562249.63475822438
161918814550.75414213754637.24585786255
171542810414.46736549385013.53263450616
181556410969.67860730734594.32139269270
191545114083.60594887381367.39405112620
201982521853.4859005557-2028.48590055570
211481316983.6607451060-2170.66074510597
221530920034.3330482268-4725.33304822683
231857323682.6823707319-5109.68237073188
242025532164.4193648079-11909.4193648079
252013827480.3170139653-7342.31701396529
262220434423.4108880823-12219.4108880823
272298131742.7136201779-8761.71362017793
282198633313.7441165456-11327.7441165456
292313926478.2326578257-3339.23265782574
302208128633.5456074581-6552.54560745807
312398925990.1198326756-2001.11983267564
322450327280.7055524009-2777.70555240091
332381823015.4425558765802.557444123528
342601326462.5034645441-449.503464544140
353191128060.89520692363850.10479307645
363188929039.71682355402849.28317644603
373209125669.5015430316421.49845696898
383447630218.71777227254257.28222772747
394194139182.08096494172758.91903505834
404806243728.39576981664333.60423018339
414584843552.38387813552295.61612186452
425049650539.1007930962-43.1007930961945
435580355246.6871418536556.312858146387
446378462899.6316630205884.368336979486
456086963590.363701494-2721.36370149408
466596067160.9409020022-1200.94090200224
477018674951.1560075328-4765.15600753277
487541279532.2164465472-4120.21644654719
497804683469.0706345457-5423.07063454567
508131189787.553547956-8476.55354795597
519162991639.3567611424-10.3567611423654
529409494762.4887509617-668.488750961747
538342491715.4639169484-8291.46391694841
5410326899578.16251871693689.83748128312
55112481106300.4765515196180.5234484809
56114416107613.2102115526802.78978844818
57108963103519.3662963115443.63370368853
58121533107027.22166769614505.7783323041







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.06125692336102670.1225138467220530.938743076638973
110.01874784453051540.03749568906103080.981252155469485
120.006766527808942860.01353305561788570.993233472191057
130.003030364059017440.006060728118034880.996969635940983
140.001060273764223320.002120547528446630.998939726235777
150.0004315577324705570.0008631154649411140.99956844226753
160.0002482624175183660.0004965248350367320.999751737582482
170.0001302212309044680.0002604424618089350.999869778769096
187.74702673577128e-050.0001549405347154260.999922529732642
195.11728012352729e-050.0001023456024705460.999948827198765
204.51361900966728e-059.02723801933455e-050.999954863809903
213.00712011716101e-056.01424023432203e-050.999969928798828
221.66528708253705e-053.33057416507410e-050.999983347129175
233.21132341882645e-056.4226468376529e-050.999967886765812
241.82625626217758e-053.65251252435515e-050.999981737437378
250.0001873189810367090.0003746379620734180.999812681018963
260.000359457719983030.000718915439966060.999640542280017
270.0006364544671532130.001272908934306430.999363545532847
280.0004970566746094490.0009941133492188990.99950294332539
290.00456171388484550.0091234277696910.995438286115155
300.003182904991219810.006365809982439610.99681709500878
310.003442301471930370.006884602943860740.99655769852807
320.001897682044653980.003795364089307950.998102317955346
330.001438325738547770.002876651477095540.998561674261452
340.0009558024592555570.001911604918511110.999044197540744
350.003750682459749100.007501364919498190.99624931754025
360.002308577850681640.004617155701363280.997691422149318
370.002466920389112910.004933840778225820.997533079610887
380.001878566436369070.003757132872738130.99812143356363
390.0158478944397660.0316957888795320.984152105560234
400.06069301531308720.1213860306261740.939306984686913
410.1393609319437860.2787218638875730.860639068056214
420.2085349017325560.4170698034651130.791465098267444
430.2496322395749870.4992644791499730.750367760425013
440.3130688248541760.6261376497083520.686931175145824
450.581445752205950.83710849558810.41855424779405
460.7769414350855460.4461171298289080.223058564914454
470.6566281861742870.6867436276514250.343371813825713
480.7741575550813340.4516848898373320.225842444918666

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
10 & 0.0612569233610267 & 0.122513846722053 & 0.938743076638973 \tabularnewline
11 & 0.0187478445305154 & 0.0374956890610308 & 0.981252155469485 \tabularnewline
12 & 0.00676652780894286 & 0.0135330556178857 & 0.993233472191057 \tabularnewline
13 & 0.00303036405901744 & 0.00606072811803488 & 0.996969635940983 \tabularnewline
14 & 0.00106027376422332 & 0.00212054752844663 & 0.998939726235777 \tabularnewline
15 & 0.000431557732470557 & 0.000863115464941114 & 0.99956844226753 \tabularnewline
16 & 0.000248262417518366 & 0.000496524835036732 & 0.999751737582482 \tabularnewline
17 & 0.000130221230904468 & 0.000260442461808935 & 0.999869778769096 \tabularnewline
18 & 7.74702673577128e-05 & 0.000154940534715426 & 0.999922529732642 \tabularnewline
19 & 5.11728012352729e-05 & 0.000102345602470546 & 0.999948827198765 \tabularnewline
20 & 4.51361900966728e-05 & 9.02723801933455e-05 & 0.999954863809903 \tabularnewline
21 & 3.00712011716101e-05 & 6.01424023432203e-05 & 0.999969928798828 \tabularnewline
22 & 1.66528708253705e-05 & 3.33057416507410e-05 & 0.999983347129175 \tabularnewline
23 & 3.21132341882645e-05 & 6.4226468376529e-05 & 0.999967886765812 \tabularnewline
24 & 1.82625626217758e-05 & 3.65251252435515e-05 & 0.999981737437378 \tabularnewline
25 & 0.000187318981036709 & 0.000374637962073418 & 0.999812681018963 \tabularnewline
26 & 0.00035945771998303 & 0.00071891543996606 & 0.999640542280017 \tabularnewline
27 & 0.000636454467153213 & 0.00127290893430643 & 0.999363545532847 \tabularnewline
28 & 0.000497056674609449 & 0.000994113349218899 & 0.99950294332539 \tabularnewline
29 & 0.0045617138848455 & 0.009123427769691 & 0.995438286115155 \tabularnewline
30 & 0.00318290499121981 & 0.00636580998243961 & 0.99681709500878 \tabularnewline
31 & 0.00344230147193037 & 0.00688460294386074 & 0.99655769852807 \tabularnewline
32 & 0.00189768204465398 & 0.00379536408930795 & 0.998102317955346 \tabularnewline
33 & 0.00143832573854777 & 0.00287665147709554 & 0.998561674261452 \tabularnewline
34 & 0.000955802459255557 & 0.00191160491851111 & 0.999044197540744 \tabularnewline
35 & 0.00375068245974910 & 0.00750136491949819 & 0.99624931754025 \tabularnewline
36 & 0.00230857785068164 & 0.00461715570136328 & 0.997691422149318 \tabularnewline
37 & 0.00246692038911291 & 0.00493384077822582 & 0.997533079610887 \tabularnewline
38 & 0.00187856643636907 & 0.00375713287273813 & 0.99812143356363 \tabularnewline
39 & 0.015847894439766 & 0.031695788879532 & 0.984152105560234 \tabularnewline
40 & 0.0606930153130872 & 0.121386030626174 & 0.939306984686913 \tabularnewline
41 & 0.139360931943786 & 0.278721863887573 & 0.860639068056214 \tabularnewline
42 & 0.208534901732556 & 0.417069803465113 & 0.791465098267444 \tabularnewline
43 & 0.249632239574987 & 0.499264479149973 & 0.750367760425013 \tabularnewline
44 & 0.313068824854176 & 0.626137649708352 & 0.686931175145824 \tabularnewline
45 & 0.58144575220595 & 0.8371084955881 & 0.41855424779405 \tabularnewline
46 & 0.776941435085546 & 0.446117129828908 & 0.223058564914454 \tabularnewline
47 & 0.656628186174287 & 0.686743627651425 & 0.343371813825713 \tabularnewline
48 & 0.774157555081334 & 0.451684889837332 & 0.225842444918666 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=20592&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]10[/C][C]0.0612569233610267[/C][C]0.122513846722053[/C][C]0.938743076638973[/C][/ROW]
[ROW][C]11[/C][C]0.0187478445305154[/C][C]0.0374956890610308[/C][C]0.981252155469485[/C][/ROW]
[ROW][C]12[/C][C]0.00676652780894286[/C][C]0.0135330556178857[/C][C]0.993233472191057[/C][/ROW]
[ROW][C]13[/C][C]0.00303036405901744[/C][C]0.00606072811803488[/C][C]0.996969635940983[/C][/ROW]
[ROW][C]14[/C][C]0.00106027376422332[/C][C]0.00212054752844663[/C][C]0.998939726235777[/C][/ROW]
[ROW][C]15[/C][C]0.000431557732470557[/C][C]0.000863115464941114[/C][C]0.99956844226753[/C][/ROW]
[ROW][C]16[/C][C]0.000248262417518366[/C][C]0.000496524835036732[/C][C]0.999751737582482[/C][/ROW]
[ROW][C]17[/C][C]0.000130221230904468[/C][C]0.000260442461808935[/C][C]0.999869778769096[/C][/ROW]
[ROW][C]18[/C][C]7.74702673577128e-05[/C][C]0.000154940534715426[/C][C]0.999922529732642[/C][/ROW]
[ROW][C]19[/C][C]5.11728012352729e-05[/C][C]0.000102345602470546[/C][C]0.999948827198765[/C][/ROW]
[ROW][C]20[/C][C]4.51361900966728e-05[/C][C]9.02723801933455e-05[/C][C]0.999954863809903[/C][/ROW]
[ROW][C]21[/C][C]3.00712011716101e-05[/C][C]6.01424023432203e-05[/C][C]0.999969928798828[/C][/ROW]
[ROW][C]22[/C][C]1.66528708253705e-05[/C][C]3.33057416507410e-05[/C][C]0.999983347129175[/C][/ROW]
[ROW][C]23[/C][C]3.21132341882645e-05[/C][C]6.4226468376529e-05[/C][C]0.999967886765812[/C][/ROW]
[ROW][C]24[/C][C]1.82625626217758e-05[/C][C]3.65251252435515e-05[/C][C]0.999981737437378[/C][/ROW]
[ROW][C]25[/C][C]0.000187318981036709[/C][C]0.000374637962073418[/C][C]0.999812681018963[/C][/ROW]
[ROW][C]26[/C][C]0.00035945771998303[/C][C]0.00071891543996606[/C][C]0.999640542280017[/C][/ROW]
[ROW][C]27[/C][C]0.000636454467153213[/C][C]0.00127290893430643[/C][C]0.999363545532847[/C][/ROW]
[ROW][C]28[/C][C]0.000497056674609449[/C][C]0.000994113349218899[/C][C]0.99950294332539[/C][/ROW]
[ROW][C]29[/C][C]0.0045617138848455[/C][C]0.009123427769691[/C][C]0.995438286115155[/C][/ROW]
[ROW][C]30[/C][C]0.00318290499121981[/C][C]0.00636580998243961[/C][C]0.99681709500878[/C][/ROW]
[ROW][C]31[/C][C]0.00344230147193037[/C][C]0.00688460294386074[/C][C]0.99655769852807[/C][/ROW]
[ROW][C]32[/C][C]0.00189768204465398[/C][C]0.00379536408930795[/C][C]0.998102317955346[/C][/ROW]
[ROW][C]33[/C][C]0.00143832573854777[/C][C]0.00287665147709554[/C][C]0.998561674261452[/C][/ROW]
[ROW][C]34[/C][C]0.000955802459255557[/C][C]0.00191160491851111[/C][C]0.999044197540744[/C][/ROW]
[ROW][C]35[/C][C]0.00375068245974910[/C][C]0.00750136491949819[/C][C]0.99624931754025[/C][/ROW]
[ROW][C]36[/C][C]0.00230857785068164[/C][C]0.00461715570136328[/C][C]0.997691422149318[/C][/ROW]
[ROW][C]37[/C][C]0.00246692038911291[/C][C]0.00493384077822582[/C][C]0.997533079610887[/C][/ROW]
[ROW][C]38[/C][C]0.00187856643636907[/C][C]0.00375713287273813[/C][C]0.99812143356363[/C][/ROW]
[ROW][C]39[/C][C]0.015847894439766[/C][C]0.031695788879532[/C][C]0.984152105560234[/C][/ROW]
[ROW][C]40[/C][C]0.0606930153130872[/C][C]0.121386030626174[/C][C]0.939306984686913[/C][/ROW]
[ROW][C]41[/C][C]0.139360931943786[/C][C]0.278721863887573[/C][C]0.860639068056214[/C][/ROW]
[ROW][C]42[/C][C]0.208534901732556[/C][C]0.417069803465113[/C][C]0.791465098267444[/C][/ROW]
[ROW][C]43[/C][C]0.249632239574987[/C][C]0.499264479149973[/C][C]0.750367760425013[/C][/ROW]
[ROW][C]44[/C][C]0.313068824854176[/C][C]0.626137649708352[/C][C]0.686931175145824[/C][/ROW]
[ROW][C]45[/C][C]0.58144575220595[/C][C]0.8371084955881[/C][C]0.41855424779405[/C][/ROW]
[ROW][C]46[/C][C]0.776941435085546[/C][C]0.446117129828908[/C][C]0.223058564914454[/C][/ROW]
[ROW][C]47[/C][C]0.656628186174287[/C][C]0.686743627651425[/C][C]0.343371813825713[/C][/ROW]
[ROW][C]48[/C][C]0.774157555081334[/C][C]0.451684889837332[/C][C]0.225842444918666[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=20592&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=20592&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
100.06125692336102670.1225138467220530.938743076638973
110.01874784453051540.03749568906103080.981252155469485
120.006766527808942860.01353305561788570.993233472191057
130.003030364059017440.006060728118034880.996969635940983
140.001060273764223320.002120547528446630.998939726235777
150.0004315577324705570.0008631154649411140.99956844226753
160.0002482624175183660.0004965248350367320.999751737582482
170.0001302212309044680.0002604424618089350.999869778769096
187.74702673577128e-050.0001549405347154260.999922529732642
195.11728012352729e-050.0001023456024705460.999948827198765
204.51361900966728e-059.02723801933455e-050.999954863809903
213.00712011716101e-056.01424023432203e-050.999969928798828
221.66528708253705e-053.33057416507410e-050.999983347129175
233.21132341882645e-056.4226468376529e-050.999967886765812
241.82625626217758e-053.65251252435515e-050.999981737437378
250.0001873189810367090.0003746379620734180.999812681018963
260.000359457719983030.000718915439966060.999640542280017
270.0006364544671532130.001272908934306430.999363545532847
280.0004970566746094490.0009941133492188990.99950294332539
290.00456171388484550.0091234277696910.995438286115155
300.003182904991219810.006365809982439610.99681709500878
310.003442301471930370.006884602943860740.99655769852807
320.001897682044653980.003795364089307950.998102317955346
330.001438325738547770.002876651477095540.998561674261452
340.0009558024592555570.001911604918511110.999044197540744
350.003750682459749100.007501364919498190.99624931754025
360.002308577850681640.004617155701363280.997691422149318
370.002466920389112910.004933840778225820.997533079610887
380.001878566436369070.003757132872738130.99812143356363
390.0158478944397660.0316957888795320.984152105560234
400.06069301531308720.1213860306261740.939306984686913
410.1393609319437860.2787218638875730.860639068056214
420.2085349017325560.4170698034651130.791465098267444
430.2496322395749870.4992644791499730.750367760425013
440.3130688248541760.6261376497083520.686931175145824
450.581445752205950.83710849558810.41855424779405
460.7769414350855460.4461171298289080.223058564914454
470.6566281861742870.6867436276514250.343371813825713
480.7741575550813340.4516848898373320.225842444918666







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level260.666666666666667NOK
5% type I error level290.743589743589744NOK
10% type I error level290.743589743589744NOK

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

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



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