Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 07:55:22 -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/t1258728970y992ndlc489d6i4.htm/, Retrieved Sat, 20 Apr 2024 02:17:00 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58236, Retrieved Sat, 20 Apr 2024 02:17:00 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact113
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]
-   PD      [Multiple Regression] [WS 7.3] [2009-11-20 14:55:22] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
9.9	8.2
9.8	8
9.3	7.5
8.3	6.8
8	6.5
8.5	6.6
10.4	7.6
11.1	8
10.9	8.1
10	7.7
9.2	7.5
9.2	7.6
9.5	7.8
9.6	7.8
9.5	7.8
9.1	7.5
8.9	7.5
9	7.1
10.1	7.5
10.3	7.5
10.2	7.6
9.6	7.7
9.2	7.7
9.3	7.9
9.4	8.1
9.4	8.2
9.2	8.2
9	8.2
9	7.9
9	7.3
9.8	6.9
10	6.6
9.8	6.7
9.3	6.9
9	7
9	7.1
9.1	7.2
9.1	7.1
9.1	6.9
9.2	7
8.8	6.8
8.3	6.4
8.4	6.7
8.1	6.6
7.7	6.4
7.9	6.3
7.9	6.2
8	6.5
7.9	6.8
7.6	6.8
7.1	6.4
6.8	6.1
6.5	5.8
6.9	6.1
8.2	7.2
8.7	7.3
8.3	6.9
7.9	6.1
7.5	5.8
7.8	6.2




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=58236&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=58236&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58236&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
WLVrouw[t] = + 4.27824764466338 + 0.7361871878754WLMan[t] -0.161515411368572M1[t] -0.169408779657346M2[t] -0.244788454128544M3[t] -0.405444384842235M4[t] -0.460824059313433M5[t] -0.190927477542139M6[t] + 0.518361816473883M7[t] + 0.786297216912588M8[t] + 0.593127592381327M9[t] + 0.323024174152621M10[t] + 0.039302037136374M11[t] -0.0226591441962139t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
WLVrouw[t] =  +  4.27824764466338 +  0.7361871878754WLMan[t] -0.161515411368572M1[t] -0.169408779657346M2[t] -0.244788454128544M3[t] -0.405444384842235M4[t] -0.460824059313433M5[t] -0.190927477542139M6[t] +  0.518361816473883M7[t] +  0.786297216912588M8[t] +  0.593127592381327M9[t] +  0.323024174152621M10[t] +  0.039302037136374M11[t] -0.0226591441962139t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58236&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]WLVrouw[t] =  +  4.27824764466338 +  0.7361871878754WLMan[t] -0.161515411368572M1[t] -0.169408779657346M2[t] -0.244788454128544M3[t] -0.405444384842235M4[t] -0.460824059313433M5[t] -0.190927477542139M6[t] +  0.518361816473883M7[t] +  0.786297216912588M8[t] +  0.593127592381327M9[t] +  0.323024174152621M10[t] +  0.039302037136374M11[t] -0.0226591441962139t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58236&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58236&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
WLVrouw[t] = + 4.27824764466338 + 0.7361871878754WLMan[t] -0.161515411368572M1[t] -0.169408779657346M2[t] -0.244788454128544M3[t] -0.405444384842235M4[t] -0.460824059313433M5[t] -0.190927477542139M6[t] + 0.518361816473883M7[t] + 0.786297216912588M8[t] + 0.593127592381327M9[t] + 0.323024174152621M10[t] + 0.039302037136374M11[t] -0.0226591441962139t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)4.278247644663381.1905973.59340.0007920.000396
WLMan0.73618718787540.1458975.04598e-064e-06
M1-0.1615154113685720.311833-0.5180.6069730.303486
M2-0.1694087796573460.311101-0.54450.5886960.294348
M3-0.2447884541285440.308421-0.79370.4314560.215728
M4-0.4054443848422350.308572-1.31390.1953820.097691
M5-0.4608240593134330.311452-1.47960.1457970.072899
M6-0.1909274775421390.316203-0.60380.5489340.274467
M70.5183618164738830.3070081.68840.0980980.049049
M80.7862972169125880.3068592.56240.0137340.006867
M90.5931275923813270.3066531.93420.0592540.029627
M100.3230241741526210.3075511.05030.2990620.149531
M110.0393020371363740.3085580.12740.89920.4496
t-0.02265914419621390.005221-4.33977.7e-053.9e-05

\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) & 4.27824764466338 & 1.190597 & 3.5934 & 0.000792 & 0.000396 \tabularnewline
WLMan & 0.7361871878754 & 0.145897 & 5.0459 & 8e-06 & 4e-06 \tabularnewline
M1 & -0.161515411368572 & 0.311833 & -0.518 & 0.606973 & 0.303486 \tabularnewline
M2 & -0.169408779657346 & 0.311101 & -0.5445 & 0.588696 & 0.294348 \tabularnewline
M3 & -0.244788454128544 & 0.308421 & -0.7937 & 0.431456 & 0.215728 \tabularnewline
M4 & -0.405444384842235 & 0.308572 & -1.3139 & 0.195382 & 0.097691 \tabularnewline
M5 & -0.460824059313433 & 0.311452 & -1.4796 & 0.145797 & 0.072899 \tabularnewline
M6 & -0.190927477542139 & 0.316203 & -0.6038 & 0.548934 & 0.274467 \tabularnewline
M7 & 0.518361816473883 & 0.307008 & 1.6884 & 0.098098 & 0.049049 \tabularnewline
M8 & 0.786297216912588 & 0.306859 & 2.5624 & 0.013734 & 0.006867 \tabularnewline
M9 & 0.593127592381327 & 0.306653 & 1.9342 & 0.059254 & 0.029627 \tabularnewline
M10 & 0.323024174152621 & 0.307551 & 1.0503 & 0.299062 & 0.149531 \tabularnewline
M11 & 0.039302037136374 & 0.308558 & 0.1274 & 0.8992 & 0.4496 \tabularnewline
t & -0.0226591441962139 & 0.005221 & -4.3397 & 7.7e-05 & 3.9e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58236&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]4.27824764466338[/C][C]1.190597[/C][C]3.5934[/C][C]0.000792[/C][C]0.000396[/C][/ROW]
[ROW][C]WLMan[/C][C]0.7361871878754[/C][C]0.145897[/C][C]5.0459[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M1[/C][C]-0.161515411368572[/C][C]0.311833[/C][C]-0.518[/C][C]0.606973[/C][C]0.303486[/C][/ROW]
[ROW][C]M2[/C][C]-0.169408779657346[/C][C]0.311101[/C][C]-0.5445[/C][C]0.588696[/C][C]0.294348[/C][/ROW]
[ROW][C]M3[/C][C]-0.244788454128544[/C][C]0.308421[/C][C]-0.7937[/C][C]0.431456[/C][C]0.215728[/C][/ROW]
[ROW][C]M4[/C][C]-0.405444384842235[/C][C]0.308572[/C][C]-1.3139[/C][C]0.195382[/C][C]0.097691[/C][/ROW]
[ROW][C]M5[/C][C]-0.460824059313433[/C][C]0.311452[/C][C]-1.4796[/C][C]0.145797[/C][C]0.072899[/C][/ROW]
[ROW][C]M6[/C][C]-0.190927477542139[/C][C]0.316203[/C][C]-0.6038[/C][C]0.548934[/C][C]0.274467[/C][/ROW]
[ROW][C]M7[/C][C]0.518361816473883[/C][C]0.307008[/C][C]1.6884[/C][C]0.098098[/C][C]0.049049[/C][/ROW]
[ROW][C]M8[/C][C]0.786297216912588[/C][C]0.306859[/C][C]2.5624[/C][C]0.013734[/C][C]0.006867[/C][/ROW]
[ROW][C]M9[/C][C]0.593127592381327[/C][C]0.306653[/C][C]1.9342[/C][C]0.059254[/C][C]0.029627[/C][/ROW]
[ROW][C]M10[/C][C]0.323024174152621[/C][C]0.307551[/C][C]1.0503[/C][C]0.299062[/C][C]0.149531[/C][/ROW]
[ROW][C]M11[/C][C]0.039302037136374[/C][C]0.308558[/C][C]0.1274[/C][C]0.8992[/C][C]0.4496[/C][/ROW]
[ROW][C]t[/C][C]-0.0226591441962139[/C][C]0.005221[/C][C]-4.3397[/C][C]7.7e-05[/C][C]3.9e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58236&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58236&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)4.278247644663381.1905973.59340.0007920.000396
WLMan0.73618718787540.1458975.04598e-064e-06
M1-0.1615154113685720.311833-0.5180.6069730.303486
M2-0.1694087796573460.311101-0.54450.5886960.294348
M3-0.2447884541285440.308421-0.79370.4314560.215728
M4-0.4054443848422350.308572-1.31390.1953820.097691
M5-0.4608240593134330.311452-1.47960.1457970.072899
M6-0.1909274775421390.316203-0.60380.5489340.274467
M70.5183618164738830.3070081.68840.0980980.049049
M80.7862972169125880.3068592.56240.0137340.006867
M90.5931275923813270.3066531.93420.0592540.029627
M100.3230241741526210.3075511.05030.2990620.149531
M110.0393020371363740.3085580.12740.89920.4496
t-0.02265914419621390.005221-4.33977.7e-053.9e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.900983958337249
R-squared0.811772093181057
Adjusted R-squared0.758577249949617
F-TEST (value)15.2603531445557
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.53033141714332e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.484544056241358
Sum Squared Residuals10.8000153521861

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.900983958337249 \tabularnewline
R-squared & 0.811772093181057 \tabularnewline
Adjusted R-squared & 0.758577249949617 \tabularnewline
F-TEST (value) & 15.2603531445557 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.53033141714332e-12 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.484544056241358 \tabularnewline
Sum Squared Residuals & 10.8000153521861 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58236&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.900983958337249[/C][/ROW]
[ROW][C]R-squared[/C][C]0.811772093181057[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.758577249949617[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]15.2603531445557[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]1.53033141714332e-12[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.484544056241358[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]10.8000153521861[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58236&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58236&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.900983958337249
R-squared0.811772093181057
Adjusted R-squared0.758577249949617
F-TEST (value)15.2603531445557
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.53033141714332e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.484544056241358
Sum Squared Residuals10.8000153521861







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
19.910.1308080296768-0.230808029676850
29.89.9530180796168-0.153018079616801
39.39.48688566701169-0.186885667011687
48.38.788239560589-0.488239560589004
588.48934458555897-0.489344585558973
68.58.8102007419216-0.310200741921593
710.410.23301807961680.166981920383200
811.110.77276921100950.327230788990547
910.910.63055916106950.269440838930484
101010.0433217234944-0.0433217234944362
119.29.5897030047069-0.389703004706897
129.29.60136054216185-0.401360542161849
139.59.56442342417214-0.064423424172142
149.69.533870911687150.0661290883128454
159.59.435832093019740.0641679069802581
169.19.031660861747220.0683391382527815
178.98.9536220430798-0.0536220430798058
1898.906384605504730.0936153944952737
1910.19.88748963047470.212510369525305
2010.310.13276588671720.167234113282815
2110.29.990555836777250.209444163222749
229.69.77141199313987-0.171411993139870
239.29.46503071192741-0.265030711927410
249.39.5503069681699-0.250306968169901
259.49.5133698501802-0.113369850180195
269.49.55643605648275-0.156436056482747
279.29.45839723781534-0.258397237815336
2899.27508216290543-0.275082162905431
2998.97618718787540.0238128121246005
3098.781712312725240.21828768727476
319.89.173867587394890.626132412605112
32109.198287687274760.80171231272524
339.89.056077637334830.743922362665176
349.38.910552512484990.389447487515016
3598.677789950060060.322210049939937
3698.689447487515020.310552512484984
379.18.578891650737770.52110834926223
389.18.474720419465240.625279580534758
399.18.229444163222750.87055583677725
409.28.119747807100391.08025219289961
418.87.89447155085790.905528449142107
428.37.847234113282810.452765886717186
438.48.75472041946524-0.354720419465242
448.18.9263779569202-0.826377956920194
457.78.56331175061764-0.863311750617638
467.98.19693046940518-0.296930469405178
477.97.816930469405180.0830695305948227
4887.975825444435210.0241745555647900
497.98.01250704523304-0.112507045233043
507.67.98195453274806-0.381954532748056
517.17.58944083893048-0.489440838930484
526.87.18526960765796-0.38526960765796
536.56.88637463262793-0.386374632627928
546.97.35446822656563-0.454468226565628
558.28.85090428304838-0.650904283048376
568.79.1697992580784-0.469799258078408
578.38.65949561420077-0.359495614200771
587.97.777783301475530.122216698524469
597.57.250545863900450.249454136099548
607.87.483059557718020.316940442281976

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 9.9 & 10.1308080296768 & -0.230808029676850 \tabularnewline
2 & 9.8 & 9.9530180796168 & -0.153018079616801 \tabularnewline
3 & 9.3 & 9.48688566701169 & -0.186885667011687 \tabularnewline
4 & 8.3 & 8.788239560589 & -0.488239560589004 \tabularnewline
5 & 8 & 8.48934458555897 & -0.489344585558973 \tabularnewline
6 & 8.5 & 8.8102007419216 & -0.310200741921593 \tabularnewline
7 & 10.4 & 10.2330180796168 & 0.166981920383200 \tabularnewline
8 & 11.1 & 10.7727692110095 & 0.327230788990547 \tabularnewline
9 & 10.9 & 10.6305591610695 & 0.269440838930484 \tabularnewline
10 & 10 & 10.0433217234944 & -0.0433217234944362 \tabularnewline
11 & 9.2 & 9.5897030047069 & -0.389703004706897 \tabularnewline
12 & 9.2 & 9.60136054216185 & -0.401360542161849 \tabularnewline
13 & 9.5 & 9.56442342417214 & -0.064423424172142 \tabularnewline
14 & 9.6 & 9.53387091168715 & 0.0661290883128454 \tabularnewline
15 & 9.5 & 9.43583209301974 & 0.0641679069802581 \tabularnewline
16 & 9.1 & 9.03166086174722 & 0.0683391382527815 \tabularnewline
17 & 8.9 & 8.9536220430798 & -0.0536220430798058 \tabularnewline
18 & 9 & 8.90638460550473 & 0.0936153944952737 \tabularnewline
19 & 10.1 & 9.8874896304747 & 0.212510369525305 \tabularnewline
20 & 10.3 & 10.1327658867172 & 0.167234113282815 \tabularnewline
21 & 10.2 & 9.99055583677725 & 0.209444163222749 \tabularnewline
22 & 9.6 & 9.77141199313987 & -0.171411993139870 \tabularnewline
23 & 9.2 & 9.46503071192741 & -0.265030711927410 \tabularnewline
24 & 9.3 & 9.5503069681699 & -0.250306968169901 \tabularnewline
25 & 9.4 & 9.5133698501802 & -0.113369850180195 \tabularnewline
26 & 9.4 & 9.55643605648275 & -0.156436056482747 \tabularnewline
27 & 9.2 & 9.45839723781534 & -0.258397237815336 \tabularnewline
28 & 9 & 9.27508216290543 & -0.275082162905431 \tabularnewline
29 & 9 & 8.9761871878754 & 0.0238128121246005 \tabularnewline
30 & 9 & 8.78171231272524 & 0.21828768727476 \tabularnewline
31 & 9.8 & 9.17386758739489 & 0.626132412605112 \tabularnewline
32 & 10 & 9.19828768727476 & 0.80171231272524 \tabularnewline
33 & 9.8 & 9.05607763733483 & 0.743922362665176 \tabularnewline
34 & 9.3 & 8.91055251248499 & 0.389447487515016 \tabularnewline
35 & 9 & 8.67778995006006 & 0.322210049939937 \tabularnewline
36 & 9 & 8.68944748751502 & 0.310552512484984 \tabularnewline
37 & 9.1 & 8.57889165073777 & 0.52110834926223 \tabularnewline
38 & 9.1 & 8.47472041946524 & 0.625279580534758 \tabularnewline
39 & 9.1 & 8.22944416322275 & 0.87055583677725 \tabularnewline
40 & 9.2 & 8.11974780710039 & 1.08025219289961 \tabularnewline
41 & 8.8 & 7.8944715508579 & 0.905528449142107 \tabularnewline
42 & 8.3 & 7.84723411328281 & 0.452765886717186 \tabularnewline
43 & 8.4 & 8.75472041946524 & -0.354720419465242 \tabularnewline
44 & 8.1 & 8.9263779569202 & -0.826377956920194 \tabularnewline
45 & 7.7 & 8.56331175061764 & -0.863311750617638 \tabularnewline
46 & 7.9 & 8.19693046940518 & -0.296930469405178 \tabularnewline
47 & 7.9 & 7.81693046940518 & 0.0830695305948227 \tabularnewline
48 & 8 & 7.97582544443521 & 0.0241745555647900 \tabularnewline
49 & 7.9 & 8.01250704523304 & -0.112507045233043 \tabularnewline
50 & 7.6 & 7.98195453274806 & -0.381954532748056 \tabularnewline
51 & 7.1 & 7.58944083893048 & -0.489440838930484 \tabularnewline
52 & 6.8 & 7.18526960765796 & -0.38526960765796 \tabularnewline
53 & 6.5 & 6.88637463262793 & -0.386374632627928 \tabularnewline
54 & 6.9 & 7.35446822656563 & -0.454468226565628 \tabularnewline
55 & 8.2 & 8.85090428304838 & -0.650904283048376 \tabularnewline
56 & 8.7 & 9.1697992580784 & -0.469799258078408 \tabularnewline
57 & 8.3 & 8.65949561420077 & -0.359495614200771 \tabularnewline
58 & 7.9 & 7.77778330147553 & 0.122216698524469 \tabularnewline
59 & 7.5 & 7.25054586390045 & 0.249454136099548 \tabularnewline
60 & 7.8 & 7.48305955771802 & 0.316940442281976 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58236&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]9.9[/C][C]10.1308080296768[/C][C]-0.230808029676850[/C][/ROW]
[ROW][C]2[/C][C]9.8[/C][C]9.9530180796168[/C][C]-0.153018079616801[/C][/ROW]
[ROW][C]3[/C][C]9.3[/C][C]9.48688566701169[/C][C]-0.186885667011687[/C][/ROW]
[ROW][C]4[/C][C]8.3[/C][C]8.788239560589[/C][C]-0.488239560589004[/C][/ROW]
[ROW][C]5[/C][C]8[/C][C]8.48934458555897[/C][C]-0.489344585558973[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.8102007419216[/C][C]-0.310200741921593[/C][/ROW]
[ROW][C]7[/C][C]10.4[/C][C]10.2330180796168[/C][C]0.166981920383200[/C][/ROW]
[ROW][C]8[/C][C]11.1[/C][C]10.7727692110095[/C][C]0.327230788990547[/C][/ROW]
[ROW][C]9[/C][C]10.9[/C][C]10.6305591610695[/C][C]0.269440838930484[/C][/ROW]
[ROW][C]10[/C][C]10[/C][C]10.0433217234944[/C][C]-0.0433217234944362[/C][/ROW]
[ROW][C]11[/C][C]9.2[/C][C]9.5897030047069[/C][C]-0.389703004706897[/C][/ROW]
[ROW][C]12[/C][C]9.2[/C][C]9.60136054216185[/C][C]-0.401360542161849[/C][/ROW]
[ROW][C]13[/C][C]9.5[/C][C]9.56442342417214[/C][C]-0.064423424172142[/C][/ROW]
[ROW][C]14[/C][C]9.6[/C][C]9.53387091168715[/C][C]0.0661290883128454[/C][/ROW]
[ROW][C]15[/C][C]9.5[/C][C]9.43583209301974[/C][C]0.0641679069802581[/C][/ROW]
[ROW][C]16[/C][C]9.1[/C][C]9.03166086174722[/C][C]0.0683391382527815[/C][/ROW]
[ROW][C]17[/C][C]8.9[/C][C]8.9536220430798[/C][C]-0.0536220430798058[/C][/ROW]
[ROW][C]18[/C][C]9[/C][C]8.90638460550473[/C][C]0.0936153944952737[/C][/ROW]
[ROW][C]19[/C][C]10.1[/C][C]9.8874896304747[/C][C]0.212510369525305[/C][/ROW]
[ROW][C]20[/C][C]10.3[/C][C]10.1327658867172[/C][C]0.167234113282815[/C][/ROW]
[ROW][C]21[/C][C]10.2[/C][C]9.99055583677725[/C][C]0.209444163222749[/C][/ROW]
[ROW][C]22[/C][C]9.6[/C][C]9.77141199313987[/C][C]-0.171411993139870[/C][/ROW]
[ROW][C]23[/C][C]9.2[/C][C]9.46503071192741[/C][C]-0.265030711927410[/C][/ROW]
[ROW][C]24[/C][C]9.3[/C][C]9.5503069681699[/C][C]-0.250306968169901[/C][/ROW]
[ROW][C]25[/C][C]9.4[/C][C]9.5133698501802[/C][C]-0.113369850180195[/C][/ROW]
[ROW][C]26[/C][C]9.4[/C][C]9.55643605648275[/C][C]-0.156436056482747[/C][/ROW]
[ROW][C]27[/C][C]9.2[/C][C]9.45839723781534[/C][C]-0.258397237815336[/C][/ROW]
[ROW][C]28[/C][C]9[/C][C]9.27508216290543[/C][C]-0.275082162905431[/C][/ROW]
[ROW][C]29[/C][C]9[/C][C]8.9761871878754[/C][C]0.0238128121246005[/C][/ROW]
[ROW][C]30[/C][C]9[/C][C]8.78171231272524[/C][C]0.21828768727476[/C][/ROW]
[ROW][C]31[/C][C]9.8[/C][C]9.17386758739489[/C][C]0.626132412605112[/C][/ROW]
[ROW][C]32[/C][C]10[/C][C]9.19828768727476[/C][C]0.80171231272524[/C][/ROW]
[ROW][C]33[/C][C]9.8[/C][C]9.05607763733483[/C][C]0.743922362665176[/C][/ROW]
[ROW][C]34[/C][C]9.3[/C][C]8.91055251248499[/C][C]0.389447487515016[/C][/ROW]
[ROW][C]35[/C][C]9[/C][C]8.67778995006006[/C][C]0.322210049939937[/C][/ROW]
[ROW][C]36[/C][C]9[/C][C]8.68944748751502[/C][C]0.310552512484984[/C][/ROW]
[ROW][C]37[/C][C]9.1[/C][C]8.57889165073777[/C][C]0.52110834926223[/C][/ROW]
[ROW][C]38[/C][C]9.1[/C][C]8.47472041946524[/C][C]0.625279580534758[/C][/ROW]
[ROW][C]39[/C][C]9.1[/C][C]8.22944416322275[/C][C]0.87055583677725[/C][/ROW]
[ROW][C]40[/C][C]9.2[/C][C]8.11974780710039[/C][C]1.08025219289961[/C][/ROW]
[ROW][C]41[/C][C]8.8[/C][C]7.8944715508579[/C][C]0.905528449142107[/C][/ROW]
[ROW][C]42[/C][C]8.3[/C][C]7.84723411328281[/C][C]0.452765886717186[/C][/ROW]
[ROW][C]43[/C][C]8.4[/C][C]8.75472041946524[/C][C]-0.354720419465242[/C][/ROW]
[ROW][C]44[/C][C]8.1[/C][C]8.9263779569202[/C][C]-0.826377956920194[/C][/ROW]
[ROW][C]45[/C][C]7.7[/C][C]8.56331175061764[/C][C]-0.863311750617638[/C][/ROW]
[ROW][C]46[/C][C]7.9[/C][C]8.19693046940518[/C][C]-0.296930469405178[/C][/ROW]
[ROW][C]47[/C][C]7.9[/C][C]7.81693046940518[/C][C]0.0830695305948227[/C][/ROW]
[ROW][C]48[/C][C]8[/C][C]7.97582544443521[/C][C]0.0241745555647900[/C][/ROW]
[ROW][C]49[/C][C]7.9[/C][C]8.01250704523304[/C][C]-0.112507045233043[/C][/ROW]
[ROW][C]50[/C][C]7.6[/C][C]7.98195453274806[/C][C]-0.381954532748056[/C][/ROW]
[ROW][C]51[/C][C]7.1[/C][C]7.58944083893048[/C][C]-0.489440838930484[/C][/ROW]
[ROW][C]52[/C][C]6.8[/C][C]7.18526960765796[/C][C]-0.38526960765796[/C][/ROW]
[ROW][C]53[/C][C]6.5[/C][C]6.88637463262793[/C][C]-0.386374632627928[/C][/ROW]
[ROW][C]54[/C][C]6.9[/C][C]7.35446822656563[/C][C]-0.454468226565628[/C][/ROW]
[ROW][C]55[/C][C]8.2[/C][C]8.85090428304838[/C][C]-0.650904283048376[/C][/ROW]
[ROW][C]56[/C][C]8.7[/C][C]9.1697992580784[/C][C]-0.469799258078408[/C][/ROW]
[ROW][C]57[/C][C]8.3[/C][C]8.65949561420077[/C][C]-0.359495614200771[/C][/ROW]
[ROW][C]58[/C][C]7.9[/C][C]7.77778330147553[/C][C]0.122216698524469[/C][/ROW]
[ROW][C]59[/C][C]7.5[/C][C]7.25054586390045[/C][C]0.249454136099548[/C][/ROW]
[ROW][C]60[/C][C]7.8[/C][C]7.48305955771802[/C][C]0.316940442281976[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58236&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58236&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
19.910.1308080296768-0.230808029676850
29.89.9530180796168-0.153018079616801
39.39.48688566701169-0.186885667011687
48.38.788239560589-0.488239560589004
588.48934458555897-0.489344585558973
68.58.8102007419216-0.310200741921593
710.410.23301807961680.166981920383200
811.110.77276921100950.327230788990547
910.910.63055916106950.269440838930484
101010.0433217234944-0.0433217234944362
119.29.5897030047069-0.389703004706897
129.29.60136054216185-0.401360542161849
139.59.56442342417214-0.064423424172142
149.69.533870911687150.0661290883128454
159.59.435832093019740.0641679069802581
169.19.031660861747220.0683391382527815
178.98.9536220430798-0.0536220430798058
1898.906384605504730.0936153944952737
1910.19.88748963047470.212510369525305
2010.310.13276588671720.167234113282815
2110.29.990555836777250.209444163222749
229.69.77141199313987-0.171411993139870
239.29.46503071192741-0.265030711927410
249.39.5503069681699-0.250306968169901
259.49.5133698501802-0.113369850180195
269.49.55643605648275-0.156436056482747
279.29.45839723781534-0.258397237815336
2899.27508216290543-0.275082162905431
2998.97618718787540.0238128121246005
3098.781712312725240.21828768727476
319.89.173867587394890.626132412605112
32109.198287687274760.80171231272524
339.89.056077637334830.743922362665176
349.38.910552512484990.389447487515016
3598.677789950060060.322210049939937
3698.689447487515020.310552512484984
379.18.578891650737770.52110834926223
389.18.474720419465240.625279580534758
399.18.229444163222750.87055583677725
409.28.119747807100391.08025219289961
418.87.89447155085790.905528449142107
428.37.847234113282810.452765886717186
438.48.75472041946524-0.354720419465242
448.18.9263779569202-0.826377956920194
457.78.56331175061764-0.863311750617638
467.98.19693046940518-0.296930469405178
477.97.816930469405180.0830695305948227
4887.975825444435210.0241745555647900
497.98.01250704523304-0.112507045233043
507.67.98195453274806-0.381954532748056
517.17.58944083893048-0.489440838930484
526.87.18526960765796-0.38526960765796
536.56.88637463262793-0.386374632627928
546.97.35446822656563-0.454468226565628
558.28.85090428304838-0.650904283048376
568.79.1697992580784-0.469799258078408
578.38.65949561420077-0.359495614200771
587.97.777783301475530.122216698524469
597.57.250545863900450.249454136099548
607.87.483059557718020.316940442281976







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.00335847720960270.00671695441920540.996641522790397
180.0003851993169391060.0007703986338782120.99961480068306
190.000212651833501460.000425303667002920.999787348166499
200.0001202447086483720.0002404894172967440.999879755291352
211.93117964550586e-053.86235929101171e-050.999980688203545
222.98791729495879e-055.97583458991757e-050.99997012082705
237.60636974065905e-061.52127394813181e-050.99999239363026
242.16031006069256e-064.32062012138513e-060.99999783968994
251.11548722344000e-062.23097444688000e-060.999998884512777
264.04438683342522e-068.08877366685045e-060.999995955613167
272.14488980810463e-054.28977961620927e-050.99997855110192
283.93670073080929e-057.87340146161857e-050.999960632992692
292.50778606514929e-055.01557213029857e-050.999974922139349
301.58133768155014e-053.16267536310027e-050.999984186623184
313.37058194846855e-056.74116389693711e-050.999966294180515
320.0001639527466053590.0003279054932107180.999836047253395
330.000517653967945520.001035307935891040.999482346032055
340.0002599855291533020.0005199710583066050.999740014470847
350.0006511796634658750.001302359326931750.999348820336534
360.001845010086947750.00369002017389550.998154989913052
370.0008750773752325030.001750154750465010.999124922624767
380.0007044817020717040.001408963404143410.999295518297928
390.002419347765450650.00483869553090130.99758065223455
400.01877378206194020.03754756412388040.98122621793806
410.05519277455598910.1103855491119780.94480722544401
420.4821941773957650.964388354791530.517805822604235
430.976106514293640.04778697141271930.0238934857063597

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0033584772096027 & 0.0067169544192054 & 0.996641522790397 \tabularnewline
18 & 0.000385199316939106 & 0.000770398633878212 & 0.99961480068306 \tabularnewline
19 & 0.00021265183350146 & 0.00042530366700292 & 0.999787348166499 \tabularnewline
20 & 0.000120244708648372 & 0.000240489417296744 & 0.999879755291352 \tabularnewline
21 & 1.93117964550586e-05 & 3.86235929101171e-05 & 0.999980688203545 \tabularnewline
22 & 2.98791729495879e-05 & 5.97583458991757e-05 & 0.99997012082705 \tabularnewline
23 & 7.60636974065905e-06 & 1.52127394813181e-05 & 0.99999239363026 \tabularnewline
24 & 2.16031006069256e-06 & 4.32062012138513e-06 & 0.99999783968994 \tabularnewline
25 & 1.11548722344000e-06 & 2.23097444688000e-06 & 0.999998884512777 \tabularnewline
26 & 4.04438683342522e-06 & 8.08877366685045e-06 & 0.999995955613167 \tabularnewline
27 & 2.14488980810463e-05 & 4.28977961620927e-05 & 0.99997855110192 \tabularnewline
28 & 3.93670073080929e-05 & 7.87340146161857e-05 & 0.999960632992692 \tabularnewline
29 & 2.50778606514929e-05 & 5.01557213029857e-05 & 0.999974922139349 \tabularnewline
30 & 1.58133768155014e-05 & 3.16267536310027e-05 & 0.999984186623184 \tabularnewline
31 & 3.37058194846855e-05 & 6.74116389693711e-05 & 0.999966294180515 \tabularnewline
32 & 0.000163952746605359 & 0.000327905493210718 & 0.999836047253395 \tabularnewline
33 & 0.00051765396794552 & 0.00103530793589104 & 0.999482346032055 \tabularnewline
34 & 0.000259985529153302 & 0.000519971058306605 & 0.999740014470847 \tabularnewline
35 & 0.000651179663465875 & 0.00130235932693175 & 0.999348820336534 \tabularnewline
36 & 0.00184501008694775 & 0.0036900201738955 & 0.998154989913052 \tabularnewline
37 & 0.000875077375232503 & 0.00175015475046501 & 0.999124922624767 \tabularnewline
38 & 0.000704481702071704 & 0.00140896340414341 & 0.999295518297928 \tabularnewline
39 & 0.00241934776545065 & 0.0048386955309013 & 0.99758065223455 \tabularnewline
40 & 0.0187737820619402 & 0.0375475641238804 & 0.98122621793806 \tabularnewline
41 & 0.0551927745559891 & 0.110385549111978 & 0.94480722544401 \tabularnewline
42 & 0.482194177395765 & 0.96438835479153 & 0.517805822604235 \tabularnewline
43 & 0.97610651429364 & 0.0477869714127193 & 0.0238934857063597 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58236&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.0033584772096027[/C][C]0.0067169544192054[/C][C]0.996641522790397[/C][/ROW]
[ROW][C]18[/C][C]0.000385199316939106[/C][C]0.000770398633878212[/C][C]0.99961480068306[/C][/ROW]
[ROW][C]19[/C][C]0.00021265183350146[/C][C]0.00042530366700292[/C][C]0.999787348166499[/C][/ROW]
[ROW][C]20[/C][C]0.000120244708648372[/C][C]0.000240489417296744[/C][C]0.999879755291352[/C][/ROW]
[ROW][C]21[/C][C]1.93117964550586e-05[/C][C]3.86235929101171e-05[/C][C]0.999980688203545[/C][/ROW]
[ROW][C]22[/C][C]2.98791729495879e-05[/C][C]5.97583458991757e-05[/C][C]0.99997012082705[/C][/ROW]
[ROW][C]23[/C][C]7.60636974065905e-06[/C][C]1.52127394813181e-05[/C][C]0.99999239363026[/C][/ROW]
[ROW][C]24[/C][C]2.16031006069256e-06[/C][C]4.32062012138513e-06[/C][C]0.99999783968994[/C][/ROW]
[ROW][C]25[/C][C]1.11548722344000e-06[/C][C]2.23097444688000e-06[/C][C]0.999998884512777[/C][/ROW]
[ROW][C]26[/C][C]4.04438683342522e-06[/C][C]8.08877366685045e-06[/C][C]0.999995955613167[/C][/ROW]
[ROW][C]27[/C][C]2.14488980810463e-05[/C][C]4.28977961620927e-05[/C][C]0.99997855110192[/C][/ROW]
[ROW][C]28[/C][C]3.93670073080929e-05[/C][C]7.87340146161857e-05[/C][C]0.999960632992692[/C][/ROW]
[ROW][C]29[/C][C]2.50778606514929e-05[/C][C]5.01557213029857e-05[/C][C]0.999974922139349[/C][/ROW]
[ROW][C]30[/C][C]1.58133768155014e-05[/C][C]3.16267536310027e-05[/C][C]0.999984186623184[/C][/ROW]
[ROW][C]31[/C][C]3.37058194846855e-05[/C][C]6.74116389693711e-05[/C][C]0.999966294180515[/C][/ROW]
[ROW][C]32[/C][C]0.000163952746605359[/C][C]0.000327905493210718[/C][C]0.999836047253395[/C][/ROW]
[ROW][C]33[/C][C]0.00051765396794552[/C][C]0.00103530793589104[/C][C]0.999482346032055[/C][/ROW]
[ROW][C]34[/C][C]0.000259985529153302[/C][C]0.000519971058306605[/C][C]0.999740014470847[/C][/ROW]
[ROW][C]35[/C][C]0.000651179663465875[/C][C]0.00130235932693175[/C][C]0.999348820336534[/C][/ROW]
[ROW][C]36[/C][C]0.00184501008694775[/C][C]0.0036900201738955[/C][C]0.998154989913052[/C][/ROW]
[ROW][C]37[/C][C]0.000875077375232503[/C][C]0.00175015475046501[/C][C]0.999124922624767[/C][/ROW]
[ROW][C]38[/C][C]0.000704481702071704[/C][C]0.00140896340414341[/C][C]0.999295518297928[/C][/ROW]
[ROW][C]39[/C][C]0.00241934776545065[/C][C]0.0048386955309013[/C][C]0.99758065223455[/C][/ROW]
[ROW][C]40[/C][C]0.0187737820619402[/C][C]0.0375475641238804[/C][C]0.98122621793806[/C][/ROW]
[ROW][C]41[/C][C]0.0551927745559891[/C][C]0.110385549111978[/C][C]0.94480722544401[/C][/ROW]
[ROW][C]42[/C][C]0.482194177395765[/C][C]0.96438835479153[/C][C]0.517805822604235[/C][/ROW]
[ROW][C]43[/C][C]0.97610651429364[/C][C]0.0477869714127193[/C][C]0.0238934857063597[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58236&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58236&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.00335847720960270.00671695441920540.996641522790397
180.0003851993169391060.0007703986338782120.99961480068306
190.000212651833501460.000425303667002920.999787348166499
200.0001202447086483720.0002404894172967440.999879755291352
211.93117964550586e-053.86235929101171e-050.999980688203545
222.98791729495879e-055.97583458991757e-050.99997012082705
237.60636974065905e-061.52127394813181e-050.99999239363026
242.16031006069256e-064.32062012138513e-060.99999783968994
251.11548722344000e-062.23097444688000e-060.999998884512777
264.04438683342522e-068.08877366685045e-060.999995955613167
272.14488980810463e-054.28977961620927e-050.99997855110192
283.93670073080929e-057.87340146161857e-050.999960632992692
292.50778606514929e-055.01557213029857e-050.999974922139349
301.58133768155014e-053.16267536310027e-050.999984186623184
313.37058194846855e-056.74116389693711e-050.999966294180515
320.0001639527466053590.0003279054932107180.999836047253395
330.000517653967945520.001035307935891040.999482346032055
340.0002599855291533020.0005199710583066050.999740014470847
350.0006511796634658750.001302359326931750.999348820336534
360.001845010086947750.00369002017389550.998154989913052
370.0008750773752325030.001750154750465010.999124922624767
380.0007044817020717040.001408963404143410.999295518297928
390.002419347765450650.00483869553090130.99758065223455
400.01877378206194020.03754756412388040.98122621793806
410.05519277455598910.1103855491119780.94480722544401
420.4821941773957650.964388354791530.517805822604235
430.976106514293640.04778697141271930.0238934857063597







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level230.851851851851852NOK
5% type I error level250.925925925925926NOK
10% type I error level250.925925925925926NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58236&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 level230.851851851851852NOK
5% type I error level250.925925925925926NOK
10% type I error level250.925925925925926NOK



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