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 computationThu, 17 Dec 2009 07:43:11 -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/Dec/17/t1261061058br7p8r69t2o2xuz.htm/, Retrieved Tue, 30 Apr 2024 02:04:00 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68919, Retrieved Tue, 30 Apr 2024 02:04:00 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact142
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [] [2009-11-18 16:22:43] [90f6d58d515a4caed6fb4b8be4e11eaa]
-    D      [Multiple Regression] [Multiple Regressi...] [2009-12-17 13:47:34] [90f6d58d515a4caed6fb4b8be4e11eaa]
-   PD          [Multiple Regression] [Multiple Regressi...] [2009-12-17 14:43:11] [2b548c9d2e9bba6e1eaf65bd4d551f41] [Current]
-   PD            [Multiple Regression] [Multiple Regressi...] [2009-12-17 19:37:52] [90f6d58d515a4caed6fb4b8be4e11eaa]
Feedback Forum

Post a new message
Dataseries X:
8,7	110,3	9,3	9,3
8,2	103,9	8,7	9,3
8,3	101,6	8,2	8,7
8,5	94,6	8,3	8,2
8,6	95,9	8,5	8,3
8,5	104,7	8,6	8,5
8,2	102,8	8,5	8,6
8,1	98,1	8,2	8,5
7,9	113,9	8,1	8,2
8,6	80,9	7,9	8,1
8,7	95,7	8,6	7,9
8,7	113,2	8,7	8,6
8,5	105,9	8,7	8,7
8,4	108,8	8,5	8,7
8,5	102,3	8,4	8,5
8,7	99	8,5	8,4
8,7	100,7	8,7	8,5
8,6	115,5	8,7	8,7
8,5	100,7	8,6	8,7
8,3	109,9	8,5	8,6
8	114,6	8,3	8,5
8,2	85,4	8	8,3
8,1	100,5	8,2	8
8,1	114,8	8,1	8,2
8	116,5	8,1	8,1
7,9	112,9	8	8,1
7,9	102	7,9	8
8	106	7,9	7,9
8	105,3	8	7,9
7,9	118,8	8	8
8	106,1	7,9	8
7,7	109,3	8	7,9
7,2	117,2	7,7	8
7,5	92,5	7,2	7,7
7,3	104,2	7,5	7,2
7	112,5	7,3	7,5
7	122,4	7	7,3
7	113,3	7	7
7,2	100	7	7
7,3	110,7	7,2	7
7,1	112,8	7,3	7,2
6,8	109,8	7,1	7,3
6,4	117,3	6,8	7,1
6,1	109,1	6,4	6,8
6,5	115,9	6,1	6,4
7,7	96	6,5	6,1
7,9	99,8	7,7	6,5
7,5	116,8	7,9	7,7
6,9	115,7	7,5	7,9
6,6	99,4	6,9	7,5
6,9	94,3	6,6	6,9
7,7	91	6,9	6,6
8	93,2	7,7	6,9
8	103,1	8	7,7
7,7	94,1	8	8
7,3	91,8	7,7	8
7,4	102,7	7,3	7,7
8,1	82,6	7,4	7,3




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 3.62399518778054 -0.0116550205248898X[t] + 1.33908375456985Y1[t] -0.61955467605507Y2[t] -0.0436568455591268M1[t] + 0.00299857923202550M2[t] + 0.143563257409505M3[t] + 0.122170287553879M4[t] -0.103225295505422M5[t] + 0.00667643070592493M6[t] -0.072453772067619M7[t] -0.138084807294505M8[t] + 0.101050909401817M9[t] + 0.405496234642471M10[t] -0.370533810105535M11[t] -0.00742558647969111t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  3.62399518778054 -0.0116550205248898X[t] +  1.33908375456985Y1[t] -0.61955467605507Y2[t] -0.0436568455591268M1[t] +  0.00299857923202550M2[t] +  0.143563257409505M3[t] +  0.122170287553879M4[t] -0.103225295505422M5[t] +  0.00667643070592493M6[t] -0.072453772067619M7[t] -0.138084807294505M8[t] +  0.101050909401817M9[t] +  0.405496234642471M10[t] -0.370533810105535M11[t] -0.00742558647969111t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68919&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  3.62399518778054 -0.0116550205248898X[t] +  1.33908375456985Y1[t] -0.61955467605507Y2[t] -0.0436568455591268M1[t] +  0.00299857923202550M2[t] +  0.143563257409505M3[t] +  0.122170287553879M4[t] -0.103225295505422M5[t] +  0.00667643070592493M6[t] -0.072453772067619M7[t] -0.138084807294505M8[t] +  0.101050909401817M9[t] +  0.405496234642471M10[t] -0.370533810105535M11[t] -0.00742558647969111t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68919&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68919&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] = + 3.62399518778054 -0.0116550205248898X[t] + 1.33908375456985Y1[t] -0.61955467605507Y2[t] -0.0436568455591268M1[t] + 0.00299857923202550M2[t] + 0.143563257409505M3[t] + 0.122170287553879M4[t] -0.103225295505422M5[t] + 0.00667643070592493M6[t] -0.072453772067619M7[t] -0.138084807294505M8[t] + 0.101050909401817M9[t] + 0.405496234642471M10[t] -0.370533810105535M11[t] -0.00742558647969111t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3.623995187780540.9617843.7680.0005070.000254
X-0.01165502052488980.004553-2.56010.0141510.007075
Y11.339083754569850.11725611.420200
Y2-0.619554676055070.119921-5.16636e-063e-06
M1-0.04365684555912680.123152-0.35450.7247420.362371
M20.002998579232025500.1318820.02270.9819680.490984
M30.1435632574095050.1475430.9730.336110.168055
M40.1221702875538790.145720.83840.4065580.203279
M5-0.1032252955054220.140214-0.73620.4657030.232852
M60.006676430705924930.1231970.05420.9570380.478519
M7-0.0724537720676190.130933-0.55340.5829460.291473
M8-0.1380848072945050.134657-1.02550.3110190.15551
M90.1010509094018170.1276550.79160.4330440.216522
M100.4054962346424710.1842132.20120.0332670.016634
M11-0.3705338101055350.164088-2.25810.0291920.014596
t-0.007425586479691110.00262-2.83420.0070320.003516

\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) & 3.62399518778054 & 0.961784 & 3.768 & 0.000507 & 0.000254 \tabularnewline
X & -0.0116550205248898 & 0.004553 & -2.5601 & 0.014151 & 0.007075 \tabularnewline
Y1 & 1.33908375456985 & 0.117256 & 11.4202 & 0 & 0 \tabularnewline
Y2 & -0.61955467605507 & 0.119921 & -5.1663 & 6e-06 & 3e-06 \tabularnewline
M1 & -0.0436568455591268 & 0.123152 & -0.3545 & 0.724742 & 0.362371 \tabularnewline
M2 & 0.00299857923202550 & 0.131882 & 0.0227 & 0.981968 & 0.490984 \tabularnewline
M3 & 0.143563257409505 & 0.147543 & 0.973 & 0.33611 & 0.168055 \tabularnewline
M4 & 0.122170287553879 & 0.14572 & 0.8384 & 0.406558 & 0.203279 \tabularnewline
M5 & -0.103225295505422 & 0.140214 & -0.7362 & 0.465703 & 0.232852 \tabularnewline
M6 & 0.00667643070592493 & 0.123197 & 0.0542 & 0.957038 & 0.478519 \tabularnewline
M7 & -0.072453772067619 & 0.130933 & -0.5534 & 0.582946 & 0.291473 \tabularnewline
M8 & -0.138084807294505 & 0.134657 & -1.0255 & 0.311019 & 0.15551 \tabularnewline
M9 & 0.101050909401817 & 0.127655 & 0.7916 & 0.433044 & 0.216522 \tabularnewline
M10 & 0.405496234642471 & 0.184213 & 2.2012 & 0.033267 & 0.016634 \tabularnewline
M11 & -0.370533810105535 & 0.164088 & -2.2581 & 0.029192 & 0.014596 \tabularnewline
t & -0.00742558647969111 & 0.00262 & -2.8342 & 0.007032 & 0.003516 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68919&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]3.62399518778054[/C][C]0.961784[/C][C]3.768[/C][C]0.000507[/C][C]0.000254[/C][/ROW]
[ROW][C]X[/C][C]-0.0116550205248898[/C][C]0.004553[/C][C]-2.5601[/C][C]0.014151[/C][C]0.007075[/C][/ROW]
[ROW][C]Y1[/C][C]1.33908375456985[/C][C]0.117256[/C][C]11.4202[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.61955467605507[/C][C]0.119921[/C][C]-5.1663[/C][C]6e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M1[/C][C]-0.0436568455591268[/C][C]0.123152[/C][C]-0.3545[/C][C]0.724742[/C][C]0.362371[/C][/ROW]
[ROW][C]M2[/C][C]0.00299857923202550[/C][C]0.131882[/C][C]0.0227[/C][C]0.981968[/C][C]0.490984[/C][/ROW]
[ROW][C]M3[/C][C]0.143563257409505[/C][C]0.147543[/C][C]0.973[/C][C]0.33611[/C][C]0.168055[/C][/ROW]
[ROW][C]M4[/C][C]0.122170287553879[/C][C]0.14572[/C][C]0.8384[/C][C]0.406558[/C][C]0.203279[/C][/ROW]
[ROW][C]M5[/C][C]-0.103225295505422[/C][C]0.140214[/C][C]-0.7362[/C][C]0.465703[/C][C]0.232852[/C][/ROW]
[ROW][C]M6[/C][C]0.00667643070592493[/C][C]0.123197[/C][C]0.0542[/C][C]0.957038[/C][C]0.478519[/C][/ROW]
[ROW][C]M7[/C][C]-0.072453772067619[/C][C]0.130933[/C][C]-0.5534[/C][C]0.582946[/C][C]0.291473[/C][/ROW]
[ROW][C]M8[/C][C]-0.138084807294505[/C][C]0.134657[/C][C]-1.0255[/C][C]0.311019[/C][C]0.15551[/C][/ROW]
[ROW][C]M9[/C][C]0.101050909401817[/C][C]0.127655[/C][C]0.7916[/C][C]0.433044[/C][C]0.216522[/C][/ROW]
[ROW][C]M10[/C][C]0.405496234642471[/C][C]0.184213[/C][C]2.2012[/C][C]0.033267[/C][C]0.016634[/C][/ROW]
[ROW][C]M11[/C][C]-0.370533810105535[/C][C]0.164088[/C][C]-2.2581[/C][C]0.029192[/C][C]0.014596[/C][/ROW]
[ROW][C]t[/C][C]-0.00742558647969111[/C][C]0.00262[/C][C]-2.8342[/C][C]0.007032[/C][C]0.003516[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68919&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68919&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)3.623995187780540.9617843.7680.0005070.000254
X-0.01165502052488980.004553-2.56010.0141510.007075
Y11.339083754569850.11725611.420200
Y2-0.619554676055070.119921-5.16636e-063e-06
M1-0.04365684555912680.123152-0.35450.7247420.362371
M20.002998579232025500.1318820.02270.9819680.490984
M30.1435632574095050.1475430.9730.336110.168055
M40.1221702875538790.145720.83840.4065580.203279
M5-0.1032252955054220.140214-0.73620.4657030.232852
M60.006676430705924930.1231970.05420.9570380.478519
M7-0.0724537720676190.130933-0.55340.5829460.291473
M8-0.1380848072945050.134657-1.02550.3110190.15551
M90.1010509094018170.1276550.79160.4330440.216522
M100.4054962346424710.1842132.20120.0332670.016634
M11-0.3705338101055350.164088-2.25810.0291920.014596
t-0.007425586479691110.00262-2.83420.0070320.003516







Multiple Linear Regression - Regression Statistics
Multiple R0.972152036416714
R-squared0.945079581909165
Adjusted R-squared0.925465146876724
F-TEST (value)48.1828602427782
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.181892943332620
Sum Squared Residuals1.38957179903655

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.972152036416714 \tabularnewline
R-squared & 0.945079581909165 \tabularnewline
Adjusted R-squared & 0.925465146876724 \tabularnewline
F-TEST (value) & 48.1828602427782 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.181892943332620 \tabularnewline
Sum Squared Residuals & 1.38957179903655 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68919&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.972152036416714[/C][/ROW]
[ROW][C]R-squared[/C][C]0.945079581909165[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.925465146876724[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]48.1828602427782[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/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.181892943332620[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1.38957179903655[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68919&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68919&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.972152036416714
R-squared0.945079581909165
Adjusted R-squared0.925465146876724
F-TEST (value)48.1828602427782
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.181892943332620
Sum Squared Residuals1.38957179903655







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.78.97898442203381-0.278984422033815
28.28.28935613896266-0.0893561389626577
38.38.151492706215810.148507293784190
48.58.64794500703924-0.147945007039241
58.68.60583359412635-0.00583359412635362
68.58.61574299348495-0.115742993484950
78.28.35546790016651-0.155467900166515
88.17.997420216161470.102579783838529
97.98.09693904944438-0.196939049444379
108.68.572713182218240.0272868177817554
118.78.678032810632080.021967189367915
128.78.53739827729080.162601722709207
138.58.50944202747816-0.00944202747816331
148.48.247055555353470.152944444646525
158.58.445954840217080.0540451597829233
168.78.651461694676390.0485383053236123
178.78.604688273553540.0953117264464555
188.68.410759174305820.189240825694183
198.58.362789313363970.137210686636033
208.38.110553594976930.189446405023075
2188.08162384541811-0.0816238454181131
228.28.44115599234592-0.241155992345917
238.17.935392704922870.164607295077126
248.17.87401482437480.225985175625205
2587.865074325049170.134925674950829
267.97.812353861793250.0876461382067493
277.98.00057976936086-0.100579769360861
2887.98709659853150.0129034014685088
2987.89634231881690.103657681183094
307.97.779520213857040.120479786142958
3187.707074809812920.292925190187076
327.77.79258596548919-0.0925859654891908
337.27.46854083958273-0.268540839582731
347.57.56976411084007-0.0697641108400692
357.37.36144720386965-0.0614472038696505
3677.17413560340842-0.174135603408418
3776.729854277013250.270145722986750
3877.06101120491773-0.0610112049177301
397.27.34916206959655-0.149162069596553
407.37.46345154455888-0.163451544558885
417.17.21615227216359-0.116152272163594
426.87.02382125495044-0.223821254950443
436.46.5720386206006-0.172038620600593
446.16.2447860681867-0.144786068186696
456.56.243338802885150.256661197114851
467.77.493793354735880.206206645264122
477.98.0251272805754-0.125127280575391
487.57.714451294926-0.214451294925994
496.97.0166449484256-0.116644948425601
506.66.69022323897289-0.0902232389728868
516.96.85281061460970.0471893853903009
527.77.4500451551940.249954844806005
5388.0769835413396-0.0769835413396017
5487.970156363401750.0298436365982526
557.77.802629356056-0.102629356056000
567.37.35465415518572-0.0546541551857161
577.47.109557462669630.290442537330372
588.18.022573359859890.0774266401401095

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.7 & 8.97898442203381 & -0.278984422033815 \tabularnewline
2 & 8.2 & 8.28935613896266 & -0.0893561389626577 \tabularnewline
3 & 8.3 & 8.15149270621581 & 0.148507293784190 \tabularnewline
4 & 8.5 & 8.64794500703924 & -0.147945007039241 \tabularnewline
5 & 8.6 & 8.60583359412635 & -0.00583359412635362 \tabularnewline
6 & 8.5 & 8.61574299348495 & -0.115742993484950 \tabularnewline
7 & 8.2 & 8.35546790016651 & -0.155467900166515 \tabularnewline
8 & 8.1 & 7.99742021616147 & 0.102579783838529 \tabularnewline
9 & 7.9 & 8.09693904944438 & -0.196939049444379 \tabularnewline
10 & 8.6 & 8.57271318221824 & 0.0272868177817554 \tabularnewline
11 & 8.7 & 8.67803281063208 & 0.021967189367915 \tabularnewline
12 & 8.7 & 8.5373982772908 & 0.162601722709207 \tabularnewline
13 & 8.5 & 8.50944202747816 & -0.00944202747816331 \tabularnewline
14 & 8.4 & 8.24705555535347 & 0.152944444646525 \tabularnewline
15 & 8.5 & 8.44595484021708 & 0.0540451597829233 \tabularnewline
16 & 8.7 & 8.65146169467639 & 0.0485383053236123 \tabularnewline
17 & 8.7 & 8.60468827355354 & 0.0953117264464555 \tabularnewline
18 & 8.6 & 8.41075917430582 & 0.189240825694183 \tabularnewline
19 & 8.5 & 8.36278931336397 & 0.137210686636033 \tabularnewline
20 & 8.3 & 8.11055359497693 & 0.189446405023075 \tabularnewline
21 & 8 & 8.08162384541811 & -0.0816238454181131 \tabularnewline
22 & 8.2 & 8.44115599234592 & -0.241155992345917 \tabularnewline
23 & 8.1 & 7.93539270492287 & 0.164607295077126 \tabularnewline
24 & 8.1 & 7.8740148243748 & 0.225985175625205 \tabularnewline
25 & 8 & 7.86507432504917 & 0.134925674950829 \tabularnewline
26 & 7.9 & 7.81235386179325 & 0.0876461382067493 \tabularnewline
27 & 7.9 & 8.00057976936086 & -0.100579769360861 \tabularnewline
28 & 8 & 7.9870965985315 & 0.0129034014685088 \tabularnewline
29 & 8 & 7.8963423188169 & 0.103657681183094 \tabularnewline
30 & 7.9 & 7.77952021385704 & 0.120479786142958 \tabularnewline
31 & 8 & 7.70707480981292 & 0.292925190187076 \tabularnewline
32 & 7.7 & 7.79258596548919 & -0.0925859654891908 \tabularnewline
33 & 7.2 & 7.46854083958273 & -0.268540839582731 \tabularnewline
34 & 7.5 & 7.56976411084007 & -0.0697641108400692 \tabularnewline
35 & 7.3 & 7.36144720386965 & -0.0614472038696505 \tabularnewline
36 & 7 & 7.17413560340842 & -0.174135603408418 \tabularnewline
37 & 7 & 6.72985427701325 & 0.270145722986750 \tabularnewline
38 & 7 & 7.06101120491773 & -0.0610112049177301 \tabularnewline
39 & 7.2 & 7.34916206959655 & -0.149162069596553 \tabularnewline
40 & 7.3 & 7.46345154455888 & -0.163451544558885 \tabularnewline
41 & 7.1 & 7.21615227216359 & -0.116152272163594 \tabularnewline
42 & 6.8 & 7.02382125495044 & -0.223821254950443 \tabularnewline
43 & 6.4 & 6.5720386206006 & -0.172038620600593 \tabularnewline
44 & 6.1 & 6.2447860681867 & -0.144786068186696 \tabularnewline
45 & 6.5 & 6.24333880288515 & 0.256661197114851 \tabularnewline
46 & 7.7 & 7.49379335473588 & 0.206206645264122 \tabularnewline
47 & 7.9 & 8.0251272805754 & -0.125127280575391 \tabularnewline
48 & 7.5 & 7.714451294926 & -0.214451294925994 \tabularnewline
49 & 6.9 & 7.0166449484256 & -0.116644948425601 \tabularnewline
50 & 6.6 & 6.69022323897289 & -0.0902232389728868 \tabularnewline
51 & 6.9 & 6.8528106146097 & 0.0471893853903009 \tabularnewline
52 & 7.7 & 7.450045155194 & 0.249954844806005 \tabularnewline
53 & 8 & 8.0769835413396 & -0.0769835413396017 \tabularnewline
54 & 8 & 7.97015636340175 & 0.0298436365982526 \tabularnewline
55 & 7.7 & 7.802629356056 & -0.102629356056000 \tabularnewline
56 & 7.3 & 7.35465415518572 & -0.0546541551857161 \tabularnewline
57 & 7.4 & 7.10955746266963 & 0.290442537330372 \tabularnewline
58 & 8.1 & 8.02257335985989 & 0.0774266401401095 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68919&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.7[/C][C]8.97898442203381[/C][C]-0.278984422033815[/C][/ROW]
[ROW][C]2[/C][C]8.2[/C][C]8.28935613896266[/C][C]-0.0893561389626577[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]8.15149270621581[/C][C]0.148507293784190[/C][/ROW]
[ROW][C]4[/C][C]8.5[/C][C]8.64794500703924[/C][C]-0.147945007039241[/C][/ROW]
[ROW][C]5[/C][C]8.6[/C][C]8.60583359412635[/C][C]-0.00583359412635362[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.61574299348495[/C][C]-0.115742993484950[/C][/ROW]
[ROW][C]7[/C][C]8.2[/C][C]8.35546790016651[/C][C]-0.155467900166515[/C][/ROW]
[ROW][C]8[/C][C]8.1[/C][C]7.99742021616147[/C][C]0.102579783838529[/C][/ROW]
[ROW][C]9[/C][C]7.9[/C][C]8.09693904944438[/C][C]-0.196939049444379[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.57271318221824[/C][C]0.0272868177817554[/C][/ROW]
[ROW][C]11[/C][C]8.7[/C][C]8.67803281063208[/C][C]0.021967189367915[/C][/ROW]
[ROW][C]12[/C][C]8.7[/C][C]8.5373982772908[/C][C]0.162601722709207[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]8.50944202747816[/C][C]-0.00944202747816331[/C][/ROW]
[ROW][C]14[/C][C]8.4[/C][C]8.24705555535347[/C][C]0.152944444646525[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.44595484021708[/C][C]0.0540451597829233[/C][/ROW]
[ROW][C]16[/C][C]8.7[/C][C]8.65146169467639[/C][C]0.0485383053236123[/C][/ROW]
[ROW][C]17[/C][C]8.7[/C][C]8.60468827355354[/C][C]0.0953117264464555[/C][/ROW]
[ROW][C]18[/C][C]8.6[/C][C]8.41075917430582[/C][C]0.189240825694183[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]8.36278931336397[/C][C]0.137210686636033[/C][/ROW]
[ROW][C]20[/C][C]8.3[/C][C]8.11055359497693[/C][C]0.189446405023075[/C][/ROW]
[ROW][C]21[/C][C]8[/C][C]8.08162384541811[/C][C]-0.0816238454181131[/C][/ROW]
[ROW][C]22[/C][C]8.2[/C][C]8.44115599234592[/C][C]-0.241155992345917[/C][/ROW]
[ROW][C]23[/C][C]8.1[/C][C]7.93539270492287[/C][C]0.164607295077126[/C][/ROW]
[ROW][C]24[/C][C]8.1[/C][C]7.8740148243748[/C][C]0.225985175625205[/C][/ROW]
[ROW][C]25[/C][C]8[/C][C]7.86507432504917[/C][C]0.134925674950829[/C][/ROW]
[ROW][C]26[/C][C]7.9[/C][C]7.81235386179325[/C][C]0.0876461382067493[/C][/ROW]
[ROW][C]27[/C][C]7.9[/C][C]8.00057976936086[/C][C]-0.100579769360861[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]7.9870965985315[/C][C]0.0129034014685088[/C][/ROW]
[ROW][C]29[/C][C]8[/C][C]7.8963423188169[/C][C]0.103657681183094[/C][/ROW]
[ROW][C]30[/C][C]7.9[/C][C]7.77952021385704[/C][C]0.120479786142958[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]7.70707480981292[/C][C]0.292925190187076[/C][/ROW]
[ROW][C]32[/C][C]7.7[/C][C]7.79258596548919[/C][C]-0.0925859654891908[/C][/ROW]
[ROW][C]33[/C][C]7.2[/C][C]7.46854083958273[/C][C]-0.268540839582731[/C][/ROW]
[ROW][C]34[/C][C]7.5[/C][C]7.56976411084007[/C][C]-0.0697641108400692[/C][/ROW]
[ROW][C]35[/C][C]7.3[/C][C]7.36144720386965[/C][C]-0.0614472038696505[/C][/ROW]
[ROW][C]36[/C][C]7[/C][C]7.17413560340842[/C][C]-0.174135603408418[/C][/ROW]
[ROW][C]37[/C][C]7[/C][C]6.72985427701325[/C][C]0.270145722986750[/C][/ROW]
[ROW][C]38[/C][C]7[/C][C]7.06101120491773[/C][C]-0.0610112049177301[/C][/ROW]
[ROW][C]39[/C][C]7.2[/C][C]7.34916206959655[/C][C]-0.149162069596553[/C][/ROW]
[ROW][C]40[/C][C]7.3[/C][C]7.46345154455888[/C][C]-0.163451544558885[/C][/ROW]
[ROW][C]41[/C][C]7.1[/C][C]7.21615227216359[/C][C]-0.116152272163594[/C][/ROW]
[ROW][C]42[/C][C]6.8[/C][C]7.02382125495044[/C][C]-0.223821254950443[/C][/ROW]
[ROW][C]43[/C][C]6.4[/C][C]6.5720386206006[/C][C]-0.172038620600593[/C][/ROW]
[ROW][C]44[/C][C]6.1[/C][C]6.2447860681867[/C][C]-0.144786068186696[/C][/ROW]
[ROW][C]45[/C][C]6.5[/C][C]6.24333880288515[/C][C]0.256661197114851[/C][/ROW]
[ROW][C]46[/C][C]7.7[/C][C]7.49379335473588[/C][C]0.206206645264122[/C][/ROW]
[ROW][C]47[/C][C]7.9[/C][C]8.0251272805754[/C][C]-0.125127280575391[/C][/ROW]
[ROW][C]48[/C][C]7.5[/C][C]7.714451294926[/C][C]-0.214451294925994[/C][/ROW]
[ROW][C]49[/C][C]6.9[/C][C]7.0166449484256[/C][C]-0.116644948425601[/C][/ROW]
[ROW][C]50[/C][C]6.6[/C][C]6.69022323897289[/C][C]-0.0902232389728868[/C][/ROW]
[ROW][C]51[/C][C]6.9[/C][C]6.8528106146097[/C][C]0.0471893853903009[/C][/ROW]
[ROW][C]52[/C][C]7.7[/C][C]7.450045155194[/C][C]0.249954844806005[/C][/ROW]
[ROW][C]53[/C][C]8[/C][C]8.0769835413396[/C][C]-0.0769835413396017[/C][/ROW]
[ROW][C]54[/C][C]8[/C][C]7.97015636340175[/C][C]0.0298436365982526[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.802629356056[/C][C]-0.102629356056000[/C][/ROW]
[ROW][C]56[/C][C]7.3[/C][C]7.35465415518572[/C][C]-0.0546541551857161[/C][/ROW]
[ROW][C]57[/C][C]7.4[/C][C]7.10955746266963[/C][C]0.290442537330372[/C][/ROW]
[ROW][C]58[/C][C]8.1[/C][C]8.02257335985989[/C][C]0.0774266401401095[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68919&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68919&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.78.97898442203381-0.278984422033815
28.28.28935613896266-0.0893561389626577
38.38.151492706215810.148507293784190
48.58.64794500703924-0.147945007039241
58.68.60583359412635-0.00583359412635362
68.58.61574299348495-0.115742993484950
78.28.35546790016651-0.155467900166515
88.17.997420216161470.102579783838529
97.98.09693904944438-0.196939049444379
108.68.572713182218240.0272868177817554
118.78.678032810632080.021967189367915
128.78.53739827729080.162601722709207
138.58.50944202747816-0.00944202747816331
148.48.247055555353470.152944444646525
158.58.445954840217080.0540451597829233
168.78.651461694676390.0485383053236123
178.78.604688273553540.0953117264464555
188.68.410759174305820.189240825694183
198.58.362789313363970.137210686636033
208.38.110553594976930.189446405023075
2188.08162384541811-0.0816238454181131
228.28.44115599234592-0.241155992345917
238.17.935392704922870.164607295077126
248.17.87401482437480.225985175625205
2587.865074325049170.134925674950829
267.97.812353861793250.0876461382067493
277.98.00057976936086-0.100579769360861
2887.98709659853150.0129034014685088
2987.89634231881690.103657681183094
307.97.779520213857040.120479786142958
3187.707074809812920.292925190187076
327.77.79258596548919-0.0925859654891908
337.27.46854083958273-0.268540839582731
347.57.56976411084007-0.0697641108400692
357.37.36144720386965-0.0614472038696505
3677.17413560340842-0.174135603408418
3776.729854277013250.270145722986750
3877.06101120491773-0.0610112049177301
397.27.34916206959655-0.149162069596553
407.37.46345154455888-0.163451544558885
417.17.21615227216359-0.116152272163594
426.87.02382125495044-0.223821254950443
436.46.5720386206006-0.172038620600593
446.16.2447860681867-0.144786068186696
456.56.243338802885150.256661197114851
467.77.493793354735880.206206645264122
477.98.0251272805754-0.125127280575391
487.57.714451294926-0.214451294925994
496.97.0166449484256-0.116644948425601
506.66.69022323897289-0.0902232389728868
516.96.85281061460970.0471893853903009
527.77.4500451551940.249954844806005
5388.0769835413396-0.0769835413396017
5487.970156363401750.0298436365982526
557.77.802629356056-0.102629356056000
567.37.35465415518572-0.0546541551857161
577.47.109557462669630.290442537330372
588.18.022573359859890.0774266401401095







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.1103866840216650.220773368043330.889613315978335
200.04742353471522110.09484706943044220.95257646528478
210.01992951540489470.03985903080978940.980070484595105
220.336262850682180.672525701364360.66373714931782
230.2568939831211800.5137879662423590.743106016878820
240.2434235598018910.4868471196037830.756576440198109
250.1622353606671810.3244707213343610.83776463933282
260.1439442822983910.2878885645967820.856055717701609
270.2122501470579550.4245002941159100.787749852942045
280.1524822128982690.3049644257965390.84751778710173
290.1178966069322360.2357932138644730.882103393067764
300.1276007061912160.2552014123824320.872399293808784
310.2973351191471140.5946702382942290.702664880852885
320.4447271324414780.8894542648829570.555272867558521
330.5376454402919640.9247091194160720.462354559708036
340.4459767259224430.8919534518448860.554023274077557
350.4610524929188660.9221049858377330.538947507081134
360.4247552922634220.8495105845268440.575244707736578
370.7861162151292410.4277675697415170.213883784870759
380.6988850284556850.6022299430886290.301114971544315
390.544750916409260.910498167181480.45524908359074

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.110386684021665 & 0.22077336804333 & 0.889613315978335 \tabularnewline
20 & 0.0474235347152211 & 0.0948470694304422 & 0.95257646528478 \tabularnewline
21 & 0.0199295154048947 & 0.0398590308097894 & 0.980070484595105 \tabularnewline
22 & 0.33626285068218 & 0.67252570136436 & 0.66373714931782 \tabularnewline
23 & 0.256893983121180 & 0.513787966242359 & 0.743106016878820 \tabularnewline
24 & 0.243423559801891 & 0.486847119603783 & 0.756576440198109 \tabularnewline
25 & 0.162235360667181 & 0.324470721334361 & 0.83776463933282 \tabularnewline
26 & 0.143944282298391 & 0.287888564596782 & 0.856055717701609 \tabularnewline
27 & 0.212250147057955 & 0.424500294115910 & 0.787749852942045 \tabularnewline
28 & 0.152482212898269 & 0.304964425796539 & 0.84751778710173 \tabularnewline
29 & 0.117896606932236 & 0.235793213864473 & 0.882103393067764 \tabularnewline
30 & 0.127600706191216 & 0.255201412382432 & 0.872399293808784 \tabularnewline
31 & 0.297335119147114 & 0.594670238294229 & 0.702664880852885 \tabularnewline
32 & 0.444727132441478 & 0.889454264882957 & 0.555272867558521 \tabularnewline
33 & 0.537645440291964 & 0.924709119416072 & 0.462354559708036 \tabularnewline
34 & 0.445976725922443 & 0.891953451844886 & 0.554023274077557 \tabularnewline
35 & 0.461052492918866 & 0.922104985837733 & 0.538947507081134 \tabularnewline
36 & 0.424755292263422 & 0.849510584526844 & 0.575244707736578 \tabularnewline
37 & 0.786116215129241 & 0.427767569741517 & 0.213883784870759 \tabularnewline
38 & 0.698885028455685 & 0.602229943088629 & 0.301114971544315 \tabularnewline
39 & 0.54475091640926 & 0.91049816718148 & 0.45524908359074 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68919&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]19[/C][C]0.110386684021665[/C][C]0.22077336804333[/C][C]0.889613315978335[/C][/ROW]
[ROW][C]20[/C][C]0.0474235347152211[/C][C]0.0948470694304422[/C][C]0.95257646528478[/C][/ROW]
[ROW][C]21[/C][C]0.0199295154048947[/C][C]0.0398590308097894[/C][C]0.980070484595105[/C][/ROW]
[ROW][C]22[/C][C]0.33626285068218[/C][C]0.67252570136436[/C][C]0.66373714931782[/C][/ROW]
[ROW][C]23[/C][C]0.256893983121180[/C][C]0.513787966242359[/C][C]0.743106016878820[/C][/ROW]
[ROW][C]24[/C][C]0.243423559801891[/C][C]0.486847119603783[/C][C]0.756576440198109[/C][/ROW]
[ROW][C]25[/C][C]0.162235360667181[/C][C]0.324470721334361[/C][C]0.83776463933282[/C][/ROW]
[ROW][C]26[/C][C]0.143944282298391[/C][C]0.287888564596782[/C][C]0.856055717701609[/C][/ROW]
[ROW][C]27[/C][C]0.212250147057955[/C][C]0.424500294115910[/C][C]0.787749852942045[/C][/ROW]
[ROW][C]28[/C][C]0.152482212898269[/C][C]0.304964425796539[/C][C]0.84751778710173[/C][/ROW]
[ROW][C]29[/C][C]0.117896606932236[/C][C]0.235793213864473[/C][C]0.882103393067764[/C][/ROW]
[ROW][C]30[/C][C]0.127600706191216[/C][C]0.255201412382432[/C][C]0.872399293808784[/C][/ROW]
[ROW][C]31[/C][C]0.297335119147114[/C][C]0.594670238294229[/C][C]0.702664880852885[/C][/ROW]
[ROW][C]32[/C][C]0.444727132441478[/C][C]0.889454264882957[/C][C]0.555272867558521[/C][/ROW]
[ROW][C]33[/C][C]0.537645440291964[/C][C]0.924709119416072[/C][C]0.462354559708036[/C][/ROW]
[ROW][C]34[/C][C]0.445976725922443[/C][C]0.891953451844886[/C][C]0.554023274077557[/C][/ROW]
[ROW][C]35[/C][C]0.461052492918866[/C][C]0.922104985837733[/C][C]0.538947507081134[/C][/ROW]
[ROW][C]36[/C][C]0.424755292263422[/C][C]0.849510584526844[/C][C]0.575244707736578[/C][/ROW]
[ROW][C]37[/C][C]0.786116215129241[/C][C]0.427767569741517[/C][C]0.213883784870759[/C][/ROW]
[ROW][C]38[/C][C]0.698885028455685[/C][C]0.602229943088629[/C][C]0.301114971544315[/C][/ROW]
[ROW][C]39[/C][C]0.54475091640926[/C][C]0.91049816718148[/C][C]0.45524908359074[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68919&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68919&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
190.1103866840216650.220773368043330.889613315978335
200.04742353471522110.09484706943044220.95257646528478
210.01992951540489470.03985903080978940.980070484595105
220.336262850682180.672525701364360.66373714931782
230.2568939831211800.5137879662423590.743106016878820
240.2434235598018910.4868471196037830.756576440198109
250.1622353606671810.3244707213343610.83776463933282
260.1439442822983910.2878885645967820.856055717701609
270.2122501470579550.4245002941159100.787749852942045
280.1524822128982690.3049644257965390.84751778710173
290.1178966069322360.2357932138644730.882103393067764
300.1276007061912160.2552014123824320.872399293808784
310.2973351191471140.5946702382942290.702664880852885
320.4447271324414780.8894542648829570.555272867558521
330.5376454402919640.9247091194160720.462354559708036
340.4459767259224430.8919534518448860.554023274077557
350.4610524929188660.9221049858377330.538947507081134
360.4247552922634220.8495105845268440.575244707736578
370.7861162151292410.4277675697415170.213883784870759
380.6988850284556850.6022299430886290.301114971544315
390.544750916409260.910498167181480.45524908359074







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

\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 & 1 & 0.0476190476190476 & OK \tabularnewline
10% type I error level & 2 & 0.0952380952380952 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68919&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]1[/C][C]0.0476190476190476[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]2[/C][C]0.0952380952380952[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68919&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68919&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 level10.0476190476190476OK
10% type I error level20.0952380952380952OK



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