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 computationMon, 23 Nov 2009 09:53:34 -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/23/t1258995388moli460nc2gglrx.htm/, Retrieved Fri, 03 May 2024 04:36:27 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58816, Retrieved Fri, 03 May 2024 04:36:27 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKVN WS7
Estimated Impact212
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:10:54] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [Workshop 7: Multi...] [2009-11-19 18:53:44] [1433a524809eda02c3198b3ae6eebb69]
-    D        [Multiple Regression] [Multiple Regressi...] [2009-11-23 16:53:34] [f1100e00818182135823a11ccbd0f3b9] [Current]
-    D          [Multiple Regression] [Multiple Regressi...] [2009-11-23 17:09:30] [1b4c3bbe3f2ba180dd536c5a6a81a8e6]
-    D            [Multiple Regression] [Multiple Linear r...] [2009-12-14 08:31:37] [1b4c3bbe3f2ba180dd536c5a6a81a8e6]
Feedback Forum

Post a new message
Dataseries X:
9283	4359	8947	9627	8700	9487
8829	5382	9283	8947	9627	8700
9947	4459	8829	9283	8947	9627
9628	6398	9947	8829	9283	8947
9318	4596	9628	9947	8829	9283
9605	3024	9318	9628	9947	8829
8640	1887	9605	9318	9628	9947
9214	2070	8640	9605	9318	9628
9567	1351	9214	8640	9605	9318
8547	2218	9567	9214	8640	9605
9185	2461	8547	9567	9214	8640
9470	3028	9185	8547	9567	9214
9123	4784	9470	9185	8547	9567
9278	4975	9123	9470	9185	8547
10170	4607	9278	9123	9470	9185
9434	6249	10170	9278	9123	9470
9655	4809	9434	10170	9278	9123
9429	3157	9655	9434	10170	9278
8739	1910	9429	9655	9434	10170
9552	2228	8739	9429	9655	9434
9687	1594	9552	8739	9429	9655
9019	2467	9687	9552	8739	9429
9672	2222	9019	9687	9552	8739
9206	3607	9672	9019	9687	9552
9069	4685	9206	9672	9019	9687
9788	4962	9069	9206	9672	9019
10312	5770	9788	9069	9206	9672
10105	5480	10312	9788	9069	9206
9863	5000	10105	10312	9788	9069
9656	3228	9863	10105	10312	9788
9295	1993	9656	9863	10105	10312
9946	2288	9295	9656	9863	10105
9701	1580	9946	9295	9656	9863
9049	2111	9701	9946	9295	9656
10190	2192	9049	9701	9946	9295
9706	3601	10190	9049	9701	9946
9765	4665	9706	10190	9049	9701
9893	4876	9765	9706	10190	9049
9994	5813	9893	9765	9706	10190
10433	5589	9994	9893	9765	9706
10073	5331	10433	9994	9893	9765
10112	3075	10073	10433	9994	9893
9266	2002	10112	10073	10433	9994
9820	2306	9266	10112	10073	10433
10097	1507	9820	9266	10112	10073
9115	1992	10097	9820	9266	10112
10411	2487	9115	10097	9820	9266
9678	3490	10411	9115	10097	9820
10408	4647	9678	10411	9115	10097
10153	5594	10408	9678	10411	9115
10368	5611	10153	10408	9678	10411
10581	5788	10368	10153	10408	9678
10597	6204	10581	10368	10153	10408
10680	3013	10597	10581	10368	10153
9738	1931	10680	10597	10581	10368
9556	2549	9738	10680	10597	10581




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 15001.1563321387 -0.243095727578729X[t] -0.144308864506109Y1[t] -0.297268824851053Y2[t] -0.0695082353211447Y3[t] -0.0916911246535985Y4[t] + 612.266107919829M1[t] + 651.014606916987M2[t] + 1313.99791057461M3[t] + 1387.23905775529M4[t] + 1213.66646546364M5[t] + 657.42153840102M6[t] -414.104936507337M7[t] -13.3237391022010M8[t] -134.219423617270M9[t] -670.981487522302M10[t] + 161.176030302722M11[t] + 32.9594911392901t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  15001.1563321387 -0.243095727578729X[t] -0.144308864506109Y1[t] -0.297268824851053Y2[t] -0.0695082353211447Y3[t] -0.0916911246535985Y4[t] +  612.266107919829M1[t] +  651.014606916987M2[t] +  1313.99791057461M3[t] +  1387.23905775529M4[t] +  1213.66646546364M5[t] +  657.42153840102M6[t] -414.104936507337M7[t] -13.3237391022010M8[t] -134.219423617270M9[t] -670.981487522302M10[t] +  161.176030302722M11[t] +  32.9594911392901t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58816&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  15001.1563321387 -0.243095727578729X[t] -0.144308864506109Y1[t] -0.297268824851053Y2[t] -0.0695082353211447Y3[t] -0.0916911246535985Y4[t] +  612.266107919829M1[t] +  651.014606916987M2[t] +  1313.99791057461M3[t] +  1387.23905775529M4[t] +  1213.66646546364M5[t] +  657.42153840102M6[t] -414.104936507337M7[t] -13.3237391022010M8[t] -134.219423617270M9[t] -670.981487522302M10[t] +  161.176030302722M11[t] +  32.9594911392901t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58816&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58816&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] = + 15001.1563321387 -0.243095727578729X[t] -0.144308864506109Y1[t] -0.297268824851053Y2[t] -0.0695082353211447Y3[t] -0.0916911246535985Y4[t] + 612.266107919829M1[t] + 651.014606916987M2[t] + 1313.99791057461M3[t] + 1387.23905775529M4[t] + 1213.66646546364M5[t] + 657.42153840102M6[t] -414.104936507337M7[t] -13.3237391022010M8[t] -134.219423617270M9[t] -670.981487522302M10[t] + 161.176030302722M11[t] + 32.9594911392901t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)15001.15633213873340.8651724.49026.4e-053.2e-05
X-0.2430957275787290.135592-1.79280.0809610.04048
Y1-0.1443088645061090.180172-0.8010.428140.21407
Y2-0.2972688248510530.171246-1.73590.0906820.045341
Y3-0.06950823532114470.163475-0.42520.6730960.336548
Y4-0.09169112465359850.169492-0.5410.5916810.29584
M1612.266107919829348.625841.75620.0871070.043554
M2651.014606916987381.811881.70510.0963460.048173
M31313.99791057461351.4306063.7390.0006070.000304
M41387.23905775529417.9025653.31950.0019970.000999
M51213.66646546364396.7818223.05880.004060.00203
M6657.42153840102254.3169822.5850.01370.00685
M7-414.104936507337304.502418-1.35990.1818630.090932
M8-13.3237391022010254.745921-0.05230.9585620.479281
M9-134.219423617270298.130636-0.45020.6551220.327561
M10-670.981487522302250.204898-2.68170.0107780.005389
M11161.176030302722259.6089750.62080.538410.269205
t32.95949113929017.4067884.44997.3e-053.6e-05

\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) & 15001.1563321387 & 3340.865172 & 4.4902 & 6.4e-05 & 3.2e-05 \tabularnewline
X & -0.243095727578729 & 0.135592 & -1.7928 & 0.080961 & 0.04048 \tabularnewline
Y1 & -0.144308864506109 & 0.180172 & -0.801 & 0.42814 & 0.21407 \tabularnewline
Y2 & -0.297268824851053 & 0.171246 & -1.7359 & 0.090682 & 0.045341 \tabularnewline
Y3 & -0.0695082353211447 & 0.163475 & -0.4252 & 0.673096 & 0.336548 \tabularnewline
Y4 & -0.0916911246535985 & 0.169492 & -0.541 & 0.591681 & 0.29584 \tabularnewline
M1 & 612.266107919829 & 348.62584 & 1.7562 & 0.087107 & 0.043554 \tabularnewline
M2 & 651.014606916987 & 381.81188 & 1.7051 & 0.096346 & 0.048173 \tabularnewline
M3 & 1313.99791057461 & 351.430606 & 3.739 & 0.000607 & 0.000304 \tabularnewline
M4 & 1387.23905775529 & 417.902565 & 3.3195 & 0.001997 & 0.000999 \tabularnewline
M5 & 1213.66646546364 & 396.781822 & 3.0588 & 0.00406 & 0.00203 \tabularnewline
M6 & 657.42153840102 & 254.316982 & 2.585 & 0.0137 & 0.00685 \tabularnewline
M7 & -414.104936507337 & 304.502418 & -1.3599 & 0.181863 & 0.090932 \tabularnewline
M8 & -13.3237391022010 & 254.745921 & -0.0523 & 0.958562 & 0.479281 \tabularnewline
M9 & -134.219423617270 & 298.130636 & -0.4502 & 0.655122 & 0.327561 \tabularnewline
M10 & -670.981487522302 & 250.204898 & -2.6817 & 0.010778 & 0.005389 \tabularnewline
M11 & 161.176030302722 & 259.608975 & 0.6208 & 0.53841 & 0.269205 \tabularnewline
t & 32.9594911392901 & 7.406788 & 4.4499 & 7.3e-05 & 3.6e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58816&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]15001.1563321387[/C][C]3340.865172[/C][C]4.4902[/C][C]6.4e-05[/C][C]3.2e-05[/C][/ROW]
[ROW][C]X[/C][C]-0.243095727578729[/C][C]0.135592[/C][C]-1.7928[/C][C]0.080961[/C][C]0.04048[/C][/ROW]
[ROW][C]Y1[/C][C]-0.144308864506109[/C][C]0.180172[/C][C]-0.801[/C][C]0.42814[/C][C]0.21407[/C][/ROW]
[ROW][C]Y2[/C][C]-0.297268824851053[/C][C]0.171246[/C][C]-1.7359[/C][C]0.090682[/C][C]0.045341[/C][/ROW]
[ROW][C]Y3[/C][C]-0.0695082353211447[/C][C]0.163475[/C][C]-0.4252[/C][C]0.673096[/C][C]0.336548[/C][/ROW]
[ROW][C]Y4[/C][C]-0.0916911246535985[/C][C]0.169492[/C][C]-0.541[/C][C]0.591681[/C][C]0.29584[/C][/ROW]
[ROW][C]M1[/C][C]612.266107919829[/C][C]348.62584[/C][C]1.7562[/C][C]0.087107[/C][C]0.043554[/C][/ROW]
[ROW][C]M2[/C][C]651.014606916987[/C][C]381.81188[/C][C]1.7051[/C][C]0.096346[/C][C]0.048173[/C][/ROW]
[ROW][C]M3[/C][C]1313.99791057461[/C][C]351.430606[/C][C]3.739[/C][C]0.000607[/C][C]0.000304[/C][/ROW]
[ROW][C]M4[/C][C]1387.23905775529[/C][C]417.902565[/C][C]3.3195[/C][C]0.001997[/C][C]0.000999[/C][/ROW]
[ROW][C]M5[/C][C]1213.66646546364[/C][C]396.781822[/C][C]3.0588[/C][C]0.00406[/C][C]0.00203[/C][/ROW]
[ROW][C]M6[/C][C]657.42153840102[/C][C]254.316982[/C][C]2.585[/C][C]0.0137[/C][C]0.00685[/C][/ROW]
[ROW][C]M7[/C][C]-414.104936507337[/C][C]304.502418[/C][C]-1.3599[/C][C]0.181863[/C][C]0.090932[/C][/ROW]
[ROW][C]M8[/C][C]-13.3237391022010[/C][C]254.745921[/C][C]-0.0523[/C][C]0.958562[/C][C]0.479281[/C][/ROW]
[ROW][C]M9[/C][C]-134.219423617270[/C][C]298.130636[/C][C]-0.4502[/C][C]0.655122[/C][C]0.327561[/C][/ROW]
[ROW][C]M10[/C][C]-670.981487522302[/C][C]250.204898[/C][C]-2.6817[/C][C]0.010778[/C][C]0.005389[/C][/ROW]
[ROW][C]M11[/C][C]161.176030302722[/C][C]259.608975[/C][C]0.6208[/C][C]0.53841[/C][C]0.269205[/C][/ROW]
[ROW][C]t[/C][C]32.9594911392901[/C][C]7.406788[/C][C]4.4499[/C][C]7.3e-05[/C][C]3.6e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58816&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58816&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)15001.15633213873340.8651724.49026.4e-053.2e-05
X-0.2430957275787290.135592-1.79280.0809610.04048
Y1-0.1443088645061090.180172-0.8010.428140.21407
Y2-0.2972688248510530.171246-1.73590.0906820.045341
Y3-0.06950823532114470.163475-0.42520.6730960.336548
Y4-0.09169112465359850.169492-0.5410.5916810.29584
M1612.266107919829348.625841.75620.0871070.043554
M2651.014606916987381.811881.70510.0963460.048173
M31313.99791057461351.4306063.7390.0006070.000304
M41387.23905775529417.9025653.31950.0019970.000999
M51213.66646546364396.7818223.05880.004060.00203
M6657.42153840102254.3169822.5850.01370.00685
M7-414.104936507337304.502418-1.35990.1818630.090932
M8-13.3237391022010254.745921-0.05230.9585620.479281
M9-134.219423617270298.130636-0.45020.6551220.327561
M10-670.981487522302250.204898-2.68170.0107780.005389
M11161.176030302722259.6089750.62080.538410.269205
t32.95949113929017.4067884.44997.3e-053.6e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.927357690488603
R-squared0.859992286108355
Adjusted R-squared0.797357256209461
F-TEST (value)13.7302127499031
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value2.50983678284911e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation230.548256194616
Sum Squared Residuals2019794.94050637

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.927357690488603 \tabularnewline
R-squared & 0.859992286108355 \tabularnewline
Adjusted R-squared & 0.797357256209461 \tabularnewline
F-TEST (value) & 13.7302127499031 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 2.50983678284911e-11 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 230.548256194616 \tabularnewline
Sum Squared Residuals & 2019794.94050637 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58816&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.927357690488603[/C][/ROW]
[ROW][C]R-squared[/C][C]0.859992286108355[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.797357256209461[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]13.7302127499031[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/C][/ROW]
[ROW][C]p-value[/C][C]2.50983678284911e-11[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]230.548256194616[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2019794.94050637[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58816&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58816&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.927357690488603
R-squared0.859992286108355
Adjusted R-squared0.797357256209461
F-TEST (value)13.7302127499031
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value2.50983678284911e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation230.548256194616
Sum Squared Residuals2019794.94050637







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
192838959.19392022221323.806079777788
288298943.59678443-114.596784429997
399479791.8187625824155.181237417610
496289439.2747187883188.725281211707
593189451.15662127897-133.156621278974
696059413.49973573748191.500264262525
786408621.7317355207218.2682644792815
892149115.7248291484398.2751708515681
995679415.08097676197151.919023238034
1085478519.7011678596327.2988321403733
1191859416.5892698625-231.589269862504
1294709284.51548633558185.484513664421
1391239310.61088415209-187.610884152085
1492789350.41984423385-72.4198442338461
151017010138.297490409131.7025095909239
1694349668.52215618357-234.522156183571
1796559740.05747903397-85.0574790339656
1894299729.05031087745-300.050310877448
1987398929.9106704907-190.910670490708
2095529505.2261363297346.7738636702739
2196879654.6501391767632.3498608232441
2290198746.14662146586272.853378534144
2396729733.84579451704-61.8457945170388
2492069289.35506302335-83.3550630233505
2590699579.708055351-510.708055350998
2697889758.2369093699629.7630906300377
271031210167.2426449688144.757355031184
281010510106.8376065451-1.83760654508185
2998639919.59878824297-56.5987882429714
3096569821.18813960958-165.188139609575
3192959150.99742535995144.002574640050
3299469662.45607685053283.543923149465
3397019796.5780904559-95.578090455899
3490499049.59788892604-0.597888926040874
351019010049.7950205089140.204979491148
3697069565.5580560926140.441943907405
3797659750.5752572433714.4247427566306
3898939886.827653855476.17234614452517
39999410248.0017692538-254.001769253801
401043310396.307764103736.6922358962526
411007310210.7307873629-137.730787362899
421011210138.5626942467-26.5626942466699
4392669422.45123850422-156.451238504224
4498209877.55320206038-57.5532020603755
451009710185.6907936054-88.690793605379
4691159414.55432174848-299.554321748477
471041110257.7699151116153.230084888394
4896789920.57139454847-242.571394548475
491040810047.9118830313360.088116968665
501015310001.9188081107151.081191889280
511036810445.6393327859-77.6393327859171
521058110570.057754379310.9422456206928
531059710184.4563240812412.54367591881
541068010379.6991195288300.300880471169
5597389552.9089301244185.091069875601
5695569927.03975561093-371.039755610931

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 9283 & 8959.19392022221 & 323.806079777788 \tabularnewline
2 & 8829 & 8943.59678443 & -114.596784429997 \tabularnewline
3 & 9947 & 9791.8187625824 & 155.181237417610 \tabularnewline
4 & 9628 & 9439.2747187883 & 188.725281211707 \tabularnewline
5 & 9318 & 9451.15662127897 & -133.156621278974 \tabularnewline
6 & 9605 & 9413.49973573748 & 191.500264262525 \tabularnewline
7 & 8640 & 8621.73173552072 & 18.2682644792815 \tabularnewline
8 & 9214 & 9115.72482914843 & 98.2751708515681 \tabularnewline
9 & 9567 & 9415.08097676197 & 151.919023238034 \tabularnewline
10 & 8547 & 8519.70116785963 & 27.2988321403733 \tabularnewline
11 & 9185 & 9416.5892698625 & -231.589269862504 \tabularnewline
12 & 9470 & 9284.51548633558 & 185.484513664421 \tabularnewline
13 & 9123 & 9310.61088415209 & -187.610884152085 \tabularnewline
14 & 9278 & 9350.41984423385 & -72.4198442338461 \tabularnewline
15 & 10170 & 10138.2974904091 & 31.7025095909239 \tabularnewline
16 & 9434 & 9668.52215618357 & -234.522156183571 \tabularnewline
17 & 9655 & 9740.05747903397 & -85.0574790339656 \tabularnewline
18 & 9429 & 9729.05031087745 & -300.050310877448 \tabularnewline
19 & 8739 & 8929.9106704907 & -190.910670490708 \tabularnewline
20 & 9552 & 9505.22613632973 & 46.7738636702739 \tabularnewline
21 & 9687 & 9654.65013917676 & 32.3498608232441 \tabularnewline
22 & 9019 & 8746.14662146586 & 272.853378534144 \tabularnewline
23 & 9672 & 9733.84579451704 & -61.8457945170388 \tabularnewline
24 & 9206 & 9289.35506302335 & -83.3550630233505 \tabularnewline
25 & 9069 & 9579.708055351 & -510.708055350998 \tabularnewline
26 & 9788 & 9758.23690936996 & 29.7630906300377 \tabularnewline
27 & 10312 & 10167.2426449688 & 144.757355031184 \tabularnewline
28 & 10105 & 10106.8376065451 & -1.83760654508185 \tabularnewline
29 & 9863 & 9919.59878824297 & -56.5987882429714 \tabularnewline
30 & 9656 & 9821.18813960958 & -165.188139609575 \tabularnewline
31 & 9295 & 9150.99742535995 & 144.002574640050 \tabularnewline
32 & 9946 & 9662.45607685053 & 283.543923149465 \tabularnewline
33 & 9701 & 9796.5780904559 & -95.578090455899 \tabularnewline
34 & 9049 & 9049.59788892604 & -0.597888926040874 \tabularnewline
35 & 10190 & 10049.7950205089 & 140.204979491148 \tabularnewline
36 & 9706 & 9565.5580560926 & 140.441943907405 \tabularnewline
37 & 9765 & 9750.57525724337 & 14.4247427566306 \tabularnewline
38 & 9893 & 9886.82765385547 & 6.17234614452517 \tabularnewline
39 & 9994 & 10248.0017692538 & -254.001769253801 \tabularnewline
40 & 10433 & 10396.3077641037 & 36.6922358962526 \tabularnewline
41 & 10073 & 10210.7307873629 & -137.730787362899 \tabularnewline
42 & 10112 & 10138.5626942467 & -26.5626942466699 \tabularnewline
43 & 9266 & 9422.45123850422 & -156.451238504224 \tabularnewline
44 & 9820 & 9877.55320206038 & -57.5532020603755 \tabularnewline
45 & 10097 & 10185.6907936054 & -88.690793605379 \tabularnewline
46 & 9115 & 9414.55432174848 & -299.554321748477 \tabularnewline
47 & 10411 & 10257.7699151116 & 153.230084888394 \tabularnewline
48 & 9678 & 9920.57139454847 & -242.571394548475 \tabularnewline
49 & 10408 & 10047.9118830313 & 360.088116968665 \tabularnewline
50 & 10153 & 10001.9188081107 & 151.081191889280 \tabularnewline
51 & 10368 & 10445.6393327859 & -77.6393327859171 \tabularnewline
52 & 10581 & 10570.0577543793 & 10.9422456206928 \tabularnewline
53 & 10597 & 10184.4563240812 & 412.54367591881 \tabularnewline
54 & 10680 & 10379.6991195288 & 300.300880471169 \tabularnewline
55 & 9738 & 9552.9089301244 & 185.091069875601 \tabularnewline
56 & 9556 & 9927.03975561093 & -371.039755610931 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58816&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]9283[/C][C]8959.19392022221[/C][C]323.806079777788[/C][/ROW]
[ROW][C]2[/C][C]8829[/C][C]8943.59678443[/C][C]-114.596784429997[/C][/ROW]
[ROW][C]3[/C][C]9947[/C][C]9791.8187625824[/C][C]155.181237417610[/C][/ROW]
[ROW][C]4[/C][C]9628[/C][C]9439.2747187883[/C][C]188.725281211707[/C][/ROW]
[ROW][C]5[/C][C]9318[/C][C]9451.15662127897[/C][C]-133.156621278974[/C][/ROW]
[ROW][C]6[/C][C]9605[/C][C]9413.49973573748[/C][C]191.500264262525[/C][/ROW]
[ROW][C]7[/C][C]8640[/C][C]8621.73173552072[/C][C]18.2682644792815[/C][/ROW]
[ROW][C]8[/C][C]9214[/C][C]9115.72482914843[/C][C]98.2751708515681[/C][/ROW]
[ROW][C]9[/C][C]9567[/C][C]9415.08097676197[/C][C]151.919023238034[/C][/ROW]
[ROW][C]10[/C][C]8547[/C][C]8519.70116785963[/C][C]27.2988321403733[/C][/ROW]
[ROW][C]11[/C][C]9185[/C][C]9416.5892698625[/C][C]-231.589269862504[/C][/ROW]
[ROW][C]12[/C][C]9470[/C][C]9284.51548633558[/C][C]185.484513664421[/C][/ROW]
[ROW][C]13[/C][C]9123[/C][C]9310.61088415209[/C][C]-187.610884152085[/C][/ROW]
[ROW][C]14[/C][C]9278[/C][C]9350.41984423385[/C][C]-72.4198442338461[/C][/ROW]
[ROW][C]15[/C][C]10170[/C][C]10138.2974904091[/C][C]31.7025095909239[/C][/ROW]
[ROW][C]16[/C][C]9434[/C][C]9668.52215618357[/C][C]-234.522156183571[/C][/ROW]
[ROW][C]17[/C][C]9655[/C][C]9740.05747903397[/C][C]-85.0574790339656[/C][/ROW]
[ROW][C]18[/C][C]9429[/C][C]9729.05031087745[/C][C]-300.050310877448[/C][/ROW]
[ROW][C]19[/C][C]8739[/C][C]8929.9106704907[/C][C]-190.910670490708[/C][/ROW]
[ROW][C]20[/C][C]9552[/C][C]9505.22613632973[/C][C]46.7738636702739[/C][/ROW]
[ROW][C]21[/C][C]9687[/C][C]9654.65013917676[/C][C]32.3498608232441[/C][/ROW]
[ROW][C]22[/C][C]9019[/C][C]8746.14662146586[/C][C]272.853378534144[/C][/ROW]
[ROW][C]23[/C][C]9672[/C][C]9733.84579451704[/C][C]-61.8457945170388[/C][/ROW]
[ROW][C]24[/C][C]9206[/C][C]9289.35506302335[/C][C]-83.3550630233505[/C][/ROW]
[ROW][C]25[/C][C]9069[/C][C]9579.708055351[/C][C]-510.708055350998[/C][/ROW]
[ROW][C]26[/C][C]9788[/C][C]9758.23690936996[/C][C]29.7630906300377[/C][/ROW]
[ROW][C]27[/C][C]10312[/C][C]10167.2426449688[/C][C]144.757355031184[/C][/ROW]
[ROW][C]28[/C][C]10105[/C][C]10106.8376065451[/C][C]-1.83760654508185[/C][/ROW]
[ROW][C]29[/C][C]9863[/C][C]9919.59878824297[/C][C]-56.5987882429714[/C][/ROW]
[ROW][C]30[/C][C]9656[/C][C]9821.18813960958[/C][C]-165.188139609575[/C][/ROW]
[ROW][C]31[/C][C]9295[/C][C]9150.99742535995[/C][C]144.002574640050[/C][/ROW]
[ROW][C]32[/C][C]9946[/C][C]9662.45607685053[/C][C]283.543923149465[/C][/ROW]
[ROW][C]33[/C][C]9701[/C][C]9796.5780904559[/C][C]-95.578090455899[/C][/ROW]
[ROW][C]34[/C][C]9049[/C][C]9049.59788892604[/C][C]-0.597888926040874[/C][/ROW]
[ROW][C]35[/C][C]10190[/C][C]10049.7950205089[/C][C]140.204979491148[/C][/ROW]
[ROW][C]36[/C][C]9706[/C][C]9565.5580560926[/C][C]140.441943907405[/C][/ROW]
[ROW][C]37[/C][C]9765[/C][C]9750.57525724337[/C][C]14.4247427566306[/C][/ROW]
[ROW][C]38[/C][C]9893[/C][C]9886.82765385547[/C][C]6.17234614452517[/C][/ROW]
[ROW][C]39[/C][C]9994[/C][C]10248.0017692538[/C][C]-254.001769253801[/C][/ROW]
[ROW][C]40[/C][C]10433[/C][C]10396.3077641037[/C][C]36.6922358962526[/C][/ROW]
[ROW][C]41[/C][C]10073[/C][C]10210.7307873629[/C][C]-137.730787362899[/C][/ROW]
[ROW][C]42[/C][C]10112[/C][C]10138.5626942467[/C][C]-26.5626942466699[/C][/ROW]
[ROW][C]43[/C][C]9266[/C][C]9422.45123850422[/C][C]-156.451238504224[/C][/ROW]
[ROW][C]44[/C][C]9820[/C][C]9877.55320206038[/C][C]-57.5532020603755[/C][/ROW]
[ROW][C]45[/C][C]10097[/C][C]10185.6907936054[/C][C]-88.690793605379[/C][/ROW]
[ROW][C]46[/C][C]9115[/C][C]9414.55432174848[/C][C]-299.554321748477[/C][/ROW]
[ROW][C]47[/C][C]10411[/C][C]10257.7699151116[/C][C]153.230084888394[/C][/ROW]
[ROW][C]48[/C][C]9678[/C][C]9920.57139454847[/C][C]-242.571394548475[/C][/ROW]
[ROW][C]49[/C][C]10408[/C][C]10047.9118830313[/C][C]360.088116968665[/C][/ROW]
[ROW][C]50[/C][C]10153[/C][C]10001.9188081107[/C][C]151.081191889280[/C][/ROW]
[ROW][C]51[/C][C]10368[/C][C]10445.6393327859[/C][C]-77.6393327859171[/C][/ROW]
[ROW][C]52[/C][C]10581[/C][C]10570.0577543793[/C][C]10.9422456206928[/C][/ROW]
[ROW][C]53[/C][C]10597[/C][C]10184.4563240812[/C][C]412.54367591881[/C][/ROW]
[ROW][C]54[/C][C]10680[/C][C]10379.6991195288[/C][C]300.300880471169[/C][/ROW]
[ROW][C]55[/C][C]9738[/C][C]9552.9089301244[/C][C]185.091069875601[/C][/ROW]
[ROW][C]56[/C][C]9556[/C][C]9927.03975561093[/C][C]-371.039755610931[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58816&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58816&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
192838959.19392022221323.806079777788
288298943.59678443-114.596784429997
399479791.8187625824155.181237417610
496289439.2747187883188.725281211707
593189451.15662127897-133.156621278974
696059413.49973573748191.500264262525
786408621.7317355207218.2682644792815
892149115.7248291484398.2751708515681
995679415.08097676197151.919023238034
1085478519.7011678596327.2988321403733
1191859416.5892698625-231.589269862504
1294709284.51548633558185.484513664421
1391239310.61088415209-187.610884152085
1492789350.41984423385-72.4198442338461
151017010138.297490409131.7025095909239
1694349668.52215618357-234.522156183571
1796559740.05747903397-85.0574790339656
1894299729.05031087745-300.050310877448
1987398929.9106704907-190.910670490708
2095529505.2261363297346.7738636702739
2196879654.6501391767632.3498608232441
2290198746.14662146586272.853378534144
2396729733.84579451704-61.8457945170388
2492069289.35506302335-83.3550630233505
2590699579.708055351-510.708055350998
2697889758.2369093699629.7630906300377
271031210167.2426449688144.757355031184
281010510106.8376065451-1.83760654508185
2998639919.59878824297-56.5987882429714
3096569821.18813960958-165.188139609575
3192959150.99742535995144.002574640050
3299469662.45607685053283.543923149465
3397019796.5780904559-95.578090455899
3490499049.59788892604-0.597888926040874
351019010049.7950205089140.204979491148
3697069565.5580560926140.441943907405
3797659750.5752572433714.4247427566306
3898939886.827653855476.17234614452517
39999410248.0017692538-254.001769253801
401043310396.307764103736.6922358962526
411007310210.7307873629-137.730787362899
421011210138.5626942467-26.5626942466699
4392669422.45123850422-156.451238504224
4498209877.55320206038-57.5532020603755
451009710185.6907936054-88.690793605379
4691159414.55432174848-299.554321748477
471041110257.7699151116153.230084888394
4896789920.57139454847-242.571394548475
491040810047.9118830313360.088116968665
501015310001.9188081107151.081191889280
511036810445.6393327859-77.6393327859171
521058110570.057754379310.9422456206928
531059710184.4563240812412.54367591881
541068010379.6991195288300.300880471169
5597389552.9089301244185.091069875601
5695569927.03975561093-371.039755610931







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.1251990700029690.2503981400059380.874800929997031
220.06106850906830730.1221370181366150.938931490931693
230.1178847813229210.2357695626458410.88211521867708
240.07775495996465250.1555099199293050.922245040035348
250.2027299837487800.4054599674975590.79727001625122
260.3820263763520.7640527527040.617973623648
270.5047323622455130.9905352755089740.495267637754487
280.4259803049862330.8519606099724650.574019695013767
290.3417902312483070.6835804624966130.658209768751693
300.2695432355945730.5390864711891460.730456764405427
310.2222032691934610.4444065383869230.777796730806539
320.4942610859525830.9885221719051670.505738914047417
330.3652287165052730.7304574330105460.634771283494727
340.801965314857830.3960693702843410.198034685142170
350.7087516719107860.5824966561784280.291248328089214

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.125199070002969 & 0.250398140005938 & 0.874800929997031 \tabularnewline
22 & 0.0610685090683073 & 0.122137018136615 & 0.938931490931693 \tabularnewline
23 & 0.117884781322921 & 0.235769562645841 & 0.88211521867708 \tabularnewline
24 & 0.0777549599646525 & 0.155509919929305 & 0.922245040035348 \tabularnewline
25 & 0.202729983748780 & 0.405459967497559 & 0.79727001625122 \tabularnewline
26 & 0.382026376352 & 0.764052752704 & 0.617973623648 \tabularnewline
27 & 0.504732362245513 & 0.990535275508974 & 0.495267637754487 \tabularnewline
28 & 0.425980304986233 & 0.851960609972465 & 0.574019695013767 \tabularnewline
29 & 0.341790231248307 & 0.683580462496613 & 0.658209768751693 \tabularnewline
30 & 0.269543235594573 & 0.539086471189146 & 0.730456764405427 \tabularnewline
31 & 0.222203269193461 & 0.444406538386923 & 0.777796730806539 \tabularnewline
32 & 0.494261085952583 & 0.988522171905167 & 0.505738914047417 \tabularnewline
33 & 0.365228716505273 & 0.730457433010546 & 0.634771283494727 \tabularnewline
34 & 0.80196531485783 & 0.396069370284341 & 0.198034685142170 \tabularnewline
35 & 0.708751671910786 & 0.582496656178428 & 0.291248328089214 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58816&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]21[/C][C]0.125199070002969[/C][C]0.250398140005938[/C][C]0.874800929997031[/C][/ROW]
[ROW][C]22[/C][C]0.0610685090683073[/C][C]0.122137018136615[/C][C]0.938931490931693[/C][/ROW]
[ROW][C]23[/C][C]0.117884781322921[/C][C]0.235769562645841[/C][C]0.88211521867708[/C][/ROW]
[ROW][C]24[/C][C]0.0777549599646525[/C][C]0.155509919929305[/C][C]0.922245040035348[/C][/ROW]
[ROW][C]25[/C][C]0.202729983748780[/C][C]0.405459967497559[/C][C]0.79727001625122[/C][/ROW]
[ROW][C]26[/C][C]0.382026376352[/C][C]0.764052752704[/C][C]0.617973623648[/C][/ROW]
[ROW][C]27[/C][C]0.504732362245513[/C][C]0.990535275508974[/C][C]0.495267637754487[/C][/ROW]
[ROW][C]28[/C][C]0.425980304986233[/C][C]0.851960609972465[/C][C]0.574019695013767[/C][/ROW]
[ROW][C]29[/C][C]0.341790231248307[/C][C]0.683580462496613[/C][C]0.658209768751693[/C][/ROW]
[ROW][C]30[/C][C]0.269543235594573[/C][C]0.539086471189146[/C][C]0.730456764405427[/C][/ROW]
[ROW][C]31[/C][C]0.222203269193461[/C][C]0.444406538386923[/C][C]0.777796730806539[/C][/ROW]
[ROW][C]32[/C][C]0.494261085952583[/C][C]0.988522171905167[/C][C]0.505738914047417[/C][/ROW]
[ROW][C]33[/C][C]0.365228716505273[/C][C]0.730457433010546[/C][C]0.634771283494727[/C][/ROW]
[ROW][C]34[/C][C]0.80196531485783[/C][C]0.396069370284341[/C][C]0.198034685142170[/C][/ROW]
[ROW][C]35[/C][C]0.708751671910786[/C][C]0.582496656178428[/C][C]0.291248328089214[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58816&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58816&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
210.1251990700029690.2503981400059380.874800929997031
220.06106850906830730.1221370181366150.938931490931693
230.1178847813229210.2357695626458410.88211521867708
240.07775495996465250.1555099199293050.922245040035348
250.2027299837487800.4054599674975590.79727001625122
260.3820263763520.7640527527040.617973623648
270.5047323622455130.9905352755089740.495267637754487
280.4259803049862330.8519606099724650.574019695013767
290.3417902312483070.6835804624966130.658209768751693
300.2695432355945730.5390864711891460.730456764405427
310.2222032691934610.4444065383869230.777796730806539
320.4942610859525830.9885221719051670.505738914047417
330.3652287165052730.7304574330105460.634771283494727
340.801965314857830.3960693702843410.198034685142170
350.7087516719107860.5824966561784280.291248328089214







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=58816&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=58816&T=6

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