Free Statistics

of Irreproducible Research!

Author's title

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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact120
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] [workshop 7] [2009-11-20 08:30:37] [f1a50df816abcbb519e7637ff6b72fa0]
-   PD      [Multiple Regression] [cs.shw.ws7.v4] [2009-11-26 16:24:55] [f03ef5b3db050a0e1a9e496be7848771]
-    D          [Multiple Regression] [ws7 seatbelt law ...] [2009-11-27 18:06:27] [a315839f8c359622c3a1e6ed387dd5cd] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.9	1.9
9	1.6
9	1.7
9	2
9	2.5
9	2.4
9	2.3
9	2.3
9	2.1
9	2.4
9	2.2
9.1	2.4
9	1.9
9	2.1
9.1	2.1
9	2.1
9	2
9	2.1
9	2.2
8.9	2.2
8.9	2.6
8.9	2.5
8.9	2.3
8.8	2.2
8.8	2.4
8.7	2.3
8.7	2.2
8.5	2.5
8.5	2.5
8.4	2.5
8.2	2.4
8.2	2.3
8.1	1.7
8.1	1.6
8	1.9
7.9	1.9
7.8	1.8
7.7	1.8
7.6	1.9
7.5	1.9
7.5	1.9
7.5	1.9
7.5	1.8
7.5	1.7
7.4	2.1
7.4	2.6
7.3	3.1
7.3	3.1
7.3	3.2
7.2	3.3
7.2	3.6
7.3	3.3
7.4	3.7
7.4	4
7.5	4
7.6	3.8
7.7	3.6
7.9	3.2
8	2.1
8.2	1.6




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
werkl[t] = + 9.50211597447777 + 0.0382783046099624infl[t] -0.305734809579039M1[t] -0.308084260797827M2[t] -0.274261542477623M3[t] -0.299673258065217M4[t] -0.248912804113808M5[t] -0.234324519701403M6[t] -0.215908404828002M7[t] -0.175961157770203M8[t] -0.157545042896801M9[t] -0.0821911923921968M10[t] -0.0599472470577996M11[t] -0.0368849826890027t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
werkl[t] =  +  9.50211597447777 +  0.0382783046099624infl[t] -0.305734809579039M1[t] -0.308084260797827M2[t] -0.274261542477623M3[t] -0.299673258065217M4[t] -0.248912804113808M5[t] -0.234324519701403M6[t] -0.215908404828002M7[t] -0.175961157770203M8[t] -0.157545042896801M9[t] -0.0821911923921968M10[t] -0.0599472470577996M11[t] -0.0368849826890027t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61069&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]werkl[t] =  +  9.50211597447777 +  0.0382783046099624infl[t] -0.305734809579039M1[t] -0.308084260797827M2[t] -0.274261542477623M3[t] -0.299673258065217M4[t] -0.248912804113808M5[t] -0.234324519701403M6[t] -0.215908404828002M7[t] -0.175961157770203M8[t] -0.157545042896801M9[t] -0.0821911923921968M10[t] -0.0599472470577996M11[t] -0.0368849826890027t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61069&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61069&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
werkl[t] = + 9.50211597447777 + 0.0382783046099624infl[t] -0.305734809579039M1[t] -0.308084260797827M2[t] -0.274261542477623M3[t] -0.299673258065217M4[t] -0.248912804113808M5[t] -0.234324519701403M6[t] -0.215908404828002M7[t] -0.175961157770203M8[t] -0.157545042896801M9[t] -0.0821911923921968M10[t] -0.0599472470577996M11[t] -0.0368849826890027t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)9.502115974477770.21712443.763500
infl0.03827830460996240.0817530.46820.6418410.32092
M1-0.3057348095790390.213143-1.43440.1582180.079109
M2-0.3080842607978270.212605-1.44910.1540960.077048
M3-0.2742615424776230.212696-1.28950.2036860.101843
M4-0.2996732580652170.212761-1.40850.1657070.082854
M5-0.2489128041138080.214034-1.1630.2508450.125422
M6-0.2343245197014030.214397-1.09290.2801080.140054
M7-0.2159084048280020.213464-1.01150.317090.158545
M8-0.1759611577702030.212269-0.8290.4114110.205705
M9-0.1575450428968010.211676-0.74430.4604950.230248
M10-0.08219119239219680.211768-0.38810.6997180.349859
M11-0.05994724705779960.210832-0.28430.7774290.388714
t-0.03688498268900270.002947-12.516600

\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) & 9.50211597447777 & 0.217124 & 43.7635 & 0 & 0 \tabularnewline
infl & 0.0382783046099624 & 0.081753 & 0.4682 & 0.641841 & 0.32092 \tabularnewline
M1 & -0.305734809579039 & 0.213143 & -1.4344 & 0.158218 & 0.079109 \tabularnewline
M2 & -0.308084260797827 & 0.212605 & -1.4491 & 0.154096 & 0.077048 \tabularnewline
M3 & -0.274261542477623 & 0.212696 & -1.2895 & 0.203686 & 0.101843 \tabularnewline
M4 & -0.299673258065217 & 0.212761 & -1.4085 & 0.165707 & 0.082854 \tabularnewline
M5 & -0.248912804113808 & 0.214034 & -1.163 & 0.250845 & 0.125422 \tabularnewline
M6 & -0.234324519701403 & 0.214397 & -1.0929 & 0.280108 & 0.140054 \tabularnewline
M7 & -0.215908404828002 & 0.213464 & -1.0115 & 0.31709 & 0.158545 \tabularnewline
M8 & -0.175961157770203 & 0.212269 & -0.829 & 0.411411 & 0.205705 \tabularnewline
M9 & -0.157545042896801 & 0.211676 & -0.7443 & 0.460495 & 0.230248 \tabularnewline
M10 & -0.0821911923921968 & 0.211768 & -0.3881 & 0.699718 & 0.349859 \tabularnewline
M11 & -0.0599472470577996 & 0.210832 & -0.2843 & 0.777429 & 0.388714 \tabularnewline
t & -0.0368849826890027 & 0.002947 & -12.5166 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61069&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]9.50211597447777[/C][C]0.217124[/C][C]43.7635[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]infl[/C][C]0.0382783046099624[/C][C]0.081753[/C][C]0.4682[/C][C]0.641841[/C][C]0.32092[/C][/ROW]
[ROW][C]M1[/C][C]-0.305734809579039[/C][C]0.213143[/C][C]-1.4344[/C][C]0.158218[/C][C]0.079109[/C][/ROW]
[ROW][C]M2[/C][C]-0.308084260797827[/C][C]0.212605[/C][C]-1.4491[/C][C]0.154096[/C][C]0.077048[/C][/ROW]
[ROW][C]M3[/C][C]-0.274261542477623[/C][C]0.212696[/C][C]-1.2895[/C][C]0.203686[/C][C]0.101843[/C][/ROW]
[ROW][C]M4[/C][C]-0.299673258065217[/C][C]0.212761[/C][C]-1.4085[/C][C]0.165707[/C][C]0.082854[/C][/ROW]
[ROW][C]M5[/C][C]-0.248912804113808[/C][C]0.214034[/C][C]-1.163[/C][C]0.250845[/C][C]0.125422[/C][/ROW]
[ROW][C]M6[/C][C]-0.234324519701403[/C][C]0.214397[/C][C]-1.0929[/C][C]0.280108[/C][C]0.140054[/C][/ROW]
[ROW][C]M7[/C][C]-0.215908404828002[/C][C]0.213464[/C][C]-1.0115[/C][C]0.31709[/C][C]0.158545[/C][/ROW]
[ROW][C]M8[/C][C]-0.175961157770203[/C][C]0.212269[/C][C]-0.829[/C][C]0.411411[/C][C]0.205705[/C][/ROW]
[ROW][C]M9[/C][C]-0.157545042896801[/C][C]0.211676[/C][C]-0.7443[/C][C]0.460495[/C][C]0.230248[/C][/ROW]
[ROW][C]M10[/C][C]-0.0821911923921968[/C][C]0.211768[/C][C]-0.3881[/C][C]0.699718[/C][C]0.349859[/C][/ROW]
[ROW][C]M11[/C][C]-0.0599472470577996[/C][C]0.210832[/C][C]-0.2843[/C][C]0.777429[/C][C]0.388714[/C][/ROW]
[ROW][C]t[/C][C]-0.0368849826890027[/C][C]0.002947[/C][C]-12.5166[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61069&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61069&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)9.502115974477770.21712443.763500
infl0.03827830460996240.0817530.46820.6418410.32092
M1-0.3057348095790390.213143-1.43440.1582180.079109
M2-0.3080842607978270.212605-1.44910.1540960.077048
M3-0.2742615424776230.212696-1.28950.2036860.101843
M4-0.2996732580652170.212761-1.40850.1657070.082854
M5-0.2489128041138080.214034-1.1630.2508450.125422
M6-0.2343245197014030.214397-1.09290.2801080.140054
M7-0.2159084048280020.213464-1.01150.317090.158545
M8-0.1759611577702030.212269-0.8290.4114110.205705
M9-0.1575450428968010.211676-0.74430.4604950.230248
M10-0.08219119239219680.211768-0.38810.6997180.349859
M11-0.05994724705779960.210832-0.28430.7774290.388714
t-0.03688498268900270.002947-12.516600







Multiple Linear Regression - Regression Statistics
Multiple R0.903710861624867
R-squared0.81669332141876
Adjusted R-squared0.764889260080584
F-TEST (value)15.7650442903963
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value8.58646487245096e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.333088119752957
Sum Squared Residuals5.10359399394578

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.903710861624867 \tabularnewline
R-squared & 0.81669332141876 \tabularnewline
Adjusted R-squared & 0.764889260080584 \tabularnewline
F-TEST (value) & 15.7650442903963 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 8.58646487245096e-13 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.333088119752957 \tabularnewline
Sum Squared Residuals & 5.10359399394578 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61069&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.903710861624867[/C][/ROW]
[ROW][C]R-squared[/C][C]0.81669332141876[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.764889260080584[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]15.7650442903963[/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]8.58646487245096e-13[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.333088119752957[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]5.10359399394578[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61069&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61069&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.903710861624867
R-squared0.81669332141876
Adjusted R-squared0.764889260080584
F-TEST (value)15.7650442903963
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value8.58646487245096e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.333088119752957
Sum Squared Residuals5.10359399394578







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.99.23222496096872-0.332224960968718
299.18150703567789-0.181507035677888
399.18227260177009-0.182272601770087
499.13145939487648-0.131459394876479
599.16447401844387-0.164474018443865
699.13834948970627-0.138349489706272
799.11605279142967-0.116052791429674
899.11911505579847-0.119115055798471
999.09299052706088-0.092990527060877
1099.14294288625947-0.142942886259467
1199.12064618798287-0.120646187982870
129.19.15136411327366-0.0513641132736598
1398.789605168700640.210394831299365
1498.758026395714840.241973604285163
159.18.754964131346040.34503586865396
1698.692667433069440.307332566930558
1798.702715073870850.297284926129148
1898.684246206055250.315753793944749
1998.669605168700650.330394831299355
208.98.672667433069440.227332566930558
218.98.669509887097830.230490112902174
228.98.704150924452430.195849075547569
238.98.681854226175830.218145773824167
248.88.701088660083630.0989113399163669
258.88.366124528737580.433875471262416
268.78.32306226436880.376937735631202
278.78.3161721695390.383827830460996
288.58.26535896264540.234641037354605
298.58.27923443390780.220765566092199
308.48.25693773563120.143062264368797
318.28.2346410373546-0.0346410373546059
328.28.2338754712624-0.0338754712624065
338.18.19243962068083-0.092439620680827
348.18.22708065803543-0.127080658035433
3588.22392311206382-0.223923112063816
367.98.24698537643261-0.346985376432612
377.87.90053775370357-0.100537753703574
387.77.86130331979578-0.161303319795783
397.67.86206888588798-0.262068885887982
407.57.79977218761139-0.299772187611385
417.57.81364765887379-0.313647658873791
427.57.79135096059719-0.291350960597193
437.57.7690542623206-0.269054262320595
447.57.7682886962284-0.268288696228396
457.47.76513115025678-0.365131150256779
467.47.82273917037736-0.422739170377362
477.37.82723728532774-0.527237285327739
487.37.85029954969654-0.550299549696535
497.37.51150758788949-0.211507587889489
507.27.4761009844427-0.276100984442694
517.27.48452221145689-0.284522211456886
527.37.4107420217973-0.110742021797300
537.47.43992881490369-0.0399288149036907
547.47.42911560801008-0.0291156080100815
557.57.410646740194480.08935325980552
567.67.406053343641280.193946656358715
577.77.379928814903690.320071185096309
587.97.40308636087530.496913639124693
5987.346339188449740.653660811550257
608.27.350262300513560.84973769948644

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.9 & 9.23222496096872 & -0.332224960968718 \tabularnewline
2 & 9 & 9.18150703567789 & -0.181507035677888 \tabularnewline
3 & 9 & 9.18227260177009 & -0.182272601770087 \tabularnewline
4 & 9 & 9.13145939487648 & -0.131459394876479 \tabularnewline
5 & 9 & 9.16447401844387 & -0.164474018443865 \tabularnewline
6 & 9 & 9.13834948970627 & -0.138349489706272 \tabularnewline
7 & 9 & 9.11605279142967 & -0.116052791429674 \tabularnewline
8 & 9 & 9.11911505579847 & -0.119115055798471 \tabularnewline
9 & 9 & 9.09299052706088 & -0.092990527060877 \tabularnewline
10 & 9 & 9.14294288625947 & -0.142942886259467 \tabularnewline
11 & 9 & 9.12064618798287 & -0.120646187982870 \tabularnewline
12 & 9.1 & 9.15136411327366 & -0.0513641132736598 \tabularnewline
13 & 9 & 8.78960516870064 & 0.210394831299365 \tabularnewline
14 & 9 & 8.75802639571484 & 0.241973604285163 \tabularnewline
15 & 9.1 & 8.75496413134604 & 0.34503586865396 \tabularnewline
16 & 9 & 8.69266743306944 & 0.307332566930558 \tabularnewline
17 & 9 & 8.70271507387085 & 0.297284926129148 \tabularnewline
18 & 9 & 8.68424620605525 & 0.315753793944749 \tabularnewline
19 & 9 & 8.66960516870065 & 0.330394831299355 \tabularnewline
20 & 8.9 & 8.67266743306944 & 0.227332566930558 \tabularnewline
21 & 8.9 & 8.66950988709783 & 0.230490112902174 \tabularnewline
22 & 8.9 & 8.70415092445243 & 0.195849075547569 \tabularnewline
23 & 8.9 & 8.68185422617583 & 0.218145773824167 \tabularnewline
24 & 8.8 & 8.70108866008363 & 0.0989113399163669 \tabularnewline
25 & 8.8 & 8.36612452873758 & 0.433875471262416 \tabularnewline
26 & 8.7 & 8.3230622643688 & 0.376937735631202 \tabularnewline
27 & 8.7 & 8.316172169539 & 0.383827830460996 \tabularnewline
28 & 8.5 & 8.2653589626454 & 0.234641037354605 \tabularnewline
29 & 8.5 & 8.2792344339078 & 0.220765566092199 \tabularnewline
30 & 8.4 & 8.2569377356312 & 0.143062264368797 \tabularnewline
31 & 8.2 & 8.2346410373546 & -0.0346410373546059 \tabularnewline
32 & 8.2 & 8.2338754712624 & -0.0338754712624065 \tabularnewline
33 & 8.1 & 8.19243962068083 & -0.092439620680827 \tabularnewline
34 & 8.1 & 8.22708065803543 & -0.127080658035433 \tabularnewline
35 & 8 & 8.22392311206382 & -0.223923112063816 \tabularnewline
36 & 7.9 & 8.24698537643261 & -0.346985376432612 \tabularnewline
37 & 7.8 & 7.90053775370357 & -0.100537753703574 \tabularnewline
38 & 7.7 & 7.86130331979578 & -0.161303319795783 \tabularnewline
39 & 7.6 & 7.86206888588798 & -0.262068885887982 \tabularnewline
40 & 7.5 & 7.79977218761139 & -0.299772187611385 \tabularnewline
41 & 7.5 & 7.81364765887379 & -0.313647658873791 \tabularnewline
42 & 7.5 & 7.79135096059719 & -0.291350960597193 \tabularnewline
43 & 7.5 & 7.7690542623206 & -0.269054262320595 \tabularnewline
44 & 7.5 & 7.7682886962284 & -0.268288696228396 \tabularnewline
45 & 7.4 & 7.76513115025678 & -0.365131150256779 \tabularnewline
46 & 7.4 & 7.82273917037736 & -0.422739170377362 \tabularnewline
47 & 7.3 & 7.82723728532774 & -0.527237285327739 \tabularnewline
48 & 7.3 & 7.85029954969654 & -0.550299549696535 \tabularnewline
49 & 7.3 & 7.51150758788949 & -0.211507587889489 \tabularnewline
50 & 7.2 & 7.4761009844427 & -0.276100984442694 \tabularnewline
51 & 7.2 & 7.48452221145689 & -0.284522211456886 \tabularnewline
52 & 7.3 & 7.4107420217973 & -0.110742021797300 \tabularnewline
53 & 7.4 & 7.43992881490369 & -0.0399288149036907 \tabularnewline
54 & 7.4 & 7.42911560801008 & -0.0291156080100815 \tabularnewline
55 & 7.5 & 7.41064674019448 & 0.08935325980552 \tabularnewline
56 & 7.6 & 7.40605334364128 & 0.193946656358715 \tabularnewline
57 & 7.7 & 7.37992881490369 & 0.320071185096309 \tabularnewline
58 & 7.9 & 7.4030863608753 & 0.496913639124693 \tabularnewline
59 & 8 & 7.34633918844974 & 0.653660811550257 \tabularnewline
60 & 8.2 & 7.35026230051356 & 0.84973769948644 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61069&T=4

[TABLE]
[ROW][C]Multiple Linear Regression - Actuals, Interpolation, and Residuals[/C][/ROW]
[ROW][C]Time or Index[/C][C]Actuals[/C][C]InterpolationForecast[/C][C]ResidualsPrediction Error[/C][/ROW]
[ROW][C]1[/C][C]8.9[/C][C]9.23222496096872[/C][C]-0.332224960968718[/C][/ROW]
[ROW][C]2[/C][C]9[/C][C]9.18150703567789[/C][C]-0.181507035677888[/C][/ROW]
[ROW][C]3[/C][C]9[/C][C]9.18227260177009[/C][C]-0.182272601770087[/C][/ROW]
[ROW][C]4[/C][C]9[/C][C]9.13145939487648[/C][C]-0.131459394876479[/C][/ROW]
[ROW][C]5[/C][C]9[/C][C]9.16447401844387[/C][C]-0.164474018443865[/C][/ROW]
[ROW][C]6[/C][C]9[/C][C]9.13834948970627[/C][C]-0.138349489706272[/C][/ROW]
[ROW][C]7[/C][C]9[/C][C]9.11605279142967[/C][C]-0.116052791429674[/C][/ROW]
[ROW][C]8[/C][C]9[/C][C]9.11911505579847[/C][C]-0.119115055798471[/C][/ROW]
[ROW][C]9[/C][C]9[/C][C]9.09299052706088[/C][C]-0.092990527060877[/C][/ROW]
[ROW][C]10[/C][C]9[/C][C]9.14294288625947[/C][C]-0.142942886259467[/C][/ROW]
[ROW][C]11[/C][C]9[/C][C]9.12064618798287[/C][C]-0.120646187982870[/C][/ROW]
[ROW][C]12[/C][C]9.1[/C][C]9.15136411327366[/C][C]-0.0513641132736598[/C][/ROW]
[ROW][C]13[/C][C]9[/C][C]8.78960516870064[/C][C]0.210394831299365[/C][/ROW]
[ROW][C]14[/C][C]9[/C][C]8.75802639571484[/C][C]0.241973604285163[/C][/ROW]
[ROW][C]15[/C][C]9.1[/C][C]8.75496413134604[/C][C]0.34503586865396[/C][/ROW]
[ROW][C]16[/C][C]9[/C][C]8.69266743306944[/C][C]0.307332566930558[/C][/ROW]
[ROW][C]17[/C][C]9[/C][C]8.70271507387085[/C][C]0.297284926129148[/C][/ROW]
[ROW][C]18[/C][C]9[/C][C]8.68424620605525[/C][C]0.315753793944749[/C][/ROW]
[ROW][C]19[/C][C]9[/C][C]8.66960516870065[/C][C]0.330394831299355[/C][/ROW]
[ROW][C]20[/C][C]8.9[/C][C]8.67266743306944[/C][C]0.227332566930558[/C][/ROW]
[ROW][C]21[/C][C]8.9[/C][C]8.66950988709783[/C][C]0.230490112902174[/C][/ROW]
[ROW][C]22[/C][C]8.9[/C][C]8.70415092445243[/C][C]0.195849075547569[/C][/ROW]
[ROW][C]23[/C][C]8.9[/C][C]8.68185422617583[/C][C]0.218145773824167[/C][/ROW]
[ROW][C]24[/C][C]8.8[/C][C]8.70108866008363[/C][C]0.0989113399163669[/C][/ROW]
[ROW][C]25[/C][C]8.8[/C][C]8.36612452873758[/C][C]0.433875471262416[/C][/ROW]
[ROW][C]26[/C][C]8.7[/C][C]8.3230622643688[/C][C]0.376937735631202[/C][/ROW]
[ROW][C]27[/C][C]8.7[/C][C]8.316172169539[/C][C]0.383827830460996[/C][/ROW]
[ROW][C]28[/C][C]8.5[/C][C]8.2653589626454[/C][C]0.234641037354605[/C][/ROW]
[ROW][C]29[/C][C]8.5[/C][C]8.2792344339078[/C][C]0.220765566092199[/C][/ROW]
[ROW][C]30[/C][C]8.4[/C][C]8.2569377356312[/C][C]0.143062264368797[/C][/ROW]
[ROW][C]31[/C][C]8.2[/C][C]8.2346410373546[/C][C]-0.0346410373546059[/C][/ROW]
[ROW][C]32[/C][C]8.2[/C][C]8.2338754712624[/C][C]-0.0338754712624065[/C][/ROW]
[ROW][C]33[/C][C]8.1[/C][C]8.19243962068083[/C][C]-0.092439620680827[/C][/ROW]
[ROW][C]34[/C][C]8.1[/C][C]8.22708065803543[/C][C]-0.127080658035433[/C][/ROW]
[ROW][C]35[/C][C]8[/C][C]8.22392311206382[/C][C]-0.223923112063816[/C][/ROW]
[ROW][C]36[/C][C]7.9[/C][C]8.24698537643261[/C][C]-0.346985376432612[/C][/ROW]
[ROW][C]37[/C][C]7.8[/C][C]7.90053775370357[/C][C]-0.100537753703574[/C][/ROW]
[ROW][C]38[/C][C]7.7[/C][C]7.86130331979578[/C][C]-0.161303319795783[/C][/ROW]
[ROW][C]39[/C][C]7.6[/C][C]7.86206888588798[/C][C]-0.262068885887982[/C][/ROW]
[ROW][C]40[/C][C]7.5[/C][C]7.79977218761139[/C][C]-0.299772187611385[/C][/ROW]
[ROW][C]41[/C][C]7.5[/C][C]7.81364765887379[/C][C]-0.313647658873791[/C][/ROW]
[ROW][C]42[/C][C]7.5[/C][C]7.79135096059719[/C][C]-0.291350960597193[/C][/ROW]
[ROW][C]43[/C][C]7.5[/C][C]7.7690542623206[/C][C]-0.269054262320595[/C][/ROW]
[ROW][C]44[/C][C]7.5[/C][C]7.7682886962284[/C][C]-0.268288696228396[/C][/ROW]
[ROW][C]45[/C][C]7.4[/C][C]7.76513115025678[/C][C]-0.365131150256779[/C][/ROW]
[ROW][C]46[/C][C]7.4[/C][C]7.82273917037736[/C][C]-0.422739170377362[/C][/ROW]
[ROW][C]47[/C][C]7.3[/C][C]7.82723728532774[/C][C]-0.527237285327739[/C][/ROW]
[ROW][C]48[/C][C]7.3[/C][C]7.85029954969654[/C][C]-0.550299549696535[/C][/ROW]
[ROW][C]49[/C][C]7.3[/C][C]7.51150758788949[/C][C]-0.211507587889489[/C][/ROW]
[ROW][C]50[/C][C]7.2[/C][C]7.4761009844427[/C][C]-0.276100984442694[/C][/ROW]
[ROW][C]51[/C][C]7.2[/C][C]7.48452221145689[/C][C]-0.284522211456886[/C][/ROW]
[ROW][C]52[/C][C]7.3[/C][C]7.4107420217973[/C][C]-0.110742021797300[/C][/ROW]
[ROW][C]53[/C][C]7.4[/C][C]7.43992881490369[/C][C]-0.0399288149036907[/C][/ROW]
[ROW][C]54[/C][C]7.4[/C][C]7.42911560801008[/C][C]-0.0291156080100815[/C][/ROW]
[ROW][C]55[/C][C]7.5[/C][C]7.41064674019448[/C][C]0.08935325980552[/C][/ROW]
[ROW][C]56[/C][C]7.6[/C][C]7.40605334364128[/C][C]0.193946656358715[/C][/ROW]
[ROW][C]57[/C][C]7.7[/C][C]7.37992881490369[/C][C]0.320071185096309[/C][/ROW]
[ROW][C]58[/C][C]7.9[/C][C]7.4030863608753[/C][C]0.496913639124693[/C][/ROW]
[ROW][C]59[/C][C]8[/C][C]7.34633918844974[/C][C]0.653660811550257[/C][/ROW]
[ROW][C]60[/C][C]8.2[/C][C]7.35026230051356[/C][C]0.84973769948644[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61069&T=4

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.99.23222496096872-0.332224960968718
299.18150703567789-0.181507035677888
399.18227260177009-0.182272601770087
499.13145939487648-0.131459394876479
599.16447401844387-0.164474018443865
699.13834948970627-0.138349489706272
799.11605279142967-0.116052791429674
899.11911505579847-0.119115055798471
999.09299052706088-0.092990527060877
1099.14294288625947-0.142942886259467
1199.12064618798287-0.120646187982870
129.19.15136411327366-0.0513641132736598
1398.789605168700640.210394831299365
1498.758026395714840.241973604285163
159.18.754964131346040.34503586865396
1698.692667433069440.307332566930558
1798.702715073870850.297284926129148
1898.684246206055250.315753793944749
1998.669605168700650.330394831299355
208.98.672667433069440.227332566930558
218.98.669509887097830.230490112902174
228.98.704150924452430.195849075547569
238.98.681854226175830.218145773824167
248.88.701088660083630.0989113399163669
258.88.366124528737580.433875471262416
268.78.32306226436880.376937735631202
278.78.3161721695390.383827830460996
288.58.26535896264540.234641037354605
298.58.27923443390780.220765566092199
308.48.25693773563120.143062264368797
318.28.2346410373546-0.0346410373546059
328.28.2338754712624-0.0338754712624065
338.18.19243962068083-0.092439620680827
348.18.22708065803543-0.127080658035433
3588.22392311206382-0.223923112063816
367.98.24698537643261-0.346985376432612
377.87.90053775370357-0.100537753703574
387.77.86130331979578-0.161303319795783
397.67.86206888588798-0.262068885887982
407.57.79977218761139-0.299772187611385
417.57.81364765887379-0.313647658873791
427.57.79135096059719-0.291350960597193
437.57.7690542623206-0.269054262320595
447.57.7682886962284-0.268288696228396
457.47.76513115025678-0.365131150256779
467.47.82273917037736-0.422739170377362
477.37.82723728532774-0.527237285327739
487.37.85029954969654-0.550299549696535
497.37.51150758788949-0.211507587889489
507.27.4761009844427-0.276100984442694
517.27.48452221145689-0.284522211456886
527.37.4107420217973-0.110742021797300
537.47.43992881490369-0.0399288149036907
547.47.42911560801008-0.0291156080100815
557.57.410646740194480.08935325980552
567.67.406053343641280.193946656358715
577.77.379928814903690.320071185096309
587.97.40308636087530.496913639124693
5987.346339188449740.653660811550257
608.27.350262300513560.84973769948644







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.002092317042467030.004184634084934060.997907682957533
180.0002127924988043790.0004255849976087580.999787207501196
192.109948659405e-054.21989731881e-050.999978900513406
201.40731864865647e-052.81463729731295e-050.999985926813513
216.94130624600258e-061.38826124920052e-050.999993058693754
221.85863720755150e-063.71727441510301e-060.999998141362793
234.40402031589288e-078.80804063178576e-070.999999559597968
242.69810284734183e-065.39620569468367e-060.999997301897153
251.09282810463414e-062.18565620926828e-060.999998907171895
262.13525277768341e-064.27050555536683e-060.999997864747222
275.83896801659248e-061.16779360331850e-050.999994161031983
284.28452850313248e-058.56905700626496e-050.999957154714969
290.0001974409824728530.0003948819649457050.999802559017527
300.001444462520000750.002888925040001490.99855553748
310.01489446597559330.02978893195118660.985105534024407
320.05473762504020270.1094752500804050.945262374959797
330.09939762030801340.1987952406160270.900602379691987
340.1077028538921660.2154057077843310.892297146107834
350.2124768148464210.4249536296928410.78752318515358
360.4106508453146990.8213016906293970.589349154685301
370.5701193536585620.8597612926828760.429880646341438
380.8125998278918280.3748003442163430.187400172108172
390.9470947256297950.1058105487404110.0529052743702053
400.9889410580915690.02211788381686230.0110589419084311
410.9919359316637110.01612813667257800.00806406833628901
420.9948298479625080.01034030407498350.00517015203749175
430.990260339230480.01947932153903870.00973966076951937

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.00209231704246703 & 0.00418463408493406 & 0.997907682957533 \tabularnewline
18 & 0.000212792498804379 & 0.000425584997608758 & 0.999787207501196 \tabularnewline
19 & 2.109948659405e-05 & 4.21989731881e-05 & 0.999978900513406 \tabularnewline
20 & 1.40731864865647e-05 & 2.81463729731295e-05 & 0.999985926813513 \tabularnewline
21 & 6.94130624600258e-06 & 1.38826124920052e-05 & 0.999993058693754 \tabularnewline
22 & 1.85863720755150e-06 & 3.71727441510301e-06 & 0.999998141362793 \tabularnewline
23 & 4.40402031589288e-07 & 8.80804063178576e-07 & 0.999999559597968 \tabularnewline
24 & 2.69810284734183e-06 & 5.39620569468367e-06 & 0.999997301897153 \tabularnewline
25 & 1.09282810463414e-06 & 2.18565620926828e-06 & 0.999998907171895 \tabularnewline
26 & 2.13525277768341e-06 & 4.27050555536683e-06 & 0.999997864747222 \tabularnewline
27 & 5.83896801659248e-06 & 1.16779360331850e-05 & 0.999994161031983 \tabularnewline
28 & 4.28452850313248e-05 & 8.56905700626496e-05 & 0.999957154714969 \tabularnewline
29 & 0.000197440982472853 & 0.000394881964945705 & 0.999802559017527 \tabularnewline
30 & 0.00144446252000075 & 0.00288892504000149 & 0.99855553748 \tabularnewline
31 & 0.0148944659755933 & 0.0297889319511866 & 0.985105534024407 \tabularnewline
32 & 0.0547376250402027 & 0.109475250080405 & 0.945262374959797 \tabularnewline
33 & 0.0993976203080134 & 0.198795240616027 & 0.900602379691987 \tabularnewline
34 & 0.107702853892166 & 0.215405707784331 & 0.892297146107834 \tabularnewline
35 & 0.212476814846421 & 0.424953629692841 & 0.78752318515358 \tabularnewline
36 & 0.410650845314699 & 0.821301690629397 & 0.589349154685301 \tabularnewline
37 & 0.570119353658562 & 0.859761292682876 & 0.429880646341438 \tabularnewline
38 & 0.812599827891828 & 0.374800344216343 & 0.187400172108172 \tabularnewline
39 & 0.947094725629795 & 0.105810548740411 & 0.0529052743702053 \tabularnewline
40 & 0.988941058091569 & 0.0221178838168623 & 0.0110589419084311 \tabularnewline
41 & 0.991935931663711 & 0.0161281366725780 & 0.00806406833628901 \tabularnewline
42 & 0.994829847962508 & 0.0103403040749835 & 0.00517015203749175 \tabularnewline
43 & 0.99026033923048 & 0.0194793215390387 & 0.00973966076951937 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61069&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.00209231704246703[/C][C]0.00418463408493406[/C][C]0.997907682957533[/C][/ROW]
[ROW][C]18[/C][C]0.000212792498804379[/C][C]0.000425584997608758[/C][C]0.999787207501196[/C][/ROW]
[ROW][C]19[/C][C]2.109948659405e-05[/C][C]4.21989731881e-05[/C][C]0.999978900513406[/C][/ROW]
[ROW][C]20[/C][C]1.40731864865647e-05[/C][C]2.81463729731295e-05[/C][C]0.999985926813513[/C][/ROW]
[ROW][C]21[/C][C]6.94130624600258e-06[/C][C]1.38826124920052e-05[/C][C]0.999993058693754[/C][/ROW]
[ROW][C]22[/C][C]1.85863720755150e-06[/C][C]3.71727441510301e-06[/C][C]0.999998141362793[/C][/ROW]
[ROW][C]23[/C][C]4.40402031589288e-07[/C][C]8.80804063178576e-07[/C][C]0.999999559597968[/C][/ROW]
[ROW][C]24[/C][C]2.69810284734183e-06[/C][C]5.39620569468367e-06[/C][C]0.999997301897153[/C][/ROW]
[ROW][C]25[/C][C]1.09282810463414e-06[/C][C]2.18565620926828e-06[/C][C]0.999998907171895[/C][/ROW]
[ROW][C]26[/C][C]2.13525277768341e-06[/C][C]4.27050555536683e-06[/C][C]0.999997864747222[/C][/ROW]
[ROW][C]27[/C][C]5.83896801659248e-06[/C][C]1.16779360331850e-05[/C][C]0.999994161031983[/C][/ROW]
[ROW][C]28[/C][C]4.28452850313248e-05[/C][C]8.56905700626496e-05[/C][C]0.999957154714969[/C][/ROW]
[ROW][C]29[/C][C]0.000197440982472853[/C][C]0.000394881964945705[/C][C]0.999802559017527[/C][/ROW]
[ROW][C]30[/C][C]0.00144446252000075[/C][C]0.00288892504000149[/C][C]0.99855553748[/C][/ROW]
[ROW][C]31[/C][C]0.0148944659755933[/C][C]0.0297889319511866[/C][C]0.985105534024407[/C][/ROW]
[ROW][C]32[/C][C]0.0547376250402027[/C][C]0.109475250080405[/C][C]0.945262374959797[/C][/ROW]
[ROW][C]33[/C][C]0.0993976203080134[/C][C]0.198795240616027[/C][C]0.900602379691987[/C][/ROW]
[ROW][C]34[/C][C]0.107702853892166[/C][C]0.215405707784331[/C][C]0.892297146107834[/C][/ROW]
[ROW][C]35[/C][C]0.212476814846421[/C][C]0.424953629692841[/C][C]0.78752318515358[/C][/ROW]
[ROW][C]36[/C][C]0.410650845314699[/C][C]0.821301690629397[/C][C]0.589349154685301[/C][/ROW]
[ROW][C]37[/C][C]0.570119353658562[/C][C]0.859761292682876[/C][C]0.429880646341438[/C][/ROW]
[ROW][C]38[/C][C]0.812599827891828[/C][C]0.374800344216343[/C][C]0.187400172108172[/C][/ROW]
[ROW][C]39[/C][C]0.947094725629795[/C][C]0.105810548740411[/C][C]0.0529052743702053[/C][/ROW]
[ROW][C]40[/C][C]0.988941058091569[/C][C]0.0221178838168623[/C][C]0.0110589419084311[/C][/ROW]
[ROW][C]41[/C][C]0.991935931663711[/C][C]0.0161281366725780[/C][C]0.00806406833628901[/C][/ROW]
[ROW][C]42[/C][C]0.994829847962508[/C][C]0.0103403040749835[/C][C]0.00517015203749175[/C][/ROW]
[ROW][C]43[/C][C]0.99026033923048[/C][C]0.0194793215390387[/C][C]0.00973966076951937[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61069&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61069&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.002092317042467030.004184634084934060.997907682957533
180.0002127924988043790.0004255849976087580.999787207501196
192.109948659405e-054.21989731881e-050.999978900513406
201.40731864865647e-052.81463729731295e-050.999985926813513
216.94130624600258e-061.38826124920052e-050.999993058693754
221.85863720755150e-063.71727441510301e-060.999998141362793
234.40402031589288e-078.80804063178576e-070.999999559597968
242.69810284734183e-065.39620569468367e-060.999997301897153
251.09282810463414e-062.18565620926828e-060.999998907171895
262.13525277768341e-064.27050555536683e-060.999997864747222
275.83896801659248e-061.16779360331850e-050.999994161031983
284.28452850313248e-058.56905700626496e-050.999957154714969
290.0001974409824728530.0003948819649457050.999802559017527
300.001444462520000750.002888925040001490.99855553748
310.01489446597559330.02978893195118660.985105534024407
320.05473762504020270.1094752500804050.945262374959797
330.09939762030801340.1987952406160270.900602379691987
340.1077028538921660.2154057077843310.892297146107834
350.2124768148464210.4249536296928410.78752318515358
360.4106508453146990.8213016906293970.589349154685301
370.5701193536585620.8597612926828760.429880646341438
380.8125998278918280.3748003442163430.187400172108172
390.9470947256297950.1058105487404110.0529052743702053
400.9889410580915690.02211788381686230.0110589419084311
410.9919359316637110.01612813667257800.00806406833628901
420.9948298479625080.01034030407498350.00517015203749175
430.990260339230480.01947932153903870.00973966076951937







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level140.518518518518518NOK
5% type I error level190.703703703703704NOK
10% type I error level190.703703703703704NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61069&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 level140.518518518518518NOK
5% type I error level190.703703703703704NOK
10% type I error level190.703703703703704NOK



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