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 08:06:32 -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/t1258729703eogzijq9zsmfx2s.htm/, Retrieved Thu, 25 Apr 2024 04:46:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58249, Retrieved Thu, 25 Apr 2024 04:46:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact123
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 14:03:14] [b98453cac15ba1066b407e146608df68]
- R  D      [Multiple Regression] [] [2009-11-20 15:06:32] [8af916b6a531ec49628252b0a0ece045] [Current]
Feedback Forum

Post a new message
Dataseries X:
100.6   71.7
104.3   77.5
120.4   89.8
107.5   80.3
102.9   78.7
125.6   93.8
107.5   57.6
108.8   60.6
128.4   91
121.1   85.3
119.5   77.4
128.7   77.3
108.7   68.3
105.5   69.9
119.8   81.7
111.3   75.1
110.6   69.9
120.1   84
97.5	   54.3
107.7   60
127.3   89.9
117.2   77
119.8   85.3
116.2   77.6
111	   69.2
112.4   75.5
130.6   85.7
109.1   72.2
118.8   79.9
123.9   85.3
101.6   52.2
112.8   61.2
128	   82.4
129.6   85.4
125.8   78.2
119.5   70.2
115.7   70.2
113.6   69.3
129.7   77.5
112	   66.1
116.8   69
127	   79.2
112.1   56.2
114.2   63.3
121.1   77.8
131.6   92
125	   78.1
120.4   65.1
117.7   71.1
117.5   70.9
120.6   72
127.5   81.9
112.3   70.6
124.5   72.5
115.2   65.1
104.7   54.9
130.9   80
129.2   77.4
113.5   59.6
125.6   57.4
107.6   50.8




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58249&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 107.686862159163 + 0.20703592981642X[t] -11.3174485983840M1[t] -12.0618113824309M2[t] -0.307164690430088M3[t] -9.75940120697196M4[t] -10.6488473122473M5[t] -0.642562896732687M6[t] -12.7244730330837M7[t] -10.4690179481477M8[t] + 2.01657183169863M9[t] + 0.782200575551756M10[t] -2.64362276486180M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  107.686862159163 +  0.20703592981642X[t] -11.3174485983840M1[t] -12.0618113824309M2[t] -0.307164690430088M3[t] -9.75940120697196M4[t] -10.6488473122473M5[t] -0.642562896732687M6[t] -12.7244730330837M7[t] -10.4690179481477M8[t] +  2.01657183169863M9[t] +  0.782200575551756M10[t] -2.64362276486180M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58249&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  107.686862159163 +  0.20703592981642X[t] -11.3174485983840M1[t] -12.0618113824309M2[t] -0.307164690430088M3[t] -9.75940120697196M4[t] -10.6488473122473M5[t] -0.642562896732687M6[t] -12.7244730330837M7[t] -10.4690179481477M8[t] +  2.01657183169863M9[t] +  0.782200575551756M10[t] -2.64362276486180M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58249&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58249&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] = + 107.686862159163 + 0.20703592981642X[t] -11.3174485983840M1[t] -12.0618113824309M2[t] -0.307164690430088M3[t] -9.75940120697196M4[t] -10.6488473122473M5[t] -0.642562896732687M6[t] -12.7244730330837M7[t] -10.4690179481477M8[t] + 2.01657183169863M9[t] + 0.782200575551756M10[t] -2.64362276486180M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)107.6868621591638.57023812.565200
X0.207035929816420.1180721.75350.0859050.042952
M1-11.31744859838403.350942-3.37740.0014590.000729
M2-12.06181138243093.503977-3.44230.0012050.000602
M3-0.3071646904300883.753879-0.08180.9351250.467563
M4-9.759401206971963.546981-2.75150.0083460.004173
M5-10.64884731224733.518271-3.02670.0039670.001984
M6-0.6425628967326873.829111-0.16780.8674380.433719
M7-12.72447303308373.781705-3.36470.0015140.000757
M8-10.46901794814773.661606-2.85910.0062680.003134
M92.016571831698633.893120.5180.6068490.303425
M100.7822005755517563.8519370.20310.8399410.419971
M11-2.643622764861803.560867-0.74240.4614570.230728

\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) & 107.686862159163 & 8.570238 & 12.5652 & 0 & 0 \tabularnewline
X & 0.20703592981642 & 0.118072 & 1.7535 & 0.085905 & 0.042952 \tabularnewline
M1 & -11.3174485983840 & 3.350942 & -3.3774 & 0.001459 & 0.000729 \tabularnewline
M2 & -12.0618113824309 & 3.503977 & -3.4423 & 0.001205 & 0.000602 \tabularnewline
M3 & -0.307164690430088 & 3.753879 & -0.0818 & 0.935125 & 0.467563 \tabularnewline
M4 & -9.75940120697196 & 3.546981 & -2.7515 & 0.008346 & 0.004173 \tabularnewline
M5 & -10.6488473122473 & 3.518271 & -3.0267 & 0.003967 & 0.001984 \tabularnewline
M6 & -0.642562896732687 & 3.829111 & -0.1678 & 0.867438 & 0.433719 \tabularnewline
M7 & -12.7244730330837 & 3.781705 & -3.3647 & 0.001514 & 0.000757 \tabularnewline
M8 & -10.4690179481477 & 3.661606 & -2.8591 & 0.006268 & 0.003134 \tabularnewline
M9 & 2.01657183169863 & 3.89312 & 0.518 & 0.606849 & 0.303425 \tabularnewline
M10 & 0.782200575551756 & 3.851937 & 0.2031 & 0.839941 & 0.419971 \tabularnewline
M11 & -2.64362276486180 & 3.560867 & -0.7424 & 0.461457 & 0.230728 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58249&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]107.686862159163[/C][C]8.570238[/C][C]12.5652[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]0.20703592981642[/C][C]0.118072[/C][C]1.7535[/C][C]0.085905[/C][C]0.042952[/C][/ROW]
[ROW][C]M1[/C][C]-11.3174485983840[/C][C]3.350942[/C][C]-3.3774[/C][C]0.001459[/C][C]0.000729[/C][/ROW]
[ROW][C]M2[/C][C]-12.0618113824309[/C][C]3.503977[/C][C]-3.4423[/C][C]0.001205[/C][C]0.000602[/C][/ROW]
[ROW][C]M3[/C][C]-0.307164690430088[/C][C]3.753879[/C][C]-0.0818[/C][C]0.935125[/C][C]0.467563[/C][/ROW]
[ROW][C]M4[/C][C]-9.75940120697196[/C][C]3.546981[/C][C]-2.7515[/C][C]0.008346[/C][C]0.004173[/C][/ROW]
[ROW][C]M5[/C][C]-10.6488473122473[/C][C]3.518271[/C][C]-3.0267[/C][C]0.003967[/C][C]0.001984[/C][/ROW]
[ROW][C]M6[/C][C]-0.642562896732687[/C][C]3.829111[/C][C]-0.1678[/C][C]0.867438[/C][C]0.433719[/C][/ROW]
[ROW][C]M7[/C][C]-12.7244730330837[/C][C]3.781705[/C][C]-3.3647[/C][C]0.001514[/C][C]0.000757[/C][/ROW]
[ROW][C]M8[/C][C]-10.4690179481477[/C][C]3.661606[/C][C]-2.8591[/C][C]0.006268[/C][C]0.003134[/C][/ROW]
[ROW][C]M9[/C][C]2.01657183169863[/C][C]3.89312[/C][C]0.518[/C][C]0.606849[/C][C]0.303425[/C][/ROW]
[ROW][C]M10[/C][C]0.782200575551756[/C][C]3.851937[/C][C]0.2031[/C][C]0.839941[/C][C]0.419971[/C][/ROW]
[ROW][C]M11[/C][C]-2.64362276486180[/C][C]3.560867[/C][C]-0.7424[/C][C]0.461457[/C][C]0.230728[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58249&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58249&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)107.6868621591638.57023812.565200
X0.207035929816420.1180721.75350.0859050.042952
M1-11.31744859838403.350942-3.37740.0014590.000729
M2-12.06181138243093.503977-3.44230.0012050.000602
M3-0.3071646904300883.753879-0.08180.9351250.467563
M4-9.759401206971963.546981-2.75150.0083460.004173
M5-10.64884731224733.518271-3.02670.0039670.001984
M6-0.6425628967326873.829111-0.16780.8674380.433719
M7-12.72447303308373.781705-3.36470.0015140.000757
M8-10.46901794814773.661606-2.85910.0062680.003134
M92.016571831698633.893120.5180.6068490.303425
M100.7822005755517563.8519370.20310.8399410.419971
M11-2.643622764861803.560867-0.74240.4614570.230728







Multiple Linear Regression - Regression Statistics
Multiple R0.826905728562082
R-squared0.683773083928788
Adjusted R-squared0.604716354910984
F-TEST (value)8.64914463858992
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value1.95141472980609e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.50996467144787
Sum Squared Residuals1457.26611266898

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.826905728562082 \tabularnewline
R-squared & 0.683773083928788 \tabularnewline
Adjusted R-squared & 0.604716354910984 \tabularnewline
F-TEST (value) & 8.64914463858992 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 1.95141472980609e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.50996467144787 \tabularnewline
Sum Squared Residuals & 1457.26611266898 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58249&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.826905728562082[/C][/ROW]
[ROW][C]R-squared[/C][C]0.683773083928788[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.604716354910984[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]8.64914463858992[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]1.95141472980609e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.50996467144787[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1457.26611266898[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58249&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58249&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.826905728562082
R-squared0.683773083928788
Adjusted R-squared0.604716354910984
F-TEST (value)8.64914463858992
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value1.95141472980609e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.50996467144787
Sum Squared Residuals1457.26611266898







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1100.6111.213889728616-10.6138897286156
2104.3111.670335337504-7.37033533750414
3120.4125.971523966247-5.5715239662469
4107.5114.552446116449-7.05244611644906
5102.9113.331742523467-10.4317425234674
6125.6126.46426947921-0.86426947920999
7107.5106.8876586835050.612341316495469
8108.8109.764221557890-0.964221557889849
9128.4128.543703604155-0.143703604155318
10121.1126.129227548055-5.02922754805487
11119.5121.067820362092-1.56782036209158
12128.7123.6907395339725.00926046602824
13108.7110.50996756724-1.80996756723996
14105.5110.096862270899-4.59686227089934
15119.8124.294532934734-4.49453293473391
16111.3113.475859281404-2.17585928140367
17110.6111.509826341083-0.909826341082922
18120.1124.435317367009-4.33531736700908
1997.5106.204440115110-8.70444011511035
20107.7109.64-1.94
21127.3128.315964081357-1.01596408135727
22117.2124.410829330579-7.21082933057857
23119.8122.703404207641-2.90340420764131
24116.2123.752850312917-7.55285031291667
25111110.6962999040750.303700095925263
26112.4111.2562634778711.14373652212872
27130.6125.1226766540005.47732334600041
28109.1112.875455084936-3.77545508493606
29118.8113.5801856392475.21981436075288
30123.9124.704464075770-0.804464075770418
31101.6105.769664662496-4.16966466249588
32112.8109.8884431157802.91155688422029
33128126.7631946077341.23680539226588
34129.6126.1499311410373.45006885896349
35125.8121.2334491059454.56655089405528
36119.5122.220784432275-2.72078443227517
37115.7110.9033358338914.79666416610885
38113.6109.9726407130093.62735928699051
39129.7123.4249820295056.27501797049504
40112111.6125359130560.387464086944115
41116.8111.3234940042485.47650599575186
42127123.4415449038903.55845509610974
43112.1106.5978083817625.50219161823844
44114.2110.3232185683943.87678143160582
45121.1125.810829330579-4.71082933057859
46131.6127.5163682778254.08363172217512
47125121.2127455129633.78725448703692
48120.4121.164901190211-0.764901190211415
49117.7111.0896681707266.61033182927407
50117.5110.3038982007167.19610179928424
51120.6122.286284415515-1.68628441551464
52127.5114.88370360415512.6162963958447
53112.3111.6547514919540.64524850804559
54124.5122.0544041741202.44559582587975
55115.2108.4404281571286.75957184287232
56104.7108.584116757936-3.88411675793626
57130.9126.2663083761754.6336916238253
58129.2124.4936437025054.70635629749484
59113.5117.382580811359-3.88258081135931
60125.6119.5707245306256.029275469375
61107.6106.8868387954530.713161204547389

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 100.6 & 111.213889728616 & -10.6138897286156 \tabularnewline
2 & 104.3 & 111.670335337504 & -7.37033533750414 \tabularnewline
3 & 120.4 & 125.971523966247 & -5.5715239662469 \tabularnewline
4 & 107.5 & 114.552446116449 & -7.05244611644906 \tabularnewline
5 & 102.9 & 113.331742523467 & -10.4317425234674 \tabularnewline
6 & 125.6 & 126.46426947921 & -0.86426947920999 \tabularnewline
7 & 107.5 & 106.887658683505 & 0.612341316495469 \tabularnewline
8 & 108.8 & 109.764221557890 & -0.964221557889849 \tabularnewline
9 & 128.4 & 128.543703604155 & -0.143703604155318 \tabularnewline
10 & 121.1 & 126.129227548055 & -5.02922754805487 \tabularnewline
11 & 119.5 & 121.067820362092 & -1.56782036209158 \tabularnewline
12 & 128.7 & 123.690739533972 & 5.00926046602824 \tabularnewline
13 & 108.7 & 110.50996756724 & -1.80996756723996 \tabularnewline
14 & 105.5 & 110.096862270899 & -4.59686227089934 \tabularnewline
15 & 119.8 & 124.294532934734 & -4.49453293473391 \tabularnewline
16 & 111.3 & 113.475859281404 & -2.17585928140367 \tabularnewline
17 & 110.6 & 111.509826341083 & -0.909826341082922 \tabularnewline
18 & 120.1 & 124.435317367009 & -4.33531736700908 \tabularnewline
19 & 97.5 & 106.204440115110 & -8.70444011511035 \tabularnewline
20 & 107.7 & 109.64 & -1.94 \tabularnewline
21 & 127.3 & 128.315964081357 & -1.01596408135727 \tabularnewline
22 & 117.2 & 124.410829330579 & -7.21082933057857 \tabularnewline
23 & 119.8 & 122.703404207641 & -2.90340420764131 \tabularnewline
24 & 116.2 & 123.752850312917 & -7.55285031291667 \tabularnewline
25 & 111 & 110.696299904075 & 0.303700095925263 \tabularnewline
26 & 112.4 & 111.256263477871 & 1.14373652212872 \tabularnewline
27 & 130.6 & 125.122676654000 & 5.47732334600041 \tabularnewline
28 & 109.1 & 112.875455084936 & -3.77545508493606 \tabularnewline
29 & 118.8 & 113.580185639247 & 5.21981436075288 \tabularnewline
30 & 123.9 & 124.704464075770 & -0.804464075770418 \tabularnewline
31 & 101.6 & 105.769664662496 & -4.16966466249588 \tabularnewline
32 & 112.8 & 109.888443115780 & 2.91155688422029 \tabularnewline
33 & 128 & 126.763194607734 & 1.23680539226588 \tabularnewline
34 & 129.6 & 126.149931141037 & 3.45006885896349 \tabularnewline
35 & 125.8 & 121.233449105945 & 4.56655089405528 \tabularnewline
36 & 119.5 & 122.220784432275 & -2.72078443227517 \tabularnewline
37 & 115.7 & 110.903335833891 & 4.79666416610885 \tabularnewline
38 & 113.6 & 109.972640713009 & 3.62735928699051 \tabularnewline
39 & 129.7 & 123.424982029505 & 6.27501797049504 \tabularnewline
40 & 112 & 111.612535913056 & 0.387464086944115 \tabularnewline
41 & 116.8 & 111.323494004248 & 5.47650599575186 \tabularnewline
42 & 127 & 123.441544903890 & 3.55845509610974 \tabularnewline
43 & 112.1 & 106.597808381762 & 5.50219161823844 \tabularnewline
44 & 114.2 & 110.323218568394 & 3.87678143160582 \tabularnewline
45 & 121.1 & 125.810829330579 & -4.71082933057859 \tabularnewline
46 & 131.6 & 127.516368277825 & 4.08363172217512 \tabularnewline
47 & 125 & 121.212745512963 & 3.78725448703692 \tabularnewline
48 & 120.4 & 121.164901190211 & -0.764901190211415 \tabularnewline
49 & 117.7 & 111.089668170726 & 6.61033182927407 \tabularnewline
50 & 117.5 & 110.303898200716 & 7.19610179928424 \tabularnewline
51 & 120.6 & 122.286284415515 & -1.68628441551464 \tabularnewline
52 & 127.5 & 114.883703604155 & 12.6162963958447 \tabularnewline
53 & 112.3 & 111.654751491954 & 0.64524850804559 \tabularnewline
54 & 124.5 & 122.054404174120 & 2.44559582587975 \tabularnewline
55 & 115.2 & 108.440428157128 & 6.75957184287232 \tabularnewline
56 & 104.7 & 108.584116757936 & -3.88411675793626 \tabularnewline
57 & 130.9 & 126.266308376175 & 4.6336916238253 \tabularnewline
58 & 129.2 & 124.493643702505 & 4.70635629749484 \tabularnewline
59 & 113.5 & 117.382580811359 & -3.88258081135931 \tabularnewline
60 & 125.6 & 119.570724530625 & 6.029275469375 \tabularnewline
61 & 107.6 & 106.886838795453 & 0.713161204547389 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58249&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]100.6[/C][C]111.213889728616[/C][C]-10.6138897286156[/C][/ROW]
[ROW][C]2[/C][C]104.3[/C][C]111.670335337504[/C][C]-7.37033533750414[/C][/ROW]
[ROW][C]3[/C][C]120.4[/C][C]125.971523966247[/C][C]-5.5715239662469[/C][/ROW]
[ROW][C]4[/C][C]107.5[/C][C]114.552446116449[/C][C]-7.05244611644906[/C][/ROW]
[ROW][C]5[/C][C]102.9[/C][C]113.331742523467[/C][C]-10.4317425234674[/C][/ROW]
[ROW][C]6[/C][C]125.6[/C][C]126.46426947921[/C][C]-0.86426947920999[/C][/ROW]
[ROW][C]7[/C][C]107.5[/C][C]106.887658683505[/C][C]0.612341316495469[/C][/ROW]
[ROW][C]8[/C][C]108.8[/C][C]109.764221557890[/C][C]-0.964221557889849[/C][/ROW]
[ROW][C]9[/C][C]128.4[/C][C]128.543703604155[/C][C]-0.143703604155318[/C][/ROW]
[ROW][C]10[/C][C]121.1[/C][C]126.129227548055[/C][C]-5.02922754805487[/C][/ROW]
[ROW][C]11[/C][C]119.5[/C][C]121.067820362092[/C][C]-1.56782036209158[/C][/ROW]
[ROW][C]12[/C][C]128.7[/C][C]123.690739533972[/C][C]5.00926046602824[/C][/ROW]
[ROW][C]13[/C][C]108.7[/C][C]110.50996756724[/C][C]-1.80996756723996[/C][/ROW]
[ROW][C]14[/C][C]105.5[/C][C]110.096862270899[/C][C]-4.59686227089934[/C][/ROW]
[ROW][C]15[/C][C]119.8[/C][C]124.294532934734[/C][C]-4.49453293473391[/C][/ROW]
[ROW][C]16[/C][C]111.3[/C][C]113.475859281404[/C][C]-2.17585928140367[/C][/ROW]
[ROW][C]17[/C][C]110.6[/C][C]111.509826341083[/C][C]-0.909826341082922[/C][/ROW]
[ROW][C]18[/C][C]120.1[/C][C]124.435317367009[/C][C]-4.33531736700908[/C][/ROW]
[ROW][C]19[/C][C]97.5[/C][C]106.204440115110[/C][C]-8.70444011511035[/C][/ROW]
[ROW][C]20[/C][C]107.7[/C][C]109.64[/C][C]-1.94[/C][/ROW]
[ROW][C]21[/C][C]127.3[/C][C]128.315964081357[/C][C]-1.01596408135727[/C][/ROW]
[ROW][C]22[/C][C]117.2[/C][C]124.410829330579[/C][C]-7.21082933057857[/C][/ROW]
[ROW][C]23[/C][C]119.8[/C][C]122.703404207641[/C][C]-2.90340420764131[/C][/ROW]
[ROW][C]24[/C][C]116.2[/C][C]123.752850312917[/C][C]-7.55285031291667[/C][/ROW]
[ROW][C]25[/C][C]111[/C][C]110.696299904075[/C][C]0.303700095925263[/C][/ROW]
[ROW][C]26[/C][C]112.4[/C][C]111.256263477871[/C][C]1.14373652212872[/C][/ROW]
[ROW][C]27[/C][C]130.6[/C][C]125.122676654000[/C][C]5.47732334600041[/C][/ROW]
[ROW][C]28[/C][C]109.1[/C][C]112.875455084936[/C][C]-3.77545508493606[/C][/ROW]
[ROW][C]29[/C][C]118.8[/C][C]113.580185639247[/C][C]5.21981436075288[/C][/ROW]
[ROW][C]30[/C][C]123.9[/C][C]124.704464075770[/C][C]-0.804464075770418[/C][/ROW]
[ROW][C]31[/C][C]101.6[/C][C]105.769664662496[/C][C]-4.16966466249588[/C][/ROW]
[ROW][C]32[/C][C]112.8[/C][C]109.888443115780[/C][C]2.91155688422029[/C][/ROW]
[ROW][C]33[/C][C]128[/C][C]126.763194607734[/C][C]1.23680539226588[/C][/ROW]
[ROW][C]34[/C][C]129.6[/C][C]126.149931141037[/C][C]3.45006885896349[/C][/ROW]
[ROW][C]35[/C][C]125.8[/C][C]121.233449105945[/C][C]4.56655089405528[/C][/ROW]
[ROW][C]36[/C][C]119.5[/C][C]122.220784432275[/C][C]-2.72078443227517[/C][/ROW]
[ROW][C]37[/C][C]115.7[/C][C]110.903335833891[/C][C]4.79666416610885[/C][/ROW]
[ROW][C]38[/C][C]113.6[/C][C]109.972640713009[/C][C]3.62735928699051[/C][/ROW]
[ROW][C]39[/C][C]129.7[/C][C]123.424982029505[/C][C]6.27501797049504[/C][/ROW]
[ROW][C]40[/C][C]112[/C][C]111.612535913056[/C][C]0.387464086944115[/C][/ROW]
[ROW][C]41[/C][C]116.8[/C][C]111.323494004248[/C][C]5.47650599575186[/C][/ROW]
[ROW][C]42[/C][C]127[/C][C]123.441544903890[/C][C]3.55845509610974[/C][/ROW]
[ROW][C]43[/C][C]112.1[/C][C]106.597808381762[/C][C]5.50219161823844[/C][/ROW]
[ROW][C]44[/C][C]114.2[/C][C]110.323218568394[/C][C]3.87678143160582[/C][/ROW]
[ROW][C]45[/C][C]121.1[/C][C]125.810829330579[/C][C]-4.71082933057859[/C][/ROW]
[ROW][C]46[/C][C]131.6[/C][C]127.516368277825[/C][C]4.08363172217512[/C][/ROW]
[ROW][C]47[/C][C]125[/C][C]121.212745512963[/C][C]3.78725448703692[/C][/ROW]
[ROW][C]48[/C][C]120.4[/C][C]121.164901190211[/C][C]-0.764901190211415[/C][/ROW]
[ROW][C]49[/C][C]117.7[/C][C]111.089668170726[/C][C]6.61033182927407[/C][/ROW]
[ROW][C]50[/C][C]117.5[/C][C]110.303898200716[/C][C]7.19610179928424[/C][/ROW]
[ROW][C]51[/C][C]120.6[/C][C]122.286284415515[/C][C]-1.68628441551464[/C][/ROW]
[ROW][C]52[/C][C]127.5[/C][C]114.883703604155[/C][C]12.6162963958447[/C][/ROW]
[ROW][C]53[/C][C]112.3[/C][C]111.654751491954[/C][C]0.64524850804559[/C][/ROW]
[ROW][C]54[/C][C]124.5[/C][C]122.054404174120[/C][C]2.44559582587975[/C][/ROW]
[ROW][C]55[/C][C]115.2[/C][C]108.440428157128[/C][C]6.75957184287232[/C][/ROW]
[ROW][C]56[/C][C]104.7[/C][C]108.584116757936[/C][C]-3.88411675793626[/C][/ROW]
[ROW][C]57[/C][C]130.9[/C][C]126.266308376175[/C][C]4.6336916238253[/C][/ROW]
[ROW][C]58[/C][C]129.2[/C][C]124.493643702505[/C][C]4.70635629749484[/C][/ROW]
[ROW][C]59[/C][C]113.5[/C][C]117.382580811359[/C][C]-3.88258081135931[/C][/ROW]
[ROW][C]60[/C][C]125.6[/C][C]119.570724530625[/C][C]6.029275469375[/C][/ROW]
[ROW][C]61[/C][C]107.6[/C][C]106.886838795453[/C][C]0.713161204547389[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58249&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58249&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
1100.6111.213889728616-10.6138897286156
2104.3111.670335337504-7.37033533750414
3120.4125.971523966247-5.5715239662469
4107.5114.552446116449-7.05244611644906
5102.9113.331742523467-10.4317425234674
6125.6126.46426947921-0.86426947920999
7107.5106.8876586835050.612341316495469
8108.8109.764221557890-0.964221557889849
9128.4128.543703604155-0.143703604155318
10121.1126.129227548055-5.02922754805487
11119.5121.067820362092-1.56782036209158
12128.7123.6907395339725.00926046602824
13108.7110.50996756724-1.80996756723996
14105.5110.096862270899-4.59686227089934
15119.8124.294532934734-4.49453293473391
16111.3113.475859281404-2.17585928140367
17110.6111.509826341083-0.909826341082922
18120.1124.435317367009-4.33531736700908
1997.5106.204440115110-8.70444011511035
20107.7109.64-1.94
21127.3128.315964081357-1.01596408135727
22117.2124.410829330579-7.21082933057857
23119.8122.703404207641-2.90340420764131
24116.2123.752850312917-7.55285031291667
25111110.6962999040750.303700095925263
26112.4111.2562634778711.14373652212872
27130.6125.1226766540005.47732334600041
28109.1112.875455084936-3.77545508493606
29118.8113.5801856392475.21981436075288
30123.9124.704464075770-0.804464075770418
31101.6105.769664662496-4.16966466249588
32112.8109.8884431157802.91155688422029
33128126.7631946077341.23680539226588
34129.6126.1499311410373.45006885896349
35125.8121.2334491059454.56655089405528
36119.5122.220784432275-2.72078443227517
37115.7110.9033358338914.79666416610885
38113.6109.9726407130093.62735928699051
39129.7123.4249820295056.27501797049504
40112111.6125359130560.387464086944115
41116.8111.3234940042485.47650599575186
42127123.4415449038903.55845509610974
43112.1106.5978083817625.50219161823844
44114.2110.3232185683943.87678143160582
45121.1125.810829330579-4.71082933057859
46131.6127.5163682778254.08363172217512
47125121.2127455129633.78725448703692
48120.4121.164901190211-0.764901190211415
49117.7111.0896681707266.61033182927407
50117.5110.3038982007167.19610179928424
51120.6122.286284415515-1.68628441551464
52127.5114.88370360415512.6162963958447
53112.3111.6547514919540.64524850804559
54124.5122.0544041741202.44559582587975
55115.2108.4404281571286.75957184287232
56104.7108.584116757936-3.88411675793626
57130.9126.2663083761754.6336916238253
58129.2124.4936437025054.70635629749484
59113.5117.382580811359-3.88258081135931
60125.6119.5707245306256.029275469375
61107.6106.8868387954530.713161204547389







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2876916682373850.5753833364747710.712308331762615
170.2099956405517880.4199912811035760.790004359448212
180.3508570951881270.7017141903762540.649142904811873
190.5806118797373840.8387762405252320.419388120262616
200.4619827321092320.9239654642184650.538017267890768
210.3528525014444060.7057050028888110.647147498555594
220.3657377211647010.7314754423294030.634262278835299
230.3018248678481650.603649735696330.698175132151835
240.6635551871595150.672889625680970.336444812840485
250.6876200924893180.6247598150213630.312379907510682
260.7394532587238440.5210934825523120.260546741276156
270.8048430763310470.3903138473379060.195156923668953
280.8434791536717640.3130416926564720.156520846328236
290.8875023352713040.2249953294573930.112497664728696
300.8855788475866750.228842304826650.114421152413325
310.898112425211020.2037751495779600.101887574788980
320.8664168637741650.2671662724516690.133583136225835
330.8067875598335650.386424880332870.193212440166435
340.8066259247070180.3867481505859650.193374075292982
350.7702647408421830.4594705183156350.229735259157817
360.8160112013811170.3679775972377670.183988798618883
370.7996029332788470.4007941334423050.200397066721153
380.7622865981071880.4754268037856240.237713401892812
390.7621103626260470.4757792747479060.237889637373953
400.7811307011854410.4377385976291170.218869298814559
410.7559429225073290.4881141549853430.244057077492671
420.6459268457019570.7081463085960870.354073154298043
430.5631212104159440.8737575791681120.436878789584056
440.5055983419118230.9888033161763540.494401658088177
450.6022785050619030.7954429898761940.397721494938097

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.287691668237385 & 0.575383336474771 & 0.712308331762615 \tabularnewline
17 & 0.209995640551788 & 0.419991281103576 & 0.790004359448212 \tabularnewline
18 & 0.350857095188127 & 0.701714190376254 & 0.649142904811873 \tabularnewline
19 & 0.580611879737384 & 0.838776240525232 & 0.419388120262616 \tabularnewline
20 & 0.461982732109232 & 0.923965464218465 & 0.538017267890768 \tabularnewline
21 & 0.352852501444406 & 0.705705002888811 & 0.647147498555594 \tabularnewline
22 & 0.365737721164701 & 0.731475442329403 & 0.634262278835299 \tabularnewline
23 & 0.301824867848165 & 0.60364973569633 & 0.698175132151835 \tabularnewline
24 & 0.663555187159515 & 0.67288962568097 & 0.336444812840485 \tabularnewline
25 & 0.687620092489318 & 0.624759815021363 & 0.312379907510682 \tabularnewline
26 & 0.739453258723844 & 0.521093482552312 & 0.260546741276156 \tabularnewline
27 & 0.804843076331047 & 0.390313847337906 & 0.195156923668953 \tabularnewline
28 & 0.843479153671764 & 0.313041692656472 & 0.156520846328236 \tabularnewline
29 & 0.887502335271304 & 0.224995329457393 & 0.112497664728696 \tabularnewline
30 & 0.885578847586675 & 0.22884230482665 & 0.114421152413325 \tabularnewline
31 & 0.89811242521102 & 0.203775149577960 & 0.101887574788980 \tabularnewline
32 & 0.866416863774165 & 0.267166272451669 & 0.133583136225835 \tabularnewline
33 & 0.806787559833565 & 0.38642488033287 & 0.193212440166435 \tabularnewline
34 & 0.806625924707018 & 0.386748150585965 & 0.193374075292982 \tabularnewline
35 & 0.770264740842183 & 0.459470518315635 & 0.229735259157817 \tabularnewline
36 & 0.816011201381117 & 0.367977597237767 & 0.183988798618883 \tabularnewline
37 & 0.799602933278847 & 0.400794133442305 & 0.200397066721153 \tabularnewline
38 & 0.762286598107188 & 0.475426803785624 & 0.237713401892812 \tabularnewline
39 & 0.762110362626047 & 0.475779274747906 & 0.237889637373953 \tabularnewline
40 & 0.781130701185441 & 0.437738597629117 & 0.218869298814559 \tabularnewline
41 & 0.755942922507329 & 0.488114154985343 & 0.244057077492671 \tabularnewline
42 & 0.645926845701957 & 0.708146308596087 & 0.354073154298043 \tabularnewline
43 & 0.563121210415944 & 0.873757579168112 & 0.436878789584056 \tabularnewline
44 & 0.505598341911823 & 0.988803316176354 & 0.494401658088177 \tabularnewline
45 & 0.602278505061903 & 0.795442989876194 & 0.397721494938097 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58249&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.287691668237385[/C][C]0.575383336474771[/C][C]0.712308331762615[/C][/ROW]
[ROW][C]17[/C][C]0.209995640551788[/C][C]0.419991281103576[/C][C]0.790004359448212[/C][/ROW]
[ROW][C]18[/C][C]0.350857095188127[/C][C]0.701714190376254[/C][C]0.649142904811873[/C][/ROW]
[ROW][C]19[/C][C]0.580611879737384[/C][C]0.838776240525232[/C][C]0.419388120262616[/C][/ROW]
[ROW][C]20[/C][C]0.461982732109232[/C][C]0.923965464218465[/C][C]0.538017267890768[/C][/ROW]
[ROW][C]21[/C][C]0.352852501444406[/C][C]0.705705002888811[/C][C]0.647147498555594[/C][/ROW]
[ROW][C]22[/C][C]0.365737721164701[/C][C]0.731475442329403[/C][C]0.634262278835299[/C][/ROW]
[ROW][C]23[/C][C]0.301824867848165[/C][C]0.60364973569633[/C][C]0.698175132151835[/C][/ROW]
[ROW][C]24[/C][C]0.663555187159515[/C][C]0.67288962568097[/C][C]0.336444812840485[/C][/ROW]
[ROW][C]25[/C][C]0.687620092489318[/C][C]0.624759815021363[/C][C]0.312379907510682[/C][/ROW]
[ROW][C]26[/C][C]0.739453258723844[/C][C]0.521093482552312[/C][C]0.260546741276156[/C][/ROW]
[ROW][C]27[/C][C]0.804843076331047[/C][C]0.390313847337906[/C][C]0.195156923668953[/C][/ROW]
[ROW][C]28[/C][C]0.843479153671764[/C][C]0.313041692656472[/C][C]0.156520846328236[/C][/ROW]
[ROW][C]29[/C][C]0.887502335271304[/C][C]0.224995329457393[/C][C]0.112497664728696[/C][/ROW]
[ROW][C]30[/C][C]0.885578847586675[/C][C]0.22884230482665[/C][C]0.114421152413325[/C][/ROW]
[ROW][C]31[/C][C]0.89811242521102[/C][C]0.203775149577960[/C][C]0.101887574788980[/C][/ROW]
[ROW][C]32[/C][C]0.866416863774165[/C][C]0.267166272451669[/C][C]0.133583136225835[/C][/ROW]
[ROW][C]33[/C][C]0.806787559833565[/C][C]0.38642488033287[/C][C]0.193212440166435[/C][/ROW]
[ROW][C]34[/C][C]0.806625924707018[/C][C]0.386748150585965[/C][C]0.193374075292982[/C][/ROW]
[ROW][C]35[/C][C]0.770264740842183[/C][C]0.459470518315635[/C][C]0.229735259157817[/C][/ROW]
[ROW][C]36[/C][C]0.816011201381117[/C][C]0.367977597237767[/C][C]0.183988798618883[/C][/ROW]
[ROW][C]37[/C][C]0.799602933278847[/C][C]0.400794133442305[/C][C]0.200397066721153[/C][/ROW]
[ROW][C]38[/C][C]0.762286598107188[/C][C]0.475426803785624[/C][C]0.237713401892812[/C][/ROW]
[ROW][C]39[/C][C]0.762110362626047[/C][C]0.475779274747906[/C][C]0.237889637373953[/C][/ROW]
[ROW][C]40[/C][C]0.781130701185441[/C][C]0.437738597629117[/C][C]0.218869298814559[/C][/ROW]
[ROW][C]41[/C][C]0.755942922507329[/C][C]0.488114154985343[/C][C]0.244057077492671[/C][/ROW]
[ROW][C]42[/C][C]0.645926845701957[/C][C]0.708146308596087[/C][C]0.354073154298043[/C][/ROW]
[ROW][C]43[/C][C]0.563121210415944[/C][C]0.873757579168112[/C][C]0.436878789584056[/C][/ROW]
[ROW][C]44[/C][C]0.505598341911823[/C][C]0.988803316176354[/C][C]0.494401658088177[/C][/ROW]
[ROW][C]45[/C][C]0.602278505061903[/C][C]0.795442989876194[/C][C]0.397721494938097[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58249&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58249&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.2876916682373850.5753833364747710.712308331762615
170.2099956405517880.4199912811035760.790004359448212
180.3508570951881270.7017141903762540.649142904811873
190.5806118797373840.8387762405252320.419388120262616
200.4619827321092320.9239654642184650.538017267890768
210.3528525014444060.7057050028888110.647147498555594
220.3657377211647010.7314754423294030.634262278835299
230.3018248678481650.603649735696330.698175132151835
240.6635551871595150.672889625680970.336444812840485
250.6876200924893180.6247598150213630.312379907510682
260.7394532587238440.5210934825523120.260546741276156
270.8048430763310470.3903138473379060.195156923668953
280.8434791536717640.3130416926564720.156520846328236
290.8875023352713040.2249953294573930.112497664728696
300.8855788475866750.228842304826650.114421152413325
310.898112425211020.2037751495779600.101887574788980
320.8664168637741650.2671662724516690.133583136225835
330.8067875598335650.386424880332870.193212440166435
340.8066259247070180.3867481505859650.193374075292982
350.7702647408421830.4594705183156350.229735259157817
360.8160112013811170.3679775972377670.183988798618883
370.7996029332788470.4007941334423050.200397066721153
380.7622865981071880.4754268037856240.237713401892812
390.7621103626260470.4757792747479060.237889637373953
400.7811307011854410.4377385976291170.218869298814559
410.7559429225073290.4881141549853430.244057077492671
420.6459268457019570.7081463085960870.354073154298043
430.5631212104159440.8737575791681120.436878789584056
440.5055983419118230.9888033161763540.494401658088177
450.6022785050619030.7954429898761940.397721494938097







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

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