Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 06:18:27 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/20/t1258723168cgy9qyls7ugs7m1.htm/, Retrieved Fri, 19 Apr 2024 06:26:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58130, Retrieved Fri, 19 Apr 2024 06:26:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact125
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [workshop 7,3] [2009-11-20 13:18:27] [2210215221105fab636491031ce54076] [Current]
Feedback Forum

Post a new message
Dataseries X:
8,9	11,1
8,9	10,9
8,6	10
8,3	9,2
8,3	9,2
8,3	9,5
8,4	9,6
8,5	9,5
8,4	9,1
8,6	8,9
8,5	9
8,5	10,1
8,4	10,3
8,5	10,2
8,5	9,6
8,5	9,2
8,5	9,3
8,5	9,4
8,5	9,4
8,5	9,2
8,5	9
8,6	9
8,4	9
8,1	9,8
8,0	10
8,0	9,8
8,0	9,3
8,0	9
7,9	9
7,8	9,1
7,8	9,1
7,9	9,1
8,1	9,2
8,0	8,8
7,6	8,3
7,3	8,4
7,0	8,1
6,8	7,7
7,0	7,9
7,1	7,9
7,2	8
7,1	7,9
6,9	7,6
6,7	7,1
6,7	6,8
6,6	6,5
6,9	6,9
7,3	8,2
7,5	8,7
7,3	8,3
7,1	7,9
6,9	7,5
7,1	7,8
7,5	8,3
7,7	8,4
7,8	8,2
7,8	7,7
7,7	7,2
7,8	7,3
7,8	8,1
7,9	8,5




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 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 & 6 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58130&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58130&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 1.34710753037021 + 0.710518726794275X[t] -0.210593615947514M1[t] -0.194875995818465M2[t] + 0.0545559821203266M3[t] + 0.241356836451462M4[t] + 0.207108701921344M5[t] + 0.116019069247684M6[t] + 0.147033181932879M7[t] + 0.305940665441044M8[t] + 0.507479272556865M9[t] + 0.703228254208571M10[t] + 0.625821617821996M11[t] + 0.00319626185069029t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  1.34710753037021 +  0.710518726794275X[t] -0.210593615947514M1[t] -0.194875995818465M2[t] +  0.0545559821203266M3[t] +  0.241356836451462M4[t] +  0.207108701921344M5[t] +  0.116019069247684M6[t] +  0.147033181932879M7[t] +  0.305940665441044M8[t] +  0.507479272556865M9[t] +  0.703228254208571M10[t] +  0.625821617821996M11[t] +  0.00319626185069029t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58130&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  1.34710753037021 +  0.710518726794275X[t] -0.210593615947514M1[t] -0.194875995818465M2[t] +  0.0545559821203266M3[t] +  0.241356836451462M4[t] +  0.207108701921344M5[t] +  0.116019069247684M6[t] +  0.147033181932879M7[t] +  0.305940665441044M8[t] +  0.507479272556865M9[t] +  0.703228254208571M10[t] +  0.625821617821996M11[t] +  0.00319626185069029t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58130&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 1.34710753037021 + 0.710518726794275X[t] -0.210593615947514M1[t] -0.194875995818465M2[t] + 0.0545559821203266M3[t] + 0.241356836451462M4[t] + 0.207108701921344M5[t] + 0.116019069247684M6[t] + 0.147033181932879M7[t] + 0.305940665441044M8[t] + 0.507479272556865M9[t] + 0.703228254208571M10[t] + 0.625821617821996M11[t] + 0.00319626185069029t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1.347107530370210.7355471.83140.0733780.036689
X0.7105187267942750.06897110.301700
M1-0.2105936159475140.152691-1.37920.1743570.087179
M2-0.1948759958184650.158685-1.22810.2255350.112768
M30.05455598212032660.1605650.33980.735540.36777
M40.2413568364514620.1657071.45650.1518950.075948
M50.2071087019213440.1628931.27140.2098280.104914
M60.1160190692476840.1597550.72620.4712980.235649
M70.1470331819328790.1594030.92240.3610320.180516
M80.3059406654410440.1611491.89850.0637810.03189
M90.5074792725568650.1647583.08010.0034520.001726
M100.7032282542085710.1701394.13320.0001467.3e-05
M110.6258216178219960.1685033.7140.0005410.00027
t0.003196261850690290.0035380.90340.3709310.185466

\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) & 1.34710753037021 & 0.735547 & 1.8314 & 0.073378 & 0.036689 \tabularnewline
X & 0.710518726794275 & 0.068971 & 10.3017 & 0 & 0 \tabularnewline
M1 & -0.210593615947514 & 0.152691 & -1.3792 & 0.174357 & 0.087179 \tabularnewline
M2 & -0.194875995818465 & 0.158685 & -1.2281 & 0.225535 & 0.112768 \tabularnewline
M3 & 0.0545559821203266 & 0.160565 & 0.3398 & 0.73554 & 0.36777 \tabularnewline
M4 & 0.241356836451462 & 0.165707 & 1.4565 & 0.151895 & 0.075948 \tabularnewline
M5 & 0.207108701921344 & 0.162893 & 1.2714 & 0.209828 & 0.104914 \tabularnewline
M6 & 0.116019069247684 & 0.159755 & 0.7262 & 0.471298 & 0.235649 \tabularnewline
M7 & 0.147033181932879 & 0.159403 & 0.9224 & 0.361032 & 0.180516 \tabularnewline
M8 & 0.305940665441044 & 0.161149 & 1.8985 & 0.063781 & 0.03189 \tabularnewline
M9 & 0.507479272556865 & 0.164758 & 3.0801 & 0.003452 & 0.001726 \tabularnewline
M10 & 0.703228254208571 & 0.170139 & 4.1332 & 0.000146 & 7.3e-05 \tabularnewline
M11 & 0.625821617821996 & 0.168503 & 3.714 & 0.000541 & 0.00027 \tabularnewline
t & 0.00319626185069029 & 0.003538 & 0.9034 & 0.370931 & 0.185466 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58130&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]1.34710753037021[/C][C]0.735547[/C][C]1.8314[/C][C]0.073378[/C][C]0.036689[/C][/ROW]
[ROW][C]X[/C][C]0.710518726794275[/C][C]0.068971[/C][C]10.3017[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.210593615947514[/C][C]0.152691[/C][C]-1.3792[/C][C]0.174357[/C][C]0.087179[/C][/ROW]
[ROW][C]M2[/C][C]-0.194875995818465[/C][C]0.158685[/C][C]-1.2281[/C][C]0.225535[/C][C]0.112768[/C][/ROW]
[ROW][C]M3[/C][C]0.0545559821203266[/C][C]0.160565[/C][C]0.3398[/C][C]0.73554[/C][C]0.36777[/C][/ROW]
[ROW][C]M4[/C][C]0.241356836451462[/C][C]0.165707[/C][C]1.4565[/C][C]0.151895[/C][C]0.075948[/C][/ROW]
[ROW][C]M5[/C][C]0.207108701921344[/C][C]0.162893[/C][C]1.2714[/C][C]0.209828[/C][C]0.104914[/C][/ROW]
[ROW][C]M6[/C][C]0.116019069247684[/C][C]0.159755[/C][C]0.7262[/C][C]0.471298[/C][C]0.235649[/C][/ROW]
[ROW][C]M7[/C][C]0.147033181932879[/C][C]0.159403[/C][C]0.9224[/C][C]0.361032[/C][C]0.180516[/C][/ROW]
[ROW][C]M8[/C][C]0.305940665441044[/C][C]0.161149[/C][C]1.8985[/C][C]0.063781[/C][C]0.03189[/C][/ROW]
[ROW][C]M9[/C][C]0.507479272556865[/C][C]0.164758[/C][C]3.0801[/C][C]0.003452[/C][C]0.001726[/C][/ROW]
[ROW][C]M10[/C][C]0.703228254208571[/C][C]0.170139[/C][C]4.1332[/C][C]0.000146[/C][C]7.3e-05[/C][/ROW]
[ROW][C]M11[/C][C]0.625821617821996[/C][C]0.168503[/C][C]3.714[/C][C]0.000541[/C][C]0.00027[/C][/ROW]
[ROW][C]t[/C][C]0.00319626185069029[/C][C]0.003538[/C][C]0.9034[/C][C]0.370931[/C][C]0.185466[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58130&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58130&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)1.347107530370210.7355471.83140.0733780.036689
X0.7105187267942750.06897110.301700
M1-0.2105936159475140.152691-1.37920.1743570.087179
M2-0.1948759958184650.158685-1.22810.2255350.112768
M30.05455598212032660.1605650.33980.735540.36777
M40.2413568364514620.1657071.45650.1518950.075948
M50.2071087019213440.1628931.27140.2098280.104914
M60.1160190692476840.1597550.72620.4712980.235649
M70.1470331819328790.1594030.92240.3610320.180516
M80.3059406654410440.1611491.89850.0637810.03189
M90.5074792725568650.1647583.08010.0034520.001726
M100.7032282542085710.1701394.13320.0001467.3e-05
M110.6258216178219960.1685033.7140.0005410.00027
t0.003196261850690290.0035380.90340.3709310.185466







Multiple Linear Regression - Regression Statistics
Multiple R0.937247230548335
R-squared0.878432371170524
Adjusted R-squared0.84480728234535
F-TEST (value)26.1243137746855
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.249200386026404
Sum Squared Residuals2.91873912259832

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.937247230548335 \tabularnewline
R-squared & 0.878432371170524 \tabularnewline
Adjusted R-squared & 0.84480728234535 \tabularnewline
F-TEST (value) & 26.1243137746855 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.249200386026404 \tabularnewline
Sum Squared Residuals & 2.91873912259832 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58130&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.937247230548335[/C][/ROW]
[ROW][C]R-squared[/C][C]0.878432371170524[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.84480728234535[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]26.1243137746855[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/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]0.249200386026404[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2.91873912259832[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58130&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58130&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.937247230548335
R-squared0.878432371170524
Adjusted R-squared0.84480728234535
F-TEST (value)26.1243137746855
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.249200386026404
Sum Squared Residuals2.91873912259832







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.99.02646804368984-0.126468043689842
28.98.90327818031073-0.00327818031073305
38.68.516439565985370.0835604340146348
48.38.138021700731770.161978299268232
58.38.106969828052340.193030171947659
68.38.232232075267650.067767924732346
78.48.337494322482970.0625056775170324
88.58.42854619516240.0714538048376043
98.48.34907357341120.0509264265888036
108.68.405915071554740.194084928445262
118.58.402756569698280.0972434303017193
128.58.56170181320068-0.0617018132006776
138.48.49640820446271-0.09640820446271
148.58.444270213763020.0557297862369788
158.58.270587217475940.229412782524062
168.58.176376842940050.323623157059947
178.58.216376842940050.283623157059947
188.58.199535344796510.300464655203489
198.58.23374571933240.266254280667603
208.58.25374571933240.246254280667604
218.58.316376842940050.183623157059947
228.68.515322086442450.0846779135575502
238.48.44111171190657-0.0411117119065639
248.18.38690133737068-0.286901337370680
2588.32160772863271-0.321607728632711
2688.1984178652536-0.198417865253596
2788.09578674164594-0.0957867416459392
2888.07262823978948-0.0726282397894817
297.98.04157636711005-0.141576367110053
307.88.02473486896651-0.224734868966511
317.88.0589452435024-0.258945243502397
327.98.22104898886125-0.321048988861252
338.18.4968357305072-0.396835730507191
3488.41157348329188-0.411573483291879
357.67.98210374535886-0.382103745358856
367.37.43053026206698-0.130530262066977
3777.00997728993187-0.00997728993187062
386.86.74468368119390.0553163188060994
3977.13941566634224-0.139415666342237
407.17.32941278252406-0.229412782524063
417.27.36941278252406-0.169412782524062
427.17.21046753902167-0.110467539021665
436.97.03152229551927-0.131522295519267
446.76.83836667748098-0.138366677480985
456.76.82994592840921-0.129945928409214
466.66.81573555387333-0.215735553873329
476.97.02573267005515-0.125732670055153
487.37.3267816589164-0.0267816589164048
497.57.474643668216720.0253563317832808
507.37.209350059478750.0906499405212503
517.17.17777080855052-0.0777708085505209
526.97.08356043401464-0.183560434014635
537.17.26566417937349-0.165664179373491
547.57.53303017194766-0.0330301719476587
557.77.638292419162970.0617075808370284
567.87.658292419162970.141707580837029
577.87.507767924732350.292232075267654
587.77.351453804837600.348546195162396
597.87.348295302981150.451704697018853
607.87.294084928445260.505915071554739
617.97.370895065066150.529104934933852

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.9 & 9.02646804368984 & -0.126468043689842 \tabularnewline
2 & 8.9 & 8.90327818031073 & -0.00327818031073305 \tabularnewline
3 & 8.6 & 8.51643956598537 & 0.0835604340146348 \tabularnewline
4 & 8.3 & 8.13802170073177 & 0.161978299268232 \tabularnewline
5 & 8.3 & 8.10696982805234 & 0.193030171947659 \tabularnewline
6 & 8.3 & 8.23223207526765 & 0.067767924732346 \tabularnewline
7 & 8.4 & 8.33749432248297 & 0.0625056775170324 \tabularnewline
8 & 8.5 & 8.4285461951624 & 0.0714538048376043 \tabularnewline
9 & 8.4 & 8.3490735734112 & 0.0509264265888036 \tabularnewline
10 & 8.6 & 8.40591507155474 & 0.194084928445262 \tabularnewline
11 & 8.5 & 8.40275656969828 & 0.0972434303017193 \tabularnewline
12 & 8.5 & 8.56170181320068 & -0.0617018132006776 \tabularnewline
13 & 8.4 & 8.49640820446271 & -0.09640820446271 \tabularnewline
14 & 8.5 & 8.44427021376302 & 0.0557297862369788 \tabularnewline
15 & 8.5 & 8.27058721747594 & 0.229412782524062 \tabularnewline
16 & 8.5 & 8.17637684294005 & 0.323623157059947 \tabularnewline
17 & 8.5 & 8.21637684294005 & 0.283623157059947 \tabularnewline
18 & 8.5 & 8.19953534479651 & 0.300464655203489 \tabularnewline
19 & 8.5 & 8.2337457193324 & 0.266254280667603 \tabularnewline
20 & 8.5 & 8.2537457193324 & 0.246254280667604 \tabularnewline
21 & 8.5 & 8.31637684294005 & 0.183623157059947 \tabularnewline
22 & 8.6 & 8.51532208644245 & 0.0846779135575502 \tabularnewline
23 & 8.4 & 8.44111171190657 & -0.0411117119065639 \tabularnewline
24 & 8.1 & 8.38690133737068 & -0.286901337370680 \tabularnewline
25 & 8 & 8.32160772863271 & -0.321607728632711 \tabularnewline
26 & 8 & 8.1984178652536 & -0.198417865253596 \tabularnewline
27 & 8 & 8.09578674164594 & -0.0957867416459392 \tabularnewline
28 & 8 & 8.07262823978948 & -0.0726282397894817 \tabularnewline
29 & 7.9 & 8.04157636711005 & -0.141576367110053 \tabularnewline
30 & 7.8 & 8.02473486896651 & -0.224734868966511 \tabularnewline
31 & 7.8 & 8.0589452435024 & -0.258945243502397 \tabularnewline
32 & 7.9 & 8.22104898886125 & -0.321048988861252 \tabularnewline
33 & 8.1 & 8.4968357305072 & -0.396835730507191 \tabularnewline
34 & 8 & 8.41157348329188 & -0.411573483291879 \tabularnewline
35 & 7.6 & 7.98210374535886 & -0.382103745358856 \tabularnewline
36 & 7.3 & 7.43053026206698 & -0.130530262066977 \tabularnewline
37 & 7 & 7.00997728993187 & -0.00997728993187062 \tabularnewline
38 & 6.8 & 6.7446836811939 & 0.0553163188060994 \tabularnewline
39 & 7 & 7.13941566634224 & -0.139415666342237 \tabularnewline
40 & 7.1 & 7.32941278252406 & -0.229412782524063 \tabularnewline
41 & 7.2 & 7.36941278252406 & -0.169412782524062 \tabularnewline
42 & 7.1 & 7.21046753902167 & -0.110467539021665 \tabularnewline
43 & 6.9 & 7.03152229551927 & -0.131522295519267 \tabularnewline
44 & 6.7 & 6.83836667748098 & -0.138366677480985 \tabularnewline
45 & 6.7 & 6.82994592840921 & -0.129945928409214 \tabularnewline
46 & 6.6 & 6.81573555387333 & -0.215735553873329 \tabularnewline
47 & 6.9 & 7.02573267005515 & -0.125732670055153 \tabularnewline
48 & 7.3 & 7.3267816589164 & -0.0267816589164048 \tabularnewline
49 & 7.5 & 7.47464366821672 & 0.0253563317832808 \tabularnewline
50 & 7.3 & 7.20935005947875 & 0.0906499405212503 \tabularnewline
51 & 7.1 & 7.17777080855052 & -0.0777708085505209 \tabularnewline
52 & 6.9 & 7.08356043401464 & -0.183560434014635 \tabularnewline
53 & 7.1 & 7.26566417937349 & -0.165664179373491 \tabularnewline
54 & 7.5 & 7.53303017194766 & -0.0330301719476587 \tabularnewline
55 & 7.7 & 7.63829241916297 & 0.0617075808370284 \tabularnewline
56 & 7.8 & 7.65829241916297 & 0.141707580837029 \tabularnewline
57 & 7.8 & 7.50776792473235 & 0.292232075267654 \tabularnewline
58 & 7.7 & 7.35145380483760 & 0.348546195162396 \tabularnewline
59 & 7.8 & 7.34829530298115 & 0.451704697018853 \tabularnewline
60 & 7.8 & 7.29408492844526 & 0.505915071554739 \tabularnewline
61 & 7.9 & 7.37089506506615 & 0.529104934933852 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58130&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]8.9[/C][C]9.02646804368984[/C][C]-0.126468043689842[/C][/ROW]
[ROW][C]2[/C][C]8.9[/C][C]8.90327818031073[/C][C]-0.00327818031073305[/C][/ROW]
[ROW][C]3[/C][C]8.6[/C][C]8.51643956598537[/C][C]0.0835604340146348[/C][/ROW]
[ROW][C]4[/C][C]8.3[/C][C]8.13802170073177[/C][C]0.161978299268232[/C][/ROW]
[ROW][C]5[/C][C]8.3[/C][C]8.10696982805234[/C][C]0.193030171947659[/C][/ROW]
[ROW][C]6[/C][C]8.3[/C][C]8.23223207526765[/C][C]0.067767924732346[/C][/ROW]
[ROW][C]7[/C][C]8.4[/C][C]8.33749432248297[/C][C]0.0625056775170324[/C][/ROW]
[ROW][C]8[/C][C]8.5[/C][C]8.4285461951624[/C][C]0.0714538048376043[/C][/ROW]
[ROW][C]9[/C][C]8.4[/C][C]8.3490735734112[/C][C]0.0509264265888036[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.40591507155474[/C][C]0.194084928445262[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.40275656969828[/C][C]0.0972434303017193[/C][/ROW]
[ROW][C]12[/C][C]8.5[/C][C]8.56170181320068[/C][C]-0.0617018132006776[/C][/ROW]
[ROW][C]13[/C][C]8.4[/C][C]8.49640820446271[/C][C]-0.09640820446271[/C][/ROW]
[ROW][C]14[/C][C]8.5[/C][C]8.44427021376302[/C][C]0.0557297862369788[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.27058721747594[/C][C]0.229412782524062[/C][/ROW]
[ROW][C]16[/C][C]8.5[/C][C]8.17637684294005[/C][C]0.323623157059947[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]8.21637684294005[/C][C]0.283623157059947[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.19953534479651[/C][C]0.300464655203489[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]8.2337457193324[/C][C]0.266254280667603[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]8.2537457193324[/C][C]0.246254280667604[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]8.31637684294005[/C][C]0.183623157059947[/C][/ROW]
[ROW][C]22[/C][C]8.6[/C][C]8.51532208644245[/C][C]0.0846779135575502[/C][/ROW]
[ROW][C]23[/C][C]8.4[/C][C]8.44111171190657[/C][C]-0.0411117119065639[/C][/ROW]
[ROW][C]24[/C][C]8.1[/C][C]8.38690133737068[/C][C]-0.286901337370680[/C][/ROW]
[ROW][C]25[/C][C]8[/C][C]8.32160772863271[/C][C]-0.321607728632711[/C][/ROW]
[ROW][C]26[/C][C]8[/C][C]8.1984178652536[/C][C]-0.198417865253596[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]8.09578674164594[/C][C]-0.0957867416459392[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]8.07262823978948[/C][C]-0.0726282397894817[/C][/ROW]
[ROW][C]29[/C][C]7.9[/C][C]8.04157636711005[/C][C]-0.141576367110053[/C][/ROW]
[ROW][C]30[/C][C]7.8[/C][C]8.02473486896651[/C][C]-0.224734868966511[/C][/ROW]
[ROW][C]31[/C][C]7.8[/C][C]8.0589452435024[/C][C]-0.258945243502397[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]8.22104898886125[/C][C]-0.321048988861252[/C][/ROW]
[ROW][C]33[/C][C]8.1[/C][C]8.4968357305072[/C][C]-0.396835730507191[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]8.41157348329188[/C][C]-0.411573483291879[/C][/ROW]
[ROW][C]35[/C][C]7.6[/C][C]7.98210374535886[/C][C]-0.382103745358856[/C][/ROW]
[ROW][C]36[/C][C]7.3[/C][C]7.43053026206698[/C][C]-0.130530262066977[/C][/ROW]
[ROW][C]37[/C][C]7[/C][C]7.00997728993187[/C][C]-0.00997728993187062[/C][/ROW]
[ROW][C]38[/C][C]6.8[/C][C]6.7446836811939[/C][C]0.0553163188060994[/C][/ROW]
[ROW][C]39[/C][C]7[/C][C]7.13941566634224[/C][C]-0.139415666342237[/C][/ROW]
[ROW][C]40[/C][C]7.1[/C][C]7.32941278252406[/C][C]-0.229412782524063[/C][/ROW]
[ROW][C]41[/C][C]7.2[/C][C]7.36941278252406[/C][C]-0.169412782524062[/C][/ROW]
[ROW][C]42[/C][C]7.1[/C][C]7.21046753902167[/C][C]-0.110467539021665[/C][/ROW]
[ROW][C]43[/C][C]6.9[/C][C]7.03152229551927[/C][C]-0.131522295519267[/C][/ROW]
[ROW][C]44[/C][C]6.7[/C][C]6.83836667748098[/C][C]-0.138366677480985[/C][/ROW]
[ROW][C]45[/C][C]6.7[/C][C]6.82994592840921[/C][C]-0.129945928409214[/C][/ROW]
[ROW][C]46[/C][C]6.6[/C][C]6.81573555387333[/C][C]-0.215735553873329[/C][/ROW]
[ROW][C]47[/C][C]6.9[/C][C]7.02573267005515[/C][C]-0.125732670055153[/C][/ROW]
[ROW][C]48[/C][C]7.3[/C][C]7.3267816589164[/C][C]-0.0267816589164048[/C][/ROW]
[ROW][C]49[/C][C]7.5[/C][C]7.47464366821672[/C][C]0.0253563317832808[/C][/ROW]
[ROW][C]50[/C][C]7.3[/C][C]7.20935005947875[/C][C]0.0906499405212503[/C][/ROW]
[ROW][C]51[/C][C]7.1[/C][C]7.17777080855052[/C][C]-0.0777708085505209[/C][/ROW]
[ROW][C]52[/C][C]6.9[/C][C]7.08356043401464[/C][C]-0.183560434014635[/C][/ROW]
[ROW][C]53[/C][C]7.1[/C][C]7.26566417937349[/C][C]-0.165664179373491[/C][/ROW]
[ROW][C]54[/C][C]7.5[/C][C]7.53303017194766[/C][C]-0.0330301719476587[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.63829241916297[/C][C]0.0617075808370284[/C][/ROW]
[ROW][C]56[/C][C]7.8[/C][C]7.65829241916297[/C][C]0.141707580837029[/C][/ROW]
[ROW][C]57[/C][C]7.8[/C][C]7.50776792473235[/C][C]0.292232075267654[/C][/ROW]
[ROW][C]58[/C][C]7.7[/C][C]7.35145380483760[/C][C]0.348546195162396[/C][/ROW]
[ROW][C]59[/C][C]7.8[/C][C]7.34829530298115[/C][C]0.451704697018853[/C][/ROW]
[ROW][C]60[/C][C]7.8[/C][C]7.29408492844526[/C][C]0.505915071554739[/C][/ROW]
[ROW][C]61[/C][C]7.9[/C][C]7.37089506506615[/C][C]0.529104934933852[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58130&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58130&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
18.99.02646804368984-0.126468043689842
28.98.90327818031073-0.00327818031073305
38.68.516439565985370.0835604340146348
48.38.138021700731770.161978299268232
58.38.106969828052340.193030171947659
68.38.232232075267650.067767924732346
78.48.337494322482970.0625056775170324
88.58.42854619516240.0714538048376043
98.48.34907357341120.0509264265888036
108.68.405915071554740.194084928445262
118.58.402756569698280.0972434303017193
128.58.56170181320068-0.0617018132006776
138.48.49640820446271-0.09640820446271
148.58.444270213763020.0557297862369788
158.58.270587217475940.229412782524062
168.58.176376842940050.323623157059947
178.58.216376842940050.283623157059947
188.58.199535344796510.300464655203489
198.58.23374571933240.266254280667603
208.58.25374571933240.246254280667604
218.58.316376842940050.183623157059947
228.68.515322086442450.0846779135575502
238.48.44111171190657-0.0411117119065639
248.18.38690133737068-0.286901337370680
2588.32160772863271-0.321607728632711
2688.1984178652536-0.198417865253596
2788.09578674164594-0.0957867416459392
2888.07262823978948-0.0726282397894817
297.98.04157636711005-0.141576367110053
307.88.02473486896651-0.224734868966511
317.88.0589452435024-0.258945243502397
327.98.22104898886125-0.321048988861252
338.18.4968357305072-0.396835730507191
3488.41157348329188-0.411573483291879
357.67.98210374535886-0.382103745358856
367.37.43053026206698-0.130530262066977
3777.00997728993187-0.00997728993187062
386.86.74468368119390.0553163188060994
3977.13941566634224-0.139415666342237
407.17.32941278252406-0.229412782524063
417.27.36941278252406-0.169412782524062
427.17.21046753902167-0.110467539021665
436.97.03152229551927-0.131522295519267
446.76.83836667748098-0.138366677480985
456.76.82994592840921-0.129945928409214
466.66.81573555387333-0.215735553873329
476.97.02573267005515-0.125732670055153
487.37.3267816589164-0.0267816589164048
497.57.474643668216720.0253563317832808
507.37.209350059478750.0906499405212503
517.17.17777080855052-0.0777708085505209
526.97.08356043401464-0.183560434014635
537.17.26566417937349-0.165664179373491
547.57.53303017194766-0.0330301719476587
557.77.638292419162970.0617075808370284
567.87.658292419162970.141707580837029
577.87.507767924732350.292232075267654
587.77.351453804837600.348546195162396
597.87.348295302981150.451704697018853
607.87.294084928445260.505915071554739
617.97.370895065066150.529104934933852







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.003136084244413610.006272168488827220.996863915755586
180.002383618334149750.004767236668299490.99761638166585
190.0009283376453122470.001856675290624490.999071662354688
200.0003573228298086540.0007146456596173070.999642677170191
210.0001522016739415210.0003044033478830410.999847798326059
220.008951814939751770.01790362987950350.991048185060248
230.02779169276571060.05558338553142120.97220830723429
240.0687665737184150.137533147436830.931233426281585
250.1134522380837030.2269044761674070.886547761916297
260.1091719761317870.2183439522635750.890828023868213
270.1414035337014040.2828070674028090.858596466298596
280.3202417745661800.6404835491323610.67975822543382
290.5367186203080470.9265627593839070.463281379691953
300.6295721032444960.7408557935110080.370427896755504
310.6718653868956220.6562692262087560.328134613104378
320.6902764154206230.6194471691587540.309723584579377
330.6614734912269860.6770530175460280.338526508773014
340.6381808785759630.7236382428480750.361819121424037
350.6345463552721650.7309072894556690.365453644727835
360.540822271624930.918355456750140.45917772837507
370.461364368194780.922728736389560.53863563180522
380.4578855833699240.9157711667398480.542114416630076
390.4267763742980190.8535527485960390.57322362570198
400.4291192098436770.8582384196873550.570880790156323
410.6544152492214680.6911695015570640.345584750778532
420.8761245309334860.2477509381330270.123875469066514
430.9331963809629130.1336072380741750.0668036190370875
440.9588435097035520.08231298059289540.0411564902964477

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.00313608424441361 & 0.00627216848882722 & 0.996863915755586 \tabularnewline
18 & 0.00238361833414975 & 0.00476723666829949 & 0.99761638166585 \tabularnewline
19 & 0.000928337645312247 & 0.00185667529062449 & 0.999071662354688 \tabularnewline
20 & 0.000357322829808654 & 0.000714645659617307 & 0.999642677170191 \tabularnewline
21 & 0.000152201673941521 & 0.000304403347883041 & 0.999847798326059 \tabularnewline
22 & 0.00895181493975177 & 0.0179036298795035 & 0.991048185060248 \tabularnewline
23 & 0.0277916927657106 & 0.0555833855314212 & 0.97220830723429 \tabularnewline
24 & 0.068766573718415 & 0.13753314743683 & 0.931233426281585 \tabularnewline
25 & 0.113452238083703 & 0.226904476167407 & 0.886547761916297 \tabularnewline
26 & 0.109171976131787 & 0.218343952263575 & 0.890828023868213 \tabularnewline
27 & 0.141403533701404 & 0.282807067402809 & 0.858596466298596 \tabularnewline
28 & 0.320241774566180 & 0.640483549132361 & 0.67975822543382 \tabularnewline
29 & 0.536718620308047 & 0.926562759383907 & 0.463281379691953 \tabularnewline
30 & 0.629572103244496 & 0.740855793511008 & 0.370427896755504 \tabularnewline
31 & 0.671865386895622 & 0.656269226208756 & 0.328134613104378 \tabularnewline
32 & 0.690276415420623 & 0.619447169158754 & 0.309723584579377 \tabularnewline
33 & 0.661473491226986 & 0.677053017546028 & 0.338526508773014 \tabularnewline
34 & 0.638180878575963 & 0.723638242848075 & 0.361819121424037 \tabularnewline
35 & 0.634546355272165 & 0.730907289455669 & 0.365453644727835 \tabularnewline
36 & 0.54082227162493 & 0.91835545675014 & 0.45917772837507 \tabularnewline
37 & 0.46136436819478 & 0.92272873638956 & 0.53863563180522 \tabularnewline
38 & 0.457885583369924 & 0.915771166739848 & 0.542114416630076 \tabularnewline
39 & 0.426776374298019 & 0.853552748596039 & 0.57322362570198 \tabularnewline
40 & 0.429119209843677 & 0.858238419687355 & 0.570880790156323 \tabularnewline
41 & 0.654415249221468 & 0.691169501557064 & 0.345584750778532 \tabularnewline
42 & 0.876124530933486 & 0.247750938133027 & 0.123875469066514 \tabularnewline
43 & 0.933196380962913 & 0.133607238074175 & 0.0668036190370875 \tabularnewline
44 & 0.958843509703552 & 0.0823129805928954 & 0.0411564902964477 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58130&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.00313608424441361[/C][C]0.00627216848882722[/C][C]0.996863915755586[/C][/ROW]
[ROW][C]18[/C][C]0.00238361833414975[/C][C]0.00476723666829949[/C][C]0.99761638166585[/C][/ROW]
[ROW][C]19[/C][C]0.000928337645312247[/C][C]0.00185667529062449[/C][C]0.999071662354688[/C][/ROW]
[ROW][C]20[/C][C]0.000357322829808654[/C][C]0.000714645659617307[/C][C]0.999642677170191[/C][/ROW]
[ROW][C]21[/C][C]0.000152201673941521[/C][C]0.000304403347883041[/C][C]0.999847798326059[/C][/ROW]
[ROW][C]22[/C][C]0.00895181493975177[/C][C]0.0179036298795035[/C][C]0.991048185060248[/C][/ROW]
[ROW][C]23[/C][C]0.0277916927657106[/C][C]0.0555833855314212[/C][C]0.97220830723429[/C][/ROW]
[ROW][C]24[/C][C]0.068766573718415[/C][C]0.13753314743683[/C][C]0.931233426281585[/C][/ROW]
[ROW][C]25[/C][C]0.113452238083703[/C][C]0.226904476167407[/C][C]0.886547761916297[/C][/ROW]
[ROW][C]26[/C][C]0.109171976131787[/C][C]0.218343952263575[/C][C]0.890828023868213[/C][/ROW]
[ROW][C]27[/C][C]0.141403533701404[/C][C]0.282807067402809[/C][C]0.858596466298596[/C][/ROW]
[ROW][C]28[/C][C]0.320241774566180[/C][C]0.640483549132361[/C][C]0.67975822543382[/C][/ROW]
[ROW][C]29[/C][C]0.536718620308047[/C][C]0.926562759383907[/C][C]0.463281379691953[/C][/ROW]
[ROW][C]30[/C][C]0.629572103244496[/C][C]0.740855793511008[/C][C]0.370427896755504[/C][/ROW]
[ROW][C]31[/C][C]0.671865386895622[/C][C]0.656269226208756[/C][C]0.328134613104378[/C][/ROW]
[ROW][C]32[/C][C]0.690276415420623[/C][C]0.619447169158754[/C][C]0.309723584579377[/C][/ROW]
[ROW][C]33[/C][C]0.661473491226986[/C][C]0.677053017546028[/C][C]0.338526508773014[/C][/ROW]
[ROW][C]34[/C][C]0.638180878575963[/C][C]0.723638242848075[/C][C]0.361819121424037[/C][/ROW]
[ROW][C]35[/C][C]0.634546355272165[/C][C]0.730907289455669[/C][C]0.365453644727835[/C][/ROW]
[ROW][C]36[/C][C]0.54082227162493[/C][C]0.91835545675014[/C][C]0.45917772837507[/C][/ROW]
[ROW][C]37[/C][C]0.46136436819478[/C][C]0.92272873638956[/C][C]0.53863563180522[/C][/ROW]
[ROW][C]38[/C][C]0.457885583369924[/C][C]0.915771166739848[/C][C]0.542114416630076[/C][/ROW]
[ROW][C]39[/C][C]0.426776374298019[/C][C]0.853552748596039[/C][C]0.57322362570198[/C][/ROW]
[ROW][C]40[/C][C]0.429119209843677[/C][C]0.858238419687355[/C][C]0.570880790156323[/C][/ROW]
[ROW][C]41[/C][C]0.654415249221468[/C][C]0.691169501557064[/C][C]0.345584750778532[/C][/ROW]
[ROW][C]42[/C][C]0.876124530933486[/C][C]0.247750938133027[/C][C]0.123875469066514[/C][/ROW]
[ROW][C]43[/C][C]0.933196380962913[/C][C]0.133607238074175[/C][C]0.0668036190370875[/C][/ROW]
[ROW][C]44[/C][C]0.958843509703552[/C][C]0.0823129805928954[/C][C]0.0411564902964477[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58130&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58130&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.003136084244413610.006272168488827220.996863915755586
180.002383618334149750.004767236668299490.99761638166585
190.0009283376453122470.001856675290624490.999071662354688
200.0003573228298086540.0007146456596173070.999642677170191
210.0001522016739415210.0003044033478830410.999847798326059
220.008951814939751770.01790362987950350.991048185060248
230.02779169276571060.05558338553142120.97220830723429
240.0687665737184150.137533147436830.931233426281585
250.1134522380837030.2269044761674070.886547761916297
260.1091719761317870.2183439522635750.890828023868213
270.1414035337014040.2828070674028090.858596466298596
280.3202417745661800.6404835491323610.67975822543382
290.5367186203080470.9265627593839070.463281379691953
300.6295721032444960.7408557935110080.370427896755504
310.6718653868956220.6562692262087560.328134613104378
320.6902764154206230.6194471691587540.309723584579377
330.6614734912269860.6770530175460280.338526508773014
340.6381808785759630.7236382428480750.361819121424037
350.6345463552721650.7309072894556690.365453644727835
360.540822271624930.918355456750140.45917772837507
370.461364368194780.922728736389560.53863563180522
380.4578855833699240.9157711667398480.542114416630076
390.4267763742980190.8535527485960390.57322362570198
400.4291192098436770.8582384196873550.570880790156323
410.6544152492214680.6911695015570640.345584750778532
420.8761245309334860.2477509381330270.123875469066514
430.9331963809629130.1336072380741750.0668036190370875
440.9588435097035520.08231298059289540.0411564902964477







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.178571428571429NOK
5% type I error level60.214285714285714NOK
10% type I error level80.285714285714286NOK

\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 & 5 & 0.178571428571429 & NOK \tabularnewline
5% type I error level & 6 & 0.214285714285714 & NOK \tabularnewline
10% type I error level & 8 & 0.285714285714286 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58130&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]5[/C][C]0.178571428571429[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]6[/C][C]0.214285714285714[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]8[/C][C]0.285714285714286[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58130&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58130&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 level50.178571428571429NOK
5% type I error level60.214285714285714NOK
10% type I error level80.285714285714286NOK



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