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:26:33 +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/t1292963057xxrvnjd99mwzffz.htm/, Retrieved Wed, 01 May 2024 13:09:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=113942, Retrieved Wed, 01 May 2024 13:09:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact146
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]
-   PD        [Multiple Regression] [] [2010-12-21 20:26:33] [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 time6 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 & 6 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=113942&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'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=113942&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'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] = + 143.465911330049 -0.78177339901479Dummy[t] + 0.329540229885031M1[t] -9.27165845648604M2[t] -20.4328571428571M3[t] -25.9540558292282M4[t] -20.0752545155993M5[t] -9.7728078817734M6[t] -13.7140065681445M7[t] -15.2952052545156M8[t] + 1.1835960591133M9[t] -32.8576026272578M10[t] -25.9388013136289M11[t] -0.378801313628899t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Promet[t] =  +  143.465911330049 -0.78177339901479Dummy[t] +  0.329540229885031M1[t] -9.27165845648604M2[t] -20.4328571428571M3[t] -25.9540558292282M4[t] -20.0752545155993M5[t] -9.7728078817734M6[t] -13.7140065681445M7[t] -15.2952052545156M8[t] +  1.1835960591133M9[t] -32.8576026272578M10[t] -25.9388013136289M11[t] -0.378801313628899t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113942&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Promet[t] =  +  143.465911330049 -0.78177339901479Dummy[t] +  0.329540229885031M1[t] -9.27165845648604M2[t] -20.4328571428571M3[t] -25.9540558292282M4[t] -20.0752545155993M5[t] -9.7728078817734M6[t] -13.7140065681445M7[t] -15.2952052545156M8[t] +  1.1835960591133M9[t] -32.8576026272578M10[t] -25.9388013136289M11[t] -0.378801313628899t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113942&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113942&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] = + 143.465911330049 -0.78177339901479Dummy[t] + 0.329540229885031M1[t] -9.27165845648604M2[t] -20.4328571428571M3[t] -25.9540558292282M4[t] -20.0752545155993M5[t] -9.7728078817734M6[t] -13.7140065681445M7[t] -15.2952052545156M8[t] + 1.1835960591133M9[t] -32.8576026272578M10[t] -25.9388013136289M11[t] -0.378801313628899t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)143.4659113300498.23194517.427900
Dummy-0.781773399014796.030553-0.12960.897420.44871
M10.32954022988503110.2925480.0320.9745970.487298
M2-9.2716584564860410.25309-0.90430.3705590.185279
M3-20.432857142857110.216034-2.00010.0514160.025708
M4-25.954055829228210.181407-2.54920.0141980.007099
M5-20.075254515599310.149234-1.9780.0539360.026968
M6-9.77280788177349.968671-0.98040.332040.16602
M7-13.71400656814459.954262-1.37770.1749610.087481
M8-15.29520525451569.942457-1.53840.1308090.065404
M91.18359605911339.9332660.11920.9056720.452836
M10-32.85760262725789.926696-3.310.001820.00091
M11-25.93880131362899.922751-2.61410.0120530.006027
t-0.3788013136288990.161546-2.34490.0234060.011703

\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) & 143.465911330049 & 8.231945 & 17.4279 & 0 & 0 \tabularnewline
Dummy & -0.78177339901479 & 6.030553 & -0.1296 & 0.89742 & 0.44871 \tabularnewline
M1 & 0.329540229885031 & 10.292548 & 0.032 & 0.974597 & 0.487298 \tabularnewline
M2 & -9.27165845648604 & 10.25309 & -0.9043 & 0.370559 & 0.185279 \tabularnewline
M3 & -20.4328571428571 & 10.216034 & -2.0001 & 0.051416 & 0.025708 \tabularnewline
M4 & -25.9540558292282 & 10.181407 & -2.5492 & 0.014198 & 0.007099 \tabularnewline
M5 & -20.0752545155993 & 10.149234 & -1.978 & 0.053936 & 0.026968 \tabularnewline
M6 & -9.7728078817734 & 9.968671 & -0.9804 & 0.33204 & 0.16602 \tabularnewline
M7 & -13.7140065681445 & 9.954262 & -1.3777 & 0.174961 & 0.087481 \tabularnewline
M8 & -15.2952052545156 & 9.942457 & -1.5384 & 0.130809 & 0.065404 \tabularnewline
M9 & 1.1835960591133 & 9.933266 & 0.1192 & 0.905672 & 0.452836 \tabularnewline
M10 & -32.8576026272578 & 9.926696 & -3.31 & 0.00182 & 0.00091 \tabularnewline
M11 & -25.9388013136289 & 9.922751 & -2.6141 & 0.012053 & 0.006027 \tabularnewline
t & -0.378801313628899 & 0.161546 & -2.3449 & 0.023406 & 0.011703 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113942&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]143.465911330049[/C][C]8.231945[/C][C]17.4279[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]-0.78177339901479[/C][C]6.030553[/C][C]-0.1296[/C][C]0.89742[/C][C]0.44871[/C][/ROW]
[ROW][C]M1[/C][C]0.329540229885031[/C][C]10.292548[/C][C]0.032[/C][C]0.974597[/C][C]0.487298[/C][/ROW]
[ROW][C]M2[/C][C]-9.27165845648604[/C][C]10.25309[/C][C]-0.9043[/C][C]0.370559[/C][C]0.185279[/C][/ROW]
[ROW][C]M3[/C][C]-20.4328571428571[/C][C]10.216034[/C][C]-2.0001[/C][C]0.051416[/C][C]0.025708[/C][/ROW]
[ROW][C]M4[/C][C]-25.9540558292282[/C][C]10.181407[/C][C]-2.5492[/C][C]0.014198[/C][C]0.007099[/C][/ROW]
[ROW][C]M5[/C][C]-20.0752545155993[/C][C]10.149234[/C][C]-1.978[/C][C]0.053936[/C][C]0.026968[/C][/ROW]
[ROW][C]M6[/C][C]-9.7728078817734[/C][C]9.968671[/C][C]-0.9804[/C][C]0.33204[/C][C]0.16602[/C][/ROW]
[ROW][C]M7[/C][C]-13.7140065681445[/C][C]9.954262[/C][C]-1.3777[/C][C]0.174961[/C][C]0.087481[/C][/ROW]
[ROW][C]M8[/C][C]-15.2952052545156[/C][C]9.942457[/C][C]-1.5384[/C][C]0.130809[/C][C]0.065404[/C][/ROW]
[ROW][C]M9[/C][C]1.1835960591133[/C][C]9.933266[/C][C]0.1192[/C][C]0.905672[/C][C]0.452836[/C][/ROW]
[ROW][C]M10[/C][C]-32.8576026272578[/C][C]9.926696[/C][C]-3.31[/C][C]0.00182[/C][C]0.00091[/C][/ROW]
[ROW][C]M11[/C][C]-25.9388013136289[/C][C]9.922751[/C][C]-2.6141[/C][C]0.012053[/C][C]0.006027[/C][/ROW]
[ROW][C]t[/C][C]-0.378801313628899[/C][C]0.161546[/C][C]-2.3449[/C][C]0.023406[/C][C]0.011703[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113942&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113942&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)143.4659113300498.23194517.427900
Dummy-0.781773399014796.030553-0.12960.897420.44871
M10.32954022988503110.2925480.0320.9745970.487298
M2-9.2716584564860410.25309-0.90430.3705590.185279
M3-20.432857142857110.216034-2.00010.0514160.025708
M4-25.954055829228210.181407-2.54920.0141980.007099
M5-20.075254515599310.149234-1.9780.0539360.026968
M6-9.77280788177349.968671-0.98040.332040.16602
M7-13.71400656814459.954262-1.37770.1749610.087481
M8-15.29520525451569.942457-1.53840.1308090.065404
M91.18359605911339.9332660.11920.9056720.452836
M10-32.85760262725789.926696-3.310.001820.00091
M11-25.93880131362899.922751-2.61410.0120530.006027
t-0.3788013136288990.161546-2.34490.0234060.011703







Multiple Linear Regression - Regression Statistics
Multiple R0.683211258579278
R-squared0.466777623849482
Adjusted R-squared0.316084343633031
F-TEST (value)3.09753443006229
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.002306270961007
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation15.6871682668679
Sum Squared Residuals11320.0134187192

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.683211258579278 \tabularnewline
R-squared & 0.466777623849482 \tabularnewline
Adjusted R-squared & 0.316084343633031 \tabularnewline
F-TEST (value) & 3.09753443006229 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.002306270961007 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 15.6871682668679 \tabularnewline
Sum Squared Residuals & 11320.0134187192 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113942&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.683211258579278[/C][/ROW]
[ROW][C]R-squared[/C][C]0.466777623849482[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.316084343633031[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.09753443006229[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0.002306270961007[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]15.6871682668679[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]11320.0134187192[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113942&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113942&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.683211258579278
R-squared0.466777623849482
Adjusted R-squared0.316084343633031
F-TEST (value)3.09753443006229
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.002306270961007
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation15.6871682668679
Sum Squared Residuals11320.0134187192







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1112.3142.634876847291-30.3348768472907
2117.3132.654876847291-15.3548768472906
3111.1121.114876847291-10.0148768472906
4102.2115.214876847291-13.0148768472906
5104.3120.714876847291-16.4148768472906
6122.9131.420295566502-8.52029556650246
7107.6127.100295566502-19.5002955665025
8121.3125.140295566502-3.84029556650247
9131.5141.240295566502-9.74029556650246
1089106.820295566502-17.8202955665025
11104.4113.360295566502-8.96029556650245
12128.9138.920295566502-10.0202955665025
13135.9138.871034482759-2.97103448275858
14133.3128.8910344827594.40896551724139
15121.3117.3510344827593.94896551724137
16120.5111.4510344827599.04896551724137
17120.4116.9510344827593.44896551724137
18137.9126.87467980295611.0253201970443
19126.1122.5546798029563.54532019704433
20133.2120.59467980295612.6053201970443
21151.1136.69467980295614.4053201970443
22105102.2746798029562.72532019704434
23119108.81467980295610.1853201970443
24140.4134.3746798029566.02532019704433
25156.6133.54364532019723.056354679803
26137.1123.56364532019713.536354679803
27122.7112.02364532019710.676354679803
28125.8106.12364532019719.676354679803
29139.3111.62364532019727.676354679803
30134.9121.54729064039413.3527093596059
31149.2117.22729064039431.9727093596059
32132.3115.26729064039417.0327093596059
33149131.36729064039417.6327093596059
34117.296.94729064039420.2527093596059
35119.6103.48729064039416.1127093596059
36152129.04729064039422.9527093596059
37149.4128.9980295566520.4019704433498
38127.3119.018029556658.28197044334975
39114.1107.478029556656.62197044334975
40102.1101.578029556650.521970443349749
41107.7107.078029556650.621970443349752
42104.4117.001674876847-12.6016748768473
43102.1112.681674876847-10.5816748768473
4496110.721674876847-14.7216748768473
45109.3126.821674876847-17.5216748768473
469092.4016748768473-2.40167487684729
4783.998.9416748768473-15.0416748768473
48112124.501674876847-12.5016748768473
49114.3124.452413793103-10.1524137931034
50103.6114.472413793103-10.8724137931035
5191.7102.932413793103-11.2324137931035
5280.897.0324137931034-16.2324137931035
5387.2102.532413793103-15.3324137931035
54109.2112.4560591133-3.2560591133005
55102.7108.1360591133-5.43605911330049
5695.1106.1760591133-11.0760591133005
57117.5122.276059113301-4.7760591133005
5885.187.8560591133005-2.7560591133005
5992.194.3960591133005-2.2960591133005
60113.5119.9560591133-6.4560591133005

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 112.3 & 142.634876847291 & -30.3348768472907 \tabularnewline
2 & 117.3 & 132.654876847291 & -15.3548768472906 \tabularnewline
3 & 111.1 & 121.114876847291 & -10.0148768472906 \tabularnewline
4 & 102.2 & 115.214876847291 & -13.0148768472906 \tabularnewline
5 & 104.3 & 120.714876847291 & -16.4148768472906 \tabularnewline
6 & 122.9 & 131.420295566502 & -8.52029556650246 \tabularnewline
7 & 107.6 & 127.100295566502 & -19.5002955665025 \tabularnewline
8 & 121.3 & 125.140295566502 & -3.84029556650247 \tabularnewline
9 & 131.5 & 141.240295566502 & -9.74029556650246 \tabularnewline
10 & 89 & 106.820295566502 & -17.8202955665025 \tabularnewline
11 & 104.4 & 113.360295566502 & -8.96029556650245 \tabularnewline
12 & 128.9 & 138.920295566502 & -10.0202955665025 \tabularnewline
13 & 135.9 & 138.871034482759 & -2.97103448275858 \tabularnewline
14 & 133.3 & 128.891034482759 & 4.40896551724139 \tabularnewline
15 & 121.3 & 117.351034482759 & 3.94896551724137 \tabularnewline
16 & 120.5 & 111.451034482759 & 9.04896551724137 \tabularnewline
17 & 120.4 & 116.951034482759 & 3.44896551724137 \tabularnewline
18 & 137.9 & 126.874679802956 & 11.0253201970443 \tabularnewline
19 & 126.1 & 122.554679802956 & 3.54532019704433 \tabularnewline
20 & 133.2 & 120.594679802956 & 12.6053201970443 \tabularnewline
21 & 151.1 & 136.694679802956 & 14.4053201970443 \tabularnewline
22 & 105 & 102.274679802956 & 2.72532019704434 \tabularnewline
23 & 119 & 108.814679802956 & 10.1853201970443 \tabularnewline
24 & 140.4 & 134.374679802956 & 6.02532019704433 \tabularnewline
25 & 156.6 & 133.543645320197 & 23.056354679803 \tabularnewline
26 & 137.1 & 123.563645320197 & 13.536354679803 \tabularnewline
27 & 122.7 & 112.023645320197 & 10.676354679803 \tabularnewline
28 & 125.8 & 106.123645320197 & 19.676354679803 \tabularnewline
29 & 139.3 & 111.623645320197 & 27.676354679803 \tabularnewline
30 & 134.9 & 121.547290640394 & 13.3527093596059 \tabularnewline
31 & 149.2 & 117.227290640394 & 31.9727093596059 \tabularnewline
32 & 132.3 & 115.267290640394 & 17.0327093596059 \tabularnewline
33 & 149 & 131.367290640394 & 17.6327093596059 \tabularnewline
34 & 117.2 & 96.947290640394 & 20.2527093596059 \tabularnewline
35 & 119.6 & 103.487290640394 & 16.1127093596059 \tabularnewline
36 & 152 & 129.047290640394 & 22.9527093596059 \tabularnewline
37 & 149.4 & 128.99802955665 & 20.4019704433498 \tabularnewline
38 & 127.3 & 119.01802955665 & 8.28197044334975 \tabularnewline
39 & 114.1 & 107.47802955665 & 6.62197044334975 \tabularnewline
40 & 102.1 & 101.57802955665 & 0.521970443349749 \tabularnewline
41 & 107.7 & 107.07802955665 & 0.621970443349752 \tabularnewline
42 & 104.4 & 117.001674876847 & -12.6016748768473 \tabularnewline
43 & 102.1 & 112.681674876847 & -10.5816748768473 \tabularnewline
44 & 96 & 110.721674876847 & -14.7216748768473 \tabularnewline
45 & 109.3 & 126.821674876847 & -17.5216748768473 \tabularnewline
46 & 90 & 92.4016748768473 & -2.40167487684729 \tabularnewline
47 & 83.9 & 98.9416748768473 & -15.0416748768473 \tabularnewline
48 & 112 & 124.501674876847 & -12.5016748768473 \tabularnewline
49 & 114.3 & 124.452413793103 & -10.1524137931034 \tabularnewline
50 & 103.6 & 114.472413793103 & -10.8724137931035 \tabularnewline
51 & 91.7 & 102.932413793103 & -11.2324137931035 \tabularnewline
52 & 80.8 & 97.0324137931034 & -16.2324137931035 \tabularnewline
53 & 87.2 & 102.532413793103 & -15.3324137931035 \tabularnewline
54 & 109.2 & 112.4560591133 & -3.2560591133005 \tabularnewline
55 & 102.7 & 108.1360591133 & -5.43605911330049 \tabularnewline
56 & 95.1 & 106.1760591133 & -11.0760591133005 \tabularnewline
57 & 117.5 & 122.276059113301 & -4.7760591133005 \tabularnewline
58 & 85.1 & 87.8560591133005 & -2.7560591133005 \tabularnewline
59 & 92.1 & 94.3960591133005 & -2.2960591133005 \tabularnewline
60 & 113.5 & 119.9560591133 & -6.4560591133005 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113942&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]142.634876847291[/C][C]-30.3348768472907[/C][/ROW]
[ROW][C]2[/C][C]117.3[/C][C]132.654876847291[/C][C]-15.3548768472906[/C][/ROW]
[ROW][C]3[/C][C]111.1[/C][C]121.114876847291[/C][C]-10.0148768472906[/C][/ROW]
[ROW][C]4[/C][C]102.2[/C][C]115.214876847291[/C][C]-13.0148768472906[/C][/ROW]
[ROW][C]5[/C][C]104.3[/C][C]120.714876847291[/C][C]-16.4148768472906[/C][/ROW]
[ROW][C]6[/C][C]122.9[/C][C]131.420295566502[/C][C]-8.52029556650246[/C][/ROW]
[ROW][C]7[/C][C]107.6[/C][C]127.100295566502[/C][C]-19.5002955665025[/C][/ROW]
[ROW][C]8[/C][C]121.3[/C][C]125.140295566502[/C][C]-3.84029556650247[/C][/ROW]
[ROW][C]9[/C][C]131.5[/C][C]141.240295566502[/C][C]-9.74029556650246[/C][/ROW]
[ROW][C]10[/C][C]89[/C][C]106.820295566502[/C][C]-17.8202955665025[/C][/ROW]
[ROW][C]11[/C][C]104.4[/C][C]113.360295566502[/C][C]-8.96029556650245[/C][/ROW]
[ROW][C]12[/C][C]128.9[/C][C]138.920295566502[/C][C]-10.0202955665025[/C][/ROW]
[ROW][C]13[/C][C]135.9[/C][C]138.871034482759[/C][C]-2.97103448275858[/C][/ROW]
[ROW][C]14[/C][C]133.3[/C][C]128.891034482759[/C][C]4.40896551724139[/C][/ROW]
[ROW][C]15[/C][C]121.3[/C][C]117.351034482759[/C][C]3.94896551724137[/C][/ROW]
[ROW][C]16[/C][C]120.5[/C][C]111.451034482759[/C][C]9.04896551724137[/C][/ROW]
[ROW][C]17[/C][C]120.4[/C][C]116.951034482759[/C][C]3.44896551724137[/C][/ROW]
[ROW][C]18[/C][C]137.9[/C][C]126.874679802956[/C][C]11.0253201970443[/C][/ROW]
[ROW][C]19[/C][C]126.1[/C][C]122.554679802956[/C][C]3.54532019704433[/C][/ROW]
[ROW][C]20[/C][C]133.2[/C][C]120.594679802956[/C][C]12.6053201970443[/C][/ROW]
[ROW][C]21[/C][C]151.1[/C][C]136.694679802956[/C][C]14.4053201970443[/C][/ROW]
[ROW][C]22[/C][C]105[/C][C]102.274679802956[/C][C]2.72532019704434[/C][/ROW]
[ROW][C]23[/C][C]119[/C][C]108.814679802956[/C][C]10.1853201970443[/C][/ROW]
[ROW][C]24[/C][C]140.4[/C][C]134.374679802956[/C][C]6.02532019704433[/C][/ROW]
[ROW][C]25[/C][C]156.6[/C][C]133.543645320197[/C][C]23.056354679803[/C][/ROW]
[ROW][C]26[/C][C]137.1[/C][C]123.563645320197[/C][C]13.536354679803[/C][/ROW]
[ROW][C]27[/C][C]122.7[/C][C]112.023645320197[/C][C]10.676354679803[/C][/ROW]
[ROW][C]28[/C][C]125.8[/C][C]106.123645320197[/C][C]19.676354679803[/C][/ROW]
[ROW][C]29[/C][C]139.3[/C][C]111.623645320197[/C][C]27.676354679803[/C][/ROW]
[ROW][C]30[/C][C]134.9[/C][C]121.547290640394[/C][C]13.3527093596059[/C][/ROW]
[ROW][C]31[/C][C]149.2[/C][C]117.227290640394[/C][C]31.9727093596059[/C][/ROW]
[ROW][C]32[/C][C]132.3[/C][C]115.267290640394[/C][C]17.0327093596059[/C][/ROW]
[ROW][C]33[/C][C]149[/C][C]131.367290640394[/C][C]17.6327093596059[/C][/ROW]
[ROW][C]34[/C][C]117.2[/C][C]96.947290640394[/C][C]20.2527093596059[/C][/ROW]
[ROW][C]35[/C][C]119.6[/C][C]103.487290640394[/C][C]16.1127093596059[/C][/ROW]
[ROW][C]36[/C][C]152[/C][C]129.047290640394[/C][C]22.9527093596059[/C][/ROW]
[ROW][C]37[/C][C]149.4[/C][C]128.99802955665[/C][C]20.4019704433498[/C][/ROW]
[ROW][C]38[/C][C]127.3[/C][C]119.01802955665[/C][C]8.28197044334975[/C][/ROW]
[ROW][C]39[/C][C]114.1[/C][C]107.47802955665[/C][C]6.62197044334975[/C][/ROW]
[ROW][C]40[/C][C]102.1[/C][C]101.57802955665[/C][C]0.521970443349749[/C][/ROW]
[ROW][C]41[/C][C]107.7[/C][C]107.07802955665[/C][C]0.621970443349752[/C][/ROW]
[ROW][C]42[/C][C]104.4[/C][C]117.001674876847[/C][C]-12.6016748768473[/C][/ROW]
[ROW][C]43[/C][C]102.1[/C][C]112.681674876847[/C][C]-10.5816748768473[/C][/ROW]
[ROW][C]44[/C][C]96[/C][C]110.721674876847[/C][C]-14.7216748768473[/C][/ROW]
[ROW][C]45[/C][C]109.3[/C][C]126.821674876847[/C][C]-17.5216748768473[/C][/ROW]
[ROW][C]46[/C][C]90[/C][C]92.4016748768473[/C][C]-2.40167487684729[/C][/ROW]
[ROW][C]47[/C][C]83.9[/C][C]98.9416748768473[/C][C]-15.0416748768473[/C][/ROW]
[ROW][C]48[/C][C]112[/C][C]124.501674876847[/C][C]-12.5016748768473[/C][/ROW]
[ROW][C]49[/C][C]114.3[/C][C]124.452413793103[/C][C]-10.1524137931034[/C][/ROW]
[ROW][C]50[/C][C]103.6[/C][C]114.472413793103[/C][C]-10.8724137931035[/C][/ROW]
[ROW][C]51[/C][C]91.7[/C][C]102.932413793103[/C][C]-11.2324137931035[/C][/ROW]
[ROW][C]52[/C][C]80.8[/C][C]97.0324137931034[/C][C]-16.2324137931035[/C][/ROW]
[ROW][C]53[/C][C]87.2[/C][C]102.532413793103[/C][C]-15.3324137931035[/C][/ROW]
[ROW][C]54[/C][C]109.2[/C][C]112.4560591133[/C][C]-3.2560591133005[/C][/ROW]
[ROW][C]55[/C][C]102.7[/C][C]108.1360591133[/C][C]-5.43605911330049[/C][/ROW]
[ROW][C]56[/C][C]95.1[/C][C]106.1760591133[/C][C]-11.0760591133005[/C][/ROW]
[ROW][C]57[/C][C]117.5[/C][C]122.276059113301[/C][C]-4.7760591133005[/C][/ROW]
[ROW][C]58[/C][C]85.1[/C][C]87.8560591133005[/C][C]-2.7560591133005[/C][/ROW]
[ROW][C]59[/C][C]92.1[/C][C]94.3960591133005[/C][C]-2.2960591133005[/C][/ROW]
[ROW][C]60[/C][C]113.5[/C][C]119.9560591133[/C][C]-6.4560591133005[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113942&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113942&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.3142.634876847291-30.3348768472907
2117.3132.654876847291-15.3548768472906
3111.1121.114876847291-10.0148768472906
4102.2115.214876847291-13.0148768472906
5104.3120.714876847291-16.4148768472906
6122.9131.420295566502-8.52029556650246
7107.6127.100295566502-19.5002955665025
8121.3125.140295566502-3.84029556650247
9131.5141.240295566502-9.74029556650246
1089106.820295566502-17.8202955665025
11104.4113.360295566502-8.96029556650245
12128.9138.920295566502-10.0202955665025
13135.9138.871034482759-2.97103448275858
14133.3128.8910344827594.40896551724139
15121.3117.3510344827593.94896551724137
16120.5111.4510344827599.04896551724137
17120.4116.9510344827593.44896551724137
18137.9126.87467980295611.0253201970443
19126.1122.5546798029563.54532019704433
20133.2120.59467980295612.6053201970443
21151.1136.69467980295614.4053201970443
22105102.2746798029562.72532019704434
23119108.81467980295610.1853201970443
24140.4134.3746798029566.02532019704433
25156.6133.54364532019723.056354679803
26137.1123.56364532019713.536354679803
27122.7112.02364532019710.676354679803
28125.8106.12364532019719.676354679803
29139.3111.62364532019727.676354679803
30134.9121.54729064039413.3527093596059
31149.2117.22729064039431.9727093596059
32132.3115.26729064039417.0327093596059
33149131.36729064039417.6327093596059
34117.296.94729064039420.2527093596059
35119.6103.48729064039416.1127093596059
36152129.04729064039422.9527093596059
37149.4128.9980295566520.4019704433498
38127.3119.018029556658.28197044334975
39114.1107.478029556656.62197044334975
40102.1101.578029556650.521970443349749
41107.7107.078029556650.621970443349752
42104.4117.001674876847-12.6016748768473
43102.1112.681674876847-10.5816748768473
4496110.721674876847-14.7216748768473
45109.3126.821674876847-17.5216748768473
469092.4016748768473-2.40167487684729
4783.998.9416748768473-15.0416748768473
48112124.501674876847-12.5016748768473
49114.3124.452413793103-10.1524137931034
50103.6114.472413793103-10.8724137931035
5191.7102.932413793103-11.2324137931035
5280.897.0324137931034-16.2324137931035
5387.2102.532413793103-15.3324137931035
54109.2112.4560591133-3.2560591133005
55102.7108.1360591133-5.43605911330049
5695.1106.1760591133-11.0760591133005
57117.5122.276059113301-4.7760591133005
5885.187.8560591133005-2.7560591133005
5992.194.3960591133005-2.2960591133005
60113.5119.9560591133-6.4560591133005







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0814358936240750.162871787248150.918564106375925
180.02605455781351570.05210911562703150.973945442186484
190.009103465940984180.01820693188196840.990896534059016
200.003831748345629020.007663496691258040.99616825165437
210.001663716515092020.003327433030184040.998336283484908
220.0004743335524802040.0009486671049604090.99952566644752
230.000128618887353420.0002572377747068390.999871381112647
245.23033130340177e-050.0001046066260680350.999947696686966
250.0001002241716227670.0002004483432455340.999899775828377
260.0008187188301990150.001637437660398030.9991812811698
270.003187167200166510.006374334400333020.996812832799833
280.00155445213788760.003108904275775210.998445547862112
290.001698824628921490.003397649257842990.998301175371079
300.00206531774229130.004130635484582610.997934682257709
310.009781530881589110.01956306176317820.99021846911841
320.01225501192481490.02451002384962980.987744988075185
330.01079591323863510.02159182647727020.989204086761365
340.006938788410679210.01387757682135840.993061211589321
350.005724158190345540.01144831638069110.994275841809654
360.01152802695972190.02305605391944370.988471973040278
370.0485343482271130.0970686964542260.951465651772887
380.2131931567933890.4263863135867770.786806843206611
390.4582713268387130.9165426536774250.541728673161287
400.7872423061622590.4255153876754820.212757693837741
410.9861316142651080.02773677146978320.0138683857348916
420.9773069822499330.04538603550013420.0226930177500671
430.9440960742161070.1118078515677860.055903925783893

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.081435893624075 & 0.16287178724815 & 0.918564106375925 \tabularnewline
18 & 0.0260545578135157 & 0.0521091156270315 & 0.973945442186484 \tabularnewline
19 & 0.00910346594098418 & 0.0182069318819684 & 0.990896534059016 \tabularnewline
20 & 0.00383174834562902 & 0.00766349669125804 & 0.99616825165437 \tabularnewline
21 & 0.00166371651509202 & 0.00332743303018404 & 0.998336283484908 \tabularnewline
22 & 0.000474333552480204 & 0.000948667104960409 & 0.99952566644752 \tabularnewline
23 & 0.00012861888735342 & 0.000257237774706839 & 0.999871381112647 \tabularnewline
24 & 5.23033130340177e-05 & 0.000104606626068035 & 0.999947696686966 \tabularnewline
25 & 0.000100224171622767 & 0.000200448343245534 & 0.999899775828377 \tabularnewline
26 & 0.000818718830199015 & 0.00163743766039803 & 0.9991812811698 \tabularnewline
27 & 0.00318716720016651 & 0.00637433440033302 & 0.996812832799833 \tabularnewline
28 & 0.0015544521378876 & 0.00310890427577521 & 0.998445547862112 \tabularnewline
29 & 0.00169882462892149 & 0.00339764925784299 & 0.998301175371079 \tabularnewline
30 & 0.0020653177422913 & 0.00413063548458261 & 0.997934682257709 \tabularnewline
31 & 0.00978153088158911 & 0.0195630617631782 & 0.99021846911841 \tabularnewline
32 & 0.0122550119248149 & 0.0245100238496298 & 0.987744988075185 \tabularnewline
33 & 0.0107959132386351 & 0.0215918264772702 & 0.989204086761365 \tabularnewline
34 & 0.00693878841067921 & 0.0138775768213584 & 0.993061211589321 \tabularnewline
35 & 0.00572415819034554 & 0.0114483163806911 & 0.994275841809654 \tabularnewline
36 & 0.0115280269597219 & 0.0230560539194437 & 0.988471973040278 \tabularnewline
37 & 0.048534348227113 & 0.097068696454226 & 0.951465651772887 \tabularnewline
38 & 0.213193156793389 & 0.426386313586777 & 0.786806843206611 \tabularnewline
39 & 0.458271326838713 & 0.916542653677425 & 0.541728673161287 \tabularnewline
40 & 0.787242306162259 & 0.425515387675482 & 0.212757693837741 \tabularnewline
41 & 0.986131614265108 & 0.0277367714697832 & 0.0138683857348916 \tabularnewline
42 & 0.977306982249933 & 0.0453860355001342 & 0.0226930177500671 \tabularnewline
43 & 0.944096074216107 & 0.111807851567786 & 0.055903925783893 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113942&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.081435893624075[/C][C]0.16287178724815[/C][C]0.918564106375925[/C][/ROW]
[ROW][C]18[/C][C]0.0260545578135157[/C][C]0.0521091156270315[/C][C]0.973945442186484[/C][/ROW]
[ROW][C]19[/C][C]0.00910346594098418[/C][C]0.0182069318819684[/C][C]0.990896534059016[/C][/ROW]
[ROW][C]20[/C][C]0.00383174834562902[/C][C]0.00766349669125804[/C][C]0.99616825165437[/C][/ROW]
[ROW][C]21[/C][C]0.00166371651509202[/C][C]0.00332743303018404[/C][C]0.998336283484908[/C][/ROW]
[ROW][C]22[/C][C]0.000474333552480204[/C][C]0.000948667104960409[/C][C]0.99952566644752[/C][/ROW]
[ROW][C]23[/C][C]0.00012861888735342[/C][C]0.000257237774706839[/C][C]0.999871381112647[/C][/ROW]
[ROW][C]24[/C][C]5.23033130340177e-05[/C][C]0.000104606626068035[/C][C]0.999947696686966[/C][/ROW]
[ROW][C]25[/C][C]0.000100224171622767[/C][C]0.000200448343245534[/C][C]0.999899775828377[/C][/ROW]
[ROW][C]26[/C][C]0.000818718830199015[/C][C]0.00163743766039803[/C][C]0.9991812811698[/C][/ROW]
[ROW][C]27[/C][C]0.00318716720016651[/C][C]0.00637433440033302[/C][C]0.996812832799833[/C][/ROW]
[ROW][C]28[/C][C]0.0015544521378876[/C][C]0.00310890427577521[/C][C]0.998445547862112[/C][/ROW]
[ROW][C]29[/C][C]0.00169882462892149[/C][C]0.00339764925784299[/C][C]0.998301175371079[/C][/ROW]
[ROW][C]30[/C][C]0.0020653177422913[/C][C]0.00413063548458261[/C][C]0.997934682257709[/C][/ROW]
[ROW][C]31[/C][C]0.00978153088158911[/C][C]0.0195630617631782[/C][C]0.99021846911841[/C][/ROW]
[ROW][C]32[/C][C]0.0122550119248149[/C][C]0.0245100238496298[/C][C]0.987744988075185[/C][/ROW]
[ROW][C]33[/C][C]0.0107959132386351[/C][C]0.0215918264772702[/C][C]0.989204086761365[/C][/ROW]
[ROW][C]34[/C][C]0.00693878841067921[/C][C]0.0138775768213584[/C][C]0.993061211589321[/C][/ROW]
[ROW][C]35[/C][C]0.00572415819034554[/C][C]0.0114483163806911[/C][C]0.994275841809654[/C][/ROW]
[ROW][C]36[/C][C]0.0115280269597219[/C][C]0.0230560539194437[/C][C]0.988471973040278[/C][/ROW]
[ROW][C]37[/C][C]0.048534348227113[/C][C]0.097068696454226[/C][C]0.951465651772887[/C][/ROW]
[ROW][C]38[/C][C]0.213193156793389[/C][C]0.426386313586777[/C][C]0.786806843206611[/C][/ROW]
[ROW][C]39[/C][C]0.458271326838713[/C][C]0.916542653677425[/C][C]0.541728673161287[/C][/ROW]
[ROW][C]40[/C][C]0.787242306162259[/C][C]0.425515387675482[/C][C]0.212757693837741[/C][/ROW]
[ROW][C]41[/C][C]0.986131614265108[/C][C]0.0277367714697832[/C][C]0.0138683857348916[/C][/ROW]
[ROW][C]42[/C][C]0.977306982249933[/C][C]0.0453860355001342[/C][C]0.0226930177500671[/C][/ROW]
[ROW][C]43[/C][C]0.944096074216107[/C][C]0.111807851567786[/C][C]0.055903925783893[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113942&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0814358936240750.162871787248150.918564106375925
180.02605455781351570.05210911562703150.973945442186484
190.009103465940984180.01820693188196840.990896534059016
200.003831748345629020.007663496691258040.99616825165437
210.001663716515092020.003327433030184040.998336283484908
220.0004743335524802040.0009486671049604090.99952566644752
230.000128618887353420.0002572377747068390.999871381112647
245.23033130340177e-050.0001046066260680350.999947696686966
250.0001002241716227670.0002004483432455340.999899775828377
260.0008187188301990150.001637437660398030.9991812811698
270.003187167200166510.006374334400333020.996812832799833
280.00155445213788760.003108904275775210.998445547862112
290.001698824628921490.003397649257842990.998301175371079
300.00206531774229130.004130635484582610.997934682257709
310.009781530881589110.01956306176317820.99021846911841
320.01225501192481490.02451002384962980.987744988075185
330.01079591323863510.02159182647727020.989204086761365
340.006938788410679210.01387757682135840.993061211589321
350.005724158190345540.01144831638069110.994275841809654
360.01152802695972190.02305605391944370.988471973040278
370.0485343482271130.0970686964542260.951465651772887
380.2131931567933890.4263863135867770.786806843206611
390.4582713268387130.9165426536774250.541728673161287
400.7872423061622590.4255153876754820.212757693837741
410.9861316142651080.02773677146978320.0138683857348916
420.9773069822499330.04538603550013420.0226930177500671
430.9440960742161070.1118078515677860.055903925783893







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level110.407407407407407NOK
5% type I error level200.740740740740741NOK
10% type I error level220.814814814814815NOK

\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 & 11 & 0.407407407407407 & NOK \tabularnewline
5% type I error level & 20 & 0.740740740740741 & NOK \tabularnewline
10% type I error level & 22 & 0.814814814814815 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113942&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]11[/C][C]0.407407407407407[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]20[/C][C]0.740740740740741[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]22[/C][C]0.814814814814815[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113942&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113942&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 level110.407407407407407NOK
5% type I error level200.740740740740741NOK
10% type I error level220.814814814814815NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}