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 computationFri, 20 Nov 2009 06:18:27 -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/20/t1258723327zr3jwpfzwgyxxm5.htm/, Retrieved Fri, 19 Apr 2024 02:57:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58133, Retrieved Fri, 19 Apr 2024 02:57:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact128
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]
-    D      [Multiple Regression] [] [2009-11-20 13:18:27] [c88a5f1b97e332c6387d668c465455af] [Current]
Feedback Forum

Post a new message
Dataseries X:
280	1258
557	1199
831	1158
1081	1427
1318	934
1578	709
1859	1186
2141	986
2428	1033
2715	1257
3004	1105
3309	1179
269	1092
537	1092
813	1087
1068	2028
1411	2039
1675	2010
1958	754
2242	760
2524	715
2836	855
3143	971
3522	815
285	915
574	843
865	761
1147	1858
1516	2968
1789	4061
2087	3661
2372	3269
2669	2857
2966	2568
3270	2274
3652	1987
329	683
658	381
988	71
1303	1772
1603	3485
1929	5181
2235	4479
2544	3782
2872	3067
3198	2489
3544	1903
3903	1330
332	736
665	483
1001	242
1329	1334
1639	2423
1975	3523
2304	2986
2640	2462
2992	1908
3330	1575
3690	1237
4063	904




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 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 & 6 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58133&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58133&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 3354.30967526023 + 0.0263231337674931X[t] -3290.22659632555M1[t] -2995.82535874672M2[t] -2699.26097355517M3[t] -2448.52086637209M4[t] -2163.18883251067M5[t] -1898.93604713372M6[t] -1595.21647601783M7[t] -1294.91359184834M8[t] -985.284579903292M9[t] -677.293648311444M10[t] -357.902102736634M11[t] + 8.41029637407708t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  3354.30967526023 +  0.0263231337674931X[t] -3290.22659632555M1[t] -2995.82535874672M2[t] -2699.26097355517M3[t] -2448.52086637209M4[t] -2163.18883251067M5[t] -1898.93604713372M6[t] -1595.21647601783M7[t] -1294.91359184834M8[t] -985.284579903292M9[t] -677.293648311444M10[t] -357.902102736634M11[t] +  8.41029637407708t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58133&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  3354.30967526023 +  0.0263231337674931X[t] -3290.22659632555M1[t] -2995.82535874672M2[t] -2699.26097355517M3[t] -2448.52086637209M4[t] -2163.18883251067M5[t] -1898.93604713372M6[t] -1595.21647601783M7[t] -1294.91359184834M8[t] -985.284579903292M9[t] -677.293648311444M10[t] -357.902102736634M11[t] +  8.41029637407708t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58133&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58133&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] = + 3354.30967526023 + 0.0263231337674931X[t] -3290.22659632555M1[t] -2995.82535874672M2[t] -2699.26097355517M3[t] -2448.52086637209M4[t] -2163.18883251067M5[t] -1898.93604713372M6[t] -1595.21647601783M7[t] -1294.91359184834M8[t] -985.284579903292M9[t] -677.293648311444M10[t] -357.902102736634M11[t] + 8.41029637407708t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3354.3096752602347.11012771.201500
X0.02632313376749310.0142951.84140.0720210.03601
M1-3290.2265963255556.484817-58.249800
M2-2995.8253587467256.500306-53.023200
M3-2699.2609735551756.609733-47.681900
M4-2448.5208663720956.870559-43.054300
M5-2163.1888325106758.989503-36.670700
M6-1898.9360471337262.774943-30.249900
M7-1595.2164760178359.861038-26.648700
M8-1294.9135918483458.148033-22.269300
M9-985.28457990329256.978523-17.292200
M10-677.29364831144456.532069-11.980700
M11-357.90210273663456.120128-6.377400
t8.410296374077080.72533911.59500

\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) & 3354.30967526023 & 47.110127 & 71.2015 & 0 & 0 \tabularnewline
X & 0.0263231337674931 & 0.014295 & 1.8414 & 0.072021 & 0.03601 \tabularnewline
M1 & -3290.22659632555 & 56.484817 & -58.2498 & 0 & 0 \tabularnewline
M2 & -2995.82535874672 & 56.500306 & -53.0232 & 0 & 0 \tabularnewline
M3 & -2699.26097355517 & 56.609733 & -47.6819 & 0 & 0 \tabularnewline
M4 & -2448.52086637209 & 56.870559 & -43.0543 & 0 & 0 \tabularnewline
M5 & -2163.18883251067 & 58.989503 & -36.6707 & 0 & 0 \tabularnewline
M6 & -1898.93604713372 & 62.774943 & -30.2499 & 0 & 0 \tabularnewline
M7 & -1595.21647601783 & 59.861038 & -26.6487 & 0 & 0 \tabularnewline
M8 & -1294.91359184834 & 58.148033 & -22.2693 & 0 & 0 \tabularnewline
M9 & -985.284579903292 & 56.978523 & -17.2922 & 0 & 0 \tabularnewline
M10 & -677.293648311444 & 56.532069 & -11.9807 & 0 & 0 \tabularnewline
M11 & -357.902102736634 & 56.120128 & -6.3774 & 0 & 0 \tabularnewline
t & 8.41029637407708 & 0.725339 & 11.595 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58133&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]3354.30967526023[/C][C]47.110127[/C][C]71.2015[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]0.0263231337674931[/C][C]0.014295[/C][C]1.8414[/C][C]0.072021[/C][C]0.03601[/C][/ROW]
[ROW][C]M1[/C][C]-3290.22659632555[/C][C]56.484817[/C][C]-58.2498[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]-2995.82535874672[/C][C]56.500306[/C][C]-53.0232[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]-2699.26097355517[/C][C]56.609733[/C][C]-47.6819[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]-2448.52086637209[/C][C]56.870559[/C][C]-43.0543[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]-2163.18883251067[/C][C]58.989503[/C][C]-36.6707[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]-1898.93604713372[/C][C]62.774943[/C][C]-30.2499[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-1595.21647601783[/C][C]59.861038[/C][C]-26.6487[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-1294.91359184834[/C][C]58.148033[/C][C]-22.2693[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-985.284579903292[/C][C]56.978523[/C][C]-17.2922[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-677.293648311444[/C][C]56.532069[/C][C]-11.9807[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]-357.902102736634[/C][C]56.120128[/C][C]-6.3774[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]t[/C][C]8.41029637407708[/C][C]0.725339[/C][C]11.595[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58133&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58133&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)3354.3096752602347.11012771.201500
X0.02632313376749310.0142951.84140.0720210.03601
M1-3290.2265963255556.484817-58.249800
M2-2995.8253587467256.500306-53.023200
M3-2699.2609735551756.609733-47.681900
M4-2448.5208663720956.870559-43.054300
M5-2163.1888325106758.989503-36.670700
M6-1898.9360471337262.774943-30.249900
M7-1595.2164760178359.861038-26.648700
M8-1294.9135918483458.148033-22.269300
M9-985.28457990329256.978523-17.292200
M10-677.29364831144456.532069-11.980700
M11-357.90210273663456.120128-6.377400
t8.410296374077080.72533911.59500







Multiple Linear Regression - Regression Statistics
Multiple R0.997355409116792
R-squared0.994717812094524
Adjusted R-squared0.993225019860367
F-TEST (value)666.347124090398
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation88.5111261077739
Sum Squared Residuals360374.094463848

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.997355409116792 \tabularnewline
R-squared & 0.994717812094524 \tabularnewline
Adjusted R-squared & 0.993225019860367 \tabularnewline
F-TEST (value) & 666.347124090398 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 88.5111261077739 \tabularnewline
Sum Squared Residuals & 360374.094463848 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58133&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.997355409116792[/C][/ROW]
[ROW][C]R-squared[/C][C]0.994717812094524[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.993225019860367[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]666.347124090398[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]88.5111261077739[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]360374.094463848[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58133&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58133&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.997355409116792
R-squared0.994717812094524
Adjusted R-squared0.993225019860367
F-TEST (value)666.347124090398
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation88.5111261077739
Sum Squared Residuals360374.094463848







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1280105.607877588275174.392122411725
2557406.866346648887150.133653351113
3831710.761779730045120.238220269955
41081976.993106270657104.006893729343
513181257.7581315587860.2418684412153
615781524.4985082121353.5014917878694
718591849.184510509189.81548949081726
821412152.63306429926-11.6330642992569
924282471.90955990545-43.9095599054542
1027152794.20716983530-79.2071698352957
1130043118.00789545153-114.007895451526
1233093486.26820646103-177.268206461031
13269202.16179387178866.8382061282116
14537504.9733278246932.0266721753097
15813809.8163937214783.18360627852161
1610681093.73686615385-25.7368661538465
1714111387.7687508607923.2312491392118
1816751659.6684617325615.3315382674365
1919581938.7364732105519.2635267894478
2022422247.60759255673-5.60759255672876
2125242564.46235985632-40.4623598563159
2228362884.54882654969-48.54882654969
2331433215.40415201561-72.4041520156063
2435223577.61014225859-55.6101422585885
25285298.426155683867-13.4261556838671
26574599.34242400551-25.3424240055096
27865902.1586086022-37.1586086022
2811471190.18548990230-43.1854899022977
2915161513.146498619712.85350138028586
3017891814.58076557862-25.5807655786167
3120872116.18137956158-29.1813795615795
3223722414.57589166829-42.575891668294
3326692721.77006887521-52.7700688752107
3429663030.56391118233-64.5639111823307
3532703350.62675180357-80.6267518035745
3636523709.38441152301-57.3844115230150
37329393.242745138733-64.2427451387334
38658688.104692693852-30.1046926938525
39988984.9192027915553.08079720844485
4013031288.8452568872214.1547431127822
4116031627.67911526643-24.679115266433
4219291944.98623188713-15.9862318871341
4322352238.63725947231-3.63725947231396
4425442529.0032157799414.9967842200572
4528722828.2214834553143.7785165446904
4631983129.4079401036268.5920598963763
4735443441.78442566476102.215574335241
4839033793.0136691267109.986330873303
49332495.561427717336-163.561427717336
50665791.713208827061-126.713208827061
5110011090.34401515472-89.3440151547216
5213291378.23928078598-49.2392807859809
5316391700.64750369428-61.6475036942798
5419752002.26603258956-27.2660325895552
5523042300.260377246373.73962275362838
5626402595.1802356957844.8197643042226
5729922898.6365279077193.3634720922902
5833303206.27215232906123.727847670940
5936903525.17677506453164.823224935466
6040633882.72357063067180.276429369330

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 280 & 105.607877588275 & 174.392122411725 \tabularnewline
2 & 557 & 406.866346648887 & 150.133653351113 \tabularnewline
3 & 831 & 710.761779730045 & 120.238220269955 \tabularnewline
4 & 1081 & 976.993106270657 & 104.006893729343 \tabularnewline
5 & 1318 & 1257.75813155878 & 60.2418684412153 \tabularnewline
6 & 1578 & 1524.49850821213 & 53.5014917878694 \tabularnewline
7 & 1859 & 1849.18451050918 & 9.81548949081726 \tabularnewline
8 & 2141 & 2152.63306429926 & -11.6330642992569 \tabularnewline
9 & 2428 & 2471.90955990545 & -43.9095599054542 \tabularnewline
10 & 2715 & 2794.20716983530 & -79.2071698352957 \tabularnewline
11 & 3004 & 3118.00789545153 & -114.007895451526 \tabularnewline
12 & 3309 & 3486.26820646103 & -177.268206461031 \tabularnewline
13 & 269 & 202.161793871788 & 66.8382061282116 \tabularnewline
14 & 537 & 504.97332782469 & 32.0266721753097 \tabularnewline
15 & 813 & 809.816393721478 & 3.18360627852161 \tabularnewline
16 & 1068 & 1093.73686615385 & -25.7368661538465 \tabularnewline
17 & 1411 & 1387.76875086079 & 23.2312491392118 \tabularnewline
18 & 1675 & 1659.66846173256 & 15.3315382674365 \tabularnewline
19 & 1958 & 1938.73647321055 & 19.2635267894478 \tabularnewline
20 & 2242 & 2247.60759255673 & -5.60759255672876 \tabularnewline
21 & 2524 & 2564.46235985632 & -40.4623598563159 \tabularnewline
22 & 2836 & 2884.54882654969 & -48.54882654969 \tabularnewline
23 & 3143 & 3215.40415201561 & -72.4041520156063 \tabularnewline
24 & 3522 & 3577.61014225859 & -55.6101422585885 \tabularnewline
25 & 285 & 298.426155683867 & -13.4261556838671 \tabularnewline
26 & 574 & 599.34242400551 & -25.3424240055096 \tabularnewline
27 & 865 & 902.1586086022 & -37.1586086022 \tabularnewline
28 & 1147 & 1190.18548990230 & -43.1854899022977 \tabularnewline
29 & 1516 & 1513.14649861971 & 2.85350138028586 \tabularnewline
30 & 1789 & 1814.58076557862 & -25.5807655786167 \tabularnewline
31 & 2087 & 2116.18137956158 & -29.1813795615795 \tabularnewline
32 & 2372 & 2414.57589166829 & -42.575891668294 \tabularnewline
33 & 2669 & 2721.77006887521 & -52.7700688752107 \tabularnewline
34 & 2966 & 3030.56391118233 & -64.5639111823307 \tabularnewline
35 & 3270 & 3350.62675180357 & -80.6267518035745 \tabularnewline
36 & 3652 & 3709.38441152301 & -57.3844115230150 \tabularnewline
37 & 329 & 393.242745138733 & -64.2427451387334 \tabularnewline
38 & 658 & 688.104692693852 & -30.1046926938525 \tabularnewline
39 & 988 & 984.919202791555 & 3.08079720844485 \tabularnewline
40 & 1303 & 1288.84525688722 & 14.1547431127822 \tabularnewline
41 & 1603 & 1627.67911526643 & -24.679115266433 \tabularnewline
42 & 1929 & 1944.98623188713 & -15.9862318871341 \tabularnewline
43 & 2235 & 2238.63725947231 & -3.63725947231396 \tabularnewline
44 & 2544 & 2529.00321577994 & 14.9967842200572 \tabularnewline
45 & 2872 & 2828.22148345531 & 43.7785165446904 \tabularnewline
46 & 3198 & 3129.40794010362 & 68.5920598963763 \tabularnewline
47 & 3544 & 3441.78442566476 & 102.215574335241 \tabularnewline
48 & 3903 & 3793.0136691267 & 109.986330873303 \tabularnewline
49 & 332 & 495.561427717336 & -163.561427717336 \tabularnewline
50 & 665 & 791.713208827061 & -126.713208827061 \tabularnewline
51 & 1001 & 1090.34401515472 & -89.3440151547216 \tabularnewline
52 & 1329 & 1378.23928078598 & -49.2392807859809 \tabularnewline
53 & 1639 & 1700.64750369428 & -61.6475036942798 \tabularnewline
54 & 1975 & 2002.26603258956 & -27.2660325895552 \tabularnewline
55 & 2304 & 2300.26037724637 & 3.73962275362838 \tabularnewline
56 & 2640 & 2595.18023569578 & 44.8197643042226 \tabularnewline
57 & 2992 & 2898.63652790771 & 93.3634720922902 \tabularnewline
58 & 3330 & 3206.27215232906 & 123.727847670940 \tabularnewline
59 & 3690 & 3525.17677506453 & 164.823224935466 \tabularnewline
60 & 4063 & 3882.72357063067 & 180.276429369330 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58133&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]280[/C][C]105.607877588275[/C][C]174.392122411725[/C][/ROW]
[ROW][C]2[/C][C]557[/C][C]406.866346648887[/C][C]150.133653351113[/C][/ROW]
[ROW][C]3[/C][C]831[/C][C]710.761779730045[/C][C]120.238220269955[/C][/ROW]
[ROW][C]4[/C][C]1081[/C][C]976.993106270657[/C][C]104.006893729343[/C][/ROW]
[ROW][C]5[/C][C]1318[/C][C]1257.75813155878[/C][C]60.2418684412153[/C][/ROW]
[ROW][C]6[/C][C]1578[/C][C]1524.49850821213[/C][C]53.5014917878694[/C][/ROW]
[ROW][C]7[/C][C]1859[/C][C]1849.18451050918[/C][C]9.81548949081726[/C][/ROW]
[ROW][C]8[/C][C]2141[/C][C]2152.63306429926[/C][C]-11.6330642992569[/C][/ROW]
[ROW][C]9[/C][C]2428[/C][C]2471.90955990545[/C][C]-43.9095599054542[/C][/ROW]
[ROW][C]10[/C][C]2715[/C][C]2794.20716983530[/C][C]-79.2071698352957[/C][/ROW]
[ROW][C]11[/C][C]3004[/C][C]3118.00789545153[/C][C]-114.007895451526[/C][/ROW]
[ROW][C]12[/C][C]3309[/C][C]3486.26820646103[/C][C]-177.268206461031[/C][/ROW]
[ROW][C]13[/C][C]269[/C][C]202.161793871788[/C][C]66.8382061282116[/C][/ROW]
[ROW][C]14[/C][C]537[/C][C]504.97332782469[/C][C]32.0266721753097[/C][/ROW]
[ROW][C]15[/C][C]813[/C][C]809.816393721478[/C][C]3.18360627852161[/C][/ROW]
[ROW][C]16[/C][C]1068[/C][C]1093.73686615385[/C][C]-25.7368661538465[/C][/ROW]
[ROW][C]17[/C][C]1411[/C][C]1387.76875086079[/C][C]23.2312491392118[/C][/ROW]
[ROW][C]18[/C][C]1675[/C][C]1659.66846173256[/C][C]15.3315382674365[/C][/ROW]
[ROW][C]19[/C][C]1958[/C][C]1938.73647321055[/C][C]19.2635267894478[/C][/ROW]
[ROW][C]20[/C][C]2242[/C][C]2247.60759255673[/C][C]-5.60759255672876[/C][/ROW]
[ROW][C]21[/C][C]2524[/C][C]2564.46235985632[/C][C]-40.4623598563159[/C][/ROW]
[ROW][C]22[/C][C]2836[/C][C]2884.54882654969[/C][C]-48.54882654969[/C][/ROW]
[ROW][C]23[/C][C]3143[/C][C]3215.40415201561[/C][C]-72.4041520156063[/C][/ROW]
[ROW][C]24[/C][C]3522[/C][C]3577.61014225859[/C][C]-55.6101422585885[/C][/ROW]
[ROW][C]25[/C][C]285[/C][C]298.426155683867[/C][C]-13.4261556838671[/C][/ROW]
[ROW][C]26[/C][C]574[/C][C]599.34242400551[/C][C]-25.3424240055096[/C][/ROW]
[ROW][C]27[/C][C]865[/C][C]902.1586086022[/C][C]-37.1586086022[/C][/ROW]
[ROW][C]28[/C][C]1147[/C][C]1190.18548990230[/C][C]-43.1854899022977[/C][/ROW]
[ROW][C]29[/C][C]1516[/C][C]1513.14649861971[/C][C]2.85350138028586[/C][/ROW]
[ROW][C]30[/C][C]1789[/C][C]1814.58076557862[/C][C]-25.5807655786167[/C][/ROW]
[ROW][C]31[/C][C]2087[/C][C]2116.18137956158[/C][C]-29.1813795615795[/C][/ROW]
[ROW][C]32[/C][C]2372[/C][C]2414.57589166829[/C][C]-42.575891668294[/C][/ROW]
[ROW][C]33[/C][C]2669[/C][C]2721.77006887521[/C][C]-52.7700688752107[/C][/ROW]
[ROW][C]34[/C][C]2966[/C][C]3030.56391118233[/C][C]-64.5639111823307[/C][/ROW]
[ROW][C]35[/C][C]3270[/C][C]3350.62675180357[/C][C]-80.6267518035745[/C][/ROW]
[ROW][C]36[/C][C]3652[/C][C]3709.38441152301[/C][C]-57.3844115230150[/C][/ROW]
[ROW][C]37[/C][C]329[/C][C]393.242745138733[/C][C]-64.2427451387334[/C][/ROW]
[ROW][C]38[/C][C]658[/C][C]688.104692693852[/C][C]-30.1046926938525[/C][/ROW]
[ROW][C]39[/C][C]988[/C][C]984.919202791555[/C][C]3.08079720844485[/C][/ROW]
[ROW][C]40[/C][C]1303[/C][C]1288.84525688722[/C][C]14.1547431127822[/C][/ROW]
[ROW][C]41[/C][C]1603[/C][C]1627.67911526643[/C][C]-24.679115266433[/C][/ROW]
[ROW][C]42[/C][C]1929[/C][C]1944.98623188713[/C][C]-15.9862318871341[/C][/ROW]
[ROW][C]43[/C][C]2235[/C][C]2238.63725947231[/C][C]-3.63725947231396[/C][/ROW]
[ROW][C]44[/C][C]2544[/C][C]2529.00321577994[/C][C]14.9967842200572[/C][/ROW]
[ROW][C]45[/C][C]2872[/C][C]2828.22148345531[/C][C]43.7785165446904[/C][/ROW]
[ROW][C]46[/C][C]3198[/C][C]3129.40794010362[/C][C]68.5920598963763[/C][/ROW]
[ROW][C]47[/C][C]3544[/C][C]3441.78442566476[/C][C]102.215574335241[/C][/ROW]
[ROW][C]48[/C][C]3903[/C][C]3793.0136691267[/C][C]109.986330873303[/C][/ROW]
[ROW][C]49[/C][C]332[/C][C]495.561427717336[/C][C]-163.561427717336[/C][/ROW]
[ROW][C]50[/C][C]665[/C][C]791.713208827061[/C][C]-126.713208827061[/C][/ROW]
[ROW][C]51[/C][C]1001[/C][C]1090.34401515472[/C][C]-89.3440151547216[/C][/ROW]
[ROW][C]52[/C][C]1329[/C][C]1378.23928078598[/C][C]-49.2392807859809[/C][/ROW]
[ROW][C]53[/C][C]1639[/C][C]1700.64750369428[/C][C]-61.6475036942798[/C][/ROW]
[ROW][C]54[/C][C]1975[/C][C]2002.26603258956[/C][C]-27.2660325895552[/C][/ROW]
[ROW][C]55[/C][C]2304[/C][C]2300.26037724637[/C][C]3.73962275362838[/C][/ROW]
[ROW][C]56[/C][C]2640[/C][C]2595.18023569578[/C][C]44.8197643042226[/C][/ROW]
[ROW][C]57[/C][C]2992[/C][C]2898.63652790771[/C][C]93.3634720922902[/C][/ROW]
[ROW][C]58[/C][C]3330[/C][C]3206.27215232906[/C][C]123.727847670940[/C][/ROW]
[ROW][C]59[/C][C]3690[/C][C]3525.17677506453[/C][C]164.823224935466[/C][/ROW]
[ROW][C]60[/C][C]4063[/C][C]3882.72357063067[/C][C]180.276429369330[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58133&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58133&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
1280105.607877588275174.392122411725
2557406.866346648887150.133653351113
3831710.761779730045120.238220269955
41081976.993106270657104.006893729343
513181257.7581315587860.2418684412153
615781524.4985082121353.5014917878694
718591849.184510509189.81548949081726
821412152.63306429926-11.6330642992569
924282471.90955990545-43.9095599054542
1027152794.20716983530-79.2071698352957
1130043118.00789545153-114.007895451526
1233093486.26820646103-177.268206461031
13269202.16179387178866.8382061282116
14537504.9733278246932.0266721753097
15813809.8163937214783.18360627852161
1610681093.73686615385-25.7368661538465
1714111387.7687508607923.2312491392118
1816751659.6684617325615.3315382674365
1919581938.7364732105519.2635267894478
2022422247.60759255673-5.60759255672876
2125242564.46235985632-40.4623598563159
2228362884.54882654969-48.54882654969
2331433215.40415201561-72.4041520156063
2435223577.61014225859-55.6101422585885
25285298.426155683867-13.4261556838671
26574599.34242400551-25.3424240055096
27865902.1586086022-37.1586086022
2811471190.18548990230-43.1854899022977
2915161513.146498619712.85350138028586
3017891814.58076557862-25.5807655786167
3120872116.18137956158-29.1813795615795
3223722414.57589166829-42.575891668294
3326692721.77006887521-52.7700688752107
3429663030.56391118233-64.5639111823307
3532703350.62675180357-80.6267518035745
3636523709.38441152301-57.3844115230150
37329393.242745138733-64.2427451387334
38658688.104692693852-30.1046926938525
39988984.9192027915553.08079720844485
4013031288.8452568872214.1547431127822
4116031627.67911526643-24.679115266433
4219291944.98623188713-15.9862318871341
4322352238.63725947231-3.63725947231396
4425442529.0032157799414.9967842200572
4528722828.2214834553143.7785165446904
4631983129.4079401036268.5920598963763
4735443441.78442566476102.215574335241
4839033793.0136691267109.986330873303
49332495.561427717336-163.561427717336
50665791.713208827061-126.713208827061
5110011090.34401515472-89.3440151547216
5213291378.23928078598-49.2392807859809
5316391700.64750369428-61.6475036942798
5419752002.26603258956-27.2660325895552
5523042300.260377246373.73962275362838
5626402595.1802356957844.8197643042226
5729922898.6365279077193.3634720922902
5833303206.27215232906123.727847670940
5936903525.17677506453164.823224935466
6040633882.72357063067180.276429369330







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.04324201559157320.08648403118314650.956757984408427
180.01242042026212250.02484084052424510.987579579737877
190.1410496681555280.2820993363110560.858950331844472
200.1447219860305960.2894439720611910.855278013969404
210.1124583042990740.2249166085981490.887541695700926
220.1002765186635540.2005530373271090.899723481336446
230.10533071214270.21066142428540.8946692878573
240.2285569820152820.4571139640305640.771443017984718
250.307524874224070.615049748448140.69247512577593
260.2991935247696130.5983870495392260.700806475230387
270.2424448033862220.4848896067724450.757555196613778
280.1699310595010390.3398621190020770.830068940498961
290.1623990002433280.3247980004866560.837600999756672
300.1156200306911760.2312400613823530.884379969308824
310.07808728285590320.1561745657118060.921912717144097
320.04879898652663990.09759797305327970.95120101347336
330.03528019394264940.07056038788529880.96471980605735
340.03719752841428340.07439505682856680.962802471585717
350.128272969520740.256545939041480.87172703047926
360.7812569946013290.4374860107973420.218743005398671
370.7504154816640470.4991690366719070.249584518335953
380.7165155368292690.5669689263414630.283484463170731
390.8130870433433340.3738259133133330.186912956656666
400.976010911621520.04797817675696090.0239890883784804
410.999632306120480.0007353877590420330.000367693879521017
420.9992103911422560.001579217715487360.00078960885774368
430.99913098053630.001738038927398760.000869019463699378

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0432420155915732 & 0.0864840311831465 & 0.956757984408427 \tabularnewline
18 & 0.0124204202621225 & 0.0248408405242451 & 0.987579579737877 \tabularnewline
19 & 0.141049668155528 & 0.282099336311056 & 0.858950331844472 \tabularnewline
20 & 0.144721986030596 & 0.289443972061191 & 0.855278013969404 \tabularnewline
21 & 0.112458304299074 & 0.224916608598149 & 0.887541695700926 \tabularnewline
22 & 0.100276518663554 & 0.200553037327109 & 0.899723481336446 \tabularnewline
23 & 0.1053307121427 & 0.2106614242854 & 0.8946692878573 \tabularnewline
24 & 0.228556982015282 & 0.457113964030564 & 0.771443017984718 \tabularnewline
25 & 0.30752487422407 & 0.61504974844814 & 0.69247512577593 \tabularnewline
26 & 0.299193524769613 & 0.598387049539226 & 0.700806475230387 \tabularnewline
27 & 0.242444803386222 & 0.484889606772445 & 0.757555196613778 \tabularnewline
28 & 0.169931059501039 & 0.339862119002077 & 0.830068940498961 \tabularnewline
29 & 0.162399000243328 & 0.324798000486656 & 0.837600999756672 \tabularnewline
30 & 0.115620030691176 & 0.231240061382353 & 0.884379969308824 \tabularnewline
31 & 0.0780872828559032 & 0.156174565711806 & 0.921912717144097 \tabularnewline
32 & 0.0487989865266399 & 0.0975979730532797 & 0.95120101347336 \tabularnewline
33 & 0.0352801939426494 & 0.0705603878852988 & 0.96471980605735 \tabularnewline
34 & 0.0371975284142834 & 0.0743950568285668 & 0.962802471585717 \tabularnewline
35 & 0.12827296952074 & 0.25654593904148 & 0.87172703047926 \tabularnewline
36 & 0.781256994601329 & 0.437486010797342 & 0.218743005398671 \tabularnewline
37 & 0.750415481664047 & 0.499169036671907 & 0.249584518335953 \tabularnewline
38 & 0.716515536829269 & 0.566968926341463 & 0.283484463170731 \tabularnewline
39 & 0.813087043343334 & 0.373825913313333 & 0.186912956656666 \tabularnewline
40 & 0.97601091162152 & 0.0479781767569609 & 0.0239890883784804 \tabularnewline
41 & 0.99963230612048 & 0.000735387759042033 & 0.000367693879521017 \tabularnewline
42 & 0.999210391142256 & 0.00157921771548736 & 0.00078960885774368 \tabularnewline
43 & 0.9991309805363 & 0.00173803892739876 & 0.000869019463699378 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58133&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.0432420155915732[/C][C]0.0864840311831465[/C][C]0.956757984408427[/C][/ROW]
[ROW][C]18[/C][C]0.0124204202621225[/C][C]0.0248408405242451[/C][C]0.987579579737877[/C][/ROW]
[ROW][C]19[/C][C]0.141049668155528[/C][C]0.282099336311056[/C][C]0.858950331844472[/C][/ROW]
[ROW][C]20[/C][C]0.144721986030596[/C][C]0.289443972061191[/C][C]0.855278013969404[/C][/ROW]
[ROW][C]21[/C][C]0.112458304299074[/C][C]0.224916608598149[/C][C]0.887541695700926[/C][/ROW]
[ROW][C]22[/C][C]0.100276518663554[/C][C]0.200553037327109[/C][C]0.899723481336446[/C][/ROW]
[ROW][C]23[/C][C]0.1053307121427[/C][C]0.2106614242854[/C][C]0.8946692878573[/C][/ROW]
[ROW][C]24[/C][C]0.228556982015282[/C][C]0.457113964030564[/C][C]0.771443017984718[/C][/ROW]
[ROW][C]25[/C][C]0.30752487422407[/C][C]0.61504974844814[/C][C]0.69247512577593[/C][/ROW]
[ROW][C]26[/C][C]0.299193524769613[/C][C]0.598387049539226[/C][C]0.700806475230387[/C][/ROW]
[ROW][C]27[/C][C]0.242444803386222[/C][C]0.484889606772445[/C][C]0.757555196613778[/C][/ROW]
[ROW][C]28[/C][C]0.169931059501039[/C][C]0.339862119002077[/C][C]0.830068940498961[/C][/ROW]
[ROW][C]29[/C][C]0.162399000243328[/C][C]0.324798000486656[/C][C]0.837600999756672[/C][/ROW]
[ROW][C]30[/C][C]0.115620030691176[/C][C]0.231240061382353[/C][C]0.884379969308824[/C][/ROW]
[ROW][C]31[/C][C]0.0780872828559032[/C][C]0.156174565711806[/C][C]0.921912717144097[/C][/ROW]
[ROW][C]32[/C][C]0.0487989865266399[/C][C]0.0975979730532797[/C][C]0.95120101347336[/C][/ROW]
[ROW][C]33[/C][C]0.0352801939426494[/C][C]0.0705603878852988[/C][C]0.96471980605735[/C][/ROW]
[ROW][C]34[/C][C]0.0371975284142834[/C][C]0.0743950568285668[/C][C]0.962802471585717[/C][/ROW]
[ROW][C]35[/C][C]0.12827296952074[/C][C]0.25654593904148[/C][C]0.87172703047926[/C][/ROW]
[ROW][C]36[/C][C]0.781256994601329[/C][C]0.437486010797342[/C][C]0.218743005398671[/C][/ROW]
[ROW][C]37[/C][C]0.750415481664047[/C][C]0.499169036671907[/C][C]0.249584518335953[/C][/ROW]
[ROW][C]38[/C][C]0.716515536829269[/C][C]0.566968926341463[/C][C]0.283484463170731[/C][/ROW]
[ROW][C]39[/C][C]0.813087043343334[/C][C]0.373825913313333[/C][C]0.186912956656666[/C][/ROW]
[ROW][C]40[/C][C]0.97601091162152[/C][C]0.0479781767569609[/C][C]0.0239890883784804[/C][/ROW]
[ROW][C]41[/C][C]0.99963230612048[/C][C]0.000735387759042033[/C][C]0.000367693879521017[/C][/ROW]
[ROW][C]42[/C][C]0.999210391142256[/C][C]0.00157921771548736[/C][C]0.00078960885774368[/C][/ROW]
[ROW][C]43[/C][C]0.9991309805363[/C][C]0.00173803892739876[/C][C]0.000869019463699378[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58133&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58133&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.04324201559157320.08648403118314650.956757984408427
180.01242042026212250.02484084052424510.987579579737877
190.1410496681555280.2820993363110560.858950331844472
200.1447219860305960.2894439720611910.855278013969404
210.1124583042990740.2249166085981490.887541695700926
220.1002765186635540.2005530373271090.899723481336446
230.10533071214270.21066142428540.8946692878573
240.2285569820152820.4571139640305640.771443017984718
250.307524874224070.615049748448140.69247512577593
260.2991935247696130.5983870495392260.700806475230387
270.2424448033862220.4848896067724450.757555196613778
280.1699310595010390.3398621190020770.830068940498961
290.1623990002433280.3247980004866560.837600999756672
300.1156200306911760.2312400613823530.884379969308824
310.07808728285590320.1561745657118060.921912717144097
320.04879898652663990.09759797305327970.95120101347336
330.03528019394264940.07056038788529880.96471980605735
340.03719752841428340.07439505682856680.962802471585717
350.128272969520740.256545939041480.87172703047926
360.7812569946013290.4374860107973420.218743005398671
370.7504154816640470.4991690366719070.249584518335953
380.7165155368292690.5669689263414630.283484463170731
390.8130870433433340.3738259133133330.186912956656666
400.976010911621520.04797817675696090.0239890883784804
410.999632306120480.0007353877590420330.000367693879521017
420.9992103911422560.001579217715487360.00078960885774368
430.99913098053630.001738038927398760.000869019463699378







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.111111111111111NOK
5% type I error level50.185185185185185NOK
10% type I error level90.333333333333333NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58133&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.111111111111111NOK
5% type I error level50.185185185185185NOK
10% type I error level90.333333333333333NOK



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')
}