Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 27 Nov 2008 11:25:21 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Nov/27/t1227810606ddinpdfvnaqhxcr.htm/, Retrieved Sun, 19 May 2024 10:23:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25873, Retrieved Sun, 19 May 2024 10:23:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact161
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F       [Multiple Regression] [Seatbelt Law] [2008-11-27 18:25:21] [51c0bf2e8d2e36d7824d95d26ff0a48d] [Current]
Feedback Forum
2008-12-01 15:31:18 [Vincent Dolhain] [reply
Je hebt dit goed opgelost, je hebt een besluit gevormd dat je ook nog eens goed argumenteerd

Post a new message
Dataseries X:
87,0	106,7
96,3	101,1
107,1	97,8
115,2	113,8
106,1	107,1
89,5	117,5
91,3	113,7
97,6	106,6
100,7	109,8
104,6	108,8
94,7	102,0
101,8	114,5
102,5	116,5
105,3	108,6
110,3	113,9
109,8	109,3
117,3	112,5
118,8	123,4
131,3	115,2
125,9	110,8
133,1	120,4
147,0	117,6
145,8	111,2
164,4	131,1
149,8	118,9
137,7	115,7
151,7	119,6
156,8	113,1
180,0	106,4
180,4	115,5
170,4	111,8
191,6	109,6
199,5	121,5
218,2	109,5
217,5	109,0
205,0	113,4
194,0	112,7
199,3	114,4
219,3	109,2
211,1	116,2
215,2	113,8
240,2	123,6
242,2	112,6
240,7	117,7
255,4	113,3
253,0	110,7
218,2	114,7
203,7	116,9
205,6	120,6
215,6	111,6
188,5	111,9
202,9	116,1
214,0	111,9
230,3	125,1
230,0	115,1
241,0	116,7
259,6	115,8
247,8	116,8
270,3	113,0
289,7	106,5




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25873&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25873&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
X[t] = + 193.401871931899 -0.97702580141358Y[t] -11.8816409113039M1[t] -16.6592006863323M2[t] -15.0716314542927M3[t] -11.2934443019842M4[t] -10.3640869229770M5[t] + 2.24271270787681M6[t] -6.87649260274204M7[t] -5.07216465296427M8[t] + 5.87085952827723M9[t] + 3.78297381111479M10[t] -6.82283178094506M11[t] + 3.14783592824319t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
X[t] =  +  193.401871931899 -0.97702580141358Y[t] -11.8816409113039M1[t] -16.6592006863323M2[t] -15.0716314542927M3[t] -11.2934443019842M4[t] -10.3640869229770M5[t] +  2.24271270787681M6[t] -6.87649260274204M7[t] -5.07216465296427M8[t] +  5.87085952827723M9[t] +  3.78297381111479M10[t] -6.82283178094506M11[t] +  3.14783592824319t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25873&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]X[t] =  +  193.401871931899 -0.97702580141358Y[t] -11.8816409113039M1[t] -16.6592006863323M2[t] -15.0716314542927M3[t] -11.2934443019842M4[t] -10.3640869229770M5[t] +  2.24271270787681M6[t] -6.87649260274204M7[t] -5.07216465296427M8[t] +  5.87085952827723M9[t] +  3.78297381111479M10[t] -6.82283178094506M11[t] +  3.14783592824319t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25873&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25873&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
X[t] = + 193.401871931899 -0.97702580141358Y[t] -11.8816409113039M1[t] -16.6592006863323M2[t] -15.0716314542927M3[t] -11.2934443019842M4[t] -10.3640869229770M5[t] + 2.24271270787681M6[t] -6.87649260274204M7[t] -5.07216465296427M8[t] + 5.87085952827723M9[t] + 3.78297381111479M10[t] -6.82283178094506M11[t] + 3.14783592824319t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)193.40187193189965.4495452.9550.0049170.002458
Y-0.977025801413580.573204-1.70450.0950340.047517
M1-11.881640911303912.516825-0.94930.3474520.173726
M2-16.659200686332312.843418-1.29710.2010650.100532
M3-15.071631454292712.814242-1.17620.2455810.122791
M4-11.293444301984212.515301-0.90240.3715610.18578
M5-10.364086922977012.83301-0.80760.4234710.211735
M62.2427127078768112.7867710.17540.861540.43077
M7-6.8764926027420412.498931-0.55020.5848670.292433
M8-5.0721646529642712.61036-0.40220.6893840.344692
M95.8708595282772312.4158530.47290.6385550.319277
M103.7829738111147912.5811270.30070.7650090.382504
M11-6.8228317809450612.939065-0.52730.6005160.300258
t3.147835928243190.16055219.606400

\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) & 193.401871931899 & 65.449545 & 2.955 & 0.004917 & 0.002458 \tabularnewline
Y & -0.97702580141358 & 0.573204 & -1.7045 & 0.095034 & 0.047517 \tabularnewline
M1 & -11.8816409113039 & 12.516825 & -0.9493 & 0.347452 & 0.173726 \tabularnewline
M2 & -16.6592006863323 & 12.843418 & -1.2971 & 0.201065 & 0.100532 \tabularnewline
M3 & -15.0716314542927 & 12.814242 & -1.1762 & 0.245581 & 0.122791 \tabularnewline
M4 & -11.2934443019842 & 12.515301 & -0.9024 & 0.371561 & 0.18578 \tabularnewline
M5 & -10.3640869229770 & 12.83301 & -0.8076 & 0.423471 & 0.211735 \tabularnewline
M6 & 2.24271270787681 & 12.786771 & 0.1754 & 0.86154 & 0.43077 \tabularnewline
M7 & -6.87649260274204 & 12.498931 & -0.5502 & 0.584867 & 0.292433 \tabularnewline
M8 & -5.07216465296427 & 12.61036 & -0.4022 & 0.689384 & 0.344692 \tabularnewline
M9 & 5.87085952827723 & 12.415853 & 0.4729 & 0.638555 & 0.319277 \tabularnewline
M10 & 3.78297381111479 & 12.581127 & 0.3007 & 0.765009 & 0.382504 \tabularnewline
M11 & -6.82283178094506 & 12.939065 & -0.5273 & 0.600516 & 0.300258 \tabularnewline
t & 3.14783592824319 & 0.160552 & 19.6064 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25873&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]193.401871931899[/C][C]65.449545[/C][C]2.955[/C][C]0.004917[/C][C]0.002458[/C][/ROW]
[ROW][C]Y[/C][C]-0.97702580141358[/C][C]0.573204[/C][C]-1.7045[/C][C]0.095034[/C][C]0.047517[/C][/ROW]
[ROW][C]M1[/C][C]-11.8816409113039[/C][C]12.516825[/C][C]-0.9493[/C][C]0.347452[/C][C]0.173726[/C][/ROW]
[ROW][C]M2[/C][C]-16.6592006863323[/C][C]12.843418[/C][C]-1.2971[/C][C]0.201065[/C][C]0.100532[/C][/ROW]
[ROW][C]M3[/C][C]-15.0716314542927[/C][C]12.814242[/C][C]-1.1762[/C][C]0.245581[/C][C]0.122791[/C][/ROW]
[ROW][C]M4[/C][C]-11.2934443019842[/C][C]12.515301[/C][C]-0.9024[/C][C]0.371561[/C][C]0.18578[/C][/ROW]
[ROW][C]M5[/C][C]-10.3640869229770[/C][C]12.83301[/C][C]-0.8076[/C][C]0.423471[/C][C]0.211735[/C][/ROW]
[ROW][C]M6[/C][C]2.24271270787681[/C][C]12.786771[/C][C]0.1754[/C][C]0.86154[/C][C]0.43077[/C][/ROW]
[ROW][C]M7[/C][C]-6.87649260274204[/C][C]12.498931[/C][C]-0.5502[/C][C]0.584867[/C][C]0.292433[/C][/ROW]
[ROW][C]M8[/C][C]-5.07216465296427[/C][C]12.61036[/C][C]-0.4022[/C][C]0.689384[/C][C]0.344692[/C][/ROW]
[ROW][C]M9[/C][C]5.87085952827723[/C][C]12.415853[/C][C]0.4729[/C][C]0.638555[/C][C]0.319277[/C][/ROW]
[ROW][C]M10[/C][C]3.78297381111479[/C][C]12.581127[/C][C]0.3007[/C][C]0.765009[/C][C]0.382504[/C][/ROW]
[ROW][C]M11[/C][C]-6.82283178094506[/C][C]12.939065[/C][C]-0.5273[/C][C]0.600516[/C][C]0.300258[/C][/ROW]
[ROW][C]t[/C][C]3.14783592824319[/C][C]0.160552[/C][C]19.6064[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25873&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25873&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)193.40187193189965.4495452.9550.0049170.002458
Y-0.977025801413580.573204-1.70450.0950340.047517
M1-11.881640911303912.516825-0.94930.3474520.173726
M2-16.659200686332312.843418-1.29710.2010650.100532
M3-15.071631454292712.814242-1.17620.2455810.122791
M4-11.293444301984212.515301-0.90240.3715610.18578
M5-10.364086922977012.83301-0.80760.4234710.211735
M62.2427127078768112.7867710.17540.861540.43077
M7-6.8764926027420412.498931-0.55020.5848670.292433
M8-5.0721646529642712.61036-0.40220.6893840.344692
M95.8708595282772312.4158530.47290.6385550.319277
M103.7829738111147912.5811270.30070.7650090.382504
M11-6.8228317809450612.939065-0.52730.6005160.300258
t3.147835928243190.16055219.606400







Multiple Linear Regression - Regression Statistics
Multiple R0.953457037397714
R-squared0.909080322163226
Adjusted R-squared0.88338563060066
F-TEST (value)35.3800830786242
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19.6184169034144
Sum Squared Residuals17704.5849626241

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.953457037397714 \tabularnewline
R-squared & 0.909080322163226 \tabularnewline
Adjusted R-squared & 0.88338563060066 \tabularnewline
F-TEST (value) & 35.3800830786242 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 19.6184169034144 \tabularnewline
Sum Squared Residuals & 17704.5849626241 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25873&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.953457037397714[/C][/ROW]
[ROW][C]R-squared[/C][C]0.909080322163226[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.88338563060066[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]35.3800830786242[/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[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]19.6184169034144[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]17704.5849626241[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25873&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25873&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.953457037397714
R-squared0.909080322163226
Adjusted R-squared0.88338563060066
F-TEST (value)35.3800830786242
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19.6184169034144
Sum Squared Residuals17704.5849626241







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18780.41941393800926.58058606199082
296.384.2610345791412.03896542086
3107.192.220624884087514.8793751159124
4115.283.51423514202231.6857648579781
5106.194.137501318743311.9624986812566
689.599.7310685431392-10.2310685431392
791.397.472397206135-6.17239720613504
897.6109.361444274192-11.7614442741925
9100.7120.325821819154-19.6258218191537
10104.6122.362797831648-17.762797831648
1194.7121.548603617444-26.8486036174437
12101.8119.306448808962-17.5064488089623
13102.5108.618592223074-6.11859222307438
14105.3114.707372207457-9.40737220745651
15110.3114.264540620247-3.96454062024723
16109.8125.684882387301-15.8848823873014
17117.3126.635593130028-9.33559313002834
18118.8131.740647453717-12.9406474537173
19131.3133.780889642933-2.48088964293304
20125.9143.031967047174-17.1319670471738
21133.1147.743379463088-14.6433794630881
22147151.539001918127-4.53900191812688
23145.8150.333997383357-4.5339973833571
24164.4140.86185164441523.5381483555849
25149.8144.04776143865.75223856139991
26137.7145.544520156338-7.84452015633842
27151.7146.4695246911085.23047530889184
28156.8159.746215480848-2.94621548084815
29180170.3694816575699.6305183424305
30180.4177.2331824238033.16681757619706
31170.4174.876808506658-4.47680850665752
32191.6181.9784291477889.6215708522116
33199.5184.44268222045115.0573177795485
34218.2197.22694204849520.9730579515048
35217.5190.25748528538527.2425147146147
36205195.9292394683549.07076053164617
37194187.8793525462836.12064745371737
38199.3184.58868483709414.7113151629056
39219.3194.40462416472824.8953758352723
40211.1194.49146663538416.6085333646156
41215.2200.91352186602714.2864781339726
42240.2207.09330457127133.1066954287287
43242.2211.86921900444530.330780995555
44240.7211.83855129525728.8614487047433
45255.4230.22832493096125.1716750690388
46253233.82854222571719.1714577742828
47218.2222.462469356246-4.26246935624625
48203.7230.283680302325-26.5836803023247
49205.6217.934879854034-12.3348798540337
50215.6225.098388219971-9.49838821997076
51188.5229.540685639829-41.0406856398294
52202.9232.363200354444-29.4632003544441
53214240.543902027631-26.5439020276315
54230.3243.401797008069-13.1017970080692
55230247.200685639829-17.2006856398294
56241250.589608235589-9.58960823558864
57259.6265.559791566346-5.95979156634553
58247.8265.642715976013-17.8427159760127
59270.3261.8974443575688.40255564243237
60289.7278.21877977594411.4812202240558

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 87 & 80.4194139380092 & 6.58058606199082 \tabularnewline
2 & 96.3 & 84.26103457914 & 12.03896542086 \tabularnewline
3 & 107.1 & 92.2206248840875 & 14.8793751159124 \tabularnewline
4 & 115.2 & 83.514235142022 & 31.6857648579781 \tabularnewline
5 & 106.1 & 94.1375013187433 & 11.9624986812566 \tabularnewline
6 & 89.5 & 99.7310685431392 & -10.2310685431392 \tabularnewline
7 & 91.3 & 97.472397206135 & -6.17239720613504 \tabularnewline
8 & 97.6 & 109.361444274192 & -11.7614442741925 \tabularnewline
9 & 100.7 & 120.325821819154 & -19.6258218191537 \tabularnewline
10 & 104.6 & 122.362797831648 & -17.762797831648 \tabularnewline
11 & 94.7 & 121.548603617444 & -26.8486036174437 \tabularnewline
12 & 101.8 & 119.306448808962 & -17.5064488089623 \tabularnewline
13 & 102.5 & 108.618592223074 & -6.11859222307438 \tabularnewline
14 & 105.3 & 114.707372207457 & -9.40737220745651 \tabularnewline
15 & 110.3 & 114.264540620247 & -3.96454062024723 \tabularnewline
16 & 109.8 & 125.684882387301 & -15.8848823873014 \tabularnewline
17 & 117.3 & 126.635593130028 & -9.33559313002834 \tabularnewline
18 & 118.8 & 131.740647453717 & -12.9406474537173 \tabularnewline
19 & 131.3 & 133.780889642933 & -2.48088964293304 \tabularnewline
20 & 125.9 & 143.031967047174 & -17.1319670471738 \tabularnewline
21 & 133.1 & 147.743379463088 & -14.6433794630881 \tabularnewline
22 & 147 & 151.539001918127 & -4.53900191812688 \tabularnewline
23 & 145.8 & 150.333997383357 & -4.5339973833571 \tabularnewline
24 & 164.4 & 140.861851644415 & 23.5381483555849 \tabularnewline
25 & 149.8 & 144.0477614386 & 5.75223856139991 \tabularnewline
26 & 137.7 & 145.544520156338 & -7.84452015633842 \tabularnewline
27 & 151.7 & 146.469524691108 & 5.23047530889184 \tabularnewline
28 & 156.8 & 159.746215480848 & -2.94621548084815 \tabularnewline
29 & 180 & 170.369481657569 & 9.6305183424305 \tabularnewline
30 & 180.4 & 177.233182423803 & 3.16681757619706 \tabularnewline
31 & 170.4 & 174.876808506658 & -4.47680850665752 \tabularnewline
32 & 191.6 & 181.978429147788 & 9.6215708522116 \tabularnewline
33 & 199.5 & 184.442682220451 & 15.0573177795485 \tabularnewline
34 & 218.2 & 197.226942048495 & 20.9730579515048 \tabularnewline
35 & 217.5 & 190.257485285385 & 27.2425147146147 \tabularnewline
36 & 205 & 195.929239468354 & 9.07076053164617 \tabularnewline
37 & 194 & 187.879352546283 & 6.12064745371737 \tabularnewline
38 & 199.3 & 184.588684837094 & 14.7113151629056 \tabularnewline
39 & 219.3 & 194.404624164728 & 24.8953758352723 \tabularnewline
40 & 211.1 & 194.491466635384 & 16.6085333646156 \tabularnewline
41 & 215.2 & 200.913521866027 & 14.2864781339726 \tabularnewline
42 & 240.2 & 207.093304571271 & 33.1066954287287 \tabularnewline
43 & 242.2 & 211.869219004445 & 30.330780995555 \tabularnewline
44 & 240.7 & 211.838551295257 & 28.8614487047433 \tabularnewline
45 & 255.4 & 230.228324930961 & 25.1716750690388 \tabularnewline
46 & 253 & 233.828542225717 & 19.1714577742828 \tabularnewline
47 & 218.2 & 222.462469356246 & -4.26246935624625 \tabularnewline
48 & 203.7 & 230.283680302325 & -26.5836803023247 \tabularnewline
49 & 205.6 & 217.934879854034 & -12.3348798540337 \tabularnewline
50 & 215.6 & 225.098388219971 & -9.49838821997076 \tabularnewline
51 & 188.5 & 229.540685639829 & -41.0406856398294 \tabularnewline
52 & 202.9 & 232.363200354444 & -29.4632003544441 \tabularnewline
53 & 214 & 240.543902027631 & -26.5439020276315 \tabularnewline
54 & 230.3 & 243.401797008069 & -13.1017970080692 \tabularnewline
55 & 230 & 247.200685639829 & -17.2006856398294 \tabularnewline
56 & 241 & 250.589608235589 & -9.58960823558864 \tabularnewline
57 & 259.6 & 265.559791566346 & -5.95979156634553 \tabularnewline
58 & 247.8 & 265.642715976013 & -17.8427159760127 \tabularnewline
59 & 270.3 & 261.897444357568 & 8.40255564243237 \tabularnewline
60 & 289.7 & 278.218779775944 & 11.4812202240558 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25873&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]87[/C][C]80.4194139380092[/C][C]6.58058606199082[/C][/ROW]
[ROW][C]2[/C][C]96.3[/C][C]84.26103457914[/C][C]12.03896542086[/C][/ROW]
[ROW][C]3[/C][C]107.1[/C][C]92.2206248840875[/C][C]14.8793751159124[/C][/ROW]
[ROW][C]4[/C][C]115.2[/C][C]83.514235142022[/C][C]31.6857648579781[/C][/ROW]
[ROW][C]5[/C][C]106.1[/C][C]94.1375013187433[/C][C]11.9624986812566[/C][/ROW]
[ROW][C]6[/C][C]89.5[/C][C]99.7310685431392[/C][C]-10.2310685431392[/C][/ROW]
[ROW][C]7[/C][C]91.3[/C][C]97.472397206135[/C][C]-6.17239720613504[/C][/ROW]
[ROW][C]8[/C][C]97.6[/C][C]109.361444274192[/C][C]-11.7614442741925[/C][/ROW]
[ROW][C]9[/C][C]100.7[/C][C]120.325821819154[/C][C]-19.6258218191537[/C][/ROW]
[ROW][C]10[/C][C]104.6[/C][C]122.362797831648[/C][C]-17.762797831648[/C][/ROW]
[ROW][C]11[/C][C]94.7[/C][C]121.548603617444[/C][C]-26.8486036174437[/C][/ROW]
[ROW][C]12[/C][C]101.8[/C][C]119.306448808962[/C][C]-17.5064488089623[/C][/ROW]
[ROW][C]13[/C][C]102.5[/C][C]108.618592223074[/C][C]-6.11859222307438[/C][/ROW]
[ROW][C]14[/C][C]105.3[/C][C]114.707372207457[/C][C]-9.40737220745651[/C][/ROW]
[ROW][C]15[/C][C]110.3[/C][C]114.264540620247[/C][C]-3.96454062024723[/C][/ROW]
[ROW][C]16[/C][C]109.8[/C][C]125.684882387301[/C][C]-15.8848823873014[/C][/ROW]
[ROW][C]17[/C][C]117.3[/C][C]126.635593130028[/C][C]-9.33559313002834[/C][/ROW]
[ROW][C]18[/C][C]118.8[/C][C]131.740647453717[/C][C]-12.9406474537173[/C][/ROW]
[ROW][C]19[/C][C]131.3[/C][C]133.780889642933[/C][C]-2.48088964293304[/C][/ROW]
[ROW][C]20[/C][C]125.9[/C][C]143.031967047174[/C][C]-17.1319670471738[/C][/ROW]
[ROW][C]21[/C][C]133.1[/C][C]147.743379463088[/C][C]-14.6433794630881[/C][/ROW]
[ROW][C]22[/C][C]147[/C][C]151.539001918127[/C][C]-4.53900191812688[/C][/ROW]
[ROW][C]23[/C][C]145.8[/C][C]150.333997383357[/C][C]-4.5339973833571[/C][/ROW]
[ROW][C]24[/C][C]164.4[/C][C]140.861851644415[/C][C]23.5381483555849[/C][/ROW]
[ROW][C]25[/C][C]149.8[/C][C]144.0477614386[/C][C]5.75223856139991[/C][/ROW]
[ROW][C]26[/C][C]137.7[/C][C]145.544520156338[/C][C]-7.84452015633842[/C][/ROW]
[ROW][C]27[/C][C]151.7[/C][C]146.469524691108[/C][C]5.23047530889184[/C][/ROW]
[ROW][C]28[/C][C]156.8[/C][C]159.746215480848[/C][C]-2.94621548084815[/C][/ROW]
[ROW][C]29[/C][C]180[/C][C]170.369481657569[/C][C]9.6305183424305[/C][/ROW]
[ROW][C]30[/C][C]180.4[/C][C]177.233182423803[/C][C]3.16681757619706[/C][/ROW]
[ROW][C]31[/C][C]170.4[/C][C]174.876808506658[/C][C]-4.47680850665752[/C][/ROW]
[ROW][C]32[/C][C]191.6[/C][C]181.978429147788[/C][C]9.6215708522116[/C][/ROW]
[ROW][C]33[/C][C]199.5[/C][C]184.442682220451[/C][C]15.0573177795485[/C][/ROW]
[ROW][C]34[/C][C]218.2[/C][C]197.226942048495[/C][C]20.9730579515048[/C][/ROW]
[ROW][C]35[/C][C]217.5[/C][C]190.257485285385[/C][C]27.2425147146147[/C][/ROW]
[ROW][C]36[/C][C]205[/C][C]195.929239468354[/C][C]9.07076053164617[/C][/ROW]
[ROW][C]37[/C][C]194[/C][C]187.879352546283[/C][C]6.12064745371737[/C][/ROW]
[ROW][C]38[/C][C]199.3[/C][C]184.588684837094[/C][C]14.7113151629056[/C][/ROW]
[ROW][C]39[/C][C]219.3[/C][C]194.404624164728[/C][C]24.8953758352723[/C][/ROW]
[ROW][C]40[/C][C]211.1[/C][C]194.491466635384[/C][C]16.6085333646156[/C][/ROW]
[ROW][C]41[/C][C]215.2[/C][C]200.913521866027[/C][C]14.2864781339726[/C][/ROW]
[ROW][C]42[/C][C]240.2[/C][C]207.093304571271[/C][C]33.1066954287287[/C][/ROW]
[ROW][C]43[/C][C]242.2[/C][C]211.869219004445[/C][C]30.330780995555[/C][/ROW]
[ROW][C]44[/C][C]240.7[/C][C]211.838551295257[/C][C]28.8614487047433[/C][/ROW]
[ROW][C]45[/C][C]255.4[/C][C]230.228324930961[/C][C]25.1716750690388[/C][/ROW]
[ROW][C]46[/C][C]253[/C][C]233.828542225717[/C][C]19.1714577742828[/C][/ROW]
[ROW][C]47[/C][C]218.2[/C][C]222.462469356246[/C][C]-4.26246935624625[/C][/ROW]
[ROW][C]48[/C][C]203.7[/C][C]230.283680302325[/C][C]-26.5836803023247[/C][/ROW]
[ROW][C]49[/C][C]205.6[/C][C]217.934879854034[/C][C]-12.3348798540337[/C][/ROW]
[ROW][C]50[/C][C]215.6[/C][C]225.098388219971[/C][C]-9.49838821997076[/C][/ROW]
[ROW][C]51[/C][C]188.5[/C][C]229.540685639829[/C][C]-41.0406856398294[/C][/ROW]
[ROW][C]52[/C][C]202.9[/C][C]232.363200354444[/C][C]-29.4632003544441[/C][/ROW]
[ROW][C]53[/C][C]214[/C][C]240.543902027631[/C][C]-26.5439020276315[/C][/ROW]
[ROW][C]54[/C][C]230.3[/C][C]243.401797008069[/C][C]-13.1017970080692[/C][/ROW]
[ROW][C]55[/C][C]230[/C][C]247.200685639829[/C][C]-17.2006856398294[/C][/ROW]
[ROW][C]56[/C][C]241[/C][C]250.589608235589[/C][C]-9.58960823558864[/C][/ROW]
[ROW][C]57[/C][C]259.6[/C][C]265.559791566346[/C][C]-5.95979156634553[/C][/ROW]
[ROW][C]58[/C][C]247.8[/C][C]265.642715976013[/C][C]-17.8427159760127[/C][/ROW]
[ROW][C]59[/C][C]270.3[/C][C]261.897444357568[/C][C]8.40255564243237[/C][/ROW]
[ROW][C]60[/C][C]289.7[/C][C]278.218779775944[/C][C]11.4812202240558[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25873&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25873&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
18780.41941393800926.58058606199082
296.384.2610345791412.03896542086
3107.192.220624884087514.8793751159124
4115.283.51423514202231.6857648579781
5106.194.137501318743311.9624986812566
689.599.7310685431392-10.2310685431392
791.397.472397206135-6.17239720613504
897.6109.361444274192-11.7614442741925
9100.7120.325821819154-19.6258218191537
10104.6122.362797831648-17.762797831648
1194.7121.548603617444-26.8486036174437
12101.8119.306448808962-17.5064488089623
13102.5108.618592223074-6.11859222307438
14105.3114.707372207457-9.40737220745651
15110.3114.264540620247-3.96454062024723
16109.8125.684882387301-15.8848823873014
17117.3126.635593130028-9.33559313002834
18118.8131.740647453717-12.9406474537173
19131.3133.780889642933-2.48088964293304
20125.9143.031967047174-17.1319670471738
21133.1147.743379463088-14.6433794630881
22147151.539001918127-4.53900191812688
23145.8150.333997383357-4.5339973833571
24164.4140.86185164441523.5381483555849
25149.8144.04776143865.75223856139991
26137.7145.544520156338-7.84452015633842
27151.7146.4695246911085.23047530889184
28156.8159.746215480848-2.94621548084815
29180170.3694816575699.6305183424305
30180.4177.2331824238033.16681757619706
31170.4174.876808506658-4.47680850665752
32191.6181.9784291477889.6215708522116
33199.5184.44268222045115.0573177795485
34218.2197.22694204849520.9730579515048
35217.5190.25748528538527.2425147146147
36205195.9292394683549.07076053164617
37194187.8793525462836.12064745371737
38199.3184.58868483709414.7113151629056
39219.3194.40462416472824.8953758352723
40211.1194.49146663538416.6085333646156
41215.2200.91352186602714.2864781339726
42240.2207.09330457127133.1066954287287
43242.2211.86921900444530.330780995555
44240.7211.83855129525728.8614487047433
45255.4230.22832493096125.1716750690388
46253233.82854222571719.1714577742828
47218.2222.462469356246-4.26246935624625
48203.7230.283680302325-26.5836803023247
49205.6217.934879854034-12.3348798540337
50215.6225.098388219971-9.49838821997076
51188.5229.540685639829-41.0406856398294
52202.9232.363200354444-29.4632003544441
53214240.543902027631-26.5439020276315
54230.3243.401797008069-13.1017970080692
55230247.200685639829-17.2006856398294
56241250.589608235589-9.58960823558864
57259.6265.559791566346-5.95979156634553
58247.8265.642715976013-17.8427159760127
59270.3261.8974443575688.40255564243237
60289.7278.21877977594411.4812202240558







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.02662251842593250.0532450368518650.973377481574067
180.05662729299767760.1132545859953550.943372707002322
190.1083737625340110.2167475250680230.891626237465989
200.08199953868839880.1639990773767980.918000461311601
210.07336908251594180.1467381650318840.926630917484058
220.08388610910316050.1677722182063210.91611389089684
230.1369123676481520.2738247352963040.863087632351848
240.1666650202603350.3333300405206690.833334979739665
250.1414490450729200.2828980901458410.85855095492708
260.1059630521650750.2119261043301500.894036947834925
270.0648008960902770.1296017921805540.935199103909723
280.04621644496023960.09243288992047920.95378355503976
290.06358371965864720.1271674393172940.936416280341353
300.1114461866902760.2228923733805510.888553813309724
310.1252833106985050.2505666213970090.874716689301495
320.2856966425369070.5713932850738130.714303357463093
330.2974859558080650.5949719116161290.702514044191936
340.3577835889938970.7155671779877940.642216411006103
350.4825376688674750.965075337734950.517462331132525
360.4168149912544590.8336299825089170.583185008745541
370.62488815950090.7502236809981990.375111840499099
380.5267953172194680.9464093655610640.473204682780532
390.511013574986820.9779728500263590.488986425013179
400.4689750835881310.9379501671762610.531024916411869
410.5185016974932040.9629966050135920.481498302506796
420.5073726033415170.9852547933169660.492627396658483
430.4548736550645610.9097473101291220.545126344935439

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0266225184259325 & 0.053245036851865 & 0.973377481574067 \tabularnewline
18 & 0.0566272929976776 & 0.113254585995355 & 0.943372707002322 \tabularnewline
19 & 0.108373762534011 & 0.216747525068023 & 0.891626237465989 \tabularnewline
20 & 0.0819995386883988 & 0.163999077376798 & 0.918000461311601 \tabularnewline
21 & 0.0733690825159418 & 0.146738165031884 & 0.926630917484058 \tabularnewline
22 & 0.0838861091031605 & 0.167772218206321 & 0.91611389089684 \tabularnewline
23 & 0.136912367648152 & 0.273824735296304 & 0.863087632351848 \tabularnewline
24 & 0.166665020260335 & 0.333330040520669 & 0.833334979739665 \tabularnewline
25 & 0.141449045072920 & 0.282898090145841 & 0.85855095492708 \tabularnewline
26 & 0.105963052165075 & 0.211926104330150 & 0.894036947834925 \tabularnewline
27 & 0.064800896090277 & 0.129601792180554 & 0.935199103909723 \tabularnewline
28 & 0.0462164449602396 & 0.0924328899204792 & 0.95378355503976 \tabularnewline
29 & 0.0635837196586472 & 0.127167439317294 & 0.936416280341353 \tabularnewline
30 & 0.111446186690276 & 0.222892373380551 & 0.888553813309724 \tabularnewline
31 & 0.125283310698505 & 0.250566621397009 & 0.874716689301495 \tabularnewline
32 & 0.285696642536907 & 0.571393285073813 & 0.714303357463093 \tabularnewline
33 & 0.297485955808065 & 0.594971911616129 & 0.702514044191936 \tabularnewline
34 & 0.357783588993897 & 0.715567177987794 & 0.642216411006103 \tabularnewline
35 & 0.482537668867475 & 0.96507533773495 & 0.517462331132525 \tabularnewline
36 & 0.416814991254459 & 0.833629982508917 & 0.583185008745541 \tabularnewline
37 & 0.6248881595009 & 0.750223680998199 & 0.375111840499099 \tabularnewline
38 & 0.526795317219468 & 0.946409365561064 & 0.473204682780532 \tabularnewline
39 & 0.51101357498682 & 0.977972850026359 & 0.488986425013179 \tabularnewline
40 & 0.468975083588131 & 0.937950167176261 & 0.531024916411869 \tabularnewline
41 & 0.518501697493204 & 0.962996605013592 & 0.481498302506796 \tabularnewline
42 & 0.507372603341517 & 0.985254793316966 & 0.492627396658483 \tabularnewline
43 & 0.454873655064561 & 0.909747310129122 & 0.545126344935439 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25873&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.0266225184259325[/C][C]0.053245036851865[/C][C]0.973377481574067[/C][/ROW]
[ROW][C]18[/C][C]0.0566272929976776[/C][C]0.113254585995355[/C][C]0.943372707002322[/C][/ROW]
[ROW][C]19[/C][C]0.108373762534011[/C][C]0.216747525068023[/C][C]0.891626237465989[/C][/ROW]
[ROW][C]20[/C][C]0.0819995386883988[/C][C]0.163999077376798[/C][C]0.918000461311601[/C][/ROW]
[ROW][C]21[/C][C]0.0733690825159418[/C][C]0.146738165031884[/C][C]0.926630917484058[/C][/ROW]
[ROW][C]22[/C][C]0.0838861091031605[/C][C]0.167772218206321[/C][C]0.91611389089684[/C][/ROW]
[ROW][C]23[/C][C]0.136912367648152[/C][C]0.273824735296304[/C][C]0.863087632351848[/C][/ROW]
[ROW][C]24[/C][C]0.166665020260335[/C][C]0.333330040520669[/C][C]0.833334979739665[/C][/ROW]
[ROW][C]25[/C][C]0.141449045072920[/C][C]0.282898090145841[/C][C]0.85855095492708[/C][/ROW]
[ROW][C]26[/C][C]0.105963052165075[/C][C]0.211926104330150[/C][C]0.894036947834925[/C][/ROW]
[ROW][C]27[/C][C]0.064800896090277[/C][C]0.129601792180554[/C][C]0.935199103909723[/C][/ROW]
[ROW][C]28[/C][C]0.0462164449602396[/C][C]0.0924328899204792[/C][C]0.95378355503976[/C][/ROW]
[ROW][C]29[/C][C]0.0635837196586472[/C][C]0.127167439317294[/C][C]0.936416280341353[/C][/ROW]
[ROW][C]30[/C][C]0.111446186690276[/C][C]0.222892373380551[/C][C]0.888553813309724[/C][/ROW]
[ROW][C]31[/C][C]0.125283310698505[/C][C]0.250566621397009[/C][C]0.874716689301495[/C][/ROW]
[ROW][C]32[/C][C]0.285696642536907[/C][C]0.571393285073813[/C][C]0.714303357463093[/C][/ROW]
[ROW][C]33[/C][C]0.297485955808065[/C][C]0.594971911616129[/C][C]0.702514044191936[/C][/ROW]
[ROW][C]34[/C][C]0.357783588993897[/C][C]0.715567177987794[/C][C]0.642216411006103[/C][/ROW]
[ROW][C]35[/C][C]0.482537668867475[/C][C]0.96507533773495[/C][C]0.517462331132525[/C][/ROW]
[ROW][C]36[/C][C]0.416814991254459[/C][C]0.833629982508917[/C][C]0.583185008745541[/C][/ROW]
[ROW][C]37[/C][C]0.6248881595009[/C][C]0.750223680998199[/C][C]0.375111840499099[/C][/ROW]
[ROW][C]38[/C][C]0.526795317219468[/C][C]0.946409365561064[/C][C]0.473204682780532[/C][/ROW]
[ROW][C]39[/C][C]0.51101357498682[/C][C]0.977972850026359[/C][C]0.488986425013179[/C][/ROW]
[ROW][C]40[/C][C]0.468975083588131[/C][C]0.937950167176261[/C][C]0.531024916411869[/C][/ROW]
[ROW][C]41[/C][C]0.518501697493204[/C][C]0.962996605013592[/C][C]0.481498302506796[/C][/ROW]
[ROW][C]42[/C][C]0.507372603341517[/C][C]0.985254793316966[/C][C]0.492627396658483[/C][/ROW]
[ROW][C]43[/C][C]0.454873655064561[/C][C]0.909747310129122[/C][C]0.545126344935439[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25873&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25873&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.02662251842593250.0532450368518650.973377481574067
180.05662729299767760.1132545859953550.943372707002322
190.1083737625340110.2167475250680230.891626237465989
200.08199953868839880.1639990773767980.918000461311601
210.07336908251594180.1467381650318840.926630917484058
220.08388610910316050.1677722182063210.91611389089684
230.1369123676481520.2738247352963040.863087632351848
240.1666650202603350.3333300405206690.833334979739665
250.1414490450729200.2828980901458410.85855095492708
260.1059630521650750.2119261043301500.894036947834925
270.0648008960902770.1296017921805540.935199103909723
280.04621644496023960.09243288992047920.95378355503976
290.06358371965864720.1271674393172940.936416280341353
300.1114461866902760.2228923733805510.888553813309724
310.1252833106985050.2505666213970090.874716689301495
320.2856966425369070.5713932850738130.714303357463093
330.2974859558080650.5949719116161290.702514044191936
340.3577835889938970.7155671779877940.642216411006103
350.4825376688674750.965075337734950.517462331132525
360.4168149912544590.8336299825089170.583185008745541
370.62488815950090.7502236809981990.375111840499099
380.5267953172194680.9464093655610640.473204682780532
390.511013574986820.9779728500263590.488986425013179
400.4689750835881310.9379501671762610.531024916411869
410.5185016974932040.9629966050135920.481498302506796
420.5073726033415170.9852547933169660.492627396658483
430.4548736550645610.9097473101291220.545126344935439







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

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