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:55:26 -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/t12587253580g6zusr971c5fr0.htm/, Retrieved Fri, 19 Apr 2024 16:13:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58163, Retrieved Fri, 19 Apr 2024 16:13:34 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsshwws7
Estimated Impact133
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [] [2009-11-20 13:55:26] [efdfe680cd785c4af09f858b30f777ec] [Current]
-   PD        [Multiple Regression] [Workshop6/module1] [2009-11-24 18:17:39] [e4f78fbd4fadb70a8ee6066dde22270d]
-   PD        [Multiple Regression] [workshop 7/module1] [2009-11-24 18:24:19] [e4f78fbd4fadb70a8ee6066dde22270d]
-   PD        [Multiple Regression] [Workshop7/module3] [2009-11-24 18:27:10] [e4f78fbd4fadb70a8ee6066dde22270d]
-   PD        [Multiple Regression] [Workshop7/module4] [2009-11-24 18:29:59] [e4f78fbd4fadb70a8ee6066dde22270d]
Feedback Forum

Post a new message
Dataseries X:
6539	2605
6699	2682
6962	2755
6981	2760
7024	2735
6940	2659
6774	2654
6671	2670
6965	2785
6969	2845
6822	2723
6878	2746
6691	2767
6837	2940
7018	2977
7167	2993
7076	2892
7171	2824
7093	2771
6971	2686
7142	2738
7047	2723
6999	2731
6650	2632
6475	2606
6437	2605
6639	2646
6422	2627
6272	2535
6232	2456
6003	2404
5673	2319
6050	2519
5977	2504
5796	2382
5752	2394
5609	2381
5839	2501
6069	2532
6006	2515
5809	2429
5797	2389
5502	2261
5568	2272
5864	2439
5764	2373
5615	2327
5615	2364
5681	2388
5915	2553
6334	2663
6494	2694
6620	2679
6578	2611
6495	2580
6538	2627
6737	2732
6651	2707
6530	2633
6563	2683




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=58163&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=58163&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58163&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
Voeding-Mannen[t] = -1163.16083712531 + 2.90769983505941`Landbouw-Mannen`[t] -50.7291223751464M1[t] -214.871464759489M2[t] -125.681135126959M3[t] -125.385774599149M4[t] + 6.32547487764123M5[t] + 182.215203958574M6[t] + 168.449455084770M7[t] + 135.077291917911M8[t] + 30.8732529973186M9[t] -3.65280901495669M10[t] + 74.1754192412731M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Voeding-Mannen[t] =  -1163.16083712531 +  2.90769983505941`Landbouw-Mannen`[t] -50.7291223751464M1[t] -214.871464759489M2[t] -125.681135126959M3[t] -125.385774599149M4[t] +  6.32547487764123M5[t] +  182.215203958574M6[t] +  168.449455084770M7[t] +  135.077291917911M8[t] +  30.8732529973186M9[t] -3.65280901495669M10[t] +  74.1754192412731M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58163&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Voeding-Mannen[t] =  -1163.16083712531 +  2.90769983505941`Landbouw-Mannen`[t] -50.7291223751464M1[t] -214.871464759489M2[t] -125.681135126959M3[t] -125.385774599149M4[t] +  6.32547487764123M5[t] +  182.215203958574M6[t] +  168.449455084770M7[t] +  135.077291917911M8[t] +  30.8732529973186M9[t] -3.65280901495669M10[t] +  74.1754192412731M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58163&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58163&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
Voeding-Mannen[t] = -1163.16083712531 + 2.90769983505941`Landbouw-Mannen`[t] -50.7291223751464M1[t] -214.871464759489M2[t] -125.681135126959M3[t] -125.385774599149M4[t] + 6.32547487764123M5[t] + 182.215203958574M6[t] + 168.449455084770M7[t] + 135.077291917911M8[t] + 30.8732529973186M9[t] -3.65280901495669M10[t] + 74.1754192412731M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-1163.16083712531348.945854-3.33340.001680.00084
`Landbouw-Mannen`2.907699835059410.13301621.859800
M1-50.7291223751464104.561894-0.48520.6298180.314909
M2-214.871464759489105.264338-2.04130.0468620.023431
M3-125.681135126959106.451279-1.18060.2436840.121842
M4-125.385774599149106.532305-1.1770.2451320.122566
M56.32547487764123105.2305710.06010.9523220.476161
M6182.215203958574104.5930791.74210.0880260.044013
M7168.449455084770104.6194681.61010.1140690.057035
M8135.077291917911104.7473251.28960.2035160.101758
M930.8732529973186105.068480.29380.7701740.385087
M10-3.65280901495669104.919016-0.03480.9723740.486187
M1174.1754192412731104.5461390.70950.481520.24076

\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) & -1163.16083712531 & 348.945854 & -3.3334 & 0.00168 & 0.00084 \tabularnewline
`Landbouw-Mannen` & 2.90769983505941 & 0.133016 & 21.8598 & 0 & 0 \tabularnewline
M1 & -50.7291223751464 & 104.561894 & -0.4852 & 0.629818 & 0.314909 \tabularnewline
M2 & -214.871464759489 & 105.264338 & -2.0413 & 0.046862 & 0.023431 \tabularnewline
M3 & -125.681135126959 & 106.451279 & -1.1806 & 0.243684 & 0.121842 \tabularnewline
M4 & -125.385774599149 & 106.532305 & -1.177 & 0.245132 & 0.122566 \tabularnewline
M5 & 6.32547487764123 & 105.230571 & 0.0601 & 0.952322 & 0.476161 \tabularnewline
M6 & 182.215203958574 & 104.593079 & 1.7421 & 0.088026 & 0.044013 \tabularnewline
M7 & 168.449455084770 & 104.619468 & 1.6101 & 0.114069 & 0.057035 \tabularnewline
M8 & 135.077291917911 & 104.747325 & 1.2896 & 0.203516 & 0.101758 \tabularnewline
M9 & 30.8732529973186 & 105.06848 & 0.2938 & 0.770174 & 0.385087 \tabularnewline
M10 & -3.65280901495669 & 104.919016 & -0.0348 & 0.972374 & 0.486187 \tabularnewline
M11 & 74.1754192412731 & 104.546139 & 0.7095 & 0.48152 & 0.24076 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58163&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]-1163.16083712531[/C][C]348.945854[/C][C]-3.3334[/C][C]0.00168[/C][C]0.00084[/C][/ROW]
[ROW][C]`Landbouw-Mannen`[/C][C]2.90769983505941[/C][C]0.133016[/C][C]21.8598[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-50.7291223751464[/C][C]104.561894[/C][C]-0.4852[/C][C]0.629818[/C][C]0.314909[/C][/ROW]
[ROW][C]M2[/C][C]-214.871464759489[/C][C]105.264338[/C][C]-2.0413[/C][C]0.046862[/C][C]0.023431[/C][/ROW]
[ROW][C]M3[/C][C]-125.681135126959[/C][C]106.451279[/C][C]-1.1806[/C][C]0.243684[/C][C]0.121842[/C][/ROW]
[ROW][C]M4[/C][C]-125.385774599149[/C][C]106.532305[/C][C]-1.177[/C][C]0.245132[/C][C]0.122566[/C][/ROW]
[ROW][C]M5[/C][C]6.32547487764123[/C][C]105.230571[/C][C]0.0601[/C][C]0.952322[/C][C]0.476161[/C][/ROW]
[ROW][C]M6[/C][C]182.215203958574[/C][C]104.593079[/C][C]1.7421[/C][C]0.088026[/C][C]0.044013[/C][/ROW]
[ROW][C]M7[/C][C]168.449455084770[/C][C]104.619468[/C][C]1.6101[/C][C]0.114069[/C][C]0.057035[/C][/ROW]
[ROW][C]M8[/C][C]135.077291917911[/C][C]104.747325[/C][C]1.2896[/C][C]0.203516[/C][C]0.101758[/C][/ROW]
[ROW][C]M9[/C][C]30.8732529973186[/C][C]105.06848[/C][C]0.2938[/C][C]0.770174[/C][C]0.385087[/C][/ROW]
[ROW][C]M10[/C][C]-3.65280901495669[/C][C]104.919016[/C][C]-0.0348[/C][C]0.972374[/C][C]0.486187[/C][/ROW]
[ROW][C]M11[/C][C]74.1754192412731[/C][C]104.546139[/C][C]0.7095[/C][C]0.48152[/C][C]0.24076[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58163&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58163&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)-1163.16083712531348.945854-3.33340.001680.00084
`Landbouw-Mannen`2.907699835059410.13301621.859800
M1-50.7291223751464104.561894-0.48520.6298180.314909
M2-214.871464759489105.264338-2.04130.0468620.023431
M3-125.681135126959106.451279-1.18060.2436840.121842
M4-125.385774599149106.532305-1.1770.2451320.122566
M56.32547487764123105.2305710.06010.9523220.476161
M6182.215203958574104.5930791.74210.0880260.044013
M7168.449455084770104.6194681.61010.1140690.057035
M8135.077291917911104.7473251.28960.2035160.101758
M930.8732529973186105.068480.29380.7701740.385087
M10-3.65280901495669104.919016-0.03480.9723740.486187
M1174.1754192412731104.5461390.70950.481520.24076







Multiple Linear Regression - Regression Statistics
Multiple R0.957534943039322
R-squared0.916873167141318
Adjusted R-squared0.89564929492208
F-TEST (value)43.2000889220505
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation165.299129084041
Sum Squared Residuals1284218.6975693

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.957534943039322 \tabularnewline
R-squared & 0.916873167141318 \tabularnewline
Adjusted R-squared & 0.89564929492208 \tabularnewline
F-TEST (value) & 43.2000889220505 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 165.299129084041 \tabularnewline
Sum Squared Residuals & 1284218.6975693 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58163&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.957534943039322[/C][/ROW]
[ROW][C]R-squared[/C][C]0.916873167141318[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.89564929492208[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]43.2000889220505[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/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]165.299129084041[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1284218.6975693[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58163&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58163&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.957534943039322
R-squared0.916873167141318
Adjusted R-squared0.89564929492208
F-TEST (value)43.2000889220505
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation165.299129084041
Sum Squared Residuals1284218.6975693







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
165396360.66811082931178.331889170690
266996420.41865574453278.581344255468
369626721.8710733364240.1289266636
469816736.70493303951244.295066960493
570246795.72368663981228.276313360188
669406750.62822825623189.37177174377
767746722.3239802071351.6760197928712
866716735.47501440122-64.47501440122
969656965.65645651246-0.656456512459602
1069697105.59238460375-136.592384603749
1168226828.68123298273-6.6812329827309
1268786821.3829099478256.6170900521758
1366916831.71548410893-140.715484108925
1468377170.60521318986-333.60521318986
1570187367.38043671959-349.380436719588
1671677414.19899460835-247.198994608349
1770767252.23256074414-176.232560744139
1871717230.39870104103-59.3987010410319
1970937062.5248609090830.4751390909204
2069716781.99821176217189.001788237830
2171426828.99456426467313.005435735333
2270476750.8530047265296.146995273499
2369996851.94283166321147.057168336794
2466506489.90512875105160.094871248948
2564756363.57581066436111.424189335639
2664376196.52576844496240.474231555042
2766396404.93179131492234.068208685075
2864226349.980854976672.0191450233943
2962726214.1837196279357.8162803720695
3062326160.3651617391771.6348382608299
3160035995.399021442287.60097855772302
3256735714.87237229537-41.872372295368
3360506192.20830038666-142.208300386657
3459776114.06674084849-137.066740848491
3557965837.15558922747-41.155589227473
3657525797.87256800691-45.8725680069128
3756095709.34334777599-100.343347775994
3858395894.12498559878-55.1249855987801
3960696073.45401011815-4.45401011815229
4060066024.31847344995-18.3184734499521
4158095905.96753711163-96.9675371116334
4257975965.54927279019-168.549272790190
4355025579.59794502878-77.5979450287818
4455685578.21048004758-10.2104800475758
4558645959.5923135819-95.5923135819047
4657645733.1580624557130.8419375442915
4756155677.2320982992-62.2320982992057
4856155710.64157295513-95.6415729551306
4956815729.69724662141-48.69724662141
5059156045.32537702187-130.325377021869
5163346454.36268851093-120.362688510935
5264946544.79674392559-50.796743925586
5366206632.89249587649-12.8924958764851
5465786611.05863617338-33.0586361733783
5564956507.15419241273-12.1541924127327
5665386610.44392149367-72.4439214936654
5767376811.54836525431-74.548365254311
5866516704.32980736555-53.3298073655505
5965306566.98824782738-36.9882478273842
6065636638.19782033908-75.1978203390814

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 6539 & 6360.66811082931 & 178.331889170690 \tabularnewline
2 & 6699 & 6420.41865574453 & 278.581344255468 \tabularnewline
3 & 6962 & 6721.8710733364 & 240.1289266636 \tabularnewline
4 & 6981 & 6736.70493303951 & 244.295066960493 \tabularnewline
5 & 7024 & 6795.72368663981 & 228.276313360188 \tabularnewline
6 & 6940 & 6750.62822825623 & 189.37177174377 \tabularnewline
7 & 6774 & 6722.32398020713 & 51.6760197928712 \tabularnewline
8 & 6671 & 6735.47501440122 & -64.47501440122 \tabularnewline
9 & 6965 & 6965.65645651246 & -0.656456512459602 \tabularnewline
10 & 6969 & 7105.59238460375 & -136.592384603749 \tabularnewline
11 & 6822 & 6828.68123298273 & -6.6812329827309 \tabularnewline
12 & 6878 & 6821.38290994782 & 56.6170900521758 \tabularnewline
13 & 6691 & 6831.71548410893 & -140.715484108925 \tabularnewline
14 & 6837 & 7170.60521318986 & -333.60521318986 \tabularnewline
15 & 7018 & 7367.38043671959 & -349.380436719588 \tabularnewline
16 & 7167 & 7414.19899460835 & -247.198994608349 \tabularnewline
17 & 7076 & 7252.23256074414 & -176.232560744139 \tabularnewline
18 & 7171 & 7230.39870104103 & -59.3987010410319 \tabularnewline
19 & 7093 & 7062.52486090908 & 30.4751390909204 \tabularnewline
20 & 6971 & 6781.99821176217 & 189.001788237830 \tabularnewline
21 & 7142 & 6828.99456426467 & 313.005435735333 \tabularnewline
22 & 7047 & 6750.8530047265 & 296.146995273499 \tabularnewline
23 & 6999 & 6851.94283166321 & 147.057168336794 \tabularnewline
24 & 6650 & 6489.90512875105 & 160.094871248948 \tabularnewline
25 & 6475 & 6363.57581066436 & 111.424189335639 \tabularnewline
26 & 6437 & 6196.52576844496 & 240.474231555042 \tabularnewline
27 & 6639 & 6404.93179131492 & 234.068208685075 \tabularnewline
28 & 6422 & 6349.9808549766 & 72.0191450233943 \tabularnewline
29 & 6272 & 6214.18371962793 & 57.8162803720695 \tabularnewline
30 & 6232 & 6160.36516173917 & 71.6348382608299 \tabularnewline
31 & 6003 & 5995.39902144228 & 7.60097855772302 \tabularnewline
32 & 5673 & 5714.87237229537 & -41.872372295368 \tabularnewline
33 & 6050 & 6192.20830038666 & -142.208300386657 \tabularnewline
34 & 5977 & 6114.06674084849 & -137.066740848491 \tabularnewline
35 & 5796 & 5837.15558922747 & -41.155589227473 \tabularnewline
36 & 5752 & 5797.87256800691 & -45.8725680069128 \tabularnewline
37 & 5609 & 5709.34334777599 & -100.343347775994 \tabularnewline
38 & 5839 & 5894.12498559878 & -55.1249855987801 \tabularnewline
39 & 6069 & 6073.45401011815 & -4.45401011815229 \tabularnewline
40 & 6006 & 6024.31847344995 & -18.3184734499521 \tabularnewline
41 & 5809 & 5905.96753711163 & -96.9675371116334 \tabularnewline
42 & 5797 & 5965.54927279019 & -168.549272790190 \tabularnewline
43 & 5502 & 5579.59794502878 & -77.5979450287818 \tabularnewline
44 & 5568 & 5578.21048004758 & -10.2104800475758 \tabularnewline
45 & 5864 & 5959.5923135819 & -95.5923135819047 \tabularnewline
46 & 5764 & 5733.15806245571 & 30.8419375442915 \tabularnewline
47 & 5615 & 5677.2320982992 & -62.2320982992057 \tabularnewline
48 & 5615 & 5710.64157295513 & -95.6415729551306 \tabularnewline
49 & 5681 & 5729.69724662141 & -48.69724662141 \tabularnewline
50 & 5915 & 6045.32537702187 & -130.325377021869 \tabularnewline
51 & 6334 & 6454.36268851093 & -120.362688510935 \tabularnewline
52 & 6494 & 6544.79674392559 & -50.796743925586 \tabularnewline
53 & 6620 & 6632.89249587649 & -12.8924958764851 \tabularnewline
54 & 6578 & 6611.05863617338 & -33.0586361733783 \tabularnewline
55 & 6495 & 6507.15419241273 & -12.1541924127327 \tabularnewline
56 & 6538 & 6610.44392149367 & -72.4439214936654 \tabularnewline
57 & 6737 & 6811.54836525431 & -74.548365254311 \tabularnewline
58 & 6651 & 6704.32980736555 & -53.3298073655505 \tabularnewline
59 & 6530 & 6566.98824782738 & -36.9882478273842 \tabularnewline
60 & 6563 & 6638.19782033908 & -75.1978203390814 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58163&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]6539[/C][C]6360.66811082931[/C][C]178.331889170690[/C][/ROW]
[ROW][C]2[/C][C]6699[/C][C]6420.41865574453[/C][C]278.581344255468[/C][/ROW]
[ROW][C]3[/C][C]6962[/C][C]6721.8710733364[/C][C]240.1289266636[/C][/ROW]
[ROW][C]4[/C][C]6981[/C][C]6736.70493303951[/C][C]244.295066960493[/C][/ROW]
[ROW][C]5[/C][C]7024[/C][C]6795.72368663981[/C][C]228.276313360188[/C][/ROW]
[ROW][C]6[/C][C]6940[/C][C]6750.62822825623[/C][C]189.37177174377[/C][/ROW]
[ROW][C]7[/C][C]6774[/C][C]6722.32398020713[/C][C]51.6760197928712[/C][/ROW]
[ROW][C]8[/C][C]6671[/C][C]6735.47501440122[/C][C]-64.47501440122[/C][/ROW]
[ROW][C]9[/C][C]6965[/C][C]6965.65645651246[/C][C]-0.656456512459602[/C][/ROW]
[ROW][C]10[/C][C]6969[/C][C]7105.59238460375[/C][C]-136.592384603749[/C][/ROW]
[ROW][C]11[/C][C]6822[/C][C]6828.68123298273[/C][C]-6.6812329827309[/C][/ROW]
[ROW][C]12[/C][C]6878[/C][C]6821.38290994782[/C][C]56.6170900521758[/C][/ROW]
[ROW][C]13[/C][C]6691[/C][C]6831.71548410893[/C][C]-140.715484108925[/C][/ROW]
[ROW][C]14[/C][C]6837[/C][C]7170.60521318986[/C][C]-333.60521318986[/C][/ROW]
[ROW][C]15[/C][C]7018[/C][C]7367.38043671959[/C][C]-349.380436719588[/C][/ROW]
[ROW][C]16[/C][C]7167[/C][C]7414.19899460835[/C][C]-247.198994608349[/C][/ROW]
[ROW][C]17[/C][C]7076[/C][C]7252.23256074414[/C][C]-176.232560744139[/C][/ROW]
[ROW][C]18[/C][C]7171[/C][C]7230.39870104103[/C][C]-59.3987010410319[/C][/ROW]
[ROW][C]19[/C][C]7093[/C][C]7062.52486090908[/C][C]30.4751390909204[/C][/ROW]
[ROW][C]20[/C][C]6971[/C][C]6781.99821176217[/C][C]189.001788237830[/C][/ROW]
[ROW][C]21[/C][C]7142[/C][C]6828.99456426467[/C][C]313.005435735333[/C][/ROW]
[ROW][C]22[/C][C]7047[/C][C]6750.8530047265[/C][C]296.146995273499[/C][/ROW]
[ROW][C]23[/C][C]6999[/C][C]6851.94283166321[/C][C]147.057168336794[/C][/ROW]
[ROW][C]24[/C][C]6650[/C][C]6489.90512875105[/C][C]160.094871248948[/C][/ROW]
[ROW][C]25[/C][C]6475[/C][C]6363.57581066436[/C][C]111.424189335639[/C][/ROW]
[ROW][C]26[/C][C]6437[/C][C]6196.52576844496[/C][C]240.474231555042[/C][/ROW]
[ROW][C]27[/C][C]6639[/C][C]6404.93179131492[/C][C]234.068208685075[/C][/ROW]
[ROW][C]28[/C][C]6422[/C][C]6349.9808549766[/C][C]72.0191450233943[/C][/ROW]
[ROW][C]29[/C][C]6272[/C][C]6214.18371962793[/C][C]57.8162803720695[/C][/ROW]
[ROW][C]30[/C][C]6232[/C][C]6160.36516173917[/C][C]71.6348382608299[/C][/ROW]
[ROW][C]31[/C][C]6003[/C][C]5995.39902144228[/C][C]7.60097855772302[/C][/ROW]
[ROW][C]32[/C][C]5673[/C][C]5714.87237229537[/C][C]-41.872372295368[/C][/ROW]
[ROW][C]33[/C][C]6050[/C][C]6192.20830038666[/C][C]-142.208300386657[/C][/ROW]
[ROW][C]34[/C][C]5977[/C][C]6114.06674084849[/C][C]-137.066740848491[/C][/ROW]
[ROW][C]35[/C][C]5796[/C][C]5837.15558922747[/C][C]-41.155589227473[/C][/ROW]
[ROW][C]36[/C][C]5752[/C][C]5797.87256800691[/C][C]-45.8725680069128[/C][/ROW]
[ROW][C]37[/C][C]5609[/C][C]5709.34334777599[/C][C]-100.343347775994[/C][/ROW]
[ROW][C]38[/C][C]5839[/C][C]5894.12498559878[/C][C]-55.1249855987801[/C][/ROW]
[ROW][C]39[/C][C]6069[/C][C]6073.45401011815[/C][C]-4.45401011815229[/C][/ROW]
[ROW][C]40[/C][C]6006[/C][C]6024.31847344995[/C][C]-18.3184734499521[/C][/ROW]
[ROW][C]41[/C][C]5809[/C][C]5905.96753711163[/C][C]-96.9675371116334[/C][/ROW]
[ROW][C]42[/C][C]5797[/C][C]5965.54927279019[/C][C]-168.549272790190[/C][/ROW]
[ROW][C]43[/C][C]5502[/C][C]5579.59794502878[/C][C]-77.5979450287818[/C][/ROW]
[ROW][C]44[/C][C]5568[/C][C]5578.21048004758[/C][C]-10.2104800475758[/C][/ROW]
[ROW][C]45[/C][C]5864[/C][C]5959.5923135819[/C][C]-95.5923135819047[/C][/ROW]
[ROW][C]46[/C][C]5764[/C][C]5733.15806245571[/C][C]30.8419375442915[/C][/ROW]
[ROW][C]47[/C][C]5615[/C][C]5677.2320982992[/C][C]-62.2320982992057[/C][/ROW]
[ROW][C]48[/C][C]5615[/C][C]5710.64157295513[/C][C]-95.6415729551306[/C][/ROW]
[ROW][C]49[/C][C]5681[/C][C]5729.69724662141[/C][C]-48.69724662141[/C][/ROW]
[ROW][C]50[/C][C]5915[/C][C]6045.32537702187[/C][C]-130.325377021869[/C][/ROW]
[ROW][C]51[/C][C]6334[/C][C]6454.36268851093[/C][C]-120.362688510935[/C][/ROW]
[ROW][C]52[/C][C]6494[/C][C]6544.79674392559[/C][C]-50.796743925586[/C][/ROW]
[ROW][C]53[/C][C]6620[/C][C]6632.89249587649[/C][C]-12.8924958764851[/C][/ROW]
[ROW][C]54[/C][C]6578[/C][C]6611.05863617338[/C][C]-33.0586361733783[/C][/ROW]
[ROW][C]55[/C][C]6495[/C][C]6507.15419241273[/C][C]-12.1541924127327[/C][/ROW]
[ROW][C]56[/C][C]6538[/C][C]6610.44392149367[/C][C]-72.4439214936654[/C][/ROW]
[ROW][C]57[/C][C]6737[/C][C]6811.54836525431[/C][C]-74.548365254311[/C][/ROW]
[ROW][C]58[/C][C]6651[/C][C]6704.32980736555[/C][C]-53.3298073655505[/C][/ROW]
[ROW][C]59[/C][C]6530[/C][C]6566.98824782738[/C][C]-36.9882478273842[/C][/ROW]
[ROW][C]60[/C][C]6563[/C][C]6638.19782033908[/C][C]-75.1978203390814[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58163&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58163&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
165396360.66811082931178.331889170690
266996420.41865574453278.581344255468
369626721.8710733364240.1289266636
469816736.70493303951244.295066960493
570246795.72368663981228.276313360188
669406750.62822825623189.37177174377
767746722.3239802071351.6760197928712
866716735.47501440122-64.47501440122
969656965.65645651246-0.656456512459602
1069697105.59238460375-136.592384603749
1168226828.68123298273-6.6812329827309
1268786821.3829099478256.6170900521758
1366916831.71548410893-140.715484108925
1468377170.60521318986-333.60521318986
1570187367.38043671959-349.380436719588
1671677414.19899460835-247.198994608349
1770767252.23256074414-176.232560744139
1871717230.39870104103-59.3987010410319
1970937062.5248609090830.4751390909204
2069716781.99821176217189.001788237830
2171426828.99456426467313.005435735333
2270476750.8530047265296.146995273499
2369996851.94283166321147.057168336794
2466506489.90512875105160.094871248948
2564756363.57581066436111.424189335639
2664376196.52576844496240.474231555042
2766396404.93179131492234.068208685075
2864226349.980854976672.0191450233943
2962726214.1837196279357.8162803720695
3062326160.3651617391771.6348382608299
3160035995.399021442287.60097855772302
3256735714.87237229537-41.872372295368
3360506192.20830038666-142.208300386657
3459776114.06674084849-137.066740848491
3557965837.15558922747-41.155589227473
3657525797.87256800691-45.8725680069128
3756095709.34334777599-100.343347775994
3858395894.12498559878-55.1249855987801
3960696073.45401011815-4.45401011815229
4060066024.31847344995-18.3184734499521
4158095905.96753711163-96.9675371116334
4257975965.54927279019-168.549272790190
4355025579.59794502878-77.5979450287818
4455685578.21048004758-10.2104800475758
4558645959.5923135819-95.5923135819047
4657645733.1580624557130.8419375442915
4756155677.2320982992-62.2320982992057
4856155710.64157295513-95.6415729551306
4956815729.69724662141-48.69724662141
5059156045.32537702187-130.325377021869
5163346454.36268851093-120.362688510935
5264946544.79674392559-50.796743925586
5366206632.89249587649-12.8924958764851
5465786611.05863617338-33.0586361733783
5564956507.15419241273-12.1541924127327
5665386610.44392149367-72.4439214936654
5767376811.54836525431-74.548365254311
5866516704.32980736555-53.3298073655505
5965306566.98824782738-36.9882478273842
6065636638.19782033908-75.1978203390814







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.04767020231190760.09534040462381520.952329797688092
170.01918873451567170.03837746903134330.980811265484328
180.03613029101206390.07226058202412780.963869708987936
190.1575632647614120.3151265295228240.842436735238588
200.358996777506140.717993555012280.64100322249386
210.546080003283050.90783999343390.45391999671695
220.6612861405393820.6774277189212350.338713859460618
230.673849687634060.6523006247318810.326150312365941
240.7218774500158280.5562450999683440.278122549984172
250.7062503618306690.5874992763386630.293749638169331
260.9080855057908420.1838289884183170.0919144942091583
270.9890204711796070.02195905764078590.0109795288203930
280.9986593897491170.002681220501765620.00134061025088281
290.9997943985756350.0004112028487309280.000205601424365464
300.999986711450262.65770994784890e-051.32885497392445e-05
310.9999901005354141.97989291726649e-059.89946458633246e-06
320.9999903369049551.93261900893075e-059.66309504465374e-06
330.9999924778226361.50443547286259e-057.52217736431297e-06
340.9999970078837625.9842324767305e-062.99211623836525e-06
350.999990570550221.88588995606006e-059.4294497803003e-06
360.9999746451721335.0709655734324e-052.5354827867162e-05
370.9999305010152860.0001389979694273316.94989847136657e-05
380.9998361006318090.0003277987363826240.000163899368191312
390.999798268697260.0004034626054811960.000201731302740598
400.9992840823234160.001431835353167070.000715917676583535
410.9982221492865720.003555701426856170.00177785071342809
420.9988919196722550.002216160655490370.00110808032774518
430.9975709447319680.004858110536064960.00242905526803248
440.9901439073628870.01971218527422560.0098560926371128

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0476702023119076 & 0.0953404046238152 & 0.952329797688092 \tabularnewline
17 & 0.0191887345156717 & 0.0383774690313433 & 0.980811265484328 \tabularnewline
18 & 0.0361302910120639 & 0.0722605820241278 & 0.963869708987936 \tabularnewline
19 & 0.157563264761412 & 0.315126529522824 & 0.842436735238588 \tabularnewline
20 & 0.35899677750614 & 0.71799355501228 & 0.64100322249386 \tabularnewline
21 & 0.54608000328305 & 0.9078399934339 & 0.45391999671695 \tabularnewline
22 & 0.661286140539382 & 0.677427718921235 & 0.338713859460618 \tabularnewline
23 & 0.67384968763406 & 0.652300624731881 & 0.326150312365941 \tabularnewline
24 & 0.721877450015828 & 0.556245099968344 & 0.278122549984172 \tabularnewline
25 & 0.706250361830669 & 0.587499276338663 & 0.293749638169331 \tabularnewline
26 & 0.908085505790842 & 0.183828988418317 & 0.0919144942091583 \tabularnewline
27 & 0.989020471179607 & 0.0219590576407859 & 0.0109795288203930 \tabularnewline
28 & 0.998659389749117 & 0.00268122050176562 & 0.00134061025088281 \tabularnewline
29 & 0.999794398575635 & 0.000411202848730928 & 0.000205601424365464 \tabularnewline
30 & 0.99998671145026 & 2.65770994784890e-05 & 1.32885497392445e-05 \tabularnewline
31 & 0.999990100535414 & 1.97989291726649e-05 & 9.89946458633246e-06 \tabularnewline
32 & 0.999990336904955 & 1.93261900893075e-05 & 9.66309504465374e-06 \tabularnewline
33 & 0.999992477822636 & 1.50443547286259e-05 & 7.52217736431297e-06 \tabularnewline
34 & 0.999997007883762 & 5.9842324767305e-06 & 2.99211623836525e-06 \tabularnewline
35 & 0.99999057055022 & 1.88588995606006e-05 & 9.4294497803003e-06 \tabularnewline
36 & 0.999974645172133 & 5.0709655734324e-05 & 2.5354827867162e-05 \tabularnewline
37 & 0.999930501015286 & 0.000138997969427331 & 6.94989847136657e-05 \tabularnewline
38 & 0.999836100631809 & 0.000327798736382624 & 0.000163899368191312 \tabularnewline
39 & 0.99979826869726 & 0.000403462605481196 & 0.000201731302740598 \tabularnewline
40 & 0.999284082323416 & 0.00143183535316707 & 0.000715917676583535 \tabularnewline
41 & 0.998222149286572 & 0.00355570142685617 & 0.00177785071342809 \tabularnewline
42 & 0.998891919672255 & 0.00221616065549037 & 0.00110808032774518 \tabularnewline
43 & 0.997570944731968 & 0.00485811053606496 & 0.00242905526803248 \tabularnewline
44 & 0.990143907362887 & 0.0197121852742256 & 0.0098560926371128 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58163&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]16[/C][C]0.0476702023119076[/C][C]0.0953404046238152[/C][C]0.952329797688092[/C][/ROW]
[ROW][C]17[/C][C]0.0191887345156717[/C][C]0.0383774690313433[/C][C]0.980811265484328[/C][/ROW]
[ROW][C]18[/C][C]0.0361302910120639[/C][C]0.0722605820241278[/C][C]0.963869708987936[/C][/ROW]
[ROW][C]19[/C][C]0.157563264761412[/C][C]0.315126529522824[/C][C]0.842436735238588[/C][/ROW]
[ROW][C]20[/C][C]0.35899677750614[/C][C]0.71799355501228[/C][C]0.64100322249386[/C][/ROW]
[ROW][C]21[/C][C]0.54608000328305[/C][C]0.9078399934339[/C][C]0.45391999671695[/C][/ROW]
[ROW][C]22[/C][C]0.661286140539382[/C][C]0.677427718921235[/C][C]0.338713859460618[/C][/ROW]
[ROW][C]23[/C][C]0.67384968763406[/C][C]0.652300624731881[/C][C]0.326150312365941[/C][/ROW]
[ROW][C]24[/C][C]0.721877450015828[/C][C]0.556245099968344[/C][C]0.278122549984172[/C][/ROW]
[ROW][C]25[/C][C]0.706250361830669[/C][C]0.587499276338663[/C][C]0.293749638169331[/C][/ROW]
[ROW][C]26[/C][C]0.908085505790842[/C][C]0.183828988418317[/C][C]0.0919144942091583[/C][/ROW]
[ROW][C]27[/C][C]0.989020471179607[/C][C]0.0219590576407859[/C][C]0.0109795288203930[/C][/ROW]
[ROW][C]28[/C][C]0.998659389749117[/C][C]0.00268122050176562[/C][C]0.00134061025088281[/C][/ROW]
[ROW][C]29[/C][C]0.999794398575635[/C][C]0.000411202848730928[/C][C]0.000205601424365464[/C][/ROW]
[ROW][C]30[/C][C]0.99998671145026[/C][C]2.65770994784890e-05[/C][C]1.32885497392445e-05[/C][/ROW]
[ROW][C]31[/C][C]0.999990100535414[/C][C]1.97989291726649e-05[/C][C]9.89946458633246e-06[/C][/ROW]
[ROW][C]32[/C][C]0.999990336904955[/C][C]1.93261900893075e-05[/C][C]9.66309504465374e-06[/C][/ROW]
[ROW][C]33[/C][C]0.999992477822636[/C][C]1.50443547286259e-05[/C][C]7.52217736431297e-06[/C][/ROW]
[ROW][C]34[/C][C]0.999997007883762[/C][C]5.9842324767305e-06[/C][C]2.99211623836525e-06[/C][/ROW]
[ROW][C]35[/C][C]0.99999057055022[/C][C]1.88588995606006e-05[/C][C]9.4294497803003e-06[/C][/ROW]
[ROW][C]36[/C][C]0.999974645172133[/C][C]5.0709655734324e-05[/C][C]2.5354827867162e-05[/C][/ROW]
[ROW][C]37[/C][C]0.999930501015286[/C][C]0.000138997969427331[/C][C]6.94989847136657e-05[/C][/ROW]
[ROW][C]38[/C][C]0.999836100631809[/C][C]0.000327798736382624[/C][C]0.000163899368191312[/C][/ROW]
[ROW][C]39[/C][C]0.99979826869726[/C][C]0.000403462605481196[/C][C]0.000201731302740598[/C][/ROW]
[ROW][C]40[/C][C]0.999284082323416[/C][C]0.00143183535316707[/C][C]0.000715917676583535[/C][/ROW]
[ROW][C]41[/C][C]0.998222149286572[/C][C]0.00355570142685617[/C][C]0.00177785071342809[/C][/ROW]
[ROW][C]42[/C][C]0.998891919672255[/C][C]0.00221616065549037[/C][C]0.00110808032774518[/C][/ROW]
[ROW][C]43[/C][C]0.997570944731968[/C][C]0.00485811053606496[/C][C]0.00242905526803248[/C][/ROW]
[ROW][C]44[/C][C]0.990143907362887[/C][C]0.0197121852742256[/C][C]0.0098560926371128[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58163&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58163&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
160.04767020231190760.09534040462381520.952329797688092
170.01918873451567170.03837746903134330.980811265484328
180.03613029101206390.07226058202412780.963869708987936
190.1575632647614120.3151265295228240.842436735238588
200.358996777506140.717993555012280.64100322249386
210.546080003283050.90783999343390.45391999671695
220.6612861405393820.6774277189212350.338713859460618
230.673849687634060.6523006247318810.326150312365941
240.7218774500158280.5562450999683440.278122549984172
250.7062503618306690.5874992763386630.293749638169331
260.9080855057908420.1838289884183170.0919144942091583
270.9890204711796070.02195905764078590.0109795288203930
280.9986593897491170.002681220501765620.00134061025088281
290.9997943985756350.0004112028487309280.000205601424365464
300.999986711450262.65770994784890e-051.32885497392445e-05
310.9999901005354141.97989291726649e-059.89946458633246e-06
320.9999903369049551.93261900893075e-059.66309504465374e-06
330.9999924778226361.50443547286259e-057.52217736431297e-06
340.9999970078837625.9842324767305e-062.99211623836525e-06
350.999990570550221.88588995606006e-059.4294497803003e-06
360.9999746451721335.0709655734324e-052.5354827867162e-05
370.9999305010152860.0001389979694273316.94989847136657e-05
380.9998361006318090.0003277987363826240.000163899368191312
390.999798268697260.0004034626054811960.000201731302740598
400.9992840823234160.001431835353167070.000715917676583535
410.9982221492865720.003555701426856170.00177785071342809
420.9988919196722550.002216160655490370.00110808032774518
430.9975709447319680.004858110536064960.00242905526803248
440.9901439073628870.01971218527422560.0098560926371128







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level160.551724137931034NOK
5% type I error level190.655172413793103NOK
10% type I error level210.724137931034483NOK

\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 & 16 & 0.551724137931034 & NOK \tabularnewline
5% type I error level & 19 & 0.655172413793103 & NOK \tabularnewline
10% type I error level & 21 & 0.724137931034483 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58163&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]16[/C][C]0.551724137931034[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]19[/C][C]0.655172413793103[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]21[/C][C]0.724137931034483[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58163&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58163&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 level160.551724137931034NOK
5% type I error level190.655172413793103NOK
10% type I error level210.724137931034483NOK



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