Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 18 Nov 2009 09:21:49 -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/18/t1258561369aj3q0ghomeeytbb.htm/, Retrieved Sun, 05 May 2024 13:35:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57509, Retrieved Sun, 05 May 2024 13:35:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact170
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]
- R PD      [Multiple Regression] [] [2009-11-18 16:21:49] [e76c6d261190c0179bc6006a5cdb804c] [Current]
Feedback Forum

Post a new message
Dataseries X:
17823.2	0
17872	0
17420.4	0
16704.4	0
15991.2	0
15583.6	0
19123.5	0
17838.7	0
17209.4	0
18586.5	0
16258.1	0
15141.6	0
19202.1	0
17746.5	0
19090.1	1
18040.3	1
17515.5	1
17751.8	1
21072.4	1
17170	1
19439.5	1
19795.4	1
17574.9	1
16165.4	1
19464.6	1
19932.1	1
19961.2	1
17343.4	1
18924.2	1
18574.1	1
21350.6	1
18594.6	1
19832.1	1
20844.4	1
19640.2	1
17735.4	1
19813.6	1
22160	1
20664.3	1
17877.4	1
20906.5	1
21164.1	1
21374.4	1
22952.3	1
21343.5	1
23899.3	1
22392.9	1
18274.1	1
22786.7	1
22321.5	1
17842.2	1
16373.5	1
15933.8	0
16446.1	0
17729	0
16643	0
16196.7	0
18252.1	0
17570.4	0
15836.8	0




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 14512.3328981723 + 2551.15600522193X[t] + 3366.93468015666M1[t] + 3538.99152741514M2[t] + 2001.65717362924M3[t] + 257.494020887727M4[t] + 1337.84206919060M5[t] + 1371.21891644909M6[t] + 3580.93576370757M7[t] + 2074.35261096606M8[t] + 2222.54945822454M9[t] + 3677.52630548303M10[t] + 2072.96315274152M11[t] + 16.3231527415143t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  14512.3328981723 +  2551.15600522193X[t] +  3366.93468015666M1[t] +  3538.99152741514M2[t] +  2001.65717362924M3[t] +  257.494020887727M4[t] +  1337.84206919060M5[t] +  1371.21891644909M6[t] +  3580.93576370757M7[t] +  2074.35261096606M8[t] +  2222.54945822454M9[t] +  3677.52630548303M10[t] +  2072.96315274152M11[t] +  16.3231527415143t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57509&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  14512.3328981723 +  2551.15600522193X[t] +  3366.93468015666M1[t] +  3538.99152741514M2[t] +  2001.65717362924M3[t] +  257.494020887727M4[t] +  1337.84206919060M5[t] +  1371.21891644909M6[t] +  3580.93576370757M7[t] +  2074.35261096606M8[t] +  2222.54945822454M9[t] +  3677.52630548303M10[t] +  2072.96315274152M11[t] +  16.3231527415143t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57509&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57509&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] = + 14512.3328981723 + 2551.15600522193X[t] + 3366.93468015666M1[t] + 3538.99152741514M2[t] + 2001.65717362924M3[t] + 257.494020887727M4[t] + 1337.84206919060M5[t] + 1371.21891644909M6[t] + 3580.93576370757M7[t] + 2074.35261096606M8[t] + 2222.54945822454M9[t] + 3677.52630548303M10[t] + 2072.96315274152M11[t] + 16.3231527415143t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)14512.3328981723702.69607120.652400
X2551.15600522193368.6505656.920300
M13366.93468015666840.8060464.00440.0002250.000112
M23538.99152741514839.4692544.21570.0001155.8e-05
M32001.65717362924843.510572.3730.0218790.010939
M4257.494020887727842.2079540.30570.7611840.380592
M51337.84206919060836.2138621.59990.1164720.058236
M61371.21891644909835.3820271.64140.1075290.053765
M73580.93576370757834.677524.29029.1e-054.5e-05
M82074.35261096606834.1006622.48690.0165750.008287
M92222.54945822454833.6517192.6660.0105550.005277
M103677.52630548303833.3308974.4136.1e-053.1e-05
M112072.96315274152833.1383442.48810.0165250.008263
t16.323152741514310.3421891.57830.1213480.060674

\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) & 14512.3328981723 & 702.696071 & 20.6524 & 0 & 0 \tabularnewline
X & 2551.15600522193 & 368.650565 & 6.9203 & 0 & 0 \tabularnewline
M1 & 3366.93468015666 & 840.806046 & 4.0044 & 0.000225 & 0.000112 \tabularnewline
M2 & 3538.99152741514 & 839.469254 & 4.2157 & 0.000115 & 5.8e-05 \tabularnewline
M3 & 2001.65717362924 & 843.51057 & 2.373 & 0.021879 & 0.010939 \tabularnewline
M4 & 257.494020887727 & 842.207954 & 0.3057 & 0.761184 & 0.380592 \tabularnewline
M5 & 1337.84206919060 & 836.213862 & 1.5999 & 0.116472 & 0.058236 \tabularnewline
M6 & 1371.21891644909 & 835.382027 & 1.6414 & 0.107529 & 0.053765 \tabularnewline
M7 & 3580.93576370757 & 834.67752 & 4.2902 & 9.1e-05 & 4.5e-05 \tabularnewline
M8 & 2074.35261096606 & 834.100662 & 2.4869 & 0.016575 & 0.008287 \tabularnewline
M9 & 2222.54945822454 & 833.651719 & 2.666 & 0.010555 & 0.005277 \tabularnewline
M10 & 3677.52630548303 & 833.330897 & 4.413 & 6.1e-05 & 3.1e-05 \tabularnewline
M11 & 2072.96315274152 & 833.138344 & 2.4881 & 0.016525 & 0.008263 \tabularnewline
t & 16.3231527415143 & 10.342189 & 1.5783 & 0.121348 & 0.060674 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57509&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]14512.3328981723[/C][C]702.696071[/C][C]20.6524[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]2551.15600522193[/C][C]368.650565[/C][C]6.9203[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]3366.93468015666[/C][C]840.806046[/C][C]4.0044[/C][C]0.000225[/C][C]0.000112[/C][/ROW]
[ROW][C]M2[/C][C]3538.99152741514[/C][C]839.469254[/C][C]4.2157[/C][C]0.000115[/C][C]5.8e-05[/C][/ROW]
[ROW][C]M3[/C][C]2001.65717362924[/C][C]843.51057[/C][C]2.373[/C][C]0.021879[/C][C]0.010939[/C][/ROW]
[ROW][C]M4[/C][C]257.494020887727[/C][C]842.207954[/C][C]0.3057[/C][C]0.761184[/C][C]0.380592[/C][/ROW]
[ROW][C]M5[/C][C]1337.84206919060[/C][C]836.213862[/C][C]1.5999[/C][C]0.116472[/C][C]0.058236[/C][/ROW]
[ROW][C]M6[/C][C]1371.21891644909[/C][C]835.382027[/C][C]1.6414[/C][C]0.107529[/C][C]0.053765[/C][/ROW]
[ROW][C]M7[/C][C]3580.93576370757[/C][C]834.67752[/C][C]4.2902[/C][C]9.1e-05[/C][C]4.5e-05[/C][/ROW]
[ROW][C]M8[/C][C]2074.35261096606[/C][C]834.100662[/C][C]2.4869[/C][C]0.016575[/C][C]0.008287[/C][/ROW]
[ROW][C]M9[/C][C]2222.54945822454[/C][C]833.651719[/C][C]2.666[/C][C]0.010555[/C][C]0.005277[/C][/ROW]
[ROW][C]M10[/C][C]3677.52630548303[/C][C]833.330897[/C][C]4.413[/C][C]6.1e-05[/C][C]3.1e-05[/C][/ROW]
[ROW][C]M11[/C][C]2072.96315274152[/C][C]833.138344[/C][C]2.4881[/C][C]0.016525[/C][C]0.008263[/C][/ROW]
[ROW][C]t[/C][C]16.3231527415143[/C][C]10.342189[/C][C]1.5783[/C][C]0.121348[/C][C]0.060674[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57509&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57509&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)14512.3328981723702.69607120.652400
X2551.15600522193368.6505656.920300
M13366.93468015666840.8060464.00440.0002250.000112
M23538.99152741514839.4692544.21570.0001155.8e-05
M32001.65717362924843.510572.3730.0218790.010939
M4257.494020887727842.2079540.30570.7611840.380592
M51337.84206919060836.2138621.59990.1164720.058236
M61371.21891644909835.3820271.64140.1075290.053765
M73580.93576370757834.677524.29029.1e-054.5e-05
M82074.35261096606834.1006622.48690.0165750.008287
M92222.54945822454833.6517192.6660.0105550.005277
M103677.52630548303833.3308974.4136.1e-053.1e-05
M112072.96315274152833.1383442.48810.0165250.008263
t16.323152741514310.3421891.57830.1213480.060674







Multiple Linear Regression - Regression Statistics
Multiple R0.83185183405605
R-squared0.691977473822413
Adjusted R-squared0.604927629467877
F-TEST (value)7.9492097769197
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value5.56225816517042e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1317.20588736988
Sum Squared Residuals79811442.0872062

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.83185183405605 \tabularnewline
R-squared & 0.691977473822413 \tabularnewline
Adjusted R-squared & 0.604927629467877 \tabularnewline
F-TEST (value) & 7.9492097769197 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 5.56225816517042e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1317.20588736988 \tabularnewline
Sum Squared Residuals & 79811442.0872062 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57509&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.83185183405605[/C][/ROW]
[ROW][C]R-squared[/C][C]0.691977473822413[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.604927629467877[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]7.9492097769197[/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]5.56225816517042e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1317.20588736988[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]79811442.0872062[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57509&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57509&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.83185183405605
R-squared0.691977473822413
Adjusted R-squared0.604927629467877
F-TEST (value)7.9492097769197
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value5.56225816517042e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1317.20588736988
Sum Squared Residuals79811442.0872062







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
117823.217895.5907310705-72.3907310704674
21787218083.9707310705-211.970731070499
317420.416562.9595300261857.440469973893
416704.414835.11953002611869.28046997389
515991.215931.790731070559.4092689295067
615583.615981.4907310705-397.890731070495
719123.518207.5307310705915.969268929495
817838.716717.27073107051121.42926892950
917209.416881.7907310705327.609268929503
1018586.518353.0907310705233.409268929503
1116258.116764.8507310705-506.750731070498
1215141.614708.2107310705433.3892689295
1319202.118091.46856396871110.63143603132
1417746.518279.8485639687-533.348563968669
1519090.119309.9933681462-219.893368146218
1618040.317582.1533681462458.146631853785
1717515.518678.8245691906-1163.32456919060
1817751.818728.5245691906-976.7245691906
1921072.420954.5645691906117.835430809402
201717019464.3045691906-2294.3045691906
2119439.519628.8245691906-189.324569190601
2219795.421100.1245691906-1304.7245691906
2317574.919511.8845691906-1936.9845691906
2416165.417455.2445691906-1289.8445691906
2519464.620838.5024020888-1373.90240208878
2619932.121026.8824020888-1094.78240208877
2719961.219505.8712010444455.328798955613
2817343.417778.0312010444-434.631201044384
2918924.218874.702402088849.497597911227
3018574.118924.4024020888-350.302402088773
3121350.621150.4424020888200.157597911227
3218594.619660.1824020888-1065.58240208877
3319832.119824.70240208887.39759791122636
3420844.421296.0024020888-451.602402088772
3519640.219707.7624020888-67.562402088774
3617735.417651.122402088884.2775979112295
3719813.621034.3802349870-1220.78023498695
382216021222.7602349869937.239765013057
3920664.319701.7490339426962.55096605744
4017877.417973.9090339426-96.5090339425561
4120906.519070.58023498691835.91976501305
4221164.119120.28023498692043.81976501306
4321374.421346.320234986928.0797650130584
4422952.319856.06023498693096.23976501306
4521343.520020.58023498691322.91976501306
4623899.321491.88023498692407.41976501305
4722392.919903.64023498692489.25976501306
4818274.117847.0002349869427.099765013055
4922786.721230.25806788511556.44193211488
5022321.521418.6380678851902.861932114885
5117842.219897.6268668407-2055.42686684073
5216373.518169.7868668407-1796.28686684073
5315933.816715.3020626632-781.502062663187
5416446.116765.0020626632-318.902062663186
551772918991.0420626632-1262.04206266318
561664317500.7820626632-857.782062663184
5716196.717665.3020626632-1468.60206266318
5818252.119136.6020626632-884.502062663186
5917570.417548.362062663222.0379373368146
6015836.815491.7220626632345.077937336815

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 17823.2 & 17895.5907310705 & -72.3907310704674 \tabularnewline
2 & 17872 & 18083.9707310705 & -211.970731070499 \tabularnewline
3 & 17420.4 & 16562.9595300261 & 857.440469973893 \tabularnewline
4 & 16704.4 & 14835.1195300261 & 1869.28046997389 \tabularnewline
5 & 15991.2 & 15931.7907310705 & 59.4092689295067 \tabularnewline
6 & 15583.6 & 15981.4907310705 & -397.890731070495 \tabularnewline
7 & 19123.5 & 18207.5307310705 & 915.969268929495 \tabularnewline
8 & 17838.7 & 16717.2707310705 & 1121.42926892950 \tabularnewline
9 & 17209.4 & 16881.7907310705 & 327.609268929503 \tabularnewline
10 & 18586.5 & 18353.0907310705 & 233.409268929503 \tabularnewline
11 & 16258.1 & 16764.8507310705 & -506.750731070498 \tabularnewline
12 & 15141.6 & 14708.2107310705 & 433.3892689295 \tabularnewline
13 & 19202.1 & 18091.4685639687 & 1110.63143603132 \tabularnewline
14 & 17746.5 & 18279.8485639687 & -533.348563968669 \tabularnewline
15 & 19090.1 & 19309.9933681462 & -219.893368146218 \tabularnewline
16 & 18040.3 & 17582.1533681462 & 458.146631853785 \tabularnewline
17 & 17515.5 & 18678.8245691906 & -1163.32456919060 \tabularnewline
18 & 17751.8 & 18728.5245691906 & -976.7245691906 \tabularnewline
19 & 21072.4 & 20954.5645691906 & 117.835430809402 \tabularnewline
20 & 17170 & 19464.3045691906 & -2294.3045691906 \tabularnewline
21 & 19439.5 & 19628.8245691906 & -189.324569190601 \tabularnewline
22 & 19795.4 & 21100.1245691906 & -1304.7245691906 \tabularnewline
23 & 17574.9 & 19511.8845691906 & -1936.9845691906 \tabularnewline
24 & 16165.4 & 17455.2445691906 & -1289.8445691906 \tabularnewline
25 & 19464.6 & 20838.5024020888 & -1373.90240208878 \tabularnewline
26 & 19932.1 & 21026.8824020888 & -1094.78240208877 \tabularnewline
27 & 19961.2 & 19505.8712010444 & 455.328798955613 \tabularnewline
28 & 17343.4 & 17778.0312010444 & -434.631201044384 \tabularnewline
29 & 18924.2 & 18874.7024020888 & 49.497597911227 \tabularnewline
30 & 18574.1 & 18924.4024020888 & -350.302402088773 \tabularnewline
31 & 21350.6 & 21150.4424020888 & 200.157597911227 \tabularnewline
32 & 18594.6 & 19660.1824020888 & -1065.58240208877 \tabularnewline
33 & 19832.1 & 19824.7024020888 & 7.39759791122636 \tabularnewline
34 & 20844.4 & 21296.0024020888 & -451.602402088772 \tabularnewline
35 & 19640.2 & 19707.7624020888 & -67.562402088774 \tabularnewline
36 & 17735.4 & 17651.1224020888 & 84.2775979112295 \tabularnewline
37 & 19813.6 & 21034.3802349870 & -1220.78023498695 \tabularnewline
38 & 22160 & 21222.7602349869 & 937.239765013057 \tabularnewline
39 & 20664.3 & 19701.7490339426 & 962.55096605744 \tabularnewline
40 & 17877.4 & 17973.9090339426 & -96.5090339425561 \tabularnewline
41 & 20906.5 & 19070.5802349869 & 1835.91976501305 \tabularnewline
42 & 21164.1 & 19120.2802349869 & 2043.81976501306 \tabularnewline
43 & 21374.4 & 21346.3202349869 & 28.0797650130584 \tabularnewline
44 & 22952.3 & 19856.0602349869 & 3096.23976501306 \tabularnewline
45 & 21343.5 & 20020.5802349869 & 1322.91976501306 \tabularnewline
46 & 23899.3 & 21491.8802349869 & 2407.41976501305 \tabularnewline
47 & 22392.9 & 19903.6402349869 & 2489.25976501306 \tabularnewline
48 & 18274.1 & 17847.0002349869 & 427.099765013055 \tabularnewline
49 & 22786.7 & 21230.2580678851 & 1556.44193211488 \tabularnewline
50 & 22321.5 & 21418.6380678851 & 902.861932114885 \tabularnewline
51 & 17842.2 & 19897.6268668407 & -2055.42686684073 \tabularnewline
52 & 16373.5 & 18169.7868668407 & -1796.28686684073 \tabularnewline
53 & 15933.8 & 16715.3020626632 & -781.502062663187 \tabularnewline
54 & 16446.1 & 16765.0020626632 & -318.902062663186 \tabularnewline
55 & 17729 & 18991.0420626632 & -1262.04206266318 \tabularnewline
56 & 16643 & 17500.7820626632 & -857.782062663184 \tabularnewline
57 & 16196.7 & 17665.3020626632 & -1468.60206266318 \tabularnewline
58 & 18252.1 & 19136.6020626632 & -884.502062663186 \tabularnewline
59 & 17570.4 & 17548.3620626632 & 22.0379373368146 \tabularnewline
60 & 15836.8 & 15491.7220626632 & 345.077937336815 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57509&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]17823.2[/C][C]17895.5907310705[/C][C]-72.3907310704674[/C][/ROW]
[ROW][C]2[/C][C]17872[/C][C]18083.9707310705[/C][C]-211.970731070499[/C][/ROW]
[ROW][C]3[/C][C]17420.4[/C][C]16562.9595300261[/C][C]857.440469973893[/C][/ROW]
[ROW][C]4[/C][C]16704.4[/C][C]14835.1195300261[/C][C]1869.28046997389[/C][/ROW]
[ROW][C]5[/C][C]15991.2[/C][C]15931.7907310705[/C][C]59.4092689295067[/C][/ROW]
[ROW][C]6[/C][C]15583.6[/C][C]15981.4907310705[/C][C]-397.890731070495[/C][/ROW]
[ROW][C]7[/C][C]19123.5[/C][C]18207.5307310705[/C][C]915.969268929495[/C][/ROW]
[ROW][C]8[/C][C]17838.7[/C][C]16717.2707310705[/C][C]1121.42926892950[/C][/ROW]
[ROW][C]9[/C][C]17209.4[/C][C]16881.7907310705[/C][C]327.609268929503[/C][/ROW]
[ROW][C]10[/C][C]18586.5[/C][C]18353.0907310705[/C][C]233.409268929503[/C][/ROW]
[ROW][C]11[/C][C]16258.1[/C][C]16764.8507310705[/C][C]-506.750731070498[/C][/ROW]
[ROW][C]12[/C][C]15141.6[/C][C]14708.2107310705[/C][C]433.3892689295[/C][/ROW]
[ROW][C]13[/C][C]19202.1[/C][C]18091.4685639687[/C][C]1110.63143603132[/C][/ROW]
[ROW][C]14[/C][C]17746.5[/C][C]18279.8485639687[/C][C]-533.348563968669[/C][/ROW]
[ROW][C]15[/C][C]19090.1[/C][C]19309.9933681462[/C][C]-219.893368146218[/C][/ROW]
[ROW][C]16[/C][C]18040.3[/C][C]17582.1533681462[/C][C]458.146631853785[/C][/ROW]
[ROW][C]17[/C][C]17515.5[/C][C]18678.8245691906[/C][C]-1163.32456919060[/C][/ROW]
[ROW][C]18[/C][C]17751.8[/C][C]18728.5245691906[/C][C]-976.7245691906[/C][/ROW]
[ROW][C]19[/C][C]21072.4[/C][C]20954.5645691906[/C][C]117.835430809402[/C][/ROW]
[ROW][C]20[/C][C]17170[/C][C]19464.3045691906[/C][C]-2294.3045691906[/C][/ROW]
[ROW][C]21[/C][C]19439.5[/C][C]19628.8245691906[/C][C]-189.324569190601[/C][/ROW]
[ROW][C]22[/C][C]19795.4[/C][C]21100.1245691906[/C][C]-1304.7245691906[/C][/ROW]
[ROW][C]23[/C][C]17574.9[/C][C]19511.8845691906[/C][C]-1936.9845691906[/C][/ROW]
[ROW][C]24[/C][C]16165.4[/C][C]17455.2445691906[/C][C]-1289.8445691906[/C][/ROW]
[ROW][C]25[/C][C]19464.6[/C][C]20838.5024020888[/C][C]-1373.90240208878[/C][/ROW]
[ROW][C]26[/C][C]19932.1[/C][C]21026.8824020888[/C][C]-1094.78240208877[/C][/ROW]
[ROW][C]27[/C][C]19961.2[/C][C]19505.8712010444[/C][C]455.328798955613[/C][/ROW]
[ROW][C]28[/C][C]17343.4[/C][C]17778.0312010444[/C][C]-434.631201044384[/C][/ROW]
[ROW][C]29[/C][C]18924.2[/C][C]18874.7024020888[/C][C]49.497597911227[/C][/ROW]
[ROW][C]30[/C][C]18574.1[/C][C]18924.4024020888[/C][C]-350.302402088773[/C][/ROW]
[ROW][C]31[/C][C]21350.6[/C][C]21150.4424020888[/C][C]200.157597911227[/C][/ROW]
[ROW][C]32[/C][C]18594.6[/C][C]19660.1824020888[/C][C]-1065.58240208877[/C][/ROW]
[ROW][C]33[/C][C]19832.1[/C][C]19824.7024020888[/C][C]7.39759791122636[/C][/ROW]
[ROW][C]34[/C][C]20844.4[/C][C]21296.0024020888[/C][C]-451.602402088772[/C][/ROW]
[ROW][C]35[/C][C]19640.2[/C][C]19707.7624020888[/C][C]-67.562402088774[/C][/ROW]
[ROW][C]36[/C][C]17735.4[/C][C]17651.1224020888[/C][C]84.2775979112295[/C][/ROW]
[ROW][C]37[/C][C]19813.6[/C][C]21034.3802349870[/C][C]-1220.78023498695[/C][/ROW]
[ROW][C]38[/C][C]22160[/C][C]21222.7602349869[/C][C]937.239765013057[/C][/ROW]
[ROW][C]39[/C][C]20664.3[/C][C]19701.7490339426[/C][C]962.55096605744[/C][/ROW]
[ROW][C]40[/C][C]17877.4[/C][C]17973.9090339426[/C][C]-96.5090339425561[/C][/ROW]
[ROW][C]41[/C][C]20906.5[/C][C]19070.5802349869[/C][C]1835.91976501305[/C][/ROW]
[ROW][C]42[/C][C]21164.1[/C][C]19120.2802349869[/C][C]2043.81976501306[/C][/ROW]
[ROW][C]43[/C][C]21374.4[/C][C]21346.3202349869[/C][C]28.0797650130584[/C][/ROW]
[ROW][C]44[/C][C]22952.3[/C][C]19856.0602349869[/C][C]3096.23976501306[/C][/ROW]
[ROW][C]45[/C][C]21343.5[/C][C]20020.5802349869[/C][C]1322.91976501306[/C][/ROW]
[ROW][C]46[/C][C]23899.3[/C][C]21491.8802349869[/C][C]2407.41976501305[/C][/ROW]
[ROW][C]47[/C][C]22392.9[/C][C]19903.6402349869[/C][C]2489.25976501306[/C][/ROW]
[ROW][C]48[/C][C]18274.1[/C][C]17847.0002349869[/C][C]427.099765013055[/C][/ROW]
[ROW][C]49[/C][C]22786.7[/C][C]21230.2580678851[/C][C]1556.44193211488[/C][/ROW]
[ROW][C]50[/C][C]22321.5[/C][C]21418.6380678851[/C][C]902.861932114885[/C][/ROW]
[ROW][C]51[/C][C]17842.2[/C][C]19897.6268668407[/C][C]-2055.42686684073[/C][/ROW]
[ROW][C]52[/C][C]16373.5[/C][C]18169.7868668407[/C][C]-1796.28686684073[/C][/ROW]
[ROW][C]53[/C][C]15933.8[/C][C]16715.3020626632[/C][C]-781.502062663187[/C][/ROW]
[ROW][C]54[/C][C]16446.1[/C][C]16765.0020626632[/C][C]-318.902062663186[/C][/ROW]
[ROW][C]55[/C][C]17729[/C][C]18991.0420626632[/C][C]-1262.04206266318[/C][/ROW]
[ROW][C]56[/C][C]16643[/C][C]17500.7820626632[/C][C]-857.782062663184[/C][/ROW]
[ROW][C]57[/C][C]16196.7[/C][C]17665.3020626632[/C][C]-1468.60206266318[/C][/ROW]
[ROW][C]58[/C][C]18252.1[/C][C]19136.6020626632[/C][C]-884.502062663186[/C][/ROW]
[ROW][C]59[/C][C]17570.4[/C][C]17548.3620626632[/C][C]22.0379373368146[/C][/ROW]
[ROW][C]60[/C][C]15836.8[/C][C]15491.7220626632[/C][C]345.077937336815[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57509&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57509&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
117823.217895.5907310705-72.3907310704674
21787218083.9707310705-211.970731070499
317420.416562.9595300261857.440469973893
416704.414835.11953002611869.28046997389
515991.215931.790731070559.4092689295067
615583.615981.4907310705-397.890731070495
719123.518207.5307310705915.969268929495
817838.716717.27073107051121.42926892950
917209.416881.7907310705327.609268929503
1018586.518353.0907310705233.409268929503
1116258.116764.8507310705-506.750731070498
1215141.614708.2107310705433.3892689295
1319202.118091.46856396871110.63143603132
1417746.518279.8485639687-533.348563968669
1519090.119309.9933681462-219.893368146218
1618040.317582.1533681462458.146631853785
1717515.518678.8245691906-1163.32456919060
1817751.818728.5245691906-976.7245691906
1921072.420954.5645691906117.835430809402
201717019464.3045691906-2294.3045691906
2119439.519628.8245691906-189.324569190601
2219795.421100.1245691906-1304.7245691906
2317574.919511.8845691906-1936.9845691906
2416165.417455.2445691906-1289.8445691906
2519464.620838.5024020888-1373.90240208878
2619932.121026.8824020888-1094.78240208877
2719961.219505.8712010444455.328798955613
2817343.417778.0312010444-434.631201044384
2918924.218874.702402088849.497597911227
3018574.118924.4024020888-350.302402088773
3121350.621150.4424020888200.157597911227
3218594.619660.1824020888-1065.58240208877
3319832.119824.70240208887.39759791122636
3420844.421296.0024020888-451.602402088772
3519640.219707.7624020888-67.562402088774
3617735.417651.122402088884.2775979112295
3719813.621034.3802349870-1220.78023498695
382216021222.7602349869937.239765013057
3920664.319701.7490339426962.55096605744
4017877.417973.9090339426-96.5090339425561
4120906.519070.58023498691835.91976501305
4221164.119120.28023498692043.81976501306
4321374.421346.320234986928.0797650130584
4422952.319856.06023498693096.23976501306
4521343.520020.58023498691322.91976501306
4623899.321491.88023498692407.41976501305
4722392.919903.64023498692489.25976501306
4818274.117847.0002349869427.099765013055
4922786.721230.25806788511556.44193211488
5022321.521418.6380678851902.861932114885
5117842.219897.6268668407-2055.42686684073
5216373.518169.7868668407-1796.28686684073
5315933.816715.3020626632-781.502062663187
5416446.116765.0020626632-318.902062663186
551772918991.0420626632-1262.04206266318
561664317500.7820626632-857.782062663184
5716196.717665.3020626632-1468.60206266318
5818252.119136.6020626632-884.502062663186
5917570.417548.362062663222.0379373368146
6015836.815491.7220626632345.077937336815







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.06608993849325420.1321798769865080.933910061506746
180.03043578230231660.06087156460463320.969564217697683
190.01088175067200860.02176350134401730.989118249327991
200.1134562462887800.2269124925775600.88654375371122
210.07803442245410930.1560688449082190.92196557754589
220.04097380056949120.08194760113898250.959026199430509
230.02504224251441450.05008448502882900.974957757485586
240.01314057534785620.02628115069571230.986859424652144
250.00792500045314670.01585000090629340.992074999546853
260.004686470638243430.009372941276486860.995313529361757
270.003385507833437920.006771015666875840.996614492166562
280.006470160090399450.01294032018079890.9935298399096
290.005521812572632990.01104362514526600.994478187427367
300.003691950365646840.007383900731293690.996308049634353
310.001809564163344660.003619128326689330.998190435836655
320.001930977714667110.003861955429334230.998069022285333
330.0008365373720027660.001673074744005530.999163462627997
340.0006378259548147790.001275651909629560.999362174045185
350.002267261938864050.00453452387772810.997732738061136
360.002485606324523320.004971212649046640.997514393675477
370.05892227895908760.1178445579181750.941077721040912
380.1818479063671400.3636958127342810.81815209363286
390.1465838161379010.2931676322758030.853416183862099
400.1251039620042950.2502079240085900.874896037995705
410.1128385414451170.2256770828902350.887161458554882
420.09629517782381560.1925903556476310.903704822176184
430.08298019621238950.1659603924247790.91701980378761

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0660899384932542 & 0.132179876986508 & 0.933910061506746 \tabularnewline
18 & 0.0304357823023166 & 0.0608715646046332 & 0.969564217697683 \tabularnewline
19 & 0.0108817506720086 & 0.0217635013440173 & 0.989118249327991 \tabularnewline
20 & 0.113456246288780 & 0.226912492577560 & 0.88654375371122 \tabularnewline
21 & 0.0780344224541093 & 0.156068844908219 & 0.92196557754589 \tabularnewline
22 & 0.0409738005694912 & 0.0819476011389825 & 0.959026199430509 \tabularnewline
23 & 0.0250422425144145 & 0.0500844850288290 & 0.974957757485586 \tabularnewline
24 & 0.0131405753478562 & 0.0262811506957123 & 0.986859424652144 \tabularnewline
25 & 0.0079250004531467 & 0.0158500009062934 & 0.992074999546853 \tabularnewline
26 & 0.00468647063824343 & 0.00937294127648686 & 0.995313529361757 \tabularnewline
27 & 0.00338550783343792 & 0.00677101566687584 & 0.996614492166562 \tabularnewline
28 & 0.00647016009039945 & 0.0129403201807989 & 0.9935298399096 \tabularnewline
29 & 0.00552181257263299 & 0.0110436251452660 & 0.994478187427367 \tabularnewline
30 & 0.00369195036564684 & 0.00738390073129369 & 0.996308049634353 \tabularnewline
31 & 0.00180956416334466 & 0.00361912832668933 & 0.998190435836655 \tabularnewline
32 & 0.00193097771466711 & 0.00386195542933423 & 0.998069022285333 \tabularnewline
33 & 0.000836537372002766 & 0.00167307474400553 & 0.999163462627997 \tabularnewline
34 & 0.000637825954814779 & 0.00127565190962956 & 0.999362174045185 \tabularnewline
35 & 0.00226726193886405 & 0.0045345238777281 & 0.997732738061136 \tabularnewline
36 & 0.00248560632452332 & 0.00497121264904664 & 0.997514393675477 \tabularnewline
37 & 0.0589222789590876 & 0.117844557918175 & 0.941077721040912 \tabularnewline
38 & 0.181847906367140 & 0.363695812734281 & 0.81815209363286 \tabularnewline
39 & 0.146583816137901 & 0.293167632275803 & 0.853416183862099 \tabularnewline
40 & 0.125103962004295 & 0.250207924008590 & 0.874896037995705 \tabularnewline
41 & 0.112838541445117 & 0.225677082890235 & 0.887161458554882 \tabularnewline
42 & 0.0962951778238156 & 0.192590355647631 & 0.903704822176184 \tabularnewline
43 & 0.0829801962123895 & 0.165960392424779 & 0.91701980378761 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57509&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.0660899384932542[/C][C]0.132179876986508[/C][C]0.933910061506746[/C][/ROW]
[ROW][C]18[/C][C]0.0304357823023166[/C][C]0.0608715646046332[/C][C]0.969564217697683[/C][/ROW]
[ROW][C]19[/C][C]0.0108817506720086[/C][C]0.0217635013440173[/C][C]0.989118249327991[/C][/ROW]
[ROW][C]20[/C][C]0.113456246288780[/C][C]0.226912492577560[/C][C]0.88654375371122[/C][/ROW]
[ROW][C]21[/C][C]0.0780344224541093[/C][C]0.156068844908219[/C][C]0.92196557754589[/C][/ROW]
[ROW][C]22[/C][C]0.0409738005694912[/C][C]0.0819476011389825[/C][C]0.959026199430509[/C][/ROW]
[ROW][C]23[/C][C]0.0250422425144145[/C][C]0.0500844850288290[/C][C]0.974957757485586[/C][/ROW]
[ROW][C]24[/C][C]0.0131405753478562[/C][C]0.0262811506957123[/C][C]0.986859424652144[/C][/ROW]
[ROW][C]25[/C][C]0.0079250004531467[/C][C]0.0158500009062934[/C][C]0.992074999546853[/C][/ROW]
[ROW][C]26[/C][C]0.00468647063824343[/C][C]0.00937294127648686[/C][C]0.995313529361757[/C][/ROW]
[ROW][C]27[/C][C]0.00338550783343792[/C][C]0.00677101566687584[/C][C]0.996614492166562[/C][/ROW]
[ROW][C]28[/C][C]0.00647016009039945[/C][C]0.0129403201807989[/C][C]0.9935298399096[/C][/ROW]
[ROW][C]29[/C][C]0.00552181257263299[/C][C]0.0110436251452660[/C][C]0.994478187427367[/C][/ROW]
[ROW][C]30[/C][C]0.00369195036564684[/C][C]0.00738390073129369[/C][C]0.996308049634353[/C][/ROW]
[ROW][C]31[/C][C]0.00180956416334466[/C][C]0.00361912832668933[/C][C]0.998190435836655[/C][/ROW]
[ROW][C]32[/C][C]0.00193097771466711[/C][C]0.00386195542933423[/C][C]0.998069022285333[/C][/ROW]
[ROW][C]33[/C][C]0.000836537372002766[/C][C]0.00167307474400553[/C][C]0.999163462627997[/C][/ROW]
[ROW][C]34[/C][C]0.000637825954814779[/C][C]0.00127565190962956[/C][C]0.999362174045185[/C][/ROW]
[ROW][C]35[/C][C]0.00226726193886405[/C][C]0.0045345238777281[/C][C]0.997732738061136[/C][/ROW]
[ROW][C]36[/C][C]0.00248560632452332[/C][C]0.00497121264904664[/C][C]0.997514393675477[/C][/ROW]
[ROW][C]37[/C][C]0.0589222789590876[/C][C]0.117844557918175[/C][C]0.941077721040912[/C][/ROW]
[ROW][C]38[/C][C]0.181847906367140[/C][C]0.363695812734281[/C][C]0.81815209363286[/C][/ROW]
[ROW][C]39[/C][C]0.146583816137901[/C][C]0.293167632275803[/C][C]0.853416183862099[/C][/ROW]
[ROW][C]40[/C][C]0.125103962004295[/C][C]0.250207924008590[/C][C]0.874896037995705[/C][/ROW]
[ROW][C]41[/C][C]0.112838541445117[/C][C]0.225677082890235[/C][C]0.887161458554882[/C][/ROW]
[ROW][C]42[/C][C]0.0962951778238156[/C][C]0.192590355647631[/C][C]0.903704822176184[/C][/ROW]
[ROW][C]43[/C][C]0.0829801962123895[/C][C]0.165960392424779[/C][C]0.91701980378761[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57509&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57509&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.06608993849325420.1321798769865080.933910061506746
180.03043578230231660.06087156460463320.969564217697683
190.01088175067200860.02176350134401730.989118249327991
200.1134562462887800.2269124925775600.88654375371122
210.07803442245410930.1560688449082190.92196557754589
220.04097380056949120.08194760113898250.959026199430509
230.02504224251441450.05008448502882900.974957757485586
240.01314057534785620.02628115069571230.986859424652144
250.00792500045314670.01585000090629340.992074999546853
260.004686470638243430.009372941276486860.995313529361757
270.003385507833437920.006771015666875840.996614492166562
280.006470160090399450.01294032018079890.9935298399096
290.005521812572632990.01104362514526600.994478187427367
300.003691950365646840.007383900731293690.996308049634353
310.001809564163344660.003619128326689330.998190435836655
320.001930977714667110.003861955429334230.998069022285333
330.0008365373720027660.001673074744005530.999163462627997
340.0006378259548147790.001275651909629560.999362174045185
350.002267261938864050.00453452387772810.997732738061136
360.002485606324523320.004971212649046640.997514393675477
370.05892227895908760.1178445579181750.941077721040912
380.1818479063671400.3636958127342810.81815209363286
390.1465838161379010.2931676322758030.853416183862099
400.1251039620042950.2502079240085900.874896037995705
410.1128385414451170.2256770828902350.887161458554882
420.09629517782381560.1925903556476310.903704822176184
430.08298019621238950.1659603924247790.91701980378761







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

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

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



Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal 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')
}