Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 19 Nov 2009 11:17:28 -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/2009/Nov/19/t1258654743pgj9wiv51i4jd82.htm/, Retrieved Sat, 20 Apr 2024 11:17:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57870, Retrieved Sat, 20 Apr 2024 11:17:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsy = aantal bouwvergunningen x= rente
Estimated Impact151
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
- R  D      [Multiple Regression] [multiple regressi...] [2009-11-19 18:17:28] [03368d751914a6c247d86aff8eac7cbf] [Current]
Feedback Forum

Post a new message
Dataseries X:
2360	2
2214	2
2825	2
2355	2
2333	2
3016	2
2155	2
2172	2
2150	2
2533	2
2058	2
2160	2
2260	2
2498	2
2695	2
2799	2
2947	2
2930	2
2318	2
2540	2
2570	2
2669	2
2450	2
2842	2
3440	2
2678	2
2981	2
2260	2,21
2844	2,25
2546	2,25
2456	2,45
2295	2,5
2379	2,5
2479	2,64
2057	2,75
2280	2,93
2351	3
2276	3,17
2548	3,25
2311	3,39
2201	3,5
2725	3,5
2408	3,65
2139	3,75
1898	3,75
2537	3,9
2069	4
2063	4
2524	4
2437	4
2189	4
2793	4
2074	4
2622	4
2278	4
2144	4
2427	4
2139	4
1828	4,18
2072	4,25
1800	4,25




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57870&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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57870&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57870&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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 2996.21858257135 -397.434462871071X[t] + 177.028669075707M1[t] + 114.595914455059M2[t] + 334.238409008073M3[t] + 204.342364556124M4[t] + 178.748941589334M5[t] + 453.032484736411M6[t] + 22.3364402844630M7[t] -44.4569826823279M8[t] -31.3734395352507M9[t] + 164.561302458348M10[t] -197.155266290631M11[t] + 13.7164568529229t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  2996.21858257135 -397.434462871071X[t] +  177.028669075707M1[t] +  114.595914455059M2[t] +  334.238409008073M3[t] +  204.342364556124M4[t] +  178.748941589334M5[t] +  453.032484736411M6[t] +  22.3364402844630M7[t] -44.4569826823279M8[t] -31.3734395352507M9[t] +  164.561302458348M10[t] -197.155266290631M11[t] +  13.7164568529229t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57870&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  2996.21858257135 -397.434462871071X[t] +  177.028669075707M1[t] +  114.595914455059M2[t] +  334.238409008073M3[t] +  204.342364556124M4[t] +  178.748941589334M5[t] +  453.032484736411M6[t] +  22.3364402844630M7[t] -44.4569826823279M8[t] -31.3734395352507M9[t] +  164.561302458348M10[t] -197.155266290631M11[t] +  13.7164568529229t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57870&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57870&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
Y[t] = + 2996.21858257135 -397.434462871071X[t] + 177.028669075707M1[t] + 114.595914455059M2[t] + 334.238409008073M3[t] + 204.342364556124M4[t] + 178.748941589334M5[t] + 453.032484736411M6[t] + 22.3364402844630M7[t] -44.4569826823279M8[t] -31.3734395352507M9[t] + 164.561302458348M10[t] -197.155266290631M11[t] + 13.7164568529229t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2996.21858257135185.86885216.120100
X-397.434462871071100.09187-3.97070.0002440.000122
M1177.028669075707149.5764821.18350.242550.121275
M2114.595914455059156.9506540.73010.4689290.234464
M3334.238409008073156.6474872.13370.0381160.019058
M4204.342364556124156.5391621.30540.1981190.09906
M5178.748941589334156.3252181.14340.2586460.129323
M6453.032484736411156.1299052.90160.0056330.002817
M722.3364402844630156.0242560.14320.8867760.443388
M8-44.4569826823279155.91773-0.28510.7767960.388398
M9-31.3734395352507155.908904-0.20120.8413880.420694
M10164.561302458348155.8278151.0560.2963460.148173
M11-197.155266290631155.758956-1.26580.2118330.105917
t13.71645685292295.0392112.72190.0090750.004537

\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) & 2996.21858257135 & 185.868852 & 16.1201 & 0 & 0 \tabularnewline
X & -397.434462871071 & 100.09187 & -3.9707 & 0.000244 & 0.000122 \tabularnewline
M1 & 177.028669075707 & 149.576482 & 1.1835 & 0.24255 & 0.121275 \tabularnewline
M2 & 114.595914455059 & 156.950654 & 0.7301 & 0.468929 & 0.234464 \tabularnewline
M3 & 334.238409008073 & 156.647487 & 2.1337 & 0.038116 & 0.019058 \tabularnewline
M4 & 204.342364556124 & 156.539162 & 1.3054 & 0.198119 & 0.09906 \tabularnewline
M5 & 178.748941589334 & 156.325218 & 1.1434 & 0.258646 & 0.129323 \tabularnewline
M6 & 453.032484736411 & 156.129905 & 2.9016 & 0.005633 & 0.002817 \tabularnewline
M7 & 22.3364402844630 & 156.024256 & 0.1432 & 0.886776 & 0.443388 \tabularnewline
M8 & -44.4569826823279 & 155.91773 & -0.2851 & 0.776796 & 0.388398 \tabularnewline
M9 & -31.3734395352507 & 155.908904 & -0.2012 & 0.841388 & 0.420694 \tabularnewline
M10 & 164.561302458348 & 155.827815 & 1.056 & 0.296346 & 0.148173 \tabularnewline
M11 & -197.155266290631 & 155.758956 & -1.2658 & 0.211833 & 0.105917 \tabularnewline
t & 13.7164568529229 & 5.039211 & 2.7219 & 0.009075 & 0.004537 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57870&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]2996.21858257135[/C][C]185.868852[/C][C]16.1201[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-397.434462871071[/C][C]100.09187[/C][C]-3.9707[/C][C]0.000244[/C][C]0.000122[/C][/ROW]
[ROW][C]M1[/C][C]177.028669075707[/C][C]149.576482[/C][C]1.1835[/C][C]0.24255[/C][C]0.121275[/C][/ROW]
[ROW][C]M2[/C][C]114.595914455059[/C][C]156.950654[/C][C]0.7301[/C][C]0.468929[/C][C]0.234464[/C][/ROW]
[ROW][C]M3[/C][C]334.238409008073[/C][C]156.647487[/C][C]2.1337[/C][C]0.038116[/C][C]0.019058[/C][/ROW]
[ROW][C]M4[/C][C]204.342364556124[/C][C]156.539162[/C][C]1.3054[/C][C]0.198119[/C][C]0.09906[/C][/ROW]
[ROW][C]M5[/C][C]178.748941589334[/C][C]156.325218[/C][C]1.1434[/C][C]0.258646[/C][C]0.129323[/C][/ROW]
[ROW][C]M6[/C][C]453.032484736411[/C][C]156.129905[/C][C]2.9016[/C][C]0.005633[/C][C]0.002817[/C][/ROW]
[ROW][C]M7[/C][C]22.3364402844630[/C][C]156.024256[/C][C]0.1432[/C][C]0.886776[/C][C]0.443388[/C][/ROW]
[ROW][C]M8[/C][C]-44.4569826823279[/C][C]155.91773[/C][C]-0.2851[/C][C]0.776796[/C][C]0.388398[/C][/ROW]
[ROW][C]M9[/C][C]-31.3734395352507[/C][C]155.908904[/C][C]-0.2012[/C][C]0.841388[/C][C]0.420694[/C][/ROW]
[ROW][C]M10[/C][C]164.561302458348[/C][C]155.827815[/C][C]1.056[/C][C]0.296346[/C][C]0.148173[/C][/ROW]
[ROW][C]M11[/C][C]-197.155266290631[/C][C]155.758956[/C][C]-1.2658[/C][C]0.211833[/C][C]0.105917[/C][/ROW]
[ROW][C]t[/C][C]13.7164568529229[/C][C]5.039211[/C][C]2.7219[/C][C]0.009075[/C][C]0.004537[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57870&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57870&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)2996.21858257135185.86885216.120100
X-397.434462871071100.09187-3.97070.0002440.000122
M1177.028669075707149.5764821.18350.242550.121275
M2114.595914455059156.9506540.73010.4689290.234464
M3334.238409008073156.6474872.13370.0381160.019058
M4204.342364556124156.5391621.30540.1981190.09906
M5178.748941589334156.3252181.14340.2586460.129323
M6453.032484736411156.1299052.90160.0056330.002817
M722.3364402844630156.0242560.14320.8867760.443388
M8-44.4569826823279155.91773-0.28510.7767960.388398
M9-31.3734395352507155.908904-0.20120.8413880.420694
M10164.561302458348155.8278151.0560.2963460.148173
M11-197.155266290631155.758956-1.26580.2118330.105917
t13.71645685292295.0392112.72190.0090750.004537







Multiple Linear Regression - Regression Statistics
Multiple R0.729466690504987
R-squared0.532121652556298
Adjusted R-squared0.402708492625061
F-TEST (value)4.11180480284261
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.000165474103349661
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation246.259297428538
Sum Squared Residuals2850251.15378987

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.729466690504987 \tabularnewline
R-squared & 0.532121652556298 \tabularnewline
Adjusted R-squared & 0.402708492625061 \tabularnewline
F-TEST (value) & 4.11180480284261 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.000165474103349661 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 246.259297428538 \tabularnewline
Sum Squared Residuals & 2850251.15378987 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57870&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.729466690504987[/C][/ROW]
[ROW][C]R-squared[/C][C]0.532121652556298[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.402708492625061[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.11180480284261[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.000165474103349661[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]246.259297428538[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2850251.15378987[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57870&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57870&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.729466690504987
R-squared0.532121652556298
Adjusted R-squared0.402708492625061
F-TEST (value)4.11180480284261
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.000165474103349661
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation246.259297428538
Sum Squared Residuals2850251.15378987







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
123602392.09478275783-32.0947827578258
222142343.37848499011-129.378484990108
328252576.73743639605248.262563603954
423552460.55784879702-105.557848797021
523332448.68088268315-115.680882683153
630162736.68088268315279.319117316848
721552319.70129508413-164.701295084128
821722266.62432897026-94.62432897026
921502293.42432897026-143.42432897026
1025332503.0755278167829.9244721832179
1120582155.07541592073-97.0754159207257
1221602365.94713906428-205.947139064279
1322602556.69226499291-296.692264992910
1424982507.97596722518-9.97596722518373
1526952741.33491863112-46.334918631121
1627992625.15533103210173.844668967904
1729472613.27836491823333.721635081772
1829302901.2783649182328.7216350817717
1923182484.29877731920-166.298777319203
2025402431.22181120534108.778188794665
2125702458.02181120534111.978188794665
2226692667.673010051861.32698994814249
2324502319.6728981558130.327101844199
2428422530.54462129935311.455378700645
2534402721.28974722798718.710252772015
2626782672.573449460265.42655053974068
2729812905.932400866275.0675991338036
2822602706.29157606425-446.291576064246
2928442678.51723143554165.482768564464
3025462966.51723143554-420.517231435536
3124562470.05075126230-14.0507512622963
3222952397.10206200487-102.102062004875
3323792423.90206200488-44.9020620048750
3424792577.91243604945-98.912436049447
3520572186.19453323757-129.194533237573
3622802325.52805306433-45.5280530643336
3723512488.45276659199-137.452766591988
3822762372.17261013618-96.172610136181
3925482573.73680451243-25.7368045124324
4023112401.91639211146-90.9163921114575
4122012346.32163508177-145.321635081772
4227252634.3216350817790.6783649182282
4324082157.72687805209250.273121947914
4421392064.9064656511174.093534348889
4518982091.70646565111-193.706465651111
4625372241.74249506697295.257504933028
4720691853.99893688381215.001063116191
4820632064.87066002736-1.87066002736259
4925242255.61578595599268.384214044008
5024372206.89948818827230.100511811733
5121892440.25843959420-251.258439594204
5227932324.07885199518468.921148004821
5320742312.20188588131-238.201885881311
5426222600.2018858813121.7981141186885
5522782183.2222982822994.7777017177136
5621442130.1453321684213.8546678315815
5724272156.94533216842270.054667831581
5821392366.59653101494-227.596531014941
5918281947.05821580209-119.058215802092
6020722130.10952654467-58.10952654467
6118002320.8546524733-520.8546524733

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2360 & 2392.09478275783 & -32.0947827578258 \tabularnewline
2 & 2214 & 2343.37848499011 & -129.378484990108 \tabularnewline
3 & 2825 & 2576.73743639605 & 248.262563603954 \tabularnewline
4 & 2355 & 2460.55784879702 & -105.557848797021 \tabularnewline
5 & 2333 & 2448.68088268315 & -115.680882683153 \tabularnewline
6 & 3016 & 2736.68088268315 & 279.319117316848 \tabularnewline
7 & 2155 & 2319.70129508413 & -164.701295084128 \tabularnewline
8 & 2172 & 2266.62432897026 & -94.62432897026 \tabularnewline
9 & 2150 & 2293.42432897026 & -143.42432897026 \tabularnewline
10 & 2533 & 2503.07552781678 & 29.9244721832179 \tabularnewline
11 & 2058 & 2155.07541592073 & -97.0754159207257 \tabularnewline
12 & 2160 & 2365.94713906428 & -205.947139064279 \tabularnewline
13 & 2260 & 2556.69226499291 & -296.692264992910 \tabularnewline
14 & 2498 & 2507.97596722518 & -9.97596722518373 \tabularnewline
15 & 2695 & 2741.33491863112 & -46.334918631121 \tabularnewline
16 & 2799 & 2625.15533103210 & 173.844668967904 \tabularnewline
17 & 2947 & 2613.27836491823 & 333.721635081772 \tabularnewline
18 & 2930 & 2901.27836491823 & 28.7216350817717 \tabularnewline
19 & 2318 & 2484.29877731920 & -166.298777319203 \tabularnewline
20 & 2540 & 2431.22181120534 & 108.778188794665 \tabularnewline
21 & 2570 & 2458.02181120534 & 111.978188794665 \tabularnewline
22 & 2669 & 2667.67301005186 & 1.32698994814249 \tabularnewline
23 & 2450 & 2319.6728981558 & 130.327101844199 \tabularnewline
24 & 2842 & 2530.54462129935 & 311.455378700645 \tabularnewline
25 & 3440 & 2721.28974722798 & 718.710252772015 \tabularnewline
26 & 2678 & 2672.57344946026 & 5.42655053974068 \tabularnewline
27 & 2981 & 2905.9324008662 & 75.0675991338036 \tabularnewline
28 & 2260 & 2706.29157606425 & -446.291576064246 \tabularnewline
29 & 2844 & 2678.51723143554 & 165.482768564464 \tabularnewline
30 & 2546 & 2966.51723143554 & -420.517231435536 \tabularnewline
31 & 2456 & 2470.05075126230 & -14.0507512622963 \tabularnewline
32 & 2295 & 2397.10206200487 & -102.102062004875 \tabularnewline
33 & 2379 & 2423.90206200488 & -44.9020620048750 \tabularnewline
34 & 2479 & 2577.91243604945 & -98.912436049447 \tabularnewline
35 & 2057 & 2186.19453323757 & -129.194533237573 \tabularnewline
36 & 2280 & 2325.52805306433 & -45.5280530643336 \tabularnewline
37 & 2351 & 2488.45276659199 & -137.452766591988 \tabularnewline
38 & 2276 & 2372.17261013618 & -96.172610136181 \tabularnewline
39 & 2548 & 2573.73680451243 & -25.7368045124324 \tabularnewline
40 & 2311 & 2401.91639211146 & -90.9163921114575 \tabularnewline
41 & 2201 & 2346.32163508177 & -145.321635081772 \tabularnewline
42 & 2725 & 2634.32163508177 & 90.6783649182282 \tabularnewline
43 & 2408 & 2157.72687805209 & 250.273121947914 \tabularnewline
44 & 2139 & 2064.90646565111 & 74.093534348889 \tabularnewline
45 & 1898 & 2091.70646565111 & -193.706465651111 \tabularnewline
46 & 2537 & 2241.74249506697 & 295.257504933028 \tabularnewline
47 & 2069 & 1853.99893688381 & 215.001063116191 \tabularnewline
48 & 2063 & 2064.87066002736 & -1.87066002736259 \tabularnewline
49 & 2524 & 2255.61578595599 & 268.384214044008 \tabularnewline
50 & 2437 & 2206.89948818827 & 230.100511811733 \tabularnewline
51 & 2189 & 2440.25843959420 & -251.258439594204 \tabularnewline
52 & 2793 & 2324.07885199518 & 468.921148004821 \tabularnewline
53 & 2074 & 2312.20188588131 & -238.201885881311 \tabularnewline
54 & 2622 & 2600.20188588131 & 21.7981141186885 \tabularnewline
55 & 2278 & 2183.22229828229 & 94.7777017177136 \tabularnewline
56 & 2144 & 2130.14533216842 & 13.8546678315815 \tabularnewline
57 & 2427 & 2156.94533216842 & 270.054667831581 \tabularnewline
58 & 2139 & 2366.59653101494 & -227.596531014941 \tabularnewline
59 & 1828 & 1947.05821580209 & -119.058215802092 \tabularnewline
60 & 2072 & 2130.10952654467 & -58.10952654467 \tabularnewline
61 & 1800 & 2320.8546524733 & -520.8546524733 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57870&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]2360[/C][C]2392.09478275783[/C][C]-32.0947827578258[/C][/ROW]
[ROW][C]2[/C][C]2214[/C][C]2343.37848499011[/C][C]-129.378484990108[/C][/ROW]
[ROW][C]3[/C][C]2825[/C][C]2576.73743639605[/C][C]248.262563603954[/C][/ROW]
[ROW][C]4[/C][C]2355[/C][C]2460.55784879702[/C][C]-105.557848797021[/C][/ROW]
[ROW][C]5[/C][C]2333[/C][C]2448.68088268315[/C][C]-115.680882683153[/C][/ROW]
[ROW][C]6[/C][C]3016[/C][C]2736.68088268315[/C][C]279.319117316848[/C][/ROW]
[ROW][C]7[/C][C]2155[/C][C]2319.70129508413[/C][C]-164.701295084128[/C][/ROW]
[ROW][C]8[/C][C]2172[/C][C]2266.62432897026[/C][C]-94.62432897026[/C][/ROW]
[ROW][C]9[/C][C]2150[/C][C]2293.42432897026[/C][C]-143.42432897026[/C][/ROW]
[ROW][C]10[/C][C]2533[/C][C]2503.07552781678[/C][C]29.9244721832179[/C][/ROW]
[ROW][C]11[/C][C]2058[/C][C]2155.07541592073[/C][C]-97.0754159207257[/C][/ROW]
[ROW][C]12[/C][C]2160[/C][C]2365.94713906428[/C][C]-205.947139064279[/C][/ROW]
[ROW][C]13[/C][C]2260[/C][C]2556.69226499291[/C][C]-296.692264992910[/C][/ROW]
[ROW][C]14[/C][C]2498[/C][C]2507.97596722518[/C][C]-9.97596722518373[/C][/ROW]
[ROW][C]15[/C][C]2695[/C][C]2741.33491863112[/C][C]-46.334918631121[/C][/ROW]
[ROW][C]16[/C][C]2799[/C][C]2625.15533103210[/C][C]173.844668967904[/C][/ROW]
[ROW][C]17[/C][C]2947[/C][C]2613.27836491823[/C][C]333.721635081772[/C][/ROW]
[ROW][C]18[/C][C]2930[/C][C]2901.27836491823[/C][C]28.7216350817717[/C][/ROW]
[ROW][C]19[/C][C]2318[/C][C]2484.29877731920[/C][C]-166.298777319203[/C][/ROW]
[ROW][C]20[/C][C]2540[/C][C]2431.22181120534[/C][C]108.778188794665[/C][/ROW]
[ROW][C]21[/C][C]2570[/C][C]2458.02181120534[/C][C]111.978188794665[/C][/ROW]
[ROW][C]22[/C][C]2669[/C][C]2667.67301005186[/C][C]1.32698994814249[/C][/ROW]
[ROW][C]23[/C][C]2450[/C][C]2319.6728981558[/C][C]130.327101844199[/C][/ROW]
[ROW][C]24[/C][C]2842[/C][C]2530.54462129935[/C][C]311.455378700645[/C][/ROW]
[ROW][C]25[/C][C]3440[/C][C]2721.28974722798[/C][C]718.710252772015[/C][/ROW]
[ROW][C]26[/C][C]2678[/C][C]2672.57344946026[/C][C]5.42655053974068[/C][/ROW]
[ROW][C]27[/C][C]2981[/C][C]2905.9324008662[/C][C]75.0675991338036[/C][/ROW]
[ROW][C]28[/C][C]2260[/C][C]2706.29157606425[/C][C]-446.291576064246[/C][/ROW]
[ROW][C]29[/C][C]2844[/C][C]2678.51723143554[/C][C]165.482768564464[/C][/ROW]
[ROW][C]30[/C][C]2546[/C][C]2966.51723143554[/C][C]-420.517231435536[/C][/ROW]
[ROW][C]31[/C][C]2456[/C][C]2470.05075126230[/C][C]-14.0507512622963[/C][/ROW]
[ROW][C]32[/C][C]2295[/C][C]2397.10206200487[/C][C]-102.102062004875[/C][/ROW]
[ROW][C]33[/C][C]2379[/C][C]2423.90206200488[/C][C]-44.9020620048750[/C][/ROW]
[ROW][C]34[/C][C]2479[/C][C]2577.91243604945[/C][C]-98.912436049447[/C][/ROW]
[ROW][C]35[/C][C]2057[/C][C]2186.19453323757[/C][C]-129.194533237573[/C][/ROW]
[ROW][C]36[/C][C]2280[/C][C]2325.52805306433[/C][C]-45.5280530643336[/C][/ROW]
[ROW][C]37[/C][C]2351[/C][C]2488.45276659199[/C][C]-137.452766591988[/C][/ROW]
[ROW][C]38[/C][C]2276[/C][C]2372.17261013618[/C][C]-96.172610136181[/C][/ROW]
[ROW][C]39[/C][C]2548[/C][C]2573.73680451243[/C][C]-25.7368045124324[/C][/ROW]
[ROW][C]40[/C][C]2311[/C][C]2401.91639211146[/C][C]-90.9163921114575[/C][/ROW]
[ROW][C]41[/C][C]2201[/C][C]2346.32163508177[/C][C]-145.321635081772[/C][/ROW]
[ROW][C]42[/C][C]2725[/C][C]2634.32163508177[/C][C]90.6783649182282[/C][/ROW]
[ROW][C]43[/C][C]2408[/C][C]2157.72687805209[/C][C]250.273121947914[/C][/ROW]
[ROW][C]44[/C][C]2139[/C][C]2064.90646565111[/C][C]74.093534348889[/C][/ROW]
[ROW][C]45[/C][C]1898[/C][C]2091.70646565111[/C][C]-193.706465651111[/C][/ROW]
[ROW][C]46[/C][C]2537[/C][C]2241.74249506697[/C][C]295.257504933028[/C][/ROW]
[ROW][C]47[/C][C]2069[/C][C]1853.99893688381[/C][C]215.001063116191[/C][/ROW]
[ROW][C]48[/C][C]2063[/C][C]2064.87066002736[/C][C]-1.87066002736259[/C][/ROW]
[ROW][C]49[/C][C]2524[/C][C]2255.61578595599[/C][C]268.384214044008[/C][/ROW]
[ROW][C]50[/C][C]2437[/C][C]2206.89948818827[/C][C]230.100511811733[/C][/ROW]
[ROW][C]51[/C][C]2189[/C][C]2440.25843959420[/C][C]-251.258439594204[/C][/ROW]
[ROW][C]52[/C][C]2793[/C][C]2324.07885199518[/C][C]468.921148004821[/C][/ROW]
[ROW][C]53[/C][C]2074[/C][C]2312.20188588131[/C][C]-238.201885881311[/C][/ROW]
[ROW][C]54[/C][C]2622[/C][C]2600.20188588131[/C][C]21.7981141186885[/C][/ROW]
[ROW][C]55[/C][C]2278[/C][C]2183.22229828229[/C][C]94.7777017177136[/C][/ROW]
[ROW][C]56[/C][C]2144[/C][C]2130.14533216842[/C][C]13.8546678315815[/C][/ROW]
[ROW][C]57[/C][C]2427[/C][C]2156.94533216842[/C][C]270.054667831581[/C][/ROW]
[ROW][C]58[/C][C]2139[/C][C]2366.59653101494[/C][C]-227.596531014941[/C][/ROW]
[ROW][C]59[/C][C]1828[/C][C]1947.05821580209[/C][C]-119.058215802092[/C][/ROW]
[ROW][C]60[/C][C]2072[/C][C]2130.10952654467[/C][C]-58.10952654467[/C][/ROW]
[ROW][C]61[/C][C]1800[/C][C]2320.8546524733[/C][C]-520.8546524733[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57870&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57870&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
123602392.09478275783-32.0947827578258
222142343.37848499011-129.378484990108
328252576.73743639605248.262563603954
423552460.55784879702-105.557848797021
523332448.68088268315-115.680882683153
630162736.68088268315279.319117316848
721552319.70129508413-164.701295084128
821722266.62432897026-94.62432897026
921502293.42432897026-143.42432897026
1025332503.0755278167829.9244721832179
1120582155.07541592073-97.0754159207257
1221602365.94713906428-205.947139064279
1322602556.69226499291-296.692264992910
1424982507.97596722518-9.97596722518373
1526952741.33491863112-46.334918631121
1627992625.15533103210173.844668967904
1729472613.27836491823333.721635081772
1829302901.2783649182328.7216350817717
1923182484.29877731920-166.298777319203
2025402431.22181120534108.778188794665
2125702458.02181120534111.978188794665
2226692667.673010051861.32698994814249
2324502319.6728981558130.327101844199
2428422530.54462129935311.455378700645
2534402721.28974722798718.710252772015
2626782672.573449460265.42655053974068
2729812905.932400866275.0675991338036
2822602706.29157606425-446.291576064246
2928442678.51723143554165.482768564464
3025462966.51723143554-420.517231435536
3124562470.05075126230-14.0507512622963
3222952397.10206200487-102.102062004875
3323792423.90206200488-44.9020620048750
3424792577.91243604945-98.912436049447
3520572186.19453323757-129.194533237573
3622802325.52805306433-45.5280530643336
3723512488.45276659199-137.452766591988
3822762372.17261013618-96.172610136181
3925482573.73680451243-25.7368045124324
4023112401.91639211146-90.9163921114575
4122012346.32163508177-145.321635081772
4227252634.3216350817790.6783649182282
4324082157.72687805209250.273121947914
4421392064.9064656511174.093534348889
4518982091.70646565111-193.706465651111
4625372241.74249506697295.257504933028
4720691853.99893688381215.001063116191
4820632064.87066002736-1.87066002736259
4925242255.61578595599268.384214044008
5024372206.89948818827230.100511811733
5121892440.25843959420-251.258439594204
5227932324.07885199518468.921148004821
5320742312.20188588131-238.201885881311
5426222600.2018858813121.7981141186885
5522782183.2222982822994.7777017177136
5621442130.1453321684213.8546678315815
5724272156.94533216842270.054667831581
5821392366.59653101494-227.596531014941
5918281947.05821580209-119.058215802092
6020722130.10952654467-58.10952654467
6118002320.8546524733-520.8546524733







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.6135027390504810.7729945218990380.386497260949519
180.5214767088833480.9570465822333050.478523291116652
190.39509878124970.79019756249940.6049012187503
200.2937857550944650.5875715101889290.706214244905535
210.2200187489016690.4400374978033390.77998125109833
220.1404092188170580.2808184376341150.859590781182942
230.09426554549939970.1885310909987990.9057344545006
240.1297178232186690.2594356464373380.87028217678133
250.6058750593361170.7882498813277650.394124940663883
260.5385837050245010.9228325899509970.461416294975499
270.5820571315533420.8358857368933160.417942868446658
280.5756517623177180.8486964753645630.424348237682282
290.7791264714802110.4417470570395780.220873528519789
300.7654567113050480.4690865773899040.234543288694952
310.8307467083535780.3385065832928440.169253291646422
320.7668646734982320.4662706530035370.233135326501768
330.6990383637427380.6019232725145250.300961636257263
340.6102639752145370.7794720495709260.389736024785463
350.5118158613495890.9763682773008230.488184138650411
360.4348110432223440.8696220864446890.565188956777656
370.3610294660584700.7220589321169410.63897053394153
380.2837126201049400.5674252402098790.71628737989506
390.3348155971746280.6696311943492560.665184402825372
400.3340597364328560.6681194728657120.665940263567144
410.2352093379363390.4704186758726770.764790662063661
420.1818641124725540.3637282249451080.818135887527446
430.1592529608202540.3185059216405080.840747039179746
440.08607578028914910.1721515605782980.91392421971085

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.613502739050481 & 0.772994521899038 & 0.386497260949519 \tabularnewline
18 & 0.521476708883348 & 0.957046582233305 & 0.478523291116652 \tabularnewline
19 & 0.3950987812497 & 0.7901975624994 & 0.6049012187503 \tabularnewline
20 & 0.293785755094465 & 0.587571510188929 & 0.706214244905535 \tabularnewline
21 & 0.220018748901669 & 0.440037497803339 & 0.77998125109833 \tabularnewline
22 & 0.140409218817058 & 0.280818437634115 & 0.859590781182942 \tabularnewline
23 & 0.0942655454993997 & 0.188531090998799 & 0.9057344545006 \tabularnewline
24 & 0.129717823218669 & 0.259435646437338 & 0.87028217678133 \tabularnewline
25 & 0.605875059336117 & 0.788249881327765 & 0.394124940663883 \tabularnewline
26 & 0.538583705024501 & 0.922832589950997 & 0.461416294975499 \tabularnewline
27 & 0.582057131553342 & 0.835885736893316 & 0.417942868446658 \tabularnewline
28 & 0.575651762317718 & 0.848696475364563 & 0.424348237682282 \tabularnewline
29 & 0.779126471480211 & 0.441747057039578 & 0.220873528519789 \tabularnewline
30 & 0.765456711305048 & 0.469086577389904 & 0.234543288694952 \tabularnewline
31 & 0.830746708353578 & 0.338506583292844 & 0.169253291646422 \tabularnewline
32 & 0.766864673498232 & 0.466270653003537 & 0.233135326501768 \tabularnewline
33 & 0.699038363742738 & 0.601923272514525 & 0.300961636257263 \tabularnewline
34 & 0.610263975214537 & 0.779472049570926 & 0.389736024785463 \tabularnewline
35 & 0.511815861349589 & 0.976368277300823 & 0.488184138650411 \tabularnewline
36 & 0.434811043222344 & 0.869622086444689 & 0.565188956777656 \tabularnewline
37 & 0.361029466058470 & 0.722058932116941 & 0.63897053394153 \tabularnewline
38 & 0.283712620104940 & 0.567425240209879 & 0.71628737989506 \tabularnewline
39 & 0.334815597174628 & 0.669631194349256 & 0.665184402825372 \tabularnewline
40 & 0.334059736432856 & 0.668119472865712 & 0.665940263567144 \tabularnewline
41 & 0.235209337936339 & 0.470418675872677 & 0.764790662063661 \tabularnewline
42 & 0.181864112472554 & 0.363728224945108 & 0.818135887527446 \tabularnewline
43 & 0.159252960820254 & 0.318505921640508 & 0.840747039179746 \tabularnewline
44 & 0.0860757802891491 & 0.172151560578298 & 0.91392421971085 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57870&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]17[/C][C]0.613502739050481[/C][C]0.772994521899038[/C][C]0.386497260949519[/C][/ROW]
[ROW][C]18[/C][C]0.521476708883348[/C][C]0.957046582233305[/C][C]0.478523291116652[/C][/ROW]
[ROW][C]19[/C][C]0.3950987812497[/C][C]0.7901975624994[/C][C]0.6049012187503[/C][/ROW]
[ROW][C]20[/C][C]0.293785755094465[/C][C]0.587571510188929[/C][C]0.706214244905535[/C][/ROW]
[ROW][C]21[/C][C]0.220018748901669[/C][C]0.440037497803339[/C][C]0.77998125109833[/C][/ROW]
[ROW][C]22[/C][C]0.140409218817058[/C][C]0.280818437634115[/C][C]0.859590781182942[/C][/ROW]
[ROW][C]23[/C][C]0.0942655454993997[/C][C]0.188531090998799[/C][C]0.9057344545006[/C][/ROW]
[ROW][C]24[/C][C]0.129717823218669[/C][C]0.259435646437338[/C][C]0.87028217678133[/C][/ROW]
[ROW][C]25[/C][C]0.605875059336117[/C][C]0.788249881327765[/C][C]0.394124940663883[/C][/ROW]
[ROW][C]26[/C][C]0.538583705024501[/C][C]0.922832589950997[/C][C]0.461416294975499[/C][/ROW]
[ROW][C]27[/C][C]0.582057131553342[/C][C]0.835885736893316[/C][C]0.417942868446658[/C][/ROW]
[ROW][C]28[/C][C]0.575651762317718[/C][C]0.848696475364563[/C][C]0.424348237682282[/C][/ROW]
[ROW][C]29[/C][C]0.779126471480211[/C][C]0.441747057039578[/C][C]0.220873528519789[/C][/ROW]
[ROW][C]30[/C][C]0.765456711305048[/C][C]0.469086577389904[/C][C]0.234543288694952[/C][/ROW]
[ROW][C]31[/C][C]0.830746708353578[/C][C]0.338506583292844[/C][C]0.169253291646422[/C][/ROW]
[ROW][C]32[/C][C]0.766864673498232[/C][C]0.466270653003537[/C][C]0.233135326501768[/C][/ROW]
[ROW][C]33[/C][C]0.699038363742738[/C][C]0.601923272514525[/C][C]0.300961636257263[/C][/ROW]
[ROW][C]34[/C][C]0.610263975214537[/C][C]0.779472049570926[/C][C]0.389736024785463[/C][/ROW]
[ROW][C]35[/C][C]0.511815861349589[/C][C]0.976368277300823[/C][C]0.488184138650411[/C][/ROW]
[ROW][C]36[/C][C]0.434811043222344[/C][C]0.869622086444689[/C][C]0.565188956777656[/C][/ROW]
[ROW][C]37[/C][C]0.361029466058470[/C][C]0.722058932116941[/C][C]0.63897053394153[/C][/ROW]
[ROW][C]38[/C][C]0.283712620104940[/C][C]0.567425240209879[/C][C]0.71628737989506[/C][/ROW]
[ROW][C]39[/C][C]0.334815597174628[/C][C]0.669631194349256[/C][C]0.665184402825372[/C][/ROW]
[ROW][C]40[/C][C]0.334059736432856[/C][C]0.668119472865712[/C][C]0.665940263567144[/C][/ROW]
[ROW][C]41[/C][C]0.235209337936339[/C][C]0.470418675872677[/C][C]0.764790662063661[/C][/ROW]
[ROW][C]42[/C][C]0.181864112472554[/C][C]0.363728224945108[/C][C]0.818135887527446[/C][/ROW]
[ROW][C]43[/C][C]0.159252960820254[/C][C]0.318505921640508[/C][C]0.840747039179746[/C][/ROW]
[ROW][C]44[/C][C]0.0860757802891491[/C][C]0.172151560578298[/C][C]0.91392421971085[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57870&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57870&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
170.6135027390504810.7729945218990380.386497260949519
180.5214767088833480.9570465822333050.478523291116652
190.39509878124970.79019756249940.6049012187503
200.2937857550944650.5875715101889290.706214244905535
210.2200187489016690.4400374978033390.77998125109833
220.1404092188170580.2808184376341150.859590781182942
230.09426554549939970.1885310909987990.9057344545006
240.1297178232186690.2594356464373380.87028217678133
250.6058750593361170.7882498813277650.394124940663883
260.5385837050245010.9228325899509970.461416294975499
270.5820571315533420.8358857368933160.417942868446658
280.5756517623177180.8486964753645630.424348237682282
290.7791264714802110.4417470570395780.220873528519789
300.7654567113050480.4690865773899040.234543288694952
310.8307467083535780.3385065832928440.169253291646422
320.7668646734982320.4662706530035370.233135326501768
330.6990383637427380.6019232725145250.300961636257263
340.6102639752145370.7794720495709260.389736024785463
350.5118158613495890.9763682773008230.488184138650411
360.4348110432223440.8696220864446890.565188956777656
370.3610294660584700.7220589321169410.63897053394153
380.2837126201049400.5674252402098790.71628737989506
390.3348155971746280.6696311943492560.665184402825372
400.3340597364328560.6681194728657120.665940263567144
410.2352093379363390.4704186758726770.764790662063661
420.1818641124725540.3637282249451080.818135887527446
430.1592529608202540.3185059216405080.840747039179746
440.08607578028914910.1721515605782980.91392421971085







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

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

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



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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')
}