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 computationSat, 18 Dec 2010 10:46:37 +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/18/t12926691146tej38ekabs65j5.htm/, Retrieved Tue, 30 Apr 2024 03:04:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=111834, Retrieved Tue, 30 Apr 2024 03:04:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact135
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Multiple Linear R...] [2010-12-18 10:17:24] [0ed8ad64bdfc801eaa95d5097964fc04]
-   PD    [Multiple Regression] [Linear Trend] [2010-12-18 10:46:37] [19046f4a6967f3fb6f5f17d42e7d38f2] [Current]
Feedback Forum

Post a new message
Dataseries X:
94.6	116.1
95.9	107.5
104.7	116.7
102.8	112.5
98.1	113
113.9	126.4
80.9	114.1
95.7	112.5
113.2	112.4
105.9	113.1
108.8	116.3
102.3	111.7
99	118.8
100.7	116.5
115.5	125.1
100.7	113.1
109.9	119.6
114.6	114.4
85.4	114
100.5	117.8
114.8	117
116.5	120.9
112.9	115
102	117.3
106	119.4
105.3	114.9
118.8	125.8
106.1	117.6
109.3	117.6
117.2	114.9
92.5	121.9
104.2	117
112.5	106.4
122.4	110.5
113.3	113.6
100	114.2
110.7	125.4
112.8	124.6
109.8	120.2
117.3	120.8
109.1	111.4
115.9	124.1
96	120.2
99.8	125.5
116.8	116
115.7	117
99.4	105.7
94.3	102
91	106.4
93.2	96.9
103.1	107.6
94.1	98.8
91.8	101.1
102.7	105.7
82.6	104.6
89.1	103.2
104.5	101.6
105.1	106.7
95.1	99.5
88.7	101




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

\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
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111834&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]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111834&T=0

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







Multiple Linear Regression - Estimated Regression Equation
I.P.C.N.[t] = + 35.3607050481265 + 0.80254709385946T.I.P.[t] + 4.40769055462782M1[t] -1.67120091994249M2[t] -1.61314465658159M3[t] -3.05293292720598M4[t] -2.50303586532053M5[t] -5.2220493813806M6[t] + 13.1270665500967M7[t] + 5.15709840515961M8[t] -10.8793637664784M9[t] -8.40882886848745M10[t] -6.113968161498M11[t] -0.120470689324151t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
I.P.C.N.[t] =  +  35.3607050481265 +  0.80254709385946T.I.P.[t] +  4.40769055462782M1[t] -1.67120091994249M2[t] -1.61314465658159M3[t] -3.05293292720598M4[t] -2.50303586532053M5[t] -5.2220493813806M6[t] +  13.1270665500967M7[t] +  5.15709840515961M8[t] -10.8793637664784M9[t] -8.40882886848745M10[t] -6.113968161498M11[t] -0.120470689324151t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111834&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]I.P.C.N.[t] =  +  35.3607050481265 +  0.80254709385946T.I.P.[t] +  4.40769055462782M1[t] -1.67120091994249M2[t] -1.61314465658159M3[t] -3.05293292720598M4[t] -2.50303586532053M5[t] -5.2220493813806M6[t] +  13.1270665500967M7[t] +  5.15709840515961M8[t] -10.8793637664784M9[t] -8.40882886848745M10[t] -6.113968161498M11[t] -0.120470689324151t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111834&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111834&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
I.P.C.N.[t] = + 35.3607050481265 + 0.80254709385946T.I.P.[t] + 4.40769055462782M1[t] -1.67120091994249M2[t] -1.61314465658159M3[t] -3.05293292720598M4[t] -2.50303586532053M5[t] -5.2220493813806M6[t] + 13.1270665500967M7[t] + 5.15709840515961M8[t] -10.8793637664784M9[t] -8.40882886848745M10[t] -6.113968161498M11[t] -0.120470689324151t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)35.36070504812658.4395464.18990.0001256.3e-05
T.I.P.0.802547093859460.08149.859300
M14.407690554627822.4792981.77780.0820480.041024
M2-1.671200919942492.48515-0.67250.5046460.252323
M3-1.613144656581592.657938-0.60690.5468910.273445
M4-3.052932927205982.513266-1.21470.2306690.115334
M5-2.503035865320532.503426-0.99980.3226170.161308
M6-5.22204938138062.74159-1.90480.0630760.031538
M713.12706655009672.6000695.04877e-064e-06
M85.157098405159612.456262.09960.0412810.020641
M9-10.87936376647842.72884-3.98680.0002370.000119
M10-8.408828868487452.758882-3.04790.0038120.001906
M11-6.1139681614982.546047-2.40140.0204330.010216
t-0.1204706893241510.030364-3.96750.0002520.000126

\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) & 35.3607050481265 & 8.439546 & 4.1899 & 0.000125 & 6.3e-05 \tabularnewline
T.I.P. & 0.80254709385946 & 0.0814 & 9.8593 & 0 & 0 \tabularnewline
M1 & 4.40769055462782 & 2.479298 & 1.7778 & 0.082048 & 0.041024 \tabularnewline
M2 & -1.67120091994249 & 2.48515 & -0.6725 & 0.504646 & 0.252323 \tabularnewline
M3 & -1.61314465658159 & 2.657938 & -0.6069 & 0.546891 & 0.273445 \tabularnewline
M4 & -3.05293292720598 & 2.513266 & -1.2147 & 0.230669 & 0.115334 \tabularnewline
M5 & -2.50303586532053 & 2.503426 & -0.9998 & 0.322617 & 0.161308 \tabularnewline
M6 & -5.2220493813806 & 2.74159 & -1.9048 & 0.063076 & 0.031538 \tabularnewline
M7 & 13.1270665500967 & 2.600069 & 5.0487 & 7e-06 & 4e-06 \tabularnewline
M8 & 5.15709840515961 & 2.45626 & 2.0996 & 0.041281 & 0.020641 \tabularnewline
M9 & -10.8793637664784 & 2.72884 & -3.9868 & 0.000237 & 0.000119 \tabularnewline
M10 & -8.40882886848745 & 2.758882 & -3.0479 & 0.003812 & 0.001906 \tabularnewline
M11 & -6.113968161498 & 2.546047 & -2.4014 & 0.020433 & 0.010216 \tabularnewline
t & -0.120470689324151 & 0.030364 & -3.9675 & 0.000252 & 0.000126 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111834&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]35.3607050481265[/C][C]8.439546[/C][C]4.1899[/C][C]0.000125[/C][C]6.3e-05[/C][/ROW]
[ROW][C]T.I.P.[/C][C]0.80254709385946[/C][C]0.0814[/C][C]9.8593[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]4.40769055462782[/C][C]2.479298[/C][C]1.7778[/C][C]0.082048[/C][C]0.041024[/C][/ROW]
[ROW][C]M2[/C][C]-1.67120091994249[/C][C]2.48515[/C][C]-0.6725[/C][C]0.504646[/C][C]0.252323[/C][/ROW]
[ROW][C]M3[/C][C]-1.61314465658159[/C][C]2.657938[/C][C]-0.6069[/C][C]0.546891[/C][C]0.273445[/C][/ROW]
[ROW][C]M4[/C][C]-3.05293292720598[/C][C]2.513266[/C][C]-1.2147[/C][C]0.230669[/C][C]0.115334[/C][/ROW]
[ROW][C]M5[/C][C]-2.50303586532053[/C][C]2.503426[/C][C]-0.9998[/C][C]0.322617[/C][C]0.161308[/C][/ROW]
[ROW][C]M6[/C][C]-5.2220493813806[/C][C]2.74159[/C][C]-1.9048[/C][C]0.063076[/C][C]0.031538[/C][/ROW]
[ROW][C]M7[/C][C]13.1270665500967[/C][C]2.600069[/C][C]5.0487[/C][C]7e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M8[/C][C]5.15709840515961[/C][C]2.45626[/C][C]2.0996[/C][C]0.041281[/C][C]0.020641[/C][/ROW]
[ROW][C]M9[/C][C]-10.8793637664784[/C][C]2.72884[/C][C]-3.9868[/C][C]0.000237[/C][C]0.000119[/C][/ROW]
[ROW][C]M10[/C][C]-8.40882886848745[/C][C]2.758882[/C][C]-3.0479[/C][C]0.003812[/C][C]0.001906[/C][/ROW]
[ROW][C]M11[/C][C]-6.113968161498[/C][C]2.546047[/C][C]-2.4014[/C][C]0.020433[/C][C]0.010216[/C][/ROW]
[ROW][C]t[/C][C]-0.120470689324151[/C][C]0.030364[/C][C]-3.9675[/C][C]0.000252[/C][C]0.000126[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111834&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111834&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)35.36070504812658.4395464.18990.0001256.3e-05
T.I.P.0.802547093859460.08149.859300
M14.407690554627822.4792981.77780.0820480.041024
M2-1.671200919942492.48515-0.67250.5046460.252323
M3-1.613144656581592.657938-0.60690.5468910.273445
M4-3.052932927205982.513266-1.21470.2306690.115334
M5-2.503035865320532.503426-0.99980.3226170.161308
M6-5.22204938138062.74159-1.90480.0630760.031538
M713.12706655009672.6000695.04877e-064e-06
M85.157098405159612.456262.09960.0412810.020641
M9-10.87936376647842.72884-3.98680.0002370.000119
M10-8.408828868487452.758882-3.04790.0038120.001906
M11-6.1139681614982.546047-2.40140.0204330.010216
t-0.1204706893241510.030364-3.96750.0002520.000126







Multiple Linear Regression - Regression Statistics
Multiple R0.889237640042933
R-squared0.790743580469125
Adjusted R-squared0.731605896688661
F-TEST (value)13.3712301517351
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.52530210684176e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.87919616466738
Sum Squared Residuals692.215492662624

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.889237640042933 \tabularnewline
R-squared & 0.790743580469125 \tabularnewline
Adjusted R-squared & 0.731605896688661 \tabularnewline
F-TEST (value) & 13.3712301517351 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.52530210684176e-11 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3.87919616466738 \tabularnewline
Sum Squared Residuals & 692.215492662624 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111834&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.889237640042933[/C][/ROW]
[ROW][C]R-squared[/C][C]0.790743580469125[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.731605896688661[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]13.3712301517351[/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]1.52530210684176e-11[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]3.87919616466738[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]692.215492662624[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111834&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111834&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.889237640042933
R-squared0.790743580469125
Adjusted R-squared0.731605896688661
F-TEST (value)13.3712301517351
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.52530210684176e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.87919616466738
Sum Squared Residuals692.215492662624







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1116.1115.5688799925350.531120007464823
2107.5110.412829050658-2.91282905065791
3116.7117.412829050658-0.712829050657896
4112.5114.327730612376-1.82773061237639
5113110.9851856437982.01481435620178
6126.4120.8259455213935.57405447860653
7114.1112.5705366661841.52946333381561
8112.5116.357794821043-3.8577948210432
9112.4114.245436102622-1.84543610262158
10113.1110.7369065261142.36309347388566
11116.3115.2386831159721.06131688402793
12111.7116.015624478059-4.31562447805942
13118.8117.6544389336271.14556106637312
14116.5112.8194068292933.68059317070651
15125.1124.634689392450.465310607549741
16113.1111.1967334433821.90326655661829
17119.6119.009593079450.590406920549952
18114.4119.942080215205-5.54208021520527
19114114.736350316662-0.736350316662142
20117.8118.764372599679-0.964372599678794
21117114.0838631809072.9161368190931
22120.9117.7982574491353.10174255086521
23115117.083477928906-2.08347792890604
24117.3114.3292120780122.97078792198823
25119.4121.826620318753-2.42662031875328
26114.9115.065475189157-0.16547518915718
27125.8125.837446530297-0.0374465302966544
28117.6114.0848394783333.51516052166702
29117.6117.0824165512450.517583448755453
30114.9120.58305438735-5.68305438735006
31121.9118.9887864111742.91121358882552
32117120.288148575069-3.28814857506898
33106.4110.79235659314-4.39235659314032
34110.5121.087637031016-10.5876370310158
35113.6115.95884849456-2.35884849456001
36114.2111.2784696184032.92153038159697
37125.4124.1529433880031.24705661199707
38124.6119.6389301212134.96106987878667
39120.2117.1688744136723.03112558632831
40120.8121.627718657669-0.827718657669112
41111.4115.476258860583-4.07625886058283
42124.1118.0940948934436.00590510655705
43120.2120.352052967793-0.152052967792781
44125.5115.31129309019810.1887069098025
45116112.7976608248463.20233917515381
46117114.2649232302682.73507676973241
47105.7103.3577956180242.34220438197631
48102105.258302911514-3.25830291151429
49106.4106.897117367082-0.49711736708174
5096.9102.463358809678-5.56335880967809
51107.6110.346160612923-2.7461606129235
5298.8101.56297780824-2.76297780823982
53101.1100.1465458649240.953454135075638
54105.7106.054824982608-0.354824982608251
55104.6108.152273638186-3.5522736381862
56103.2105.278390914011-2.07839091401149
57101.6101.4806832984850.119316701514987
58106.7104.3122757634672.38772423653251
5999.598.46119484253821.03880515746181
6010199.31839091401151.6816090859885

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 116.1 & 115.568879992535 & 0.531120007464823 \tabularnewline
2 & 107.5 & 110.412829050658 & -2.91282905065791 \tabularnewline
3 & 116.7 & 117.412829050658 & -0.712829050657896 \tabularnewline
4 & 112.5 & 114.327730612376 & -1.82773061237639 \tabularnewline
5 & 113 & 110.985185643798 & 2.01481435620178 \tabularnewline
6 & 126.4 & 120.825945521393 & 5.57405447860653 \tabularnewline
7 & 114.1 & 112.570536666184 & 1.52946333381561 \tabularnewline
8 & 112.5 & 116.357794821043 & -3.8577948210432 \tabularnewline
9 & 112.4 & 114.245436102622 & -1.84543610262158 \tabularnewline
10 & 113.1 & 110.736906526114 & 2.36309347388566 \tabularnewline
11 & 116.3 & 115.238683115972 & 1.06131688402793 \tabularnewline
12 & 111.7 & 116.015624478059 & -4.31562447805942 \tabularnewline
13 & 118.8 & 117.654438933627 & 1.14556106637312 \tabularnewline
14 & 116.5 & 112.819406829293 & 3.68059317070651 \tabularnewline
15 & 125.1 & 124.63468939245 & 0.465310607549741 \tabularnewline
16 & 113.1 & 111.196733443382 & 1.90326655661829 \tabularnewline
17 & 119.6 & 119.00959307945 & 0.590406920549952 \tabularnewline
18 & 114.4 & 119.942080215205 & -5.54208021520527 \tabularnewline
19 & 114 & 114.736350316662 & -0.736350316662142 \tabularnewline
20 & 117.8 & 118.764372599679 & -0.964372599678794 \tabularnewline
21 & 117 & 114.083863180907 & 2.9161368190931 \tabularnewline
22 & 120.9 & 117.798257449135 & 3.10174255086521 \tabularnewline
23 & 115 & 117.083477928906 & -2.08347792890604 \tabularnewline
24 & 117.3 & 114.329212078012 & 2.97078792198823 \tabularnewline
25 & 119.4 & 121.826620318753 & -2.42662031875328 \tabularnewline
26 & 114.9 & 115.065475189157 & -0.16547518915718 \tabularnewline
27 & 125.8 & 125.837446530297 & -0.0374465302966544 \tabularnewline
28 & 117.6 & 114.084839478333 & 3.51516052166702 \tabularnewline
29 & 117.6 & 117.082416551245 & 0.517583448755453 \tabularnewline
30 & 114.9 & 120.58305438735 & -5.68305438735006 \tabularnewline
31 & 121.9 & 118.988786411174 & 2.91121358882552 \tabularnewline
32 & 117 & 120.288148575069 & -3.28814857506898 \tabularnewline
33 & 106.4 & 110.79235659314 & -4.39235659314032 \tabularnewline
34 & 110.5 & 121.087637031016 & -10.5876370310158 \tabularnewline
35 & 113.6 & 115.95884849456 & -2.35884849456001 \tabularnewline
36 & 114.2 & 111.278469618403 & 2.92153038159697 \tabularnewline
37 & 125.4 & 124.152943388003 & 1.24705661199707 \tabularnewline
38 & 124.6 & 119.638930121213 & 4.96106987878667 \tabularnewline
39 & 120.2 & 117.168874413672 & 3.03112558632831 \tabularnewline
40 & 120.8 & 121.627718657669 & -0.827718657669112 \tabularnewline
41 & 111.4 & 115.476258860583 & -4.07625886058283 \tabularnewline
42 & 124.1 & 118.094094893443 & 6.00590510655705 \tabularnewline
43 & 120.2 & 120.352052967793 & -0.152052967792781 \tabularnewline
44 & 125.5 & 115.311293090198 & 10.1887069098025 \tabularnewline
45 & 116 & 112.797660824846 & 3.20233917515381 \tabularnewline
46 & 117 & 114.264923230268 & 2.73507676973241 \tabularnewline
47 & 105.7 & 103.357795618024 & 2.34220438197631 \tabularnewline
48 & 102 & 105.258302911514 & -3.25830291151429 \tabularnewline
49 & 106.4 & 106.897117367082 & -0.49711736708174 \tabularnewline
50 & 96.9 & 102.463358809678 & -5.56335880967809 \tabularnewline
51 & 107.6 & 110.346160612923 & -2.7461606129235 \tabularnewline
52 & 98.8 & 101.56297780824 & -2.76297780823982 \tabularnewline
53 & 101.1 & 100.146545864924 & 0.953454135075638 \tabularnewline
54 & 105.7 & 106.054824982608 & -0.354824982608251 \tabularnewline
55 & 104.6 & 108.152273638186 & -3.5522736381862 \tabularnewline
56 & 103.2 & 105.278390914011 & -2.07839091401149 \tabularnewline
57 & 101.6 & 101.480683298485 & 0.119316701514987 \tabularnewline
58 & 106.7 & 104.312275763467 & 2.38772423653251 \tabularnewline
59 & 99.5 & 98.4611948425382 & 1.03880515746181 \tabularnewline
60 & 101 & 99.3183909140115 & 1.6816090859885 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111834&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]116.1[/C][C]115.568879992535[/C][C]0.531120007464823[/C][/ROW]
[ROW][C]2[/C][C]107.5[/C][C]110.412829050658[/C][C]-2.91282905065791[/C][/ROW]
[ROW][C]3[/C][C]116.7[/C][C]117.412829050658[/C][C]-0.712829050657896[/C][/ROW]
[ROW][C]4[/C][C]112.5[/C][C]114.327730612376[/C][C]-1.82773061237639[/C][/ROW]
[ROW][C]5[/C][C]113[/C][C]110.985185643798[/C][C]2.01481435620178[/C][/ROW]
[ROW][C]6[/C][C]126.4[/C][C]120.825945521393[/C][C]5.57405447860653[/C][/ROW]
[ROW][C]7[/C][C]114.1[/C][C]112.570536666184[/C][C]1.52946333381561[/C][/ROW]
[ROW][C]8[/C][C]112.5[/C][C]116.357794821043[/C][C]-3.8577948210432[/C][/ROW]
[ROW][C]9[/C][C]112.4[/C][C]114.245436102622[/C][C]-1.84543610262158[/C][/ROW]
[ROW][C]10[/C][C]113.1[/C][C]110.736906526114[/C][C]2.36309347388566[/C][/ROW]
[ROW][C]11[/C][C]116.3[/C][C]115.238683115972[/C][C]1.06131688402793[/C][/ROW]
[ROW][C]12[/C][C]111.7[/C][C]116.015624478059[/C][C]-4.31562447805942[/C][/ROW]
[ROW][C]13[/C][C]118.8[/C][C]117.654438933627[/C][C]1.14556106637312[/C][/ROW]
[ROW][C]14[/C][C]116.5[/C][C]112.819406829293[/C][C]3.68059317070651[/C][/ROW]
[ROW][C]15[/C][C]125.1[/C][C]124.63468939245[/C][C]0.465310607549741[/C][/ROW]
[ROW][C]16[/C][C]113.1[/C][C]111.196733443382[/C][C]1.90326655661829[/C][/ROW]
[ROW][C]17[/C][C]119.6[/C][C]119.00959307945[/C][C]0.590406920549952[/C][/ROW]
[ROW][C]18[/C][C]114.4[/C][C]119.942080215205[/C][C]-5.54208021520527[/C][/ROW]
[ROW][C]19[/C][C]114[/C][C]114.736350316662[/C][C]-0.736350316662142[/C][/ROW]
[ROW][C]20[/C][C]117.8[/C][C]118.764372599679[/C][C]-0.964372599678794[/C][/ROW]
[ROW][C]21[/C][C]117[/C][C]114.083863180907[/C][C]2.9161368190931[/C][/ROW]
[ROW][C]22[/C][C]120.9[/C][C]117.798257449135[/C][C]3.10174255086521[/C][/ROW]
[ROW][C]23[/C][C]115[/C][C]117.083477928906[/C][C]-2.08347792890604[/C][/ROW]
[ROW][C]24[/C][C]117.3[/C][C]114.329212078012[/C][C]2.97078792198823[/C][/ROW]
[ROW][C]25[/C][C]119.4[/C][C]121.826620318753[/C][C]-2.42662031875328[/C][/ROW]
[ROW][C]26[/C][C]114.9[/C][C]115.065475189157[/C][C]-0.16547518915718[/C][/ROW]
[ROW][C]27[/C][C]125.8[/C][C]125.837446530297[/C][C]-0.0374465302966544[/C][/ROW]
[ROW][C]28[/C][C]117.6[/C][C]114.084839478333[/C][C]3.51516052166702[/C][/ROW]
[ROW][C]29[/C][C]117.6[/C][C]117.082416551245[/C][C]0.517583448755453[/C][/ROW]
[ROW][C]30[/C][C]114.9[/C][C]120.58305438735[/C][C]-5.68305438735006[/C][/ROW]
[ROW][C]31[/C][C]121.9[/C][C]118.988786411174[/C][C]2.91121358882552[/C][/ROW]
[ROW][C]32[/C][C]117[/C][C]120.288148575069[/C][C]-3.28814857506898[/C][/ROW]
[ROW][C]33[/C][C]106.4[/C][C]110.79235659314[/C][C]-4.39235659314032[/C][/ROW]
[ROW][C]34[/C][C]110.5[/C][C]121.087637031016[/C][C]-10.5876370310158[/C][/ROW]
[ROW][C]35[/C][C]113.6[/C][C]115.95884849456[/C][C]-2.35884849456001[/C][/ROW]
[ROW][C]36[/C][C]114.2[/C][C]111.278469618403[/C][C]2.92153038159697[/C][/ROW]
[ROW][C]37[/C][C]125.4[/C][C]124.152943388003[/C][C]1.24705661199707[/C][/ROW]
[ROW][C]38[/C][C]124.6[/C][C]119.638930121213[/C][C]4.96106987878667[/C][/ROW]
[ROW][C]39[/C][C]120.2[/C][C]117.168874413672[/C][C]3.03112558632831[/C][/ROW]
[ROW][C]40[/C][C]120.8[/C][C]121.627718657669[/C][C]-0.827718657669112[/C][/ROW]
[ROW][C]41[/C][C]111.4[/C][C]115.476258860583[/C][C]-4.07625886058283[/C][/ROW]
[ROW][C]42[/C][C]124.1[/C][C]118.094094893443[/C][C]6.00590510655705[/C][/ROW]
[ROW][C]43[/C][C]120.2[/C][C]120.352052967793[/C][C]-0.152052967792781[/C][/ROW]
[ROW][C]44[/C][C]125.5[/C][C]115.311293090198[/C][C]10.1887069098025[/C][/ROW]
[ROW][C]45[/C][C]116[/C][C]112.797660824846[/C][C]3.20233917515381[/C][/ROW]
[ROW][C]46[/C][C]117[/C][C]114.264923230268[/C][C]2.73507676973241[/C][/ROW]
[ROW][C]47[/C][C]105.7[/C][C]103.357795618024[/C][C]2.34220438197631[/C][/ROW]
[ROW][C]48[/C][C]102[/C][C]105.258302911514[/C][C]-3.25830291151429[/C][/ROW]
[ROW][C]49[/C][C]106.4[/C][C]106.897117367082[/C][C]-0.49711736708174[/C][/ROW]
[ROW][C]50[/C][C]96.9[/C][C]102.463358809678[/C][C]-5.56335880967809[/C][/ROW]
[ROW][C]51[/C][C]107.6[/C][C]110.346160612923[/C][C]-2.7461606129235[/C][/ROW]
[ROW][C]52[/C][C]98.8[/C][C]101.56297780824[/C][C]-2.76297780823982[/C][/ROW]
[ROW][C]53[/C][C]101.1[/C][C]100.146545864924[/C][C]0.953454135075638[/C][/ROW]
[ROW][C]54[/C][C]105.7[/C][C]106.054824982608[/C][C]-0.354824982608251[/C][/ROW]
[ROW][C]55[/C][C]104.6[/C][C]108.152273638186[/C][C]-3.5522736381862[/C][/ROW]
[ROW][C]56[/C][C]103.2[/C][C]105.278390914011[/C][C]-2.07839091401149[/C][/ROW]
[ROW][C]57[/C][C]101.6[/C][C]101.480683298485[/C][C]0.119316701514987[/C][/ROW]
[ROW][C]58[/C][C]106.7[/C][C]104.312275763467[/C][C]2.38772423653251[/C][/ROW]
[ROW][C]59[/C][C]99.5[/C][C]98.4611948425382[/C][C]1.03880515746181[/C][/ROW]
[ROW][C]60[/C][C]101[/C][C]99.3183909140115[/C][C]1.6816090859885[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111834&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111834&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
1116.1115.5688799925350.531120007464823
2107.5110.412829050658-2.91282905065791
3116.7117.412829050658-0.712829050657896
4112.5114.327730612376-1.82773061237639
5113110.9851856437982.01481435620178
6126.4120.8259455213935.57405447860653
7114.1112.5705366661841.52946333381561
8112.5116.357794821043-3.8577948210432
9112.4114.245436102622-1.84543610262158
10113.1110.7369065261142.36309347388566
11116.3115.2386831159721.06131688402793
12111.7116.015624478059-4.31562447805942
13118.8117.6544389336271.14556106637312
14116.5112.8194068292933.68059317070651
15125.1124.634689392450.465310607549741
16113.1111.1967334433821.90326655661829
17119.6119.009593079450.590406920549952
18114.4119.942080215205-5.54208021520527
19114114.736350316662-0.736350316662142
20117.8118.764372599679-0.964372599678794
21117114.0838631809072.9161368190931
22120.9117.7982574491353.10174255086521
23115117.083477928906-2.08347792890604
24117.3114.3292120780122.97078792198823
25119.4121.826620318753-2.42662031875328
26114.9115.065475189157-0.16547518915718
27125.8125.837446530297-0.0374465302966544
28117.6114.0848394783333.51516052166702
29117.6117.0824165512450.517583448755453
30114.9120.58305438735-5.68305438735006
31121.9118.9887864111742.91121358882552
32117120.288148575069-3.28814857506898
33106.4110.79235659314-4.39235659314032
34110.5121.087637031016-10.5876370310158
35113.6115.95884849456-2.35884849456001
36114.2111.2784696184032.92153038159697
37125.4124.1529433880031.24705661199707
38124.6119.6389301212134.96106987878667
39120.2117.1688744136723.03112558632831
40120.8121.627718657669-0.827718657669112
41111.4115.476258860583-4.07625886058283
42124.1118.0940948934436.00590510655705
43120.2120.352052967793-0.152052967792781
44125.5115.31129309019810.1887069098025
45116112.7976608248463.20233917515381
46117114.2649232302682.73507676973241
47105.7103.3577956180242.34220438197631
48102105.258302911514-3.25830291151429
49106.4106.897117367082-0.49711736708174
5096.9102.463358809678-5.56335880967809
51107.6110.346160612923-2.7461606129235
5298.8101.56297780824-2.76297780823982
53101.1100.1465458649240.953454135075638
54105.7106.054824982608-0.354824982608251
55104.6108.152273638186-3.5522736381862
56103.2105.278390914011-2.07839091401149
57101.6101.4806832984850.119316701514987
58106.7104.3122757634672.38772423653251
5999.598.46119484253821.03880515746181
6010199.31839091401151.6816090859885







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1179151188326180.2358302376652370.882084881167382
180.6691198976420930.6617602047158140.330880102357907
190.5342016413461240.9315967173077520.465798358653876
200.4260921236038870.8521842472077740.573907876396113
210.3689880387652550.737976077530510.631011961234745
220.2863666608347930.5727333216695870.713633339165207
230.2195438571563150.439087714312630.780456142843685
240.2274552304156680.4549104608313360.772544769584332
250.1811127306155970.3622254612311950.818887269384403
260.1199806922829670.2399613845659340.880019307717033
270.07379943890738790.1475988778147760.926200561092612
280.06930296134015510.138605922680310.930697038659845
290.04676866646871250.0935373329374250.953231333531288
300.06579192133493590.1315838426698720.934208078665064
310.07258375433933730.1451675086786750.927416245660663
320.05430346510692580.1086069302138520.945696534893074
330.04292490785455640.08584981570911280.957075092145444
340.4528415184339080.9056830368678160.547158481566092
350.5200894850421610.9598210299156780.479910514957839
360.432761168990490.8655223379809790.56723883100951
370.3536145868070370.7072291736140730.646385413192963
380.4319119014683530.8638238029367070.568088098531647
390.3556217360839640.7112434721679270.644378263916036
400.247886374143950.49577274828790.75211362585605
410.4987515803396380.9975031606792750.501248419660362
420.4041517305782820.8083034611565650.595848269421718
430.2764462297300080.5528924594600150.723553770269992

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.117915118832618 & 0.235830237665237 & 0.882084881167382 \tabularnewline
18 & 0.669119897642093 & 0.661760204715814 & 0.330880102357907 \tabularnewline
19 & 0.534201641346124 & 0.931596717307752 & 0.465798358653876 \tabularnewline
20 & 0.426092123603887 & 0.852184247207774 & 0.573907876396113 \tabularnewline
21 & 0.368988038765255 & 0.73797607753051 & 0.631011961234745 \tabularnewline
22 & 0.286366660834793 & 0.572733321669587 & 0.713633339165207 \tabularnewline
23 & 0.219543857156315 & 0.43908771431263 & 0.780456142843685 \tabularnewline
24 & 0.227455230415668 & 0.454910460831336 & 0.772544769584332 \tabularnewline
25 & 0.181112730615597 & 0.362225461231195 & 0.818887269384403 \tabularnewline
26 & 0.119980692282967 & 0.239961384565934 & 0.880019307717033 \tabularnewline
27 & 0.0737994389073879 & 0.147598877814776 & 0.926200561092612 \tabularnewline
28 & 0.0693029613401551 & 0.13860592268031 & 0.930697038659845 \tabularnewline
29 & 0.0467686664687125 & 0.093537332937425 & 0.953231333531288 \tabularnewline
30 & 0.0657919213349359 & 0.131583842669872 & 0.934208078665064 \tabularnewline
31 & 0.0725837543393373 & 0.145167508678675 & 0.927416245660663 \tabularnewline
32 & 0.0543034651069258 & 0.108606930213852 & 0.945696534893074 \tabularnewline
33 & 0.0429249078545564 & 0.0858498157091128 & 0.957075092145444 \tabularnewline
34 & 0.452841518433908 & 0.905683036867816 & 0.547158481566092 \tabularnewline
35 & 0.520089485042161 & 0.959821029915678 & 0.479910514957839 \tabularnewline
36 & 0.43276116899049 & 0.865522337980979 & 0.56723883100951 \tabularnewline
37 & 0.353614586807037 & 0.707229173614073 & 0.646385413192963 \tabularnewline
38 & 0.431911901468353 & 0.863823802936707 & 0.568088098531647 \tabularnewline
39 & 0.355621736083964 & 0.711243472167927 & 0.644378263916036 \tabularnewline
40 & 0.24788637414395 & 0.4957727482879 & 0.75211362585605 \tabularnewline
41 & 0.498751580339638 & 0.997503160679275 & 0.501248419660362 \tabularnewline
42 & 0.404151730578282 & 0.808303461156565 & 0.595848269421718 \tabularnewline
43 & 0.276446229730008 & 0.552892459460015 & 0.723553770269992 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111834&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.117915118832618[/C][C]0.235830237665237[/C][C]0.882084881167382[/C][/ROW]
[ROW][C]18[/C][C]0.669119897642093[/C][C]0.661760204715814[/C][C]0.330880102357907[/C][/ROW]
[ROW][C]19[/C][C]0.534201641346124[/C][C]0.931596717307752[/C][C]0.465798358653876[/C][/ROW]
[ROW][C]20[/C][C]0.426092123603887[/C][C]0.852184247207774[/C][C]0.573907876396113[/C][/ROW]
[ROW][C]21[/C][C]0.368988038765255[/C][C]0.73797607753051[/C][C]0.631011961234745[/C][/ROW]
[ROW][C]22[/C][C]0.286366660834793[/C][C]0.572733321669587[/C][C]0.713633339165207[/C][/ROW]
[ROW][C]23[/C][C]0.219543857156315[/C][C]0.43908771431263[/C][C]0.780456142843685[/C][/ROW]
[ROW][C]24[/C][C]0.227455230415668[/C][C]0.454910460831336[/C][C]0.772544769584332[/C][/ROW]
[ROW][C]25[/C][C]0.181112730615597[/C][C]0.362225461231195[/C][C]0.818887269384403[/C][/ROW]
[ROW][C]26[/C][C]0.119980692282967[/C][C]0.239961384565934[/C][C]0.880019307717033[/C][/ROW]
[ROW][C]27[/C][C]0.0737994389073879[/C][C]0.147598877814776[/C][C]0.926200561092612[/C][/ROW]
[ROW][C]28[/C][C]0.0693029613401551[/C][C]0.13860592268031[/C][C]0.930697038659845[/C][/ROW]
[ROW][C]29[/C][C]0.0467686664687125[/C][C]0.093537332937425[/C][C]0.953231333531288[/C][/ROW]
[ROW][C]30[/C][C]0.0657919213349359[/C][C]0.131583842669872[/C][C]0.934208078665064[/C][/ROW]
[ROW][C]31[/C][C]0.0725837543393373[/C][C]0.145167508678675[/C][C]0.927416245660663[/C][/ROW]
[ROW][C]32[/C][C]0.0543034651069258[/C][C]0.108606930213852[/C][C]0.945696534893074[/C][/ROW]
[ROW][C]33[/C][C]0.0429249078545564[/C][C]0.0858498157091128[/C][C]0.957075092145444[/C][/ROW]
[ROW][C]34[/C][C]0.452841518433908[/C][C]0.905683036867816[/C][C]0.547158481566092[/C][/ROW]
[ROW][C]35[/C][C]0.520089485042161[/C][C]0.959821029915678[/C][C]0.479910514957839[/C][/ROW]
[ROW][C]36[/C][C]0.43276116899049[/C][C]0.865522337980979[/C][C]0.56723883100951[/C][/ROW]
[ROW][C]37[/C][C]0.353614586807037[/C][C]0.707229173614073[/C][C]0.646385413192963[/C][/ROW]
[ROW][C]38[/C][C]0.431911901468353[/C][C]0.863823802936707[/C][C]0.568088098531647[/C][/ROW]
[ROW][C]39[/C][C]0.355621736083964[/C][C]0.711243472167927[/C][C]0.644378263916036[/C][/ROW]
[ROW][C]40[/C][C]0.24788637414395[/C][C]0.4957727482879[/C][C]0.75211362585605[/C][/ROW]
[ROW][C]41[/C][C]0.498751580339638[/C][C]0.997503160679275[/C][C]0.501248419660362[/C][/ROW]
[ROW][C]42[/C][C]0.404151730578282[/C][C]0.808303461156565[/C][C]0.595848269421718[/C][/ROW]
[ROW][C]43[/C][C]0.276446229730008[/C][C]0.552892459460015[/C][C]0.723553770269992[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111834&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111834&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.1179151188326180.2358302376652370.882084881167382
180.6691198976420930.6617602047158140.330880102357907
190.5342016413461240.9315967173077520.465798358653876
200.4260921236038870.8521842472077740.573907876396113
210.3689880387652550.737976077530510.631011961234745
220.2863666608347930.5727333216695870.713633339165207
230.2195438571563150.439087714312630.780456142843685
240.2274552304156680.4549104608313360.772544769584332
250.1811127306155970.3622254612311950.818887269384403
260.1199806922829670.2399613845659340.880019307717033
270.07379943890738790.1475988778147760.926200561092612
280.06930296134015510.138605922680310.930697038659845
290.04676866646871250.0935373329374250.953231333531288
300.06579192133493590.1315838426698720.934208078665064
310.07258375433933730.1451675086786750.927416245660663
320.05430346510692580.1086069302138520.945696534893074
330.04292490785455640.08584981570911280.957075092145444
340.4528415184339080.9056830368678160.547158481566092
350.5200894850421610.9598210299156780.479910514957839
360.432761168990490.8655223379809790.56723883100951
370.3536145868070370.7072291736140730.646385413192963
380.4319119014683530.8638238029367070.568088098531647
390.3556217360839640.7112434721679270.644378263916036
400.247886374143950.49577274828790.75211362585605
410.4987515803396380.9975031606792750.501248419660362
420.4041517305782820.8083034611565650.595848269421718
430.2764462297300080.5528924594600150.723553770269992







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level20.0740740740740741OK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 2 & 0.0740740740740741 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111834&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]2[/C][C]0.0740740740740741[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111834&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level20.0740740740740741OK



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