Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 06:08:56 -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/t1258722608mss971w61dqdzat.htm/, Retrieved Sat, 20 Apr 2024 13:25:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58114, Retrieved Sat, 20 Apr 2024 13:25:02 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact131
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-20 13:08:56] [c88a5f1b97e332c6387d668c465455af] [Current]
Feedback Forum

Post a new message
Dataseries X:
280	1258
557	1199
831	1158
1081	1427
1318	934
1578	709
1859	1186
2141	986
2428	1033
2715	1257
3004	1105
3309	1179
269	1092
537	1092
813	1087
1068	2028
1411	2039
1675	2010
1958	754
2242	760
2524	715
2836	855
3143	971
3522	815
285	915
574	843
865	761
1147	1858
1516	2968
1789	4061
2087	3661
2372	3269
2669	2857
2966	2568
3270	2274
3652	1987
329	683
658	381
988	71
1303	1772
1603	3485
1929	5181
2235	4479
2544	3782
2872	3067
3198	2489
3544	1903
3903	1330
332	736
665	483
1001	242
1329	1334
1639	2423
1975	3523
2304	2986
2640	2462
2992	1908
3330	1575
3690	1237
4063	904




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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 1574.61263275984 + 0.219776211344191X[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  1574.61263275984 +  0.219776211344191X[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58114&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  1574.61263275984 +  0.219776211344191X[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58114&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 1574.61263275984 + 0.219776211344191X[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1574.61263275984250.3628796.289300
X0.2197762113441910.1210721.81530.0746550.037328

\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) & 1574.61263275984 & 250.362879 & 6.2893 & 0 & 0 \tabularnewline
X & 0.219776211344191 & 0.121072 & 1.8153 & 0.074655 & 0.037328 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58114&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]1574.61263275984[/C][C]250.362879[/C][C]6.2893[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]0.219776211344191[/C][C]0.121072[/C][C]1.8153[/C][C]0.074655[/C][C]0.037328[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58114&T=2

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







Multiple Linear Regression - Regression Statistics
Multiple R0.231859778739834
R-squared0.0537589569972848
Adjusted R-squared0.0374444562558588
F-TEST (value)3.29516409048172
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.0746552735370818
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1055.01042915304
Sum Squared Residuals64556726.3260573

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.231859778739834 \tabularnewline
R-squared & 0.0537589569972848 \tabularnewline
Adjusted R-squared & 0.0374444562558588 \tabularnewline
F-TEST (value) & 3.29516409048172 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 0.0746552735370818 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1055.01042915304 \tabularnewline
Sum Squared Residuals & 64556726.3260573 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58114&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.231859778739834[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0537589569972848[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0374444562558588[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.29516409048172[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]0.0746552735370818[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1055.01042915304[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]64556726.3260573[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58114&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58114&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.231859778739834
R-squared0.0537589569972848
Adjusted R-squared0.0374444562558588
F-TEST (value)3.29516409048172
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.0746552735370818
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1055.01042915304
Sum Squared Residuals64556726.3260573







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12801851.09110663083-1571.09110663083
25571838.12431016152-1281.12431016152
38311829.11348549641-998.113485496412
410811888.233286348-807.233286348
513181779.88361415531-461.883614155313
615781730.43396660287-152.433966602870
718591835.2672194140523.7327805859509
821411791.31197714521349.688022854789
924281801.64145907839626.358540921612
1027151850.87133041949864.128669580513
1130041817.465346295171186.53465370483
1233091833.728785934641475.27121406536
132691814.60825554770-1545.60825554770
145371814.60825554770-1277.60825554770
158131813.50937449097-1000.50937449097
1610682020.31878936586-952.318789365858
1714112022.73632769064-611.736327690644
1816752016.36281756166-341.362817561662
1919581740.32389611336217.676103886641
2022421741.64255338142500.357446618576
2125241731.75262387094792.247376129065
2228361762.521293459121073.47870654088
2331431788.015333975051354.98466602495
2435221753.730245005351768.26975499465
252851775.70786613977-1490.70786613977
265741759.88397892299-1185.88397892299
278651741.86232959277-876.862329592768
2811471982.95683343735-835.956833437345
2915162226.90842802940-710.908428029397
3017892467.12382702860-678.123827028597
3120872379.21334249092-292.213342490921
3223722293.06106764478.9389323560018
3326692202.51326857019466.486731429808
3429662138.99794349172827.00205650828
3532702074.383737356531195.61626264347
3636522011.307964700751640.69203529925
373291724.71978510792-1395.71978510792
386581658.34736928198-1000.34736928198
399881590.21674376528-602.216743765277
4013031964.05607926174-661.056079261745
4116032340.53272929434-737.532729294344
4219292713.27318373409-784.27318373409
4322352558.99028337047-323.990283370469
4425442405.80626406357138.193735936432
4528722248.66627295247623.333727047528
4631982121.635622795531076.36437720447
4735441992.846762947831551.15323705217
4839031866.914993847612036.08500615239
493321736.36792430916-1404.36792430916
506651680.76454283908-1015.76454283908
5110011627.79847590513-626.798475905133
5213291867.79409869299-538.794098692989
5316392107.13039284681-468.130392846813
5419752348.88422532542-373.884225325423
5523042230.8643998335973.1356001664077
5626402115.70166508924524.298334910764
5729921993.94564400455998.054355995445
5833301920.760165626941409.23983437306
5936901846.475806192601843.52419380740
6040631773.290327814992289.70967218501

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 280 & 1851.09110663083 & -1571.09110663083 \tabularnewline
2 & 557 & 1838.12431016152 & -1281.12431016152 \tabularnewline
3 & 831 & 1829.11348549641 & -998.113485496412 \tabularnewline
4 & 1081 & 1888.233286348 & -807.233286348 \tabularnewline
5 & 1318 & 1779.88361415531 & -461.883614155313 \tabularnewline
6 & 1578 & 1730.43396660287 & -152.433966602870 \tabularnewline
7 & 1859 & 1835.26721941405 & 23.7327805859509 \tabularnewline
8 & 2141 & 1791.31197714521 & 349.688022854789 \tabularnewline
9 & 2428 & 1801.64145907839 & 626.358540921612 \tabularnewline
10 & 2715 & 1850.87133041949 & 864.128669580513 \tabularnewline
11 & 3004 & 1817.46534629517 & 1186.53465370483 \tabularnewline
12 & 3309 & 1833.72878593464 & 1475.27121406536 \tabularnewline
13 & 269 & 1814.60825554770 & -1545.60825554770 \tabularnewline
14 & 537 & 1814.60825554770 & -1277.60825554770 \tabularnewline
15 & 813 & 1813.50937449097 & -1000.50937449097 \tabularnewline
16 & 1068 & 2020.31878936586 & -952.318789365858 \tabularnewline
17 & 1411 & 2022.73632769064 & -611.736327690644 \tabularnewline
18 & 1675 & 2016.36281756166 & -341.362817561662 \tabularnewline
19 & 1958 & 1740.32389611336 & 217.676103886641 \tabularnewline
20 & 2242 & 1741.64255338142 & 500.357446618576 \tabularnewline
21 & 2524 & 1731.75262387094 & 792.247376129065 \tabularnewline
22 & 2836 & 1762.52129345912 & 1073.47870654088 \tabularnewline
23 & 3143 & 1788.01533397505 & 1354.98466602495 \tabularnewline
24 & 3522 & 1753.73024500535 & 1768.26975499465 \tabularnewline
25 & 285 & 1775.70786613977 & -1490.70786613977 \tabularnewline
26 & 574 & 1759.88397892299 & -1185.88397892299 \tabularnewline
27 & 865 & 1741.86232959277 & -876.862329592768 \tabularnewline
28 & 1147 & 1982.95683343735 & -835.956833437345 \tabularnewline
29 & 1516 & 2226.90842802940 & -710.908428029397 \tabularnewline
30 & 1789 & 2467.12382702860 & -678.123827028597 \tabularnewline
31 & 2087 & 2379.21334249092 & -292.213342490921 \tabularnewline
32 & 2372 & 2293.061067644 & 78.9389323560018 \tabularnewline
33 & 2669 & 2202.51326857019 & 466.486731429808 \tabularnewline
34 & 2966 & 2138.99794349172 & 827.00205650828 \tabularnewline
35 & 3270 & 2074.38373735653 & 1195.61626264347 \tabularnewline
36 & 3652 & 2011.30796470075 & 1640.69203529925 \tabularnewline
37 & 329 & 1724.71978510792 & -1395.71978510792 \tabularnewline
38 & 658 & 1658.34736928198 & -1000.34736928198 \tabularnewline
39 & 988 & 1590.21674376528 & -602.216743765277 \tabularnewline
40 & 1303 & 1964.05607926174 & -661.056079261745 \tabularnewline
41 & 1603 & 2340.53272929434 & -737.532729294344 \tabularnewline
42 & 1929 & 2713.27318373409 & -784.27318373409 \tabularnewline
43 & 2235 & 2558.99028337047 & -323.990283370469 \tabularnewline
44 & 2544 & 2405.80626406357 & 138.193735936432 \tabularnewline
45 & 2872 & 2248.66627295247 & 623.333727047528 \tabularnewline
46 & 3198 & 2121.63562279553 & 1076.36437720447 \tabularnewline
47 & 3544 & 1992.84676294783 & 1551.15323705217 \tabularnewline
48 & 3903 & 1866.91499384761 & 2036.08500615239 \tabularnewline
49 & 332 & 1736.36792430916 & -1404.36792430916 \tabularnewline
50 & 665 & 1680.76454283908 & -1015.76454283908 \tabularnewline
51 & 1001 & 1627.79847590513 & -626.798475905133 \tabularnewline
52 & 1329 & 1867.79409869299 & -538.794098692989 \tabularnewline
53 & 1639 & 2107.13039284681 & -468.130392846813 \tabularnewline
54 & 1975 & 2348.88422532542 & -373.884225325423 \tabularnewline
55 & 2304 & 2230.86439983359 & 73.1356001664077 \tabularnewline
56 & 2640 & 2115.70166508924 & 524.298334910764 \tabularnewline
57 & 2992 & 1993.94564400455 & 998.054355995445 \tabularnewline
58 & 3330 & 1920.76016562694 & 1409.23983437306 \tabularnewline
59 & 3690 & 1846.47580619260 & 1843.52419380740 \tabularnewline
60 & 4063 & 1773.29032781499 & 2289.70967218501 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58114&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]280[/C][C]1851.09110663083[/C][C]-1571.09110663083[/C][/ROW]
[ROW][C]2[/C][C]557[/C][C]1838.12431016152[/C][C]-1281.12431016152[/C][/ROW]
[ROW][C]3[/C][C]831[/C][C]1829.11348549641[/C][C]-998.113485496412[/C][/ROW]
[ROW][C]4[/C][C]1081[/C][C]1888.233286348[/C][C]-807.233286348[/C][/ROW]
[ROW][C]5[/C][C]1318[/C][C]1779.88361415531[/C][C]-461.883614155313[/C][/ROW]
[ROW][C]6[/C][C]1578[/C][C]1730.43396660287[/C][C]-152.433966602870[/C][/ROW]
[ROW][C]7[/C][C]1859[/C][C]1835.26721941405[/C][C]23.7327805859509[/C][/ROW]
[ROW][C]8[/C][C]2141[/C][C]1791.31197714521[/C][C]349.688022854789[/C][/ROW]
[ROW][C]9[/C][C]2428[/C][C]1801.64145907839[/C][C]626.358540921612[/C][/ROW]
[ROW][C]10[/C][C]2715[/C][C]1850.87133041949[/C][C]864.128669580513[/C][/ROW]
[ROW][C]11[/C][C]3004[/C][C]1817.46534629517[/C][C]1186.53465370483[/C][/ROW]
[ROW][C]12[/C][C]3309[/C][C]1833.72878593464[/C][C]1475.27121406536[/C][/ROW]
[ROW][C]13[/C][C]269[/C][C]1814.60825554770[/C][C]-1545.60825554770[/C][/ROW]
[ROW][C]14[/C][C]537[/C][C]1814.60825554770[/C][C]-1277.60825554770[/C][/ROW]
[ROW][C]15[/C][C]813[/C][C]1813.50937449097[/C][C]-1000.50937449097[/C][/ROW]
[ROW][C]16[/C][C]1068[/C][C]2020.31878936586[/C][C]-952.318789365858[/C][/ROW]
[ROW][C]17[/C][C]1411[/C][C]2022.73632769064[/C][C]-611.736327690644[/C][/ROW]
[ROW][C]18[/C][C]1675[/C][C]2016.36281756166[/C][C]-341.362817561662[/C][/ROW]
[ROW][C]19[/C][C]1958[/C][C]1740.32389611336[/C][C]217.676103886641[/C][/ROW]
[ROW][C]20[/C][C]2242[/C][C]1741.64255338142[/C][C]500.357446618576[/C][/ROW]
[ROW][C]21[/C][C]2524[/C][C]1731.75262387094[/C][C]792.247376129065[/C][/ROW]
[ROW][C]22[/C][C]2836[/C][C]1762.52129345912[/C][C]1073.47870654088[/C][/ROW]
[ROW][C]23[/C][C]3143[/C][C]1788.01533397505[/C][C]1354.98466602495[/C][/ROW]
[ROW][C]24[/C][C]3522[/C][C]1753.73024500535[/C][C]1768.26975499465[/C][/ROW]
[ROW][C]25[/C][C]285[/C][C]1775.70786613977[/C][C]-1490.70786613977[/C][/ROW]
[ROW][C]26[/C][C]574[/C][C]1759.88397892299[/C][C]-1185.88397892299[/C][/ROW]
[ROW][C]27[/C][C]865[/C][C]1741.86232959277[/C][C]-876.862329592768[/C][/ROW]
[ROW][C]28[/C][C]1147[/C][C]1982.95683343735[/C][C]-835.956833437345[/C][/ROW]
[ROW][C]29[/C][C]1516[/C][C]2226.90842802940[/C][C]-710.908428029397[/C][/ROW]
[ROW][C]30[/C][C]1789[/C][C]2467.12382702860[/C][C]-678.123827028597[/C][/ROW]
[ROW][C]31[/C][C]2087[/C][C]2379.21334249092[/C][C]-292.213342490921[/C][/ROW]
[ROW][C]32[/C][C]2372[/C][C]2293.061067644[/C][C]78.9389323560018[/C][/ROW]
[ROW][C]33[/C][C]2669[/C][C]2202.51326857019[/C][C]466.486731429808[/C][/ROW]
[ROW][C]34[/C][C]2966[/C][C]2138.99794349172[/C][C]827.00205650828[/C][/ROW]
[ROW][C]35[/C][C]3270[/C][C]2074.38373735653[/C][C]1195.61626264347[/C][/ROW]
[ROW][C]36[/C][C]3652[/C][C]2011.30796470075[/C][C]1640.69203529925[/C][/ROW]
[ROW][C]37[/C][C]329[/C][C]1724.71978510792[/C][C]-1395.71978510792[/C][/ROW]
[ROW][C]38[/C][C]658[/C][C]1658.34736928198[/C][C]-1000.34736928198[/C][/ROW]
[ROW][C]39[/C][C]988[/C][C]1590.21674376528[/C][C]-602.216743765277[/C][/ROW]
[ROW][C]40[/C][C]1303[/C][C]1964.05607926174[/C][C]-661.056079261745[/C][/ROW]
[ROW][C]41[/C][C]1603[/C][C]2340.53272929434[/C][C]-737.532729294344[/C][/ROW]
[ROW][C]42[/C][C]1929[/C][C]2713.27318373409[/C][C]-784.27318373409[/C][/ROW]
[ROW][C]43[/C][C]2235[/C][C]2558.99028337047[/C][C]-323.990283370469[/C][/ROW]
[ROW][C]44[/C][C]2544[/C][C]2405.80626406357[/C][C]138.193735936432[/C][/ROW]
[ROW][C]45[/C][C]2872[/C][C]2248.66627295247[/C][C]623.333727047528[/C][/ROW]
[ROW][C]46[/C][C]3198[/C][C]2121.63562279553[/C][C]1076.36437720447[/C][/ROW]
[ROW][C]47[/C][C]3544[/C][C]1992.84676294783[/C][C]1551.15323705217[/C][/ROW]
[ROW][C]48[/C][C]3903[/C][C]1866.91499384761[/C][C]2036.08500615239[/C][/ROW]
[ROW][C]49[/C][C]332[/C][C]1736.36792430916[/C][C]-1404.36792430916[/C][/ROW]
[ROW][C]50[/C][C]665[/C][C]1680.76454283908[/C][C]-1015.76454283908[/C][/ROW]
[ROW][C]51[/C][C]1001[/C][C]1627.79847590513[/C][C]-626.798475905133[/C][/ROW]
[ROW][C]52[/C][C]1329[/C][C]1867.79409869299[/C][C]-538.794098692989[/C][/ROW]
[ROW][C]53[/C][C]1639[/C][C]2107.13039284681[/C][C]-468.130392846813[/C][/ROW]
[ROW][C]54[/C][C]1975[/C][C]2348.88422532542[/C][C]-373.884225325423[/C][/ROW]
[ROW][C]55[/C][C]2304[/C][C]2230.86439983359[/C][C]73.1356001664077[/C][/ROW]
[ROW][C]56[/C][C]2640[/C][C]2115.70166508924[/C][C]524.298334910764[/C][/ROW]
[ROW][C]57[/C][C]2992[/C][C]1993.94564400455[/C][C]998.054355995445[/C][/ROW]
[ROW][C]58[/C][C]3330[/C][C]1920.76016562694[/C][C]1409.23983437306[/C][/ROW]
[ROW][C]59[/C][C]3690[/C][C]1846.47580619260[/C][C]1843.52419380740[/C][/ROW]
[ROW][C]60[/C][C]4063[/C][C]1773.29032781499[/C][C]2289.70967218501[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58114&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58114&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
12801851.09110663083-1571.09110663083
25571838.12431016152-1281.12431016152
38311829.11348549641-998.113485496412
410811888.233286348-807.233286348
513181779.88361415531-461.883614155313
615781730.43396660287-152.433966602870
718591835.2672194140523.7327805859509
821411791.31197714521349.688022854789
924281801.64145907839626.358540921612
1027151850.87133041949864.128669580513
1130041817.465346295171186.53465370483
1233091833.728785934641475.27121406536
132691814.60825554770-1545.60825554770
145371814.60825554770-1277.60825554770
158131813.50937449097-1000.50937449097
1610682020.31878936586-952.318789365858
1714112022.73632769064-611.736327690644
1816752016.36281756166-341.362817561662
1919581740.32389611336217.676103886641
2022421741.64255338142500.357446618576
2125241731.75262387094792.247376129065
2228361762.521293459121073.47870654088
2331431788.015333975051354.98466602495
2435221753.730245005351768.26975499465
252851775.70786613977-1490.70786613977
265741759.88397892299-1185.88397892299
278651741.86232959277-876.862329592768
2811471982.95683343735-835.956833437345
2915162226.90842802940-710.908428029397
3017892467.12382702860-678.123827028597
3120872379.21334249092-292.213342490921
3223722293.06106764478.9389323560018
3326692202.51326857019466.486731429808
3429662138.99794349172827.00205650828
3532702074.383737356531195.61626264347
3636522011.307964700751640.69203529925
373291724.71978510792-1395.71978510792
386581658.34736928198-1000.34736928198
399881590.21674376528-602.216743765277
4013031964.05607926174-661.056079261745
4116032340.53272929434-737.532729294344
4219292713.27318373409-784.27318373409
4322352558.99028337047-323.990283370469
4425442405.80626406357138.193735936432
4528722248.66627295247623.333727047528
4631982121.635622795531076.36437720447
4735441992.846762947831551.15323705217
4839031866.914993847612036.08500615239
493321736.36792430916-1404.36792430916
506651680.76454283908-1015.76454283908
5110011627.79847590513-626.798475905133
5213291867.79409869299-538.794098692989
5316392107.13039284681-468.130392846813
5419752348.88422532542-373.884225325423
5523042230.8643998335973.1356001664077
5626402115.70166508924524.298334910764
5729921993.94564400455998.054355995445
5833301920.760165626941409.23983437306
5936901846.475806192601843.52419380740
6040631773.290327814992289.70967218501







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.09037906215333750.1807581243066750.909620937846662
60.03438026138159530.06876052276319050.965619738618405
70.06913221011108130.1382644202221630.930867789888919
80.07468457373987520.1493691474797500.925315426260125
90.1024271500803620.2048543001607240.897572849919638
100.2132990369889050.4265980739778090.786700963011095
110.3069092593272570.6138185186545130.693090740672743
120.4539065688668530.9078131377337060.546093431133147
130.5401765100560110.9196469798879780.459823489943989
140.5511609965268420.8976780069463170.448839003473158
150.5155023916404440.9689952167191110.484497608359556
160.4461256001478350.892251200295670.553874399852165
170.3745672341860110.7491344683720220.625432765813989
180.3076149977047850.615229995409570.692385002295215
190.2417617000389920.4835234000779840.758238299961008
200.1949050058376650.3898100116753310.805094994162335
210.1669869293533900.3339738587067790.83301307064661
220.1663461309225830.3326922618451650.833653869077417
230.2011442547002300.4022885094004610.79885574529977
240.2869040732401000.5738081464801990.7130959267599
250.3835327621005580.7670655242011170.616467237899442
260.4240118619514690.8480237239029380.575988138048531
270.4187918156351150.837583631270230.581208184364885
280.373977176823310.747954353646620.62602282317669
290.3371464711717690.6742929423435380.662853528828231
300.3076119415749120.6152238831498240.692388058425088
310.2631948646237990.5263897292475990.7368051353762
320.2200440819987820.4400881639975640.779955918001218
330.1888260805251710.3776521610503420.81117391947483
340.1764527415931080.3529054831862170.823547258406892
350.1914647492584240.3829294985168480.808535250741576
360.2643609305085380.5287218610170770.735639069491462
370.3196209172145770.6392418344291530.680379082785423
380.3314023667311190.6628047334622380.668597633268881
390.3133806959699870.6267613919399740.686619304030013
400.2909033339793740.5818066679587480.709096666020626
410.2597324610162660.5194649220325320.740267538983734
420.2266485974583690.4532971949167370.773351402541631
430.1845024452923420.3690048905846840.815497554707658
440.1403585511312500.2807171022624990.85964144886875
450.1047422637192360.2094845274384720.895257736280764
460.08841933437635090.1768386687527020.91158066562365
470.1023590894561460.2047181789122920.897640910543854
480.1883720875780190.3767441751560380.811627912421981
490.2704751660075400.5409503320150790.72952483399246
500.3768818221845840.7537636443691680.623118177815416
510.6985819284558040.6028361430883910.301418071544196
520.9818475679820660.03630486403586710.0181524320179335
530.9999509223858549.81552282914263e-054.90776141457132e-05
540.99979871621570.000402567568598420.00020128378429921
550.9992570380390360.001485923921928080.000742961960964042

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.0903790621533375 & 0.180758124306675 & 0.909620937846662 \tabularnewline
6 & 0.0343802613815953 & 0.0687605227631905 & 0.965619738618405 \tabularnewline
7 & 0.0691322101110813 & 0.138264420222163 & 0.930867789888919 \tabularnewline
8 & 0.0746845737398752 & 0.149369147479750 & 0.925315426260125 \tabularnewline
9 & 0.102427150080362 & 0.204854300160724 & 0.897572849919638 \tabularnewline
10 & 0.213299036988905 & 0.426598073977809 & 0.786700963011095 \tabularnewline
11 & 0.306909259327257 & 0.613818518654513 & 0.693090740672743 \tabularnewline
12 & 0.453906568866853 & 0.907813137733706 & 0.546093431133147 \tabularnewline
13 & 0.540176510056011 & 0.919646979887978 & 0.459823489943989 \tabularnewline
14 & 0.551160996526842 & 0.897678006946317 & 0.448839003473158 \tabularnewline
15 & 0.515502391640444 & 0.968995216719111 & 0.484497608359556 \tabularnewline
16 & 0.446125600147835 & 0.89225120029567 & 0.553874399852165 \tabularnewline
17 & 0.374567234186011 & 0.749134468372022 & 0.625432765813989 \tabularnewline
18 & 0.307614997704785 & 0.61522999540957 & 0.692385002295215 \tabularnewline
19 & 0.241761700038992 & 0.483523400077984 & 0.758238299961008 \tabularnewline
20 & 0.194905005837665 & 0.389810011675331 & 0.805094994162335 \tabularnewline
21 & 0.166986929353390 & 0.333973858706779 & 0.83301307064661 \tabularnewline
22 & 0.166346130922583 & 0.332692261845165 & 0.833653869077417 \tabularnewline
23 & 0.201144254700230 & 0.402288509400461 & 0.79885574529977 \tabularnewline
24 & 0.286904073240100 & 0.573808146480199 & 0.7130959267599 \tabularnewline
25 & 0.383532762100558 & 0.767065524201117 & 0.616467237899442 \tabularnewline
26 & 0.424011861951469 & 0.848023723902938 & 0.575988138048531 \tabularnewline
27 & 0.418791815635115 & 0.83758363127023 & 0.581208184364885 \tabularnewline
28 & 0.37397717682331 & 0.74795435364662 & 0.62602282317669 \tabularnewline
29 & 0.337146471171769 & 0.674292942343538 & 0.662853528828231 \tabularnewline
30 & 0.307611941574912 & 0.615223883149824 & 0.692388058425088 \tabularnewline
31 & 0.263194864623799 & 0.526389729247599 & 0.7368051353762 \tabularnewline
32 & 0.220044081998782 & 0.440088163997564 & 0.779955918001218 \tabularnewline
33 & 0.188826080525171 & 0.377652161050342 & 0.81117391947483 \tabularnewline
34 & 0.176452741593108 & 0.352905483186217 & 0.823547258406892 \tabularnewline
35 & 0.191464749258424 & 0.382929498516848 & 0.808535250741576 \tabularnewline
36 & 0.264360930508538 & 0.528721861017077 & 0.735639069491462 \tabularnewline
37 & 0.319620917214577 & 0.639241834429153 & 0.680379082785423 \tabularnewline
38 & 0.331402366731119 & 0.662804733462238 & 0.668597633268881 \tabularnewline
39 & 0.313380695969987 & 0.626761391939974 & 0.686619304030013 \tabularnewline
40 & 0.290903333979374 & 0.581806667958748 & 0.709096666020626 \tabularnewline
41 & 0.259732461016266 & 0.519464922032532 & 0.740267538983734 \tabularnewline
42 & 0.226648597458369 & 0.453297194916737 & 0.773351402541631 \tabularnewline
43 & 0.184502445292342 & 0.369004890584684 & 0.815497554707658 \tabularnewline
44 & 0.140358551131250 & 0.280717102262499 & 0.85964144886875 \tabularnewline
45 & 0.104742263719236 & 0.209484527438472 & 0.895257736280764 \tabularnewline
46 & 0.0884193343763509 & 0.176838668752702 & 0.91158066562365 \tabularnewline
47 & 0.102359089456146 & 0.204718178912292 & 0.897640910543854 \tabularnewline
48 & 0.188372087578019 & 0.376744175156038 & 0.811627912421981 \tabularnewline
49 & 0.270475166007540 & 0.540950332015079 & 0.72952483399246 \tabularnewline
50 & 0.376881822184584 & 0.753763644369168 & 0.623118177815416 \tabularnewline
51 & 0.698581928455804 & 0.602836143088391 & 0.301418071544196 \tabularnewline
52 & 0.981847567982066 & 0.0363048640358671 & 0.0181524320179335 \tabularnewline
53 & 0.999950922385854 & 9.81552282914263e-05 & 4.90776141457132e-05 \tabularnewline
54 & 0.9997987162157 & 0.00040256756859842 & 0.00020128378429921 \tabularnewline
55 & 0.999257038039036 & 0.00148592392192808 & 0.000742961960964042 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58114&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]5[/C][C]0.0903790621533375[/C][C]0.180758124306675[/C][C]0.909620937846662[/C][/ROW]
[ROW][C]6[/C][C]0.0343802613815953[/C][C]0.0687605227631905[/C][C]0.965619738618405[/C][/ROW]
[ROW][C]7[/C][C]0.0691322101110813[/C][C]0.138264420222163[/C][C]0.930867789888919[/C][/ROW]
[ROW][C]8[/C][C]0.0746845737398752[/C][C]0.149369147479750[/C][C]0.925315426260125[/C][/ROW]
[ROW][C]9[/C][C]0.102427150080362[/C][C]0.204854300160724[/C][C]0.897572849919638[/C][/ROW]
[ROW][C]10[/C][C]0.213299036988905[/C][C]0.426598073977809[/C][C]0.786700963011095[/C][/ROW]
[ROW][C]11[/C][C]0.306909259327257[/C][C]0.613818518654513[/C][C]0.693090740672743[/C][/ROW]
[ROW][C]12[/C][C]0.453906568866853[/C][C]0.907813137733706[/C][C]0.546093431133147[/C][/ROW]
[ROW][C]13[/C][C]0.540176510056011[/C][C]0.919646979887978[/C][C]0.459823489943989[/C][/ROW]
[ROW][C]14[/C][C]0.551160996526842[/C][C]0.897678006946317[/C][C]0.448839003473158[/C][/ROW]
[ROW][C]15[/C][C]0.515502391640444[/C][C]0.968995216719111[/C][C]0.484497608359556[/C][/ROW]
[ROW][C]16[/C][C]0.446125600147835[/C][C]0.89225120029567[/C][C]0.553874399852165[/C][/ROW]
[ROW][C]17[/C][C]0.374567234186011[/C][C]0.749134468372022[/C][C]0.625432765813989[/C][/ROW]
[ROW][C]18[/C][C]0.307614997704785[/C][C]0.61522999540957[/C][C]0.692385002295215[/C][/ROW]
[ROW][C]19[/C][C]0.241761700038992[/C][C]0.483523400077984[/C][C]0.758238299961008[/C][/ROW]
[ROW][C]20[/C][C]0.194905005837665[/C][C]0.389810011675331[/C][C]0.805094994162335[/C][/ROW]
[ROW][C]21[/C][C]0.166986929353390[/C][C]0.333973858706779[/C][C]0.83301307064661[/C][/ROW]
[ROW][C]22[/C][C]0.166346130922583[/C][C]0.332692261845165[/C][C]0.833653869077417[/C][/ROW]
[ROW][C]23[/C][C]0.201144254700230[/C][C]0.402288509400461[/C][C]0.79885574529977[/C][/ROW]
[ROW][C]24[/C][C]0.286904073240100[/C][C]0.573808146480199[/C][C]0.7130959267599[/C][/ROW]
[ROW][C]25[/C][C]0.383532762100558[/C][C]0.767065524201117[/C][C]0.616467237899442[/C][/ROW]
[ROW][C]26[/C][C]0.424011861951469[/C][C]0.848023723902938[/C][C]0.575988138048531[/C][/ROW]
[ROW][C]27[/C][C]0.418791815635115[/C][C]0.83758363127023[/C][C]0.581208184364885[/C][/ROW]
[ROW][C]28[/C][C]0.37397717682331[/C][C]0.74795435364662[/C][C]0.62602282317669[/C][/ROW]
[ROW][C]29[/C][C]0.337146471171769[/C][C]0.674292942343538[/C][C]0.662853528828231[/C][/ROW]
[ROW][C]30[/C][C]0.307611941574912[/C][C]0.615223883149824[/C][C]0.692388058425088[/C][/ROW]
[ROW][C]31[/C][C]0.263194864623799[/C][C]0.526389729247599[/C][C]0.7368051353762[/C][/ROW]
[ROW][C]32[/C][C]0.220044081998782[/C][C]0.440088163997564[/C][C]0.779955918001218[/C][/ROW]
[ROW][C]33[/C][C]0.188826080525171[/C][C]0.377652161050342[/C][C]0.81117391947483[/C][/ROW]
[ROW][C]34[/C][C]0.176452741593108[/C][C]0.352905483186217[/C][C]0.823547258406892[/C][/ROW]
[ROW][C]35[/C][C]0.191464749258424[/C][C]0.382929498516848[/C][C]0.808535250741576[/C][/ROW]
[ROW][C]36[/C][C]0.264360930508538[/C][C]0.528721861017077[/C][C]0.735639069491462[/C][/ROW]
[ROW][C]37[/C][C]0.319620917214577[/C][C]0.639241834429153[/C][C]0.680379082785423[/C][/ROW]
[ROW][C]38[/C][C]0.331402366731119[/C][C]0.662804733462238[/C][C]0.668597633268881[/C][/ROW]
[ROW][C]39[/C][C]0.313380695969987[/C][C]0.626761391939974[/C][C]0.686619304030013[/C][/ROW]
[ROW][C]40[/C][C]0.290903333979374[/C][C]0.581806667958748[/C][C]0.709096666020626[/C][/ROW]
[ROW][C]41[/C][C]0.259732461016266[/C][C]0.519464922032532[/C][C]0.740267538983734[/C][/ROW]
[ROW][C]42[/C][C]0.226648597458369[/C][C]0.453297194916737[/C][C]0.773351402541631[/C][/ROW]
[ROW][C]43[/C][C]0.184502445292342[/C][C]0.369004890584684[/C][C]0.815497554707658[/C][/ROW]
[ROW][C]44[/C][C]0.140358551131250[/C][C]0.280717102262499[/C][C]0.85964144886875[/C][/ROW]
[ROW][C]45[/C][C]0.104742263719236[/C][C]0.209484527438472[/C][C]0.895257736280764[/C][/ROW]
[ROW][C]46[/C][C]0.0884193343763509[/C][C]0.176838668752702[/C][C]0.91158066562365[/C][/ROW]
[ROW][C]47[/C][C]0.102359089456146[/C][C]0.204718178912292[/C][C]0.897640910543854[/C][/ROW]
[ROW][C]48[/C][C]0.188372087578019[/C][C]0.376744175156038[/C][C]0.811627912421981[/C][/ROW]
[ROW][C]49[/C][C]0.270475166007540[/C][C]0.540950332015079[/C][C]0.72952483399246[/C][/ROW]
[ROW][C]50[/C][C]0.376881822184584[/C][C]0.753763644369168[/C][C]0.623118177815416[/C][/ROW]
[ROW][C]51[/C][C]0.698581928455804[/C][C]0.602836143088391[/C][C]0.301418071544196[/C][/ROW]
[ROW][C]52[/C][C]0.981847567982066[/C][C]0.0363048640358671[/C][C]0.0181524320179335[/C][/ROW]
[ROW][C]53[/C][C]0.999950922385854[/C][C]9.81552282914263e-05[/C][C]4.90776141457132e-05[/C][/ROW]
[ROW][C]54[/C][C]0.9997987162157[/C][C]0.00040256756859842[/C][C]0.00020128378429921[/C][/ROW]
[ROW][C]55[/C][C]0.999257038039036[/C][C]0.00148592392192808[/C][C]0.000742961960964042[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58114&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58114&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
50.09037906215333750.1807581243066750.909620937846662
60.03438026138159530.06876052276319050.965619738618405
70.06913221011108130.1382644202221630.930867789888919
80.07468457373987520.1493691474797500.925315426260125
90.1024271500803620.2048543001607240.897572849919638
100.2132990369889050.4265980739778090.786700963011095
110.3069092593272570.6138185186545130.693090740672743
120.4539065688668530.9078131377337060.546093431133147
130.5401765100560110.9196469798879780.459823489943989
140.5511609965268420.8976780069463170.448839003473158
150.5155023916404440.9689952167191110.484497608359556
160.4461256001478350.892251200295670.553874399852165
170.3745672341860110.7491344683720220.625432765813989
180.3076149977047850.615229995409570.692385002295215
190.2417617000389920.4835234000779840.758238299961008
200.1949050058376650.3898100116753310.805094994162335
210.1669869293533900.3339738587067790.83301307064661
220.1663461309225830.3326922618451650.833653869077417
230.2011442547002300.4022885094004610.79885574529977
240.2869040732401000.5738081464801990.7130959267599
250.3835327621005580.7670655242011170.616467237899442
260.4240118619514690.8480237239029380.575988138048531
270.4187918156351150.837583631270230.581208184364885
280.373977176823310.747954353646620.62602282317669
290.3371464711717690.6742929423435380.662853528828231
300.3076119415749120.6152238831498240.692388058425088
310.2631948646237990.5263897292475990.7368051353762
320.2200440819987820.4400881639975640.779955918001218
330.1888260805251710.3776521610503420.81117391947483
340.1764527415931080.3529054831862170.823547258406892
350.1914647492584240.3829294985168480.808535250741576
360.2643609305085380.5287218610170770.735639069491462
370.3196209172145770.6392418344291530.680379082785423
380.3314023667311190.6628047334622380.668597633268881
390.3133806959699870.6267613919399740.686619304030013
400.2909033339793740.5818066679587480.709096666020626
410.2597324610162660.5194649220325320.740267538983734
420.2266485974583690.4532971949167370.773351402541631
430.1845024452923420.3690048905846840.815497554707658
440.1403585511312500.2807171022624990.85964144886875
450.1047422637192360.2094845274384720.895257736280764
460.08841933437635090.1768386687527020.91158066562365
470.1023590894561460.2047181789122920.897640910543854
480.1883720875780190.3767441751560380.811627912421981
490.2704751660075400.5409503320150790.72952483399246
500.3768818221845840.7537636443691680.623118177815416
510.6985819284558040.6028361430883910.301418071544196
520.9818475679820660.03630486403586710.0181524320179335
530.9999509223858549.81552282914263e-054.90776141457132e-05
540.99979871621570.000402567568598420.00020128378429921
550.9992570380390360.001485923921928080.000742961960964042







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.0588235294117647NOK
5% type I error level40.0784313725490196NOK
10% type I error level50.0980392156862745OK

\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 & 3 & 0.0588235294117647 & NOK \tabularnewline
5% type I error level & 4 & 0.0784313725490196 & NOK \tabularnewline
10% type I error level & 5 & 0.0980392156862745 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58114&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]3[/C][C]0.0588235294117647[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]4[/C][C]0.0784313725490196[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]5[/C][C]0.0980392156862745[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58114&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58114&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 level30.0588235294117647NOK
5% type I error level40.0784313725490196NOK
10% type I error level50.0980392156862745OK



Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No 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')
}