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 computationTue, 21 Dec 2010 20:19:59 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/21/t1292962658m2c97wojk74zxeb.htm/, Retrieved Wed, 01 May 2024 20:57:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=113936, Retrieved Wed, 01 May 2024 20:57:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact140
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]
-    D    [Multiple Regression] [Multivariate regr...] [2009-11-19 08:45:43] [21324e9cdf3569788a3d630236984d87]
-    D        [Multiple Regression] [] [2010-12-21 20:19:59] [1d208f56d63f78e3037c4c685f0bba30] [Current]
Feedback Forum

Post a new message
Dataseries X:
112,3	1
117,3	1
111,1	1
102,2	1
104,3	1
122,9	0
107,6	0
121,3	0
131,5	0
89	0
104,4	0
128,9	0
135,9	0
133,3	0
121,3	0
120,5	0
120,4	0
137,9	0
126,1	0
133,2	0
151,1	0
105	0
119	0
140,4	0
156,6	1
137,1	1
122,7	1
125,8	1
139,3	1
134,9	1
149,2	1
132,3	1
149	1
117,2	1
119,6	1
152	1
149,4	1
127,3	1
114,1	1
102,1	1
107,7	1
104,4	1
102,1	1
96	1
109,3	1
90	1
83,9	1
112	1
114,3	1
103,6	1
91,7	1
80,8	1
87,2	1
109,2	1
102,7	1
95,1	1
117,5	1
85,1	1
92,1	1
113,5	1





Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk
R Framework error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 5 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
R Framework error message & 
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=113936&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[ROW][C]R Framework error message[/C][C]
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=113936&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk
R Framework error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.







Multiple Linear Regression - Estimated Regression Equation
Promet[t] = + 135.547741935484 -10.3129032258065Dummy[t] + 6.40258064516126M1[t] -3.57741935483871M2[t] -15.1174193548387M3[t] -21.0174193548387M4[t] -15.5174193548387M5[t] -7.5M6[t] -11.82M7[t] -13.78M8[t] + 2.32M9[t] -32.1M10[t] -25.56M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Promet[t] =  +  135.547741935484 -10.3129032258065Dummy[t] +  6.40258064516126M1[t] -3.57741935483871M2[t] -15.1174193548387M3[t] -21.0174193548387M4[t] -15.5174193548387M5[t] -7.5M6[t] -11.82M7[t] -13.78M8[t] +  2.32M9[t] -32.1M10[t] -25.56M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113936&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Promet[t] =  +  135.547741935484 -10.3129032258065Dummy[t] +  6.40258064516126M1[t] -3.57741935483871M2[t] -15.1174193548387M3[t] -21.0174193548387M4[t] -15.5174193548387M5[t] -7.5M6[t] -11.82M7[t] -13.78M8[t] +  2.32M9[t] -32.1M10[t] -25.56M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113936&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113936&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
Promet[t] = + 135.547741935484 -10.3129032258065Dummy[t] + 6.40258064516126M1[t] -3.57741935483871M2[t] -15.1174193548387M3[t] -21.0174193548387M4[t] -15.5174193548387M5[t] -7.5M6[t] -11.82M7[t] -13.78M8[t] + 2.32M9[t] -32.1M10[t] -25.56M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)135.5477419354847.85851617.248500
Dummy-10.31290322580654.663171-2.21160.0318960.015948
M16.4025806451612610.4271680.6140.5421570.271079
M2-3.5774193548387110.427168-0.34310.7330630.366532
M3-15.117419354838710.427168-1.44980.1537520.076876
M4-21.017419354838710.427168-2.01560.0495750.024788
M5-15.517419354838710.427168-1.48820.1433850.071692
M6-7.510.385375-0.72220.4737680.236884
M7-11.8210.385375-1.13810.2608310.130416
M8-13.7810.385375-1.32690.1909640.095482
M92.3210.3853750.22340.8241990.4121
M10-32.110.385375-3.09090.003350.001675
M11-25.5610.385375-2.46120.0175770.008788

\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) & 135.547741935484 & 7.858516 & 17.2485 & 0 & 0 \tabularnewline
Dummy & -10.3129032258065 & 4.663171 & -2.2116 & 0.031896 & 0.015948 \tabularnewline
M1 & 6.40258064516126 & 10.427168 & 0.614 & 0.542157 & 0.271079 \tabularnewline
M2 & -3.57741935483871 & 10.427168 & -0.3431 & 0.733063 & 0.366532 \tabularnewline
M3 & -15.1174193548387 & 10.427168 & -1.4498 & 0.153752 & 0.076876 \tabularnewline
M4 & -21.0174193548387 & 10.427168 & -2.0156 & 0.049575 & 0.024788 \tabularnewline
M5 & -15.5174193548387 & 10.427168 & -1.4882 & 0.143385 & 0.071692 \tabularnewline
M6 & -7.5 & 10.385375 & -0.7222 & 0.473768 & 0.236884 \tabularnewline
M7 & -11.82 & 10.385375 & -1.1381 & 0.260831 & 0.130416 \tabularnewline
M8 & -13.78 & 10.385375 & -1.3269 & 0.190964 & 0.095482 \tabularnewline
M9 & 2.32 & 10.385375 & 0.2234 & 0.824199 & 0.4121 \tabularnewline
M10 & -32.1 & 10.385375 & -3.0909 & 0.00335 & 0.001675 \tabularnewline
M11 & -25.56 & 10.385375 & -2.4612 & 0.017577 & 0.008788 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113936&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]135.547741935484[/C][C]7.858516[/C][C]17.2485[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]-10.3129032258065[/C][C]4.663171[/C][C]-2.2116[/C][C]0.031896[/C][C]0.015948[/C][/ROW]
[ROW][C]M1[/C][C]6.40258064516126[/C][C]10.427168[/C][C]0.614[/C][C]0.542157[/C][C]0.271079[/C][/ROW]
[ROW][C]M2[/C][C]-3.57741935483871[/C][C]10.427168[/C][C]-0.3431[/C][C]0.733063[/C][C]0.366532[/C][/ROW]
[ROW][C]M3[/C][C]-15.1174193548387[/C][C]10.427168[/C][C]-1.4498[/C][C]0.153752[/C][C]0.076876[/C][/ROW]
[ROW][C]M4[/C][C]-21.0174193548387[/C][C]10.427168[/C][C]-2.0156[/C][C]0.049575[/C][C]0.024788[/C][/ROW]
[ROW][C]M5[/C][C]-15.5174193548387[/C][C]10.427168[/C][C]-1.4882[/C][C]0.143385[/C][C]0.071692[/C][/ROW]
[ROW][C]M6[/C][C]-7.5[/C][C]10.385375[/C][C]-0.7222[/C][C]0.473768[/C][C]0.236884[/C][/ROW]
[ROW][C]M7[/C][C]-11.82[/C][C]10.385375[/C][C]-1.1381[/C][C]0.260831[/C][C]0.130416[/C][/ROW]
[ROW][C]M8[/C][C]-13.78[/C][C]10.385375[/C][C]-1.3269[/C][C]0.190964[/C][C]0.095482[/C][/ROW]
[ROW][C]M9[/C][C]2.32[/C][C]10.385375[/C][C]0.2234[/C][C]0.824199[/C][C]0.4121[/C][/ROW]
[ROW][C]M10[/C][C]-32.1[/C][C]10.385375[/C][C]-3.0909[/C][C]0.00335[/C][C]0.001675[/C][/ROW]
[ROW][C]M11[/C][C]-25.56[/C][C]10.385375[/C][C]-2.4612[/C][C]0.017577[/C][C]0.008788[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113936&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113936&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)135.5477419354847.85851617.248500
Dummy-10.31290322580654.663171-2.21160.0318960.015948
M16.4025806451612610.4271680.6140.5421570.271079
M2-3.5774193548387110.427168-0.34310.7330630.366532
M3-15.117419354838710.427168-1.44980.1537520.076876
M4-21.017419354838710.427168-2.01560.0495750.024788
M5-15.517419354838710.427168-1.48820.1433850.071692
M6-7.510.385375-0.72220.4737680.236884
M7-11.8210.385375-1.13810.2608310.130416
M8-13.7810.385375-1.32690.1909640.095482
M92.3210.3853750.22340.8241990.4121
M10-32.110.385375-3.09090.003350.001675
M11-25.5610.385375-2.46120.0175770.008788







Multiple Linear Regression - Regression Statistics
Multiple R0.634856007965505
R-squared0.403042150849898
Adjusted R-squared0.250627380854127
F-TEST (value)2.64437725334022
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.00865003239583761
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16.4207198740039
Sum Squared Residuals12673.0819354839

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.634856007965505 \tabularnewline
R-squared & 0.403042150849898 \tabularnewline
Adjusted R-squared & 0.250627380854127 \tabularnewline
F-TEST (value) & 2.64437725334022 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.00865003239583761 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 16.4207198740039 \tabularnewline
Sum Squared Residuals & 12673.0819354839 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113936&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.634856007965505[/C][/ROW]
[ROW][C]R-squared[/C][C]0.403042150849898[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.250627380854127[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.64437725334022[/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.00865003239583761[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]16.4207198740039[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]12673.0819354839[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113936&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113936&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.634856007965505
R-squared0.403042150849898
Adjusted R-squared0.250627380854127
F-TEST (value)2.64437725334022
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.00865003239583761
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16.4207198740039
Sum Squared Residuals12673.0819354839







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1112.3131.637419354839-19.3374193548388
2117.3121.657419354839-4.35741935483872
3111.1110.1174193548390.982580645161287
4102.2104.217419354839-2.0174193548387
5104.3109.717419354839-5.41741935483872
6122.9128.047741935484-5.14774193548387
7107.6123.727741935484-16.1277419354839
8121.3121.767741935484-0.46774193548388
9131.5137.867741935484-6.36774193548387
1089103.447741935484-14.4477419354839
11104.4109.987741935484-5.58774193548387
12128.9135.547741935484-6.64774193548386
13135.9141.950322580645-6.05032258064512
14133.3131.9703225806451.32967741935485
15121.3120.4303225806450.869677419354837
16120.5114.5303225806455.96967741935484
17120.4120.0303225806450.369677419354839
18137.9128.0477419354849.85225806451613
19126.1123.7277419354842.37225806451613
20133.2121.76774193548411.4322580645161
21151.1137.86774193548413.2322580645161
22105103.4477419354841.55225806451613
23119109.9877419354849.01225806451613
24140.4135.5477419354844.85225806451612
25156.6131.63741935483924.9625806451613
26137.1121.65741935483915.4425806451613
27122.7110.11741935483912.5825806451613
28125.8104.21741935483921.5825806451613
29139.3109.71741935483929.5825806451613
30134.9117.73483870967717.1651612903226
31149.2113.41483870967735.7851612903226
32132.3111.45483870967720.8451612903226
33149127.55483870967721.4451612903226
34117.293.134838709677424.0651612903226
35119.699.674838709677419.9251612903226
36152125.23483870967726.7651612903226
37149.4131.63741935483917.7625806451613
38127.3121.6574193548395.64258064516129
39114.1110.1174193548393.98258064516129
40102.1104.217419354839-2.11741935483871
41107.7109.717419354839-2.01741935483871
42104.4117.734838709677-13.3348387096774
43102.1113.414838709677-11.3148387096774
4496111.454838709677-15.4548387096774
45109.3127.554838709677-18.2548387096774
469093.1348387096774-3.13483870967742
4783.999.6748387096774-15.7748387096774
48112125.234838709677-13.2348387096774
49114.3131.637419354839-17.3374193548387
50103.6121.657419354839-18.0574193548387
5191.7110.117419354839-18.4174193548387
5280.8104.217419354839-23.4174193548387
5387.2109.717419354839-22.5174193548387
54109.2117.734838709677-8.53483870967742
55102.7113.414838709677-10.7148387096774
5695.1111.454838709677-16.3548387096774
57117.5127.554838709677-10.0548387096774
5885.193.1348387096774-8.03483870967742
5992.199.6748387096774-7.57483870967743
60113.5125.234838709677-11.7348387096774

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 112.3 & 131.637419354839 & -19.3374193548388 \tabularnewline
2 & 117.3 & 121.657419354839 & -4.35741935483872 \tabularnewline
3 & 111.1 & 110.117419354839 & 0.982580645161287 \tabularnewline
4 & 102.2 & 104.217419354839 & -2.0174193548387 \tabularnewline
5 & 104.3 & 109.717419354839 & -5.41741935483872 \tabularnewline
6 & 122.9 & 128.047741935484 & -5.14774193548387 \tabularnewline
7 & 107.6 & 123.727741935484 & -16.1277419354839 \tabularnewline
8 & 121.3 & 121.767741935484 & -0.46774193548388 \tabularnewline
9 & 131.5 & 137.867741935484 & -6.36774193548387 \tabularnewline
10 & 89 & 103.447741935484 & -14.4477419354839 \tabularnewline
11 & 104.4 & 109.987741935484 & -5.58774193548387 \tabularnewline
12 & 128.9 & 135.547741935484 & -6.64774193548386 \tabularnewline
13 & 135.9 & 141.950322580645 & -6.05032258064512 \tabularnewline
14 & 133.3 & 131.970322580645 & 1.32967741935485 \tabularnewline
15 & 121.3 & 120.430322580645 & 0.869677419354837 \tabularnewline
16 & 120.5 & 114.530322580645 & 5.96967741935484 \tabularnewline
17 & 120.4 & 120.030322580645 & 0.369677419354839 \tabularnewline
18 & 137.9 & 128.047741935484 & 9.85225806451613 \tabularnewline
19 & 126.1 & 123.727741935484 & 2.37225806451613 \tabularnewline
20 & 133.2 & 121.767741935484 & 11.4322580645161 \tabularnewline
21 & 151.1 & 137.867741935484 & 13.2322580645161 \tabularnewline
22 & 105 & 103.447741935484 & 1.55225806451613 \tabularnewline
23 & 119 & 109.987741935484 & 9.01225806451613 \tabularnewline
24 & 140.4 & 135.547741935484 & 4.85225806451612 \tabularnewline
25 & 156.6 & 131.637419354839 & 24.9625806451613 \tabularnewline
26 & 137.1 & 121.657419354839 & 15.4425806451613 \tabularnewline
27 & 122.7 & 110.117419354839 & 12.5825806451613 \tabularnewline
28 & 125.8 & 104.217419354839 & 21.5825806451613 \tabularnewline
29 & 139.3 & 109.717419354839 & 29.5825806451613 \tabularnewline
30 & 134.9 & 117.734838709677 & 17.1651612903226 \tabularnewline
31 & 149.2 & 113.414838709677 & 35.7851612903226 \tabularnewline
32 & 132.3 & 111.454838709677 & 20.8451612903226 \tabularnewline
33 & 149 & 127.554838709677 & 21.4451612903226 \tabularnewline
34 & 117.2 & 93.1348387096774 & 24.0651612903226 \tabularnewline
35 & 119.6 & 99.6748387096774 & 19.9251612903226 \tabularnewline
36 & 152 & 125.234838709677 & 26.7651612903226 \tabularnewline
37 & 149.4 & 131.637419354839 & 17.7625806451613 \tabularnewline
38 & 127.3 & 121.657419354839 & 5.64258064516129 \tabularnewline
39 & 114.1 & 110.117419354839 & 3.98258064516129 \tabularnewline
40 & 102.1 & 104.217419354839 & -2.11741935483871 \tabularnewline
41 & 107.7 & 109.717419354839 & -2.01741935483871 \tabularnewline
42 & 104.4 & 117.734838709677 & -13.3348387096774 \tabularnewline
43 & 102.1 & 113.414838709677 & -11.3148387096774 \tabularnewline
44 & 96 & 111.454838709677 & -15.4548387096774 \tabularnewline
45 & 109.3 & 127.554838709677 & -18.2548387096774 \tabularnewline
46 & 90 & 93.1348387096774 & -3.13483870967742 \tabularnewline
47 & 83.9 & 99.6748387096774 & -15.7748387096774 \tabularnewline
48 & 112 & 125.234838709677 & -13.2348387096774 \tabularnewline
49 & 114.3 & 131.637419354839 & -17.3374193548387 \tabularnewline
50 & 103.6 & 121.657419354839 & -18.0574193548387 \tabularnewline
51 & 91.7 & 110.117419354839 & -18.4174193548387 \tabularnewline
52 & 80.8 & 104.217419354839 & -23.4174193548387 \tabularnewline
53 & 87.2 & 109.717419354839 & -22.5174193548387 \tabularnewline
54 & 109.2 & 117.734838709677 & -8.53483870967742 \tabularnewline
55 & 102.7 & 113.414838709677 & -10.7148387096774 \tabularnewline
56 & 95.1 & 111.454838709677 & -16.3548387096774 \tabularnewline
57 & 117.5 & 127.554838709677 & -10.0548387096774 \tabularnewline
58 & 85.1 & 93.1348387096774 & -8.03483870967742 \tabularnewline
59 & 92.1 & 99.6748387096774 & -7.57483870967743 \tabularnewline
60 & 113.5 & 125.234838709677 & -11.7348387096774 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113936&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]112.3[/C][C]131.637419354839[/C][C]-19.3374193548388[/C][/ROW]
[ROW][C]2[/C][C]117.3[/C][C]121.657419354839[/C][C]-4.35741935483872[/C][/ROW]
[ROW][C]3[/C][C]111.1[/C][C]110.117419354839[/C][C]0.982580645161287[/C][/ROW]
[ROW][C]4[/C][C]102.2[/C][C]104.217419354839[/C][C]-2.0174193548387[/C][/ROW]
[ROW][C]5[/C][C]104.3[/C][C]109.717419354839[/C][C]-5.41741935483872[/C][/ROW]
[ROW][C]6[/C][C]122.9[/C][C]128.047741935484[/C][C]-5.14774193548387[/C][/ROW]
[ROW][C]7[/C][C]107.6[/C][C]123.727741935484[/C][C]-16.1277419354839[/C][/ROW]
[ROW][C]8[/C][C]121.3[/C][C]121.767741935484[/C][C]-0.46774193548388[/C][/ROW]
[ROW][C]9[/C][C]131.5[/C][C]137.867741935484[/C][C]-6.36774193548387[/C][/ROW]
[ROW][C]10[/C][C]89[/C][C]103.447741935484[/C][C]-14.4477419354839[/C][/ROW]
[ROW][C]11[/C][C]104.4[/C][C]109.987741935484[/C][C]-5.58774193548387[/C][/ROW]
[ROW][C]12[/C][C]128.9[/C][C]135.547741935484[/C][C]-6.64774193548386[/C][/ROW]
[ROW][C]13[/C][C]135.9[/C][C]141.950322580645[/C][C]-6.05032258064512[/C][/ROW]
[ROW][C]14[/C][C]133.3[/C][C]131.970322580645[/C][C]1.32967741935485[/C][/ROW]
[ROW][C]15[/C][C]121.3[/C][C]120.430322580645[/C][C]0.869677419354837[/C][/ROW]
[ROW][C]16[/C][C]120.5[/C][C]114.530322580645[/C][C]5.96967741935484[/C][/ROW]
[ROW][C]17[/C][C]120.4[/C][C]120.030322580645[/C][C]0.369677419354839[/C][/ROW]
[ROW][C]18[/C][C]137.9[/C][C]128.047741935484[/C][C]9.85225806451613[/C][/ROW]
[ROW][C]19[/C][C]126.1[/C][C]123.727741935484[/C][C]2.37225806451613[/C][/ROW]
[ROW][C]20[/C][C]133.2[/C][C]121.767741935484[/C][C]11.4322580645161[/C][/ROW]
[ROW][C]21[/C][C]151.1[/C][C]137.867741935484[/C][C]13.2322580645161[/C][/ROW]
[ROW][C]22[/C][C]105[/C][C]103.447741935484[/C][C]1.55225806451613[/C][/ROW]
[ROW][C]23[/C][C]119[/C][C]109.987741935484[/C][C]9.01225806451613[/C][/ROW]
[ROW][C]24[/C][C]140.4[/C][C]135.547741935484[/C][C]4.85225806451612[/C][/ROW]
[ROW][C]25[/C][C]156.6[/C][C]131.637419354839[/C][C]24.9625806451613[/C][/ROW]
[ROW][C]26[/C][C]137.1[/C][C]121.657419354839[/C][C]15.4425806451613[/C][/ROW]
[ROW][C]27[/C][C]122.7[/C][C]110.117419354839[/C][C]12.5825806451613[/C][/ROW]
[ROW][C]28[/C][C]125.8[/C][C]104.217419354839[/C][C]21.5825806451613[/C][/ROW]
[ROW][C]29[/C][C]139.3[/C][C]109.717419354839[/C][C]29.5825806451613[/C][/ROW]
[ROW][C]30[/C][C]134.9[/C][C]117.734838709677[/C][C]17.1651612903226[/C][/ROW]
[ROW][C]31[/C][C]149.2[/C][C]113.414838709677[/C][C]35.7851612903226[/C][/ROW]
[ROW][C]32[/C][C]132.3[/C][C]111.454838709677[/C][C]20.8451612903226[/C][/ROW]
[ROW][C]33[/C][C]149[/C][C]127.554838709677[/C][C]21.4451612903226[/C][/ROW]
[ROW][C]34[/C][C]117.2[/C][C]93.1348387096774[/C][C]24.0651612903226[/C][/ROW]
[ROW][C]35[/C][C]119.6[/C][C]99.6748387096774[/C][C]19.9251612903226[/C][/ROW]
[ROW][C]36[/C][C]152[/C][C]125.234838709677[/C][C]26.7651612903226[/C][/ROW]
[ROW][C]37[/C][C]149.4[/C][C]131.637419354839[/C][C]17.7625806451613[/C][/ROW]
[ROW][C]38[/C][C]127.3[/C][C]121.657419354839[/C][C]5.64258064516129[/C][/ROW]
[ROW][C]39[/C][C]114.1[/C][C]110.117419354839[/C][C]3.98258064516129[/C][/ROW]
[ROW][C]40[/C][C]102.1[/C][C]104.217419354839[/C][C]-2.11741935483871[/C][/ROW]
[ROW][C]41[/C][C]107.7[/C][C]109.717419354839[/C][C]-2.01741935483871[/C][/ROW]
[ROW][C]42[/C][C]104.4[/C][C]117.734838709677[/C][C]-13.3348387096774[/C][/ROW]
[ROW][C]43[/C][C]102.1[/C][C]113.414838709677[/C][C]-11.3148387096774[/C][/ROW]
[ROW][C]44[/C][C]96[/C][C]111.454838709677[/C][C]-15.4548387096774[/C][/ROW]
[ROW][C]45[/C][C]109.3[/C][C]127.554838709677[/C][C]-18.2548387096774[/C][/ROW]
[ROW][C]46[/C][C]90[/C][C]93.1348387096774[/C][C]-3.13483870967742[/C][/ROW]
[ROW][C]47[/C][C]83.9[/C][C]99.6748387096774[/C][C]-15.7748387096774[/C][/ROW]
[ROW][C]48[/C][C]112[/C][C]125.234838709677[/C][C]-13.2348387096774[/C][/ROW]
[ROW][C]49[/C][C]114.3[/C][C]131.637419354839[/C][C]-17.3374193548387[/C][/ROW]
[ROW][C]50[/C][C]103.6[/C][C]121.657419354839[/C][C]-18.0574193548387[/C][/ROW]
[ROW][C]51[/C][C]91.7[/C][C]110.117419354839[/C][C]-18.4174193548387[/C][/ROW]
[ROW][C]52[/C][C]80.8[/C][C]104.217419354839[/C][C]-23.4174193548387[/C][/ROW]
[ROW][C]53[/C][C]87.2[/C][C]109.717419354839[/C][C]-22.5174193548387[/C][/ROW]
[ROW][C]54[/C][C]109.2[/C][C]117.734838709677[/C][C]-8.53483870967742[/C][/ROW]
[ROW][C]55[/C][C]102.7[/C][C]113.414838709677[/C][C]-10.7148387096774[/C][/ROW]
[ROW][C]56[/C][C]95.1[/C][C]111.454838709677[/C][C]-16.3548387096774[/C][/ROW]
[ROW][C]57[/C][C]117.5[/C][C]127.554838709677[/C][C]-10.0548387096774[/C][/ROW]
[ROW][C]58[/C][C]85.1[/C][C]93.1348387096774[/C][C]-8.03483870967742[/C][/ROW]
[ROW][C]59[/C][C]92.1[/C][C]99.6748387096774[/C][C]-7.57483870967743[/C][/ROW]
[ROW][C]60[/C][C]113.5[/C][C]125.234838709677[/C][C]-11.7348387096774[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113936&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113936&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
1112.3131.637419354839-19.3374193548388
2117.3121.657419354839-4.35741935483872
3111.1110.1174193548390.982580645161287
4102.2104.217419354839-2.0174193548387
5104.3109.717419354839-5.41741935483872
6122.9128.047741935484-5.14774193548387
7107.6123.727741935484-16.1277419354839
8121.3121.767741935484-0.46774193548388
9131.5137.867741935484-6.36774193548387
1089103.447741935484-14.4477419354839
11104.4109.987741935484-5.58774193548387
12128.9135.547741935484-6.64774193548386
13135.9141.950322580645-6.05032258064512
14133.3131.9703225806451.32967741935485
15121.3120.4303225806450.869677419354837
16120.5114.5303225806455.96967741935484
17120.4120.0303225806450.369677419354839
18137.9128.0477419354849.85225806451613
19126.1123.7277419354842.37225806451613
20133.2121.76774193548411.4322580645161
21151.1137.86774193548413.2322580645161
22105103.4477419354841.55225806451613
23119109.9877419354849.01225806451613
24140.4135.5477419354844.85225806451612
25156.6131.63741935483924.9625806451613
26137.1121.65741935483915.4425806451613
27122.7110.11741935483912.5825806451613
28125.8104.21741935483921.5825806451613
29139.3109.71741935483929.5825806451613
30134.9117.73483870967717.1651612903226
31149.2113.41483870967735.7851612903226
32132.3111.45483870967720.8451612903226
33149127.55483870967721.4451612903226
34117.293.134838709677424.0651612903226
35119.699.674838709677419.9251612903226
36152125.23483870967726.7651612903226
37149.4131.63741935483917.7625806451613
38127.3121.6574193548395.64258064516129
39114.1110.1174193548393.98258064516129
40102.1104.217419354839-2.11741935483871
41107.7109.717419354839-2.01741935483871
42104.4117.734838709677-13.3348387096774
43102.1113.414838709677-11.3148387096774
4496111.454838709677-15.4548387096774
45109.3127.554838709677-18.2548387096774
469093.1348387096774-3.13483870967742
4783.999.6748387096774-15.7748387096774
48112125.234838709677-13.2348387096774
49114.3131.637419354839-17.3374193548387
50103.6121.657419354839-18.0574193548387
5191.7110.117419354839-18.4174193548387
5280.8104.217419354839-23.4174193548387
5387.2109.717419354839-22.5174193548387
54109.2117.734838709677-8.53483870967742
55102.7113.414838709677-10.7148387096774
5695.1111.454838709677-16.3548387096774
57117.5127.554838709677-10.0548387096774
5885.193.1348387096774-8.03483870967742
5992.199.6748387096774-7.57483870967743
60113.5125.234838709677-11.7348387096774







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.01237750745716770.02475501491433550.987622492542832
170.002092630502638740.004185261005277490.997907369497361
180.005921703696321680.01184340739264340.994078296303678
190.01093331539407340.02186663078814680.989066684605927
200.006502509347857550.01300501869571510.993497490652142
210.008351332642669780.01670266528533960.99164866735733
220.006515635296261790.01303127059252360.993484364703738
230.004378641052840810.008757282105681610.99562135894716
240.002360976165211640.004721952330423270.997639023834788
250.03119166514841470.06238333029682940.968808334851585
260.0272375180620280.05447503612405590.972762481937972
270.0187205067158960.03744101343179190.981279493284104
280.02156038185136930.04312076370273870.97843961814863
290.05294730697105670.1058946139421130.947052693028943
300.04355902545038050.0871180509007610.95644097454962
310.1333527916612520.2667055833225040.866647208338748
320.1560208480317870.3120416960635730.843979151968213
330.1945039471011610.3890078942023220.805496052898839
340.241340906774890.482681813549780.75865909322511
350.3029668186915480.6059336373830970.697033181308452
360.5730739335038260.8538521329923480.426926066496174
370.7820724188685340.4358551622629330.217927581131466
380.8417490551231540.3165018897536920.158250944876846
390.9018006830137610.1963986339724780.098199316986239
400.960977111826470.07804577634705890.0390228881735294
410.9963129975557650.00737400488847050.00368700244423525
420.9932604286810140.01347914263797110.00673957131898556
430.9801014951745230.03979700965095460.0198985048254773
440.9448227154037720.1103545691924560.0551772845962278

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0123775074571677 & 0.0247550149143355 & 0.987622492542832 \tabularnewline
17 & 0.00209263050263874 & 0.00418526100527749 & 0.997907369497361 \tabularnewline
18 & 0.00592170369632168 & 0.0118434073926434 & 0.994078296303678 \tabularnewline
19 & 0.0109333153940734 & 0.0218666307881468 & 0.989066684605927 \tabularnewline
20 & 0.00650250934785755 & 0.0130050186957151 & 0.993497490652142 \tabularnewline
21 & 0.00835133264266978 & 0.0167026652853396 & 0.99164866735733 \tabularnewline
22 & 0.00651563529626179 & 0.0130312705925236 & 0.993484364703738 \tabularnewline
23 & 0.00437864105284081 & 0.00875728210568161 & 0.99562135894716 \tabularnewline
24 & 0.00236097616521164 & 0.00472195233042327 & 0.997639023834788 \tabularnewline
25 & 0.0311916651484147 & 0.0623833302968294 & 0.968808334851585 \tabularnewline
26 & 0.027237518062028 & 0.0544750361240559 & 0.972762481937972 \tabularnewline
27 & 0.018720506715896 & 0.0374410134317919 & 0.981279493284104 \tabularnewline
28 & 0.0215603818513693 & 0.0431207637027387 & 0.97843961814863 \tabularnewline
29 & 0.0529473069710567 & 0.105894613942113 & 0.947052693028943 \tabularnewline
30 & 0.0435590254503805 & 0.087118050900761 & 0.95644097454962 \tabularnewline
31 & 0.133352791661252 & 0.266705583322504 & 0.866647208338748 \tabularnewline
32 & 0.156020848031787 & 0.312041696063573 & 0.843979151968213 \tabularnewline
33 & 0.194503947101161 & 0.389007894202322 & 0.805496052898839 \tabularnewline
34 & 0.24134090677489 & 0.48268181354978 & 0.75865909322511 \tabularnewline
35 & 0.302966818691548 & 0.605933637383097 & 0.697033181308452 \tabularnewline
36 & 0.573073933503826 & 0.853852132992348 & 0.426926066496174 \tabularnewline
37 & 0.782072418868534 & 0.435855162262933 & 0.217927581131466 \tabularnewline
38 & 0.841749055123154 & 0.316501889753692 & 0.158250944876846 \tabularnewline
39 & 0.901800683013761 & 0.196398633972478 & 0.098199316986239 \tabularnewline
40 & 0.96097711182647 & 0.0780457763470589 & 0.0390228881735294 \tabularnewline
41 & 0.996312997555765 & 0.0073740048884705 & 0.00368700244423525 \tabularnewline
42 & 0.993260428681014 & 0.0134791426379711 & 0.00673957131898556 \tabularnewline
43 & 0.980101495174523 & 0.0397970096509546 & 0.0198985048254773 \tabularnewline
44 & 0.944822715403772 & 0.110354569192456 & 0.0551772845962278 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113936&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.0123775074571677[/C][C]0.0247550149143355[/C][C]0.987622492542832[/C][/ROW]
[ROW][C]17[/C][C]0.00209263050263874[/C][C]0.00418526100527749[/C][C]0.997907369497361[/C][/ROW]
[ROW][C]18[/C][C]0.00592170369632168[/C][C]0.0118434073926434[/C][C]0.994078296303678[/C][/ROW]
[ROW][C]19[/C][C]0.0109333153940734[/C][C]0.0218666307881468[/C][C]0.989066684605927[/C][/ROW]
[ROW][C]20[/C][C]0.00650250934785755[/C][C]0.0130050186957151[/C][C]0.993497490652142[/C][/ROW]
[ROW][C]21[/C][C]0.00835133264266978[/C][C]0.0167026652853396[/C][C]0.99164866735733[/C][/ROW]
[ROW][C]22[/C][C]0.00651563529626179[/C][C]0.0130312705925236[/C][C]0.993484364703738[/C][/ROW]
[ROW][C]23[/C][C]0.00437864105284081[/C][C]0.00875728210568161[/C][C]0.99562135894716[/C][/ROW]
[ROW][C]24[/C][C]0.00236097616521164[/C][C]0.00472195233042327[/C][C]0.997639023834788[/C][/ROW]
[ROW][C]25[/C][C]0.0311916651484147[/C][C]0.0623833302968294[/C][C]0.968808334851585[/C][/ROW]
[ROW][C]26[/C][C]0.027237518062028[/C][C]0.0544750361240559[/C][C]0.972762481937972[/C][/ROW]
[ROW][C]27[/C][C]0.018720506715896[/C][C]0.0374410134317919[/C][C]0.981279493284104[/C][/ROW]
[ROW][C]28[/C][C]0.0215603818513693[/C][C]0.0431207637027387[/C][C]0.97843961814863[/C][/ROW]
[ROW][C]29[/C][C]0.0529473069710567[/C][C]0.105894613942113[/C][C]0.947052693028943[/C][/ROW]
[ROW][C]30[/C][C]0.0435590254503805[/C][C]0.087118050900761[/C][C]0.95644097454962[/C][/ROW]
[ROW][C]31[/C][C]0.133352791661252[/C][C]0.266705583322504[/C][C]0.866647208338748[/C][/ROW]
[ROW][C]32[/C][C]0.156020848031787[/C][C]0.312041696063573[/C][C]0.843979151968213[/C][/ROW]
[ROW][C]33[/C][C]0.194503947101161[/C][C]0.389007894202322[/C][C]0.805496052898839[/C][/ROW]
[ROW][C]34[/C][C]0.24134090677489[/C][C]0.48268181354978[/C][C]0.75865909322511[/C][/ROW]
[ROW][C]35[/C][C]0.302966818691548[/C][C]0.605933637383097[/C][C]0.697033181308452[/C][/ROW]
[ROW][C]36[/C][C]0.573073933503826[/C][C]0.853852132992348[/C][C]0.426926066496174[/C][/ROW]
[ROW][C]37[/C][C]0.782072418868534[/C][C]0.435855162262933[/C][C]0.217927581131466[/C][/ROW]
[ROW][C]38[/C][C]0.841749055123154[/C][C]0.316501889753692[/C][C]0.158250944876846[/C][/ROW]
[ROW][C]39[/C][C]0.901800683013761[/C][C]0.196398633972478[/C][C]0.098199316986239[/C][/ROW]
[ROW][C]40[/C][C]0.96097711182647[/C][C]0.0780457763470589[/C][C]0.0390228881735294[/C][/ROW]
[ROW][C]41[/C][C]0.996312997555765[/C][C]0.0073740048884705[/C][C]0.00368700244423525[/C][/ROW]
[ROW][C]42[/C][C]0.993260428681014[/C][C]0.0134791426379711[/C][C]0.00673957131898556[/C][/ROW]
[ROW][C]43[/C][C]0.980101495174523[/C][C]0.0397970096509546[/C][C]0.0198985048254773[/C][/ROW]
[ROW][C]44[/C][C]0.944822715403772[/C][C]0.110354569192456[/C][C]0.0551772845962278[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113936&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113936&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.01237750745716770.02475501491433550.987622492542832
170.002092630502638740.004185261005277490.997907369497361
180.005921703696321680.01184340739264340.994078296303678
190.01093331539407340.02186663078814680.989066684605927
200.006502509347857550.01300501869571510.993497490652142
210.008351332642669780.01670266528533960.99164866735733
220.006515635296261790.01303127059252360.993484364703738
230.004378641052840810.008757282105681610.99562135894716
240.002360976165211640.004721952330423270.997639023834788
250.03119166514841470.06238333029682940.968808334851585
260.0272375180620280.05447503612405590.972762481937972
270.0187205067158960.03744101343179190.981279493284104
280.02156038185136930.04312076370273870.97843961814863
290.05294730697105670.1058946139421130.947052693028943
300.04355902545038050.0871180509007610.95644097454962
310.1333527916612520.2667055833225040.866647208338748
320.1560208480317870.3120416960635730.843979151968213
330.1945039471011610.3890078942023220.805496052898839
340.241340906774890.482681813549780.75865909322511
350.3029668186915480.6059336373830970.697033181308452
360.5730739335038260.8538521329923480.426926066496174
370.7820724188685340.4358551622629330.217927581131466
380.8417490551231540.3165018897536920.158250944876846
390.9018006830137610.1963986339724780.098199316986239
400.960977111826470.07804577634705890.0390228881735294
410.9963129975557650.00737400488847050.00368700244423525
420.9932604286810140.01347914263797110.00673957131898556
430.9801014951745230.03979700965095460.0198985048254773
440.9448227154037720.1103545691924560.0551772845962278







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.137931034482759NOK
5% type I error level140.482758620689655NOK
10% type I error level180.620689655172414NOK

\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 & 4 & 0.137931034482759 & NOK \tabularnewline
5% type I error level & 14 & 0.482758620689655 & NOK \tabularnewline
10% type I error level & 18 & 0.620689655172414 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113936&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]4[/C][C]0.137931034482759[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]14[/C][C]0.482758620689655[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]18[/C][C]0.620689655172414[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113936&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113936&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 level40.137931034482759NOK
5% type I error level140.482758620689655NOK
10% type I error level180.620689655172414NOK



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