Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 24 Dec 2008 07:06: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/Dec/24/t1230127764hzlpw7oqxp30dms.htm/, Retrieved Sun, 19 May 2024 12:19:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=36576, Retrieved Sun, 19 May 2024 12:19:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact210
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Multiple Regressi...] [2008-12-24 14:06:55] [f0e1dc59aca2fa8d78080b39899f316a] [Current]
Feedback Forum

Post a new message
Dataseries X:
54156
53661
52441
50648
48141
46127
45623
56527
60205
61321
58088
54623
53495
51824
50518
49050
47111
45264
44357
54862
57871
59070
56273
52837
51702
49447
48965
46922
46256
45200
44471
53119
55016
56641
51847
47990
45744
46390
44461
41582
40813
38096
35461
44375
46255
45610
43375
40167
40628
40590
39473
36735
36634
32806
32907
41076
42254
43215
41116
40373




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 6 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36576&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]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36576&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36576&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'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
R(1)[t] = + 56288.3446327683 -292.620589052514t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
R(1)[t] =  +  56288.3446327683 -292.620589052514t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36576&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]R(1)[t] =  +  56288.3446327683 -292.620589052514t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36576&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36576&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
R(1)[t] = + 56288.3446327683 -292.620589052514t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)56288.34463276831239.45991145.413600
t-292.62058905251435.338695-8.280500

\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) & 56288.3446327683 & 1239.459911 & 45.4136 & 0 & 0 \tabularnewline
t & -292.620589052514 & 35.338695 & -8.2805 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36576&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]56288.3446327683[/C][C]1239.459911[/C][C]45.4136[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]t[/C][C]-292.620589052514[/C][C]35.338695[/C][C]-8.2805[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36576&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36576&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)56288.34463276831239.45991145.413600
t-292.62058905251435.338695-8.280500







Multiple Linear Regression - Regression Statistics
Multiple R0.736030589681346
R-squared0.54174102894667
Adjusted R-squared0.533840012204372
F-TEST (value)68.5659892411583
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value2.07849293332174e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4740.52490574454
Sum Squared Residuals1303409430.15509

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.736030589681346 \tabularnewline
R-squared & 0.54174102894667 \tabularnewline
Adjusted R-squared & 0.533840012204372 \tabularnewline
F-TEST (value) & 68.5659892411583 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 2.07849293332174e-11 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4740.52490574454 \tabularnewline
Sum Squared Residuals & 1303409430.15509 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36576&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.736030589681346[/C][/ROW]
[ROW][C]R-squared[/C][C]0.54174102894667[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.533840012204372[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]68.5659892411583[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]2.07849293332174e-11[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4740.52490574454[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1303409430.15509[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36576&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36576&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.736030589681346
R-squared0.54174102894667
Adjusted R-squared0.533840012204372
F-TEST (value)68.5659892411583
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value2.07849293332174e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4740.52490574454
Sum Squared Residuals1303409430.15509







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
15415655995.7240437159-1839.72404371591
25366155703.1034546633-2042.10345466332
35244155410.4828656108-2969.48286561081
45064855117.8622765583-4469.8622765583
54814154825.2416875058-6684.24168750578
64612754532.6210984533-8405.62109845327
74562354240.0005094008-8617.00050940076
85652753947.37992034822579.62007965176
96020553654.75933129576550.24066870427
106132153362.13874224327958.86125775679
115808853069.51815319075018.4818468093
125462352776.89756413821846.10243586182
135349552484.27697508571010.72302491433
145182452191.6563860332-367.656386033154
155051851899.0357969806-1381.03579698064
164905051606.4152079281-2556.41520792813
174711151313.7946188756-4202.79461887561
184526451021.1740298231-5757.1740298231
194435750728.5534407706-6371.55344077058
205486250435.93285171814426.06714828193
215787150143.31226266567727.68773733445
225907049850.6916736139219.30832638696
235627349558.07108456056714.92891543948
245283749265.4504955083571.54950449199
255170248972.82990645552729.17009354450
264944748680.209317403766.79068259702
274896548387.5887283505577.411271649534
284692248094.968139298-1172.96813929795
294625647802.3475502454-1546.34755024544
304520047509.7269611929-2309.72696119292
314447147217.1063721404-2746.10637214041
325311946924.48578308796194.51421691211
335501646631.86519403548384.13480596462
345664146339.244604982910301.7553950171
355184746046.62401593035800.37598406965
364799045754.00342687782235.99657312216
374574445461.3828378253282.617162174678
384639045168.76224877281221.23775122719
394446144876.1416597203-415.141659720293
404158244583.5210706678-3001.52107066778
414081344290.9004816153-3477.90048161526
423809643998.2798925628-5902.27989256275
433546143705.6593035102-8244.65930351023
444437543413.0387144577961.96128554228
454625543120.41812540523134.58187459479
464561042827.79753635272782.20246364731
474337542535.1769473002839.823052699823
484016742242.5563582477-2075.55635824766
494062841949.9357691951-1321.93576919515
504059041657.3151801426-1067.31518014263
513947341364.6945910901-1891.69459109012
523673541072.0740020376-4337.07400203761
533663440779.4534129851-4145.45341298509
543280640486.8328239326-7680.83282393258
553290740194.2122348801-7287.21223488006
564107639901.59164582751174.40835417245
574225439608.9710567752645.02894322497
584321539316.35046772253898.64953227748
594111639023.729878672092.27012133000
604037338731.10928961751641.89071038251

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 54156 & 55995.7240437159 & -1839.72404371591 \tabularnewline
2 & 53661 & 55703.1034546633 & -2042.10345466332 \tabularnewline
3 & 52441 & 55410.4828656108 & -2969.48286561081 \tabularnewline
4 & 50648 & 55117.8622765583 & -4469.8622765583 \tabularnewline
5 & 48141 & 54825.2416875058 & -6684.24168750578 \tabularnewline
6 & 46127 & 54532.6210984533 & -8405.62109845327 \tabularnewline
7 & 45623 & 54240.0005094008 & -8617.00050940076 \tabularnewline
8 & 56527 & 53947.3799203482 & 2579.62007965176 \tabularnewline
9 & 60205 & 53654.7593312957 & 6550.24066870427 \tabularnewline
10 & 61321 & 53362.1387422432 & 7958.86125775679 \tabularnewline
11 & 58088 & 53069.5181531907 & 5018.4818468093 \tabularnewline
12 & 54623 & 52776.8975641382 & 1846.10243586182 \tabularnewline
13 & 53495 & 52484.2769750857 & 1010.72302491433 \tabularnewline
14 & 51824 & 52191.6563860332 & -367.656386033154 \tabularnewline
15 & 50518 & 51899.0357969806 & -1381.03579698064 \tabularnewline
16 & 49050 & 51606.4152079281 & -2556.41520792813 \tabularnewline
17 & 47111 & 51313.7946188756 & -4202.79461887561 \tabularnewline
18 & 45264 & 51021.1740298231 & -5757.1740298231 \tabularnewline
19 & 44357 & 50728.5534407706 & -6371.55344077058 \tabularnewline
20 & 54862 & 50435.9328517181 & 4426.06714828193 \tabularnewline
21 & 57871 & 50143.3122626656 & 7727.68773733445 \tabularnewline
22 & 59070 & 49850.691673613 & 9219.30832638696 \tabularnewline
23 & 56273 & 49558.0710845605 & 6714.92891543948 \tabularnewline
24 & 52837 & 49265.450495508 & 3571.54950449199 \tabularnewline
25 & 51702 & 48972.8299064555 & 2729.17009354450 \tabularnewline
26 & 49447 & 48680.209317403 & 766.79068259702 \tabularnewline
27 & 48965 & 48387.5887283505 & 577.411271649534 \tabularnewline
28 & 46922 & 48094.968139298 & -1172.96813929795 \tabularnewline
29 & 46256 & 47802.3475502454 & -1546.34755024544 \tabularnewline
30 & 45200 & 47509.7269611929 & -2309.72696119292 \tabularnewline
31 & 44471 & 47217.1063721404 & -2746.10637214041 \tabularnewline
32 & 53119 & 46924.4857830879 & 6194.51421691211 \tabularnewline
33 & 55016 & 46631.8651940354 & 8384.13480596462 \tabularnewline
34 & 56641 & 46339.2446049829 & 10301.7553950171 \tabularnewline
35 & 51847 & 46046.6240159303 & 5800.37598406965 \tabularnewline
36 & 47990 & 45754.0034268778 & 2235.99657312216 \tabularnewline
37 & 45744 & 45461.3828378253 & 282.617162174678 \tabularnewline
38 & 46390 & 45168.7622487728 & 1221.23775122719 \tabularnewline
39 & 44461 & 44876.1416597203 & -415.141659720293 \tabularnewline
40 & 41582 & 44583.5210706678 & -3001.52107066778 \tabularnewline
41 & 40813 & 44290.9004816153 & -3477.90048161526 \tabularnewline
42 & 38096 & 43998.2798925628 & -5902.27989256275 \tabularnewline
43 & 35461 & 43705.6593035102 & -8244.65930351023 \tabularnewline
44 & 44375 & 43413.0387144577 & 961.96128554228 \tabularnewline
45 & 46255 & 43120.4181254052 & 3134.58187459479 \tabularnewline
46 & 45610 & 42827.7975363527 & 2782.20246364731 \tabularnewline
47 & 43375 & 42535.1769473002 & 839.823052699823 \tabularnewline
48 & 40167 & 42242.5563582477 & -2075.55635824766 \tabularnewline
49 & 40628 & 41949.9357691951 & -1321.93576919515 \tabularnewline
50 & 40590 & 41657.3151801426 & -1067.31518014263 \tabularnewline
51 & 39473 & 41364.6945910901 & -1891.69459109012 \tabularnewline
52 & 36735 & 41072.0740020376 & -4337.07400203761 \tabularnewline
53 & 36634 & 40779.4534129851 & -4145.45341298509 \tabularnewline
54 & 32806 & 40486.8328239326 & -7680.83282393258 \tabularnewline
55 & 32907 & 40194.2122348801 & -7287.21223488006 \tabularnewline
56 & 41076 & 39901.5916458275 & 1174.40835417245 \tabularnewline
57 & 42254 & 39608.971056775 & 2645.02894322497 \tabularnewline
58 & 43215 & 39316.3504677225 & 3898.64953227748 \tabularnewline
59 & 41116 & 39023.72987867 & 2092.27012133000 \tabularnewline
60 & 40373 & 38731.1092896175 & 1641.89071038251 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36576&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]54156[/C][C]55995.7240437159[/C][C]-1839.72404371591[/C][/ROW]
[ROW][C]2[/C][C]53661[/C][C]55703.1034546633[/C][C]-2042.10345466332[/C][/ROW]
[ROW][C]3[/C][C]52441[/C][C]55410.4828656108[/C][C]-2969.48286561081[/C][/ROW]
[ROW][C]4[/C][C]50648[/C][C]55117.8622765583[/C][C]-4469.8622765583[/C][/ROW]
[ROW][C]5[/C][C]48141[/C][C]54825.2416875058[/C][C]-6684.24168750578[/C][/ROW]
[ROW][C]6[/C][C]46127[/C][C]54532.6210984533[/C][C]-8405.62109845327[/C][/ROW]
[ROW][C]7[/C][C]45623[/C][C]54240.0005094008[/C][C]-8617.00050940076[/C][/ROW]
[ROW][C]8[/C][C]56527[/C][C]53947.3799203482[/C][C]2579.62007965176[/C][/ROW]
[ROW][C]9[/C][C]60205[/C][C]53654.7593312957[/C][C]6550.24066870427[/C][/ROW]
[ROW][C]10[/C][C]61321[/C][C]53362.1387422432[/C][C]7958.86125775679[/C][/ROW]
[ROW][C]11[/C][C]58088[/C][C]53069.5181531907[/C][C]5018.4818468093[/C][/ROW]
[ROW][C]12[/C][C]54623[/C][C]52776.8975641382[/C][C]1846.10243586182[/C][/ROW]
[ROW][C]13[/C][C]53495[/C][C]52484.2769750857[/C][C]1010.72302491433[/C][/ROW]
[ROW][C]14[/C][C]51824[/C][C]52191.6563860332[/C][C]-367.656386033154[/C][/ROW]
[ROW][C]15[/C][C]50518[/C][C]51899.0357969806[/C][C]-1381.03579698064[/C][/ROW]
[ROW][C]16[/C][C]49050[/C][C]51606.4152079281[/C][C]-2556.41520792813[/C][/ROW]
[ROW][C]17[/C][C]47111[/C][C]51313.7946188756[/C][C]-4202.79461887561[/C][/ROW]
[ROW][C]18[/C][C]45264[/C][C]51021.1740298231[/C][C]-5757.1740298231[/C][/ROW]
[ROW][C]19[/C][C]44357[/C][C]50728.5534407706[/C][C]-6371.55344077058[/C][/ROW]
[ROW][C]20[/C][C]54862[/C][C]50435.9328517181[/C][C]4426.06714828193[/C][/ROW]
[ROW][C]21[/C][C]57871[/C][C]50143.3122626656[/C][C]7727.68773733445[/C][/ROW]
[ROW][C]22[/C][C]59070[/C][C]49850.691673613[/C][C]9219.30832638696[/C][/ROW]
[ROW][C]23[/C][C]56273[/C][C]49558.0710845605[/C][C]6714.92891543948[/C][/ROW]
[ROW][C]24[/C][C]52837[/C][C]49265.450495508[/C][C]3571.54950449199[/C][/ROW]
[ROW][C]25[/C][C]51702[/C][C]48972.8299064555[/C][C]2729.17009354450[/C][/ROW]
[ROW][C]26[/C][C]49447[/C][C]48680.209317403[/C][C]766.79068259702[/C][/ROW]
[ROW][C]27[/C][C]48965[/C][C]48387.5887283505[/C][C]577.411271649534[/C][/ROW]
[ROW][C]28[/C][C]46922[/C][C]48094.968139298[/C][C]-1172.96813929795[/C][/ROW]
[ROW][C]29[/C][C]46256[/C][C]47802.3475502454[/C][C]-1546.34755024544[/C][/ROW]
[ROW][C]30[/C][C]45200[/C][C]47509.7269611929[/C][C]-2309.72696119292[/C][/ROW]
[ROW][C]31[/C][C]44471[/C][C]47217.1063721404[/C][C]-2746.10637214041[/C][/ROW]
[ROW][C]32[/C][C]53119[/C][C]46924.4857830879[/C][C]6194.51421691211[/C][/ROW]
[ROW][C]33[/C][C]55016[/C][C]46631.8651940354[/C][C]8384.13480596462[/C][/ROW]
[ROW][C]34[/C][C]56641[/C][C]46339.2446049829[/C][C]10301.7553950171[/C][/ROW]
[ROW][C]35[/C][C]51847[/C][C]46046.6240159303[/C][C]5800.37598406965[/C][/ROW]
[ROW][C]36[/C][C]47990[/C][C]45754.0034268778[/C][C]2235.99657312216[/C][/ROW]
[ROW][C]37[/C][C]45744[/C][C]45461.3828378253[/C][C]282.617162174678[/C][/ROW]
[ROW][C]38[/C][C]46390[/C][C]45168.7622487728[/C][C]1221.23775122719[/C][/ROW]
[ROW][C]39[/C][C]44461[/C][C]44876.1416597203[/C][C]-415.141659720293[/C][/ROW]
[ROW][C]40[/C][C]41582[/C][C]44583.5210706678[/C][C]-3001.52107066778[/C][/ROW]
[ROW][C]41[/C][C]40813[/C][C]44290.9004816153[/C][C]-3477.90048161526[/C][/ROW]
[ROW][C]42[/C][C]38096[/C][C]43998.2798925628[/C][C]-5902.27989256275[/C][/ROW]
[ROW][C]43[/C][C]35461[/C][C]43705.6593035102[/C][C]-8244.65930351023[/C][/ROW]
[ROW][C]44[/C][C]44375[/C][C]43413.0387144577[/C][C]961.96128554228[/C][/ROW]
[ROW][C]45[/C][C]46255[/C][C]43120.4181254052[/C][C]3134.58187459479[/C][/ROW]
[ROW][C]46[/C][C]45610[/C][C]42827.7975363527[/C][C]2782.20246364731[/C][/ROW]
[ROW][C]47[/C][C]43375[/C][C]42535.1769473002[/C][C]839.823052699823[/C][/ROW]
[ROW][C]48[/C][C]40167[/C][C]42242.5563582477[/C][C]-2075.55635824766[/C][/ROW]
[ROW][C]49[/C][C]40628[/C][C]41949.9357691951[/C][C]-1321.93576919515[/C][/ROW]
[ROW][C]50[/C][C]40590[/C][C]41657.3151801426[/C][C]-1067.31518014263[/C][/ROW]
[ROW][C]51[/C][C]39473[/C][C]41364.6945910901[/C][C]-1891.69459109012[/C][/ROW]
[ROW][C]52[/C][C]36735[/C][C]41072.0740020376[/C][C]-4337.07400203761[/C][/ROW]
[ROW][C]53[/C][C]36634[/C][C]40779.4534129851[/C][C]-4145.45341298509[/C][/ROW]
[ROW][C]54[/C][C]32806[/C][C]40486.8328239326[/C][C]-7680.83282393258[/C][/ROW]
[ROW][C]55[/C][C]32907[/C][C]40194.2122348801[/C][C]-7287.21223488006[/C][/ROW]
[ROW][C]56[/C][C]41076[/C][C]39901.5916458275[/C][C]1174.40835417245[/C][/ROW]
[ROW][C]57[/C][C]42254[/C][C]39608.971056775[/C][C]2645.02894322497[/C][/ROW]
[ROW][C]58[/C][C]43215[/C][C]39316.3504677225[/C][C]3898.64953227748[/C][/ROW]
[ROW][C]59[/C][C]41116[/C][C]39023.72987867[/C][C]2092.27012133000[/C][/ROW]
[ROW][C]60[/C][C]40373[/C][C]38731.1092896175[/C][C]1641.89071038251[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36576&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36576&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
15415655995.7240437159-1839.72404371591
25366155703.1034546633-2042.10345466332
35244155410.4828656108-2969.48286561081
45064855117.8622765583-4469.8622765583
54814154825.2416875058-6684.24168750578
64612754532.6210984533-8405.62109845327
74562354240.0005094008-8617.00050940076
85652753947.37992034822579.62007965176
96020553654.75933129576550.24066870427
106132153362.13874224327958.86125775679
115808853069.51815319075018.4818468093
125462352776.89756413821846.10243586182
135349552484.27697508571010.72302491433
145182452191.6563860332-367.656386033154
155051851899.0357969806-1381.03579698064
164905051606.4152079281-2556.41520792813
174711151313.7946188756-4202.79461887561
184526451021.1740298231-5757.1740298231
194435750728.5534407706-6371.55344077058
205486250435.93285171814426.06714828193
215787150143.31226266567727.68773733445
225907049850.6916736139219.30832638696
235627349558.07108456056714.92891543948
245283749265.4504955083571.54950449199
255170248972.82990645552729.17009354450
264944748680.209317403766.79068259702
274896548387.5887283505577.411271649534
284692248094.968139298-1172.96813929795
294625647802.3475502454-1546.34755024544
304520047509.7269611929-2309.72696119292
314447147217.1063721404-2746.10637214041
325311946924.48578308796194.51421691211
335501646631.86519403548384.13480596462
345664146339.244604982910301.7553950171
355184746046.62401593035800.37598406965
364799045754.00342687782235.99657312216
374574445461.3828378253282.617162174678
384639045168.76224877281221.23775122719
394446144876.1416597203-415.141659720293
404158244583.5210706678-3001.52107066778
414081344290.9004816153-3477.90048161526
423809643998.2798925628-5902.27989256275
433546143705.6593035102-8244.65930351023
444437543413.0387144577961.96128554228
454625543120.41812540523134.58187459479
464561042827.79753635272782.20246364731
474337542535.1769473002839.823052699823
484016742242.5563582477-2075.55635824766
494062841949.9357691951-1321.93576919515
504059041657.3151801426-1067.31518014263
513947341364.6945910901-1891.69459109012
523673541072.0740020376-4337.07400203761
533663440779.4534129851-4145.45341298509
543280640486.8328239326-7680.83282393258
553290740194.2122348801-7287.21223488006
564107639901.59164582751174.40835417245
574225439608.9710567752645.02894322497
584321539316.35046772253898.64953227748
594111639023.729878672092.27012133000
604037338731.10928961751641.89071038251







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.004571739069468540.009143478138937070.995428260930531
60.001321759158624710.002643518317249420.998678240841375
70.0002947039476424870.0005894078952849730.999705296052357
80.4584780625854860.9169561251709720.541521937414514
90.750429586560260.4991408268794810.249570413439740
100.8104181240828730.3791637518342530.189581875917127
110.743363687803590.5132726243928210.256636312196411
120.6796823720728350.640635255854330.320317627927165
130.6274900809120170.7450198381759650.372509919087983
140.6014381674089510.7971236651820980.398561832591049
150.5896796175732950.820640764853410.410320382426705
160.597930396627670.804139206744660.40206960337233
170.6474451777527390.7051096444945220.352554822247261
180.7394021685182010.5211956629635980.260597831481799
190.8367799052235140.3264401895529720.163220094776486
200.825333771557660.3493324568846790.174666228442339
210.859575153013410.2808496939731810.140424846986590
220.9018389575824940.1963220848350120.0981610424175062
230.8917190034653220.2165619930693570.108280996534678
240.8544618179252560.2910763641494880.145538182074744
250.8100039197410570.3799921605178860.189996080258943
260.7698948389174430.4602103221651130.230105161082557
270.725465638196570.549068723606860.27453436180343
280.7053454831077420.5893090337845160.294654516892258
290.6890265164189040.6219469671621930.310973483581096
300.6909771159163690.6180457681672620.309022884083631
310.708258587314720.5834828253705590.291741412685279
320.6850489749992590.6299020500014820.314951025000741
330.7385141206777550.522971758644490.261485879322245
340.8870746244405710.2258507511188580.112925375559429
350.9131737095424210.1736525809151580.0868262904575789
360.905089963165130.1898200736697420.0949100368348708
370.8885731347116090.2228537305767820.111426865288391
380.8804902385095870.2390195229808260.119509761490413
390.8639031153951190.2721937692097620.136096884604881
400.8442610849493290.3114778301013420.155738915050671
410.8194472589636930.3611054820726140.180552741036307
420.8318231397874210.3363537204251580.168176860212579
430.9188606020734160.1622787958531680.081139397926584
440.883508795553720.2329824088925610.116491204446281
450.8811363959761930.2377272080476140.118863604023807
460.8995533231176460.2008933537647090.100446676882354
470.9037401802286420.1925196395427170.0962598197713583
480.8713699050471840.2572601899056310.128630094952816
490.852333190885470.295333618229060.14766680911453
500.8630036303388010.2739927393223980.136996369661199
510.8839142619211660.2321714761576680.116085738078834
520.8470926628798120.3058146742403770.152907337120188
530.7956323654715290.4087352690569420.204367634528471
540.7341629902052530.5316740195894930.265837009794747
550.9797644269802490.04047114603950240.0202355730197512

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.00457173906946854 & 0.00914347813893707 & 0.995428260930531 \tabularnewline
6 & 0.00132175915862471 & 0.00264351831724942 & 0.998678240841375 \tabularnewline
7 & 0.000294703947642487 & 0.000589407895284973 & 0.999705296052357 \tabularnewline
8 & 0.458478062585486 & 0.916956125170972 & 0.541521937414514 \tabularnewline
9 & 0.75042958656026 & 0.499140826879481 & 0.249570413439740 \tabularnewline
10 & 0.810418124082873 & 0.379163751834253 & 0.189581875917127 \tabularnewline
11 & 0.74336368780359 & 0.513272624392821 & 0.256636312196411 \tabularnewline
12 & 0.679682372072835 & 0.64063525585433 & 0.320317627927165 \tabularnewline
13 & 0.627490080912017 & 0.745019838175965 & 0.372509919087983 \tabularnewline
14 & 0.601438167408951 & 0.797123665182098 & 0.398561832591049 \tabularnewline
15 & 0.589679617573295 & 0.82064076485341 & 0.410320382426705 \tabularnewline
16 & 0.59793039662767 & 0.80413920674466 & 0.40206960337233 \tabularnewline
17 & 0.647445177752739 & 0.705109644494522 & 0.352554822247261 \tabularnewline
18 & 0.739402168518201 & 0.521195662963598 & 0.260597831481799 \tabularnewline
19 & 0.836779905223514 & 0.326440189552972 & 0.163220094776486 \tabularnewline
20 & 0.82533377155766 & 0.349332456884679 & 0.174666228442339 \tabularnewline
21 & 0.85957515301341 & 0.280849693973181 & 0.140424846986590 \tabularnewline
22 & 0.901838957582494 & 0.196322084835012 & 0.0981610424175062 \tabularnewline
23 & 0.891719003465322 & 0.216561993069357 & 0.108280996534678 \tabularnewline
24 & 0.854461817925256 & 0.291076364149488 & 0.145538182074744 \tabularnewline
25 & 0.810003919741057 & 0.379992160517886 & 0.189996080258943 \tabularnewline
26 & 0.769894838917443 & 0.460210322165113 & 0.230105161082557 \tabularnewline
27 & 0.72546563819657 & 0.54906872360686 & 0.27453436180343 \tabularnewline
28 & 0.705345483107742 & 0.589309033784516 & 0.294654516892258 \tabularnewline
29 & 0.689026516418904 & 0.621946967162193 & 0.310973483581096 \tabularnewline
30 & 0.690977115916369 & 0.618045768167262 & 0.309022884083631 \tabularnewline
31 & 0.70825858731472 & 0.583482825370559 & 0.291741412685279 \tabularnewline
32 & 0.685048974999259 & 0.629902050001482 & 0.314951025000741 \tabularnewline
33 & 0.738514120677755 & 0.52297175864449 & 0.261485879322245 \tabularnewline
34 & 0.887074624440571 & 0.225850751118858 & 0.112925375559429 \tabularnewline
35 & 0.913173709542421 & 0.173652580915158 & 0.0868262904575789 \tabularnewline
36 & 0.90508996316513 & 0.189820073669742 & 0.0949100368348708 \tabularnewline
37 & 0.888573134711609 & 0.222853730576782 & 0.111426865288391 \tabularnewline
38 & 0.880490238509587 & 0.239019522980826 & 0.119509761490413 \tabularnewline
39 & 0.863903115395119 & 0.272193769209762 & 0.136096884604881 \tabularnewline
40 & 0.844261084949329 & 0.311477830101342 & 0.155738915050671 \tabularnewline
41 & 0.819447258963693 & 0.361105482072614 & 0.180552741036307 \tabularnewline
42 & 0.831823139787421 & 0.336353720425158 & 0.168176860212579 \tabularnewline
43 & 0.918860602073416 & 0.162278795853168 & 0.081139397926584 \tabularnewline
44 & 0.88350879555372 & 0.232982408892561 & 0.116491204446281 \tabularnewline
45 & 0.881136395976193 & 0.237727208047614 & 0.118863604023807 \tabularnewline
46 & 0.899553323117646 & 0.200893353764709 & 0.100446676882354 \tabularnewline
47 & 0.903740180228642 & 0.192519639542717 & 0.0962598197713583 \tabularnewline
48 & 0.871369905047184 & 0.257260189905631 & 0.128630094952816 \tabularnewline
49 & 0.85233319088547 & 0.29533361822906 & 0.14766680911453 \tabularnewline
50 & 0.863003630338801 & 0.273992739322398 & 0.136996369661199 \tabularnewline
51 & 0.883914261921166 & 0.232171476157668 & 0.116085738078834 \tabularnewline
52 & 0.847092662879812 & 0.305814674240377 & 0.152907337120188 \tabularnewline
53 & 0.795632365471529 & 0.408735269056942 & 0.204367634528471 \tabularnewline
54 & 0.734162990205253 & 0.531674019589493 & 0.265837009794747 \tabularnewline
55 & 0.979764426980249 & 0.0404711460395024 & 0.0202355730197512 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36576&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]5[/C][C]0.00457173906946854[/C][C]0.00914347813893707[/C][C]0.995428260930531[/C][/ROW]
[ROW][C]6[/C][C]0.00132175915862471[/C][C]0.00264351831724942[/C][C]0.998678240841375[/C][/ROW]
[ROW][C]7[/C][C]0.000294703947642487[/C][C]0.000589407895284973[/C][C]0.999705296052357[/C][/ROW]
[ROW][C]8[/C][C]0.458478062585486[/C][C]0.916956125170972[/C][C]0.541521937414514[/C][/ROW]
[ROW][C]9[/C][C]0.75042958656026[/C][C]0.499140826879481[/C][C]0.249570413439740[/C][/ROW]
[ROW][C]10[/C][C]0.810418124082873[/C][C]0.379163751834253[/C][C]0.189581875917127[/C][/ROW]
[ROW][C]11[/C][C]0.74336368780359[/C][C]0.513272624392821[/C][C]0.256636312196411[/C][/ROW]
[ROW][C]12[/C][C]0.679682372072835[/C][C]0.64063525585433[/C][C]0.320317627927165[/C][/ROW]
[ROW][C]13[/C][C]0.627490080912017[/C][C]0.745019838175965[/C][C]0.372509919087983[/C][/ROW]
[ROW][C]14[/C][C]0.601438167408951[/C][C]0.797123665182098[/C][C]0.398561832591049[/C][/ROW]
[ROW][C]15[/C][C]0.589679617573295[/C][C]0.82064076485341[/C][C]0.410320382426705[/C][/ROW]
[ROW][C]16[/C][C]0.59793039662767[/C][C]0.80413920674466[/C][C]0.40206960337233[/C][/ROW]
[ROW][C]17[/C][C]0.647445177752739[/C][C]0.705109644494522[/C][C]0.352554822247261[/C][/ROW]
[ROW][C]18[/C][C]0.739402168518201[/C][C]0.521195662963598[/C][C]0.260597831481799[/C][/ROW]
[ROW][C]19[/C][C]0.836779905223514[/C][C]0.326440189552972[/C][C]0.163220094776486[/C][/ROW]
[ROW][C]20[/C][C]0.82533377155766[/C][C]0.349332456884679[/C][C]0.174666228442339[/C][/ROW]
[ROW][C]21[/C][C]0.85957515301341[/C][C]0.280849693973181[/C][C]0.140424846986590[/C][/ROW]
[ROW][C]22[/C][C]0.901838957582494[/C][C]0.196322084835012[/C][C]0.0981610424175062[/C][/ROW]
[ROW][C]23[/C][C]0.891719003465322[/C][C]0.216561993069357[/C][C]0.108280996534678[/C][/ROW]
[ROW][C]24[/C][C]0.854461817925256[/C][C]0.291076364149488[/C][C]0.145538182074744[/C][/ROW]
[ROW][C]25[/C][C]0.810003919741057[/C][C]0.379992160517886[/C][C]0.189996080258943[/C][/ROW]
[ROW][C]26[/C][C]0.769894838917443[/C][C]0.460210322165113[/C][C]0.230105161082557[/C][/ROW]
[ROW][C]27[/C][C]0.72546563819657[/C][C]0.54906872360686[/C][C]0.27453436180343[/C][/ROW]
[ROW][C]28[/C][C]0.705345483107742[/C][C]0.589309033784516[/C][C]0.294654516892258[/C][/ROW]
[ROW][C]29[/C][C]0.689026516418904[/C][C]0.621946967162193[/C][C]0.310973483581096[/C][/ROW]
[ROW][C]30[/C][C]0.690977115916369[/C][C]0.618045768167262[/C][C]0.309022884083631[/C][/ROW]
[ROW][C]31[/C][C]0.70825858731472[/C][C]0.583482825370559[/C][C]0.291741412685279[/C][/ROW]
[ROW][C]32[/C][C]0.685048974999259[/C][C]0.629902050001482[/C][C]0.314951025000741[/C][/ROW]
[ROW][C]33[/C][C]0.738514120677755[/C][C]0.52297175864449[/C][C]0.261485879322245[/C][/ROW]
[ROW][C]34[/C][C]0.887074624440571[/C][C]0.225850751118858[/C][C]0.112925375559429[/C][/ROW]
[ROW][C]35[/C][C]0.913173709542421[/C][C]0.173652580915158[/C][C]0.0868262904575789[/C][/ROW]
[ROW][C]36[/C][C]0.90508996316513[/C][C]0.189820073669742[/C][C]0.0949100368348708[/C][/ROW]
[ROW][C]37[/C][C]0.888573134711609[/C][C]0.222853730576782[/C][C]0.111426865288391[/C][/ROW]
[ROW][C]38[/C][C]0.880490238509587[/C][C]0.239019522980826[/C][C]0.119509761490413[/C][/ROW]
[ROW][C]39[/C][C]0.863903115395119[/C][C]0.272193769209762[/C][C]0.136096884604881[/C][/ROW]
[ROW][C]40[/C][C]0.844261084949329[/C][C]0.311477830101342[/C][C]0.155738915050671[/C][/ROW]
[ROW][C]41[/C][C]0.819447258963693[/C][C]0.361105482072614[/C][C]0.180552741036307[/C][/ROW]
[ROW][C]42[/C][C]0.831823139787421[/C][C]0.336353720425158[/C][C]0.168176860212579[/C][/ROW]
[ROW][C]43[/C][C]0.918860602073416[/C][C]0.162278795853168[/C][C]0.081139397926584[/C][/ROW]
[ROW][C]44[/C][C]0.88350879555372[/C][C]0.232982408892561[/C][C]0.116491204446281[/C][/ROW]
[ROW][C]45[/C][C]0.881136395976193[/C][C]0.237727208047614[/C][C]0.118863604023807[/C][/ROW]
[ROW][C]46[/C][C]0.899553323117646[/C][C]0.200893353764709[/C][C]0.100446676882354[/C][/ROW]
[ROW][C]47[/C][C]0.903740180228642[/C][C]0.192519639542717[/C][C]0.0962598197713583[/C][/ROW]
[ROW][C]48[/C][C]0.871369905047184[/C][C]0.257260189905631[/C][C]0.128630094952816[/C][/ROW]
[ROW][C]49[/C][C]0.85233319088547[/C][C]0.29533361822906[/C][C]0.14766680911453[/C][/ROW]
[ROW][C]50[/C][C]0.863003630338801[/C][C]0.273992739322398[/C][C]0.136996369661199[/C][/ROW]
[ROW][C]51[/C][C]0.883914261921166[/C][C]0.232171476157668[/C][C]0.116085738078834[/C][/ROW]
[ROW][C]52[/C][C]0.847092662879812[/C][C]0.305814674240377[/C][C]0.152907337120188[/C][/ROW]
[ROW][C]53[/C][C]0.795632365471529[/C][C]0.408735269056942[/C][C]0.204367634528471[/C][/ROW]
[ROW][C]54[/C][C]0.734162990205253[/C][C]0.531674019589493[/C][C]0.265837009794747[/C][/ROW]
[ROW][C]55[/C][C]0.979764426980249[/C][C]0.0404711460395024[/C][C]0.0202355730197512[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36576&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36576&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
50.004571739069468540.009143478138937070.995428260930531
60.001321759158624710.002643518317249420.998678240841375
70.0002947039476424870.0005894078952849730.999705296052357
80.4584780625854860.9169561251709720.541521937414514
90.750429586560260.4991408268794810.249570413439740
100.8104181240828730.3791637518342530.189581875917127
110.743363687803590.5132726243928210.256636312196411
120.6796823720728350.640635255854330.320317627927165
130.6274900809120170.7450198381759650.372509919087983
140.6014381674089510.7971236651820980.398561832591049
150.5896796175732950.820640764853410.410320382426705
160.597930396627670.804139206744660.40206960337233
170.6474451777527390.7051096444945220.352554822247261
180.7394021685182010.5211956629635980.260597831481799
190.8367799052235140.3264401895529720.163220094776486
200.825333771557660.3493324568846790.174666228442339
210.859575153013410.2808496939731810.140424846986590
220.9018389575824940.1963220848350120.0981610424175062
230.8917190034653220.2165619930693570.108280996534678
240.8544618179252560.2910763641494880.145538182074744
250.8100039197410570.3799921605178860.189996080258943
260.7698948389174430.4602103221651130.230105161082557
270.725465638196570.549068723606860.27453436180343
280.7053454831077420.5893090337845160.294654516892258
290.6890265164189040.6219469671621930.310973483581096
300.6909771159163690.6180457681672620.309022884083631
310.708258587314720.5834828253705590.291741412685279
320.6850489749992590.6299020500014820.314951025000741
330.7385141206777550.522971758644490.261485879322245
340.8870746244405710.2258507511188580.112925375559429
350.9131737095424210.1736525809151580.0868262904575789
360.905089963165130.1898200736697420.0949100368348708
370.8885731347116090.2228537305767820.111426865288391
380.8804902385095870.2390195229808260.119509761490413
390.8639031153951190.2721937692097620.136096884604881
400.8442610849493290.3114778301013420.155738915050671
410.8194472589636930.3611054820726140.180552741036307
420.8318231397874210.3363537204251580.168176860212579
430.9188606020734160.1622787958531680.081139397926584
440.883508795553720.2329824088925610.116491204446281
450.8811363959761930.2377272080476140.118863604023807
460.8995533231176460.2008933537647090.100446676882354
470.9037401802286420.1925196395427170.0962598197713583
480.8713699050471840.2572601899056310.128630094952816
490.852333190885470.295333618229060.14766680911453
500.8630036303388010.2739927393223980.136996369661199
510.8839142619211660.2321714761576680.116085738078834
520.8470926628798120.3058146742403770.152907337120188
530.7956323654715290.4087352690569420.204367634528471
540.7341629902052530.5316740195894930.265837009794747
550.9797644269802490.04047114603950240.0202355730197512







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.0588235294117647NOK
5% type I error level40.0784313725490196NOK
10% type I error level40.0784313725490196OK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36576&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 level30.0588235294117647NOK
5% type I error level40.0784313725490196NOK
10% type I error level40.0784313725490196OK



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