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 10:17:20 -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/t1258737662uu5nmqy2mvdqgsa.htm/, Retrieved Fri, 19 Apr 2024 02:59:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58346, Retrieved Fri, 19 Apr 2024 02:59:02 +0000
QR Codes:

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

Post a new message
Dataseries X:
3956.2	3977.7
3142.7	3983.4
3884.3	4152.9
3892.2	4286.1
3613	4348.1
3730.5	3949.3
3481.3	4166.7
3649.5	4217.9
4215.2	4528.2
4066.6	4232.2
4196.8	4470.9
4536.6	5121.2
4441.6	4170.8
3548.3	4398.6
4735.9	4491.4
4130.6	4251.8
4356.2	4901.9
4159.6	4745.2
3988	4666.9
4167.8	4210.4
4902.2	5273.6
3909.4	4095.3
4697.6	4610.1
4308.9	4718.1
4420.4	4185.5
3544.2	4314.7
4433	4422.6
4479.7	5059.2
4533.2	5043.6
4237.5	4436.6
4207.4	4922.6
4394	4454.8
5148.4	5058.7
4202.2	4768.9
4682.5	5171.8
4884.3	4989.3
5288.9	5202.1
4505.2	4838.4
4611.5	4876.5
5104	5875.5
4586.6	5717.9
4529.3	4778.8
4504.1	6195.9
4604.9	4625.4
4795.4	5549.8
5391.1	6397.6
5213.9	5856.7
5415	6343.8
5990.3	6615.5
4241.8	5904.6
5677.6	6861
5164.2	6553.5
3962.3	5481
4011	5435.3
3310.3	5278
3837.3	4671.8
4145.3	4891.5
3796.7	4241.6
3849.6	4152.1
4285	4484.4
4189.6	4124.7




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 1677.68894339794 + 0.586252193687844X[t] + 273.970572539457M1[t] -629.564052274936M2[t] + 82.4442739799037M3[t] -175.120587025784M4[t] -456.435752915417M5[t] -281.343885814236M6[t] -737.70923779068M7[t] -147.638849728842M8[t] -3.03609424816335M9[t] -187.498457097383M10[t] + 5.70781212665605M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  1677.68894339794 +  0.586252193687844X[t] +  273.970572539457M1[t] -629.564052274936M2[t] +  82.4442739799037M3[t] -175.120587025784M4[t] -456.435752915417M5[t] -281.343885814236M6[t] -737.70923779068M7[t] -147.638849728842M8[t] -3.03609424816335M9[t] -187.498457097383M10[t] +  5.70781212665605M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58346&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  1677.68894339794 +  0.586252193687844X[t] +  273.970572539457M1[t] -629.564052274936M2[t] +  82.4442739799037M3[t] -175.120587025784M4[t] -456.435752915417M5[t] -281.343885814236M6[t] -737.70923779068M7[t] -147.638849728842M8[t] -3.03609424816335M9[t] -187.498457097383M10[t] +  5.70781212665605M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58346&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58346&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] = + 1677.68894339794 + 0.586252193687844X[t] + 273.970572539457M1[t] -629.564052274936M2[t] + 82.4442739799037M3[t] -175.120587025784M4[t] -456.435752915417M5[t] -281.343885814236M6[t] -737.70923779068M7[t] -147.638849728842M8[t] -3.03609424816335M9[t] -187.498457097383M10[t] + 5.70781212665605M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1677.68894339794309.748015.41632e-061e-06
X0.5862521936878440.05458910.739300
M1273.970572539457180.4569731.51820.1355220.067761
M2-629.564052274936188.524052-3.33940.001630.000815
M382.4442739799037187.1950710.44040.6616110.330805
M4-175.120587025784187.007064-0.93640.3537350.176868
M5-456.435752915417186.972198-2.44120.0183770.009188
M6-281.343885814236188.6593-1.49130.1424310.071216
M7-737.70923779068187.021625-3.94450.000260.00013
M8-147.638849728842190.777478-0.77390.4427970.221398
M9-3.03609424816335187.003763-0.01620.9871140.493557
M10-187.498457097383188.136532-0.99660.3239520.161976
M115.70781212665605187.5830980.03040.9758520.487926

\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) & 1677.68894339794 & 309.74801 & 5.4163 & 2e-06 & 1e-06 \tabularnewline
X & 0.586252193687844 & 0.054589 & 10.7393 & 0 & 0 \tabularnewline
M1 & 273.970572539457 & 180.456973 & 1.5182 & 0.135522 & 0.067761 \tabularnewline
M2 & -629.564052274936 & 188.524052 & -3.3394 & 0.00163 & 0.000815 \tabularnewline
M3 & 82.4442739799037 & 187.195071 & 0.4404 & 0.661611 & 0.330805 \tabularnewline
M4 & -175.120587025784 & 187.007064 & -0.9364 & 0.353735 & 0.176868 \tabularnewline
M5 & -456.435752915417 & 186.972198 & -2.4412 & 0.018377 & 0.009188 \tabularnewline
M6 & -281.343885814236 & 188.6593 & -1.4913 & 0.142431 & 0.071216 \tabularnewline
M7 & -737.70923779068 & 187.021625 & -3.9445 & 0.00026 & 0.00013 \tabularnewline
M8 & -147.638849728842 & 190.777478 & -0.7739 & 0.442797 & 0.221398 \tabularnewline
M9 & -3.03609424816335 & 187.003763 & -0.0162 & 0.987114 & 0.493557 \tabularnewline
M10 & -187.498457097383 & 188.136532 & -0.9966 & 0.323952 & 0.161976 \tabularnewline
M11 & 5.70781212665605 & 187.583098 & 0.0304 & 0.975852 & 0.487926 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58346&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]1677.68894339794[/C][C]309.74801[/C][C]5.4163[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]X[/C][C]0.586252193687844[/C][C]0.054589[/C][C]10.7393[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]273.970572539457[/C][C]180.456973[/C][C]1.5182[/C][C]0.135522[/C][C]0.067761[/C][/ROW]
[ROW][C]M2[/C][C]-629.564052274936[/C][C]188.524052[/C][C]-3.3394[/C][C]0.00163[/C][C]0.000815[/C][/ROW]
[ROW][C]M3[/C][C]82.4442739799037[/C][C]187.195071[/C][C]0.4404[/C][C]0.661611[/C][C]0.330805[/C][/ROW]
[ROW][C]M4[/C][C]-175.120587025784[/C][C]187.007064[/C][C]-0.9364[/C][C]0.353735[/C][C]0.176868[/C][/ROW]
[ROW][C]M5[/C][C]-456.435752915417[/C][C]186.972198[/C][C]-2.4412[/C][C]0.018377[/C][C]0.009188[/C][/ROW]
[ROW][C]M6[/C][C]-281.343885814236[/C][C]188.6593[/C][C]-1.4913[/C][C]0.142431[/C][C]0.071216[/C][/ROW]
[ROW][C]M7[/C][C]-737.70923779068[/C][C]187.021625[/C][C]-3.9445[/C][C]0.00026[/C][C]0.00013[/C][/ROW]
[ROW][C]M8[/C][C]-147.638849728842[/C][C]190.777478[/C][C]-0.7739[/C][C]0.442797[/C][C]0.221398[/C][/ROW]
[ROW][C]M9[/C][C]-3.03609424816335[/C][C]187.003763[/C][C]-0.0162[/C][C]0.987114[/C][C]0.493557[/C][/ROW]
[ROW][C]M10[/C][C]-187.498457097383[/C][C]188.136532[/C][C]-0.9966[/C][C]0.323952[/C][C]0.161976[/C][/ROW]
[ROW][C]M11[/C][C]5.70781212665605[/C][C]187.583098[/C][C]0.0304[/C][C]0.975852[/C][C]0.487926[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58346&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58346&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)1677.68894339794309.748015.41632e-061e-06
X0.5862521936878440.05458910.739300
M1273.970572539457180.4569731.51820.1355220.067761
M2-629.564052274936188.524052-3.33940.001630.000815
M382.4442739799037187.1950710.44040.6616110.330805
M4-175.120587025784187.007064-0.93640.3537350.176868
M5-456.435752915417186.972198-2.44120.0183770.009188
M6-281.343885814236188.6593-1.49130.1424310.071216
M7-737.70923779068187.021625-3.94450.000260.00013
M8-147.638849728842190.777478-0.77390.4427970.221398
M9-3.03609424816335187.003763-0.01620.9871140.493557
M10-187.498457097383188.136532-0.99660.3239520.161976
M115.70781212665605187.5830980.03040.9758520.487926







Multiple Linear Regression - Regression Statistics
Multiple R0.889456603915496
R-squared0.791133050248887
Adjusted R-squared0.738916312811109
F-TEST (value)15.1509475518574
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value1.84519066692701e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation295.615397185516
Sum Squared Residuals4194646.22655121

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.889456603915496 \tabularnewline
R-squared & 0.791133050248887 \tabularnewline
Adjusted R-squared & 0.738916312811109 \tabularnewline
F-TEST (value) & 15.1509475518574 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 1.84519066692701e-12 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 295.615397185516 \tabularnewline
Sum Squared Residuals & 4194646.22655121 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58346&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.889456603915496[/C][/ROW]
[ROW][C]R-squared[/C][C]0.791133050248887[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.738916312811109[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]15.1509475518574[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]1.84519066692701e-12[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]295.615397185516[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]4194646.22655121[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58346&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58346&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.889456603915496
R-squared0.791133050248887
Adjusted R-squared0.738916312811109
F-TEST (value)15.1509475518574
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value1.84519066692701e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation295.615397185516
Sum Squared Residuals4194646.22655121







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
13956.24283.59486676954-327.394866769543
23142.73383.40187945917-240.701879459166
33884.34194.77995254410-310.479952544095
43892.24015.30388373763-123.103883737629
536133770.33635385664-157.336353856642
63730.53711.6308461151118.8691538848887
73481.33382.7167210464098.5832789535953
83649.54002.80322142506-353.30322142506
94215.24329.32003260708-114.120032607077
104066.63971.3270204262695.2729795737447
114196.84304.47168828358-107.671688283582
124536.64680.00367771213-143.403677712131
134441.64396.8001653706644.7998346293384
143548.33626.81379027836-78.5137902783593
154735.94393.22632010743342.673679892569
164130.63995.19543349414135.404566505865
174356.24095.00281872097261.19718127903
184159.64178.22896707127-18.6289670712657
1939883675.96006832906312.039931670936
204167.83998.4063299724169.393670027599
214902.24766.312417782135.887582218004
223909.43891.0690951103918.3309048896106
234697.64386.07799364493311.52200635507
244308.94443.68541843656-134.785418436562
254420.44405.4180726178714.9819273821264
263544.23577.62723122795-33.4272312279492
2744334352.8921691817180.1078308182923
284479.74468.535454677711.1645453222989
294533.24178.07475456654355.125245433462
304237.53997.3115400992240.188459900802
314207.43825.86475425505381.535245744953
3243944141.68636610971252.313633890290
335148.44640.32682135848508.073178641522
344202.24285.96857277852-83.7685727785211
354682.54715.37585083939-32.8758508393926
364884.34602.67701336471281.622986635295
375288.95001.40205272094287.497947279064
384505.23884.64750506227620.552494937727
394611.54618.99203989662-7.49203989661987
4051044947.09312038509156.906879614912
414586.64573.3846087702513.2153912297498
424529.34197.92704077918331.372959220822
434504.14572.33967247778-68.2396724777777
444604.94241.70099035286363.199009647144
454795.44928.23527367858-132.835273678579
465391.15240.79752063791150.302479362087
475213.95116.899978296297.000021703803
4854155396.7556097148918.2443902851101
495990.35830.01090327933160.289096720666
504241.84509.70959397225-267.909593972253
515677.65782.40951827015-104.809518270146
525164.25344.57210770545-180.372107705446
533962.34434.5014640856-472.2014640856
5440114582.80160593525-571.801605935248
553310.34034.21878389171-723.918783891706
563837.34268.90309213997-431.603092139972
574145.34542.30545457387-397.00545457387
583796.73976.83779104692-180.137791046921
593849.64117.5744889359-267.974488935898
6042854306.67828077171-21.6782807717122
614189.64369.77393924165-180.173939241652

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 3956.2 & 4283.59486676954 & -327.394866769543 \tabularnewline
2 & 3142.7 & 3383.40187945917 & -240.701879459166 \tabularnewline
3 & 3884.3 & 4194.77995254410 & -310.479952544095 \tabularnewline
4 & 3892.2 & 4015.30388373763 & -123.103883737629 \tabularnewline
5 & 3613 & 3770.33635385664 & -157.336353856642 \tabularnewline
6 & 3730.5 & 3711.63084611511 & 18.8691538848887 \tabularnewline
7 & 3481.3 & 3382.71672104640 & 98.5832789535953 \tabularnewline
8 & 3649.5 & 4002.80322142506 & -353.30322142506 \tabularnewline
9 & 4215.2 & 4329.32003260708 & -114.120032607077 \tabularnewline
10 & 4066.6 & 3971.32702042626 & 95.2729795737447 \tabularnewline
11 & 4196.8 & 4304.47168828358 & -107.671688283582 \tabularnewline
12 & 4536.6 & 4680.00367771213 & -143.403677712131 \tabularnewline
13 & 4441.6 & 4396.80016537066 & 44.7998346293384 \tabularnewline
14 & 3548.3 & 3626.81379027836 & -78.5137902783593 \tabularnewline
15 & 4735.9 & 4393.22632010743 & 342.673679892569 \tabularnewline
16 & 4130.6 & 3995.19543349414 & 135.404566505865 \tabularnewline
17 & 4356.2 & 4095.00281872097 & 261.19718127903 \tabularnewline
18 & 4159.6 & 4178.22896707127 & -18.6289670712657 \tabularnewline
19 & 3988 & 3675.96006832906 & 312.039931670936 \tabularnewline
20 & 4167.8 & 3998.4063299724 & 169.393670027599 \tabularnewline
21 & 4902.2 & 4766.312417782 & 135.887582218004 \tabularnewline
22 & 3909.4 & 3891.06909511039 & 18.3309048896106 \tabularnewline
23 & 4697.6 & 4386.07799364493 & 311.52200635507 \tabularnewline
24 & 4308.9 & 4443.68541843656 & -134.785418436562 \tabularnewline
25 & 4420.4 & 4405.41807261787 & 14.9819273821264 \tabularnewline
26 & 3544.2 & 3577.62723122795 & -33.4272312279492 \tabularnewline
27 & 4433 & 4352.89216918171 & 80.1078308182923 \tabularnewline
28 & 4479.7 & 4468.5354546777 & 11.1645453222989 \tabularnewline
29 & 4533.2 & 4178.07475456654 & 355.125245433462 \tabularnewline
30 & 4237.5 & 3997.3115400992 & 240.188459900802 \tabularnewline
31 & 4207.4 & 3825.86475425505 & 381.535245744953 \tabularnewline
32 & 4394 & 4141.68636610971 & 252.313633890290 \tabularnewline
33 & 5148.4 & 4640.32682135848 & 508.073178641522 \tabularnewline
34 & 4202.2 & 4285.96857277852 & -83.7685727785211 \tabularnewline
35 & 4682.5 & 4715.37585083939 & -32.8758508393926 \tabularnewline
36 & 4884.3 & 4602.67701336471 & 281.622986635295 \tabularnewline
37 & 5288.9 & 5001.40205272094 & 287.497947279064 \tabularnewline
38 & 4505.2 & 3884.64750506227 & 620.552494937727 \tabularnewline
39 & 4611.5 & 4618.99203989662 & -7.49203989661987 \tabularnewline
40 & 5104 & 4947.09312038509 & 156.906879614912 \tabularnewline
41 & 4586.6 & 4573.38460877025 & 13.2153912297498 \tabularnewline
42 & 4529.3 & 4197.92704077918 & 331.372959220822 \tabularnewline
43 & 4504.1 & 4572.33967247778 & -68.2396724777777 \tabularnewline
44 & 4604.9 & 4241.70099035286 & 363.199009647144 \tabularnewline
45 & 4795.4 & 4928.23527367858 & -132.835273678579 \tabularnewline
46 & 5391.1 & 5240.79752063791 & 150.302479362087 \tabularnewline
47 & 5213.9 & 5116.8999782962 & 97.000021703803 \tabularnewline
48 & 5415 & 5396.75560971489 & 18.2443902851101 \tabularnewline
49 & 5990.3 & 5830.01090327933 & 160.289096720666 \tabularnewline
50 & 4241.8 & 4509.70959397225 & -267.909593972253 \tabularnewline
51 & 5677.6 & 5782.40951827015 & -104.809518270146 \tabularnewline
52 & 5164.2 & 5344.57210770545 & -180.372107705446 \tabularnewline
53 & 3962.3 & 4434.5014640856 & -472.2014640856 \tabularnewline
54 & 4011 & 4582.80160593525 & -571.801605935248 \tabularnewline
55 & 3310.3 & 4034.21878389171 & -723.918783891706 \tabularnewline
56 & 3837.3 & 4268.90309213997 & -431.603092139972 \tabularnewline
57 & 4145.3 & 4542.30545457387 & -397.00545457387 \tabularnewline
58 & 3796.7 & 3976.83779104692 & -180.137791046921 \tabularnewline
59 & 3849.6 & 4117.5744889359 & -267.974488935898 \tabularnewline
60 & 4285 & 4306.67828077171 & -21.6782807717122 \tabularnewline
61 & 4189.6 & 4369.77393924165 & -180.173939241652 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58346&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]3956.2[/C][C]4283.59486676954[/C][C]-327.394866769543[/C][/ROW]
[ROW][C]2[/C][C]3142.7[/C][C]3383.40187945917[/C][C]-240.701879459166[/C][/ROW]
[ROW][C]3[/C][C]3884.3[/C][C]4194.77995254410[/C][C]-310.479952544095[/C][/ROW]
[ROW][C]4[/C][C]3892.2[/C][C]4015.30388373763[/C][C]-123.103883737629[/C][/ROW]
[ROW][C]5[/C][C]3613[/C][C]3770.33635385664[/C][C]-157.336353856642[/C][/ROW]
[ROW][C]6[/C][C]3730.5[/C][C]3711.63084611511[/C][C]18.8691538848887[/C][/ROW]
[ROW][C]7[/C][C]3481.3[/C][C]3382.71672104640[/C][C]98.5832789535953[/C][/ROW]
[ROW][C]8[/C][C]3649.5[/C][C]4002.80322142506[/C][C]-353.30322142506[/C][/ROW]
[ROW][C]9[/C][C]4215.2[/C][C]4329.32003260708[/C][C]-114.120032607077[/C][/ROW]
[ROW][C]10[/C][C]4066.6[/C][C]3971.32702042626[/C][C]95.2729795737447[/C][/ROW]
[ROW][C]11[/C][C]4196.8[/C][C]4304.47168828358[/C][C]-107.671688283582[/C][/ROW]
[ROW][C]12[/C][C]4536.6[/C][C]4680.00367771213[/C][C]-143.403677712131[/C][/ROW]
[ROW][C]13[/C][C]4441.6[/C][C]4396.80016537066[/C][C]44.7998346293384[/C][/ROW]
[ROW][C]14[/C][C]3548.3[/C][C]3626.81379027836[/C][C]-78.5137902783593[/C][/ROW]
[ROW][C]15[/C][C]4735.9[/C][C]4393.22632010743[/C][C]342.673679892569[/C][/ROW]
[ROW][C]16[/C][C]4130.6[/C][C]3995.19543349414[/C][C]135.404566505865[/C][/ROW]
[ROW][C]17[/C][C]4356.2[/C][C]4095.00281872097[/C][C]261.19718127903[/C][/ROW]
[ROW][C]18[/C][C]4159.6[/C][C]4178.22896707127[/C][C]-18.6289670712657[/C][/ROW]
[ROW][C]19[/C][C]3988[/C][C]3675.96006832906[/C][C]312.039931670936[/C][/ROW]
[ROW][C]20[/C][C]4167.8[/C][C]3998.4063299724[/C][C]169.393670027599[/C][/ROW]
[ROW][C]21[/C][C]4902.2[/C][C]4766.312417782[/C][C]135.887582218004[/C][/ROW]
[ROW][C]22[/C][C]3909.4[/C][C]3891.06909511039[/C][C]18.3309048896106[/C][/ROW]
[ROW][C]23[/C][C]4697.6[/C][C]4386.07799364493[/C][C]311.52200635507[/C][/ROW]
[ROW][C]24[/C][C]4308.9[/C][C]4443.68541843656[/C][C]-134.785418436562[/C][/ROW]
[ROW][C]25[/C][C]4420.4[/C][C]4405.41807261787[/C][C]14.9819273821264[/C][/ROW]
[ROW][C]26[/C][C]3544.2[/C][C]3577.62723122795[/C][C]-33.4272312279492[/C][/ROW]
[ROW][C]27[/C][C]4433[/C][C]4352.89216918171[/C][C]80.1078308182923[/C][/ROW]
[ROW][C]28[/C][C]4479.7[/C][C]4468.5354546777[/C][C]11.1645453222989[/C][/ROW]
[ROW][C]29[/C][C]4533.2[/C][C]4178.07475456654[/C][C]355.125245433462[/C][/ROW]
[ROW][C]30[/C][C]4237.5[/C][C]3997.3115400992[/C][C]240.188459900802[/C][/ROW]
[ROW][C]31[/C][C]4207.4[/C][C]3825.86475425505[/C][C]381.535245744953[/C][/ROW]
[ROW][C]32[/C][C]4394[/C][C]4141.68636610971[/C][C]252.313633890290[/C][/ROW]
[ROW][C]33[/C][C]5148.4[/C][C]4640.32682135848[/C][C]508.073178641522[/C][/ROW]
[ROW][C]34[/C][C]4202.2[/C][C]4285.96857277852[/C][C]-83.7685727785211[/C][/ROW]
[ROW][C]35[/C][C]4682.5[/C][C]4715.37585083939[/C][C]-32.8758508393926[/C][/ROW]
[ROW][C]36[/C][C]4884.3[/C][C]4602.67701336471[/C][C]281.622986635295[/C][/ROW]
[ROW][C]37[/C][C]5288.9[/C][C]5001.40205272094[/C][C]287.497947279064[/C][/ROW]
[ROW][C]38[/C][C]4505.2[/C][C]3884.64750506227[/C][C]620.552494937727[/C][/ROW]
[ROW][C]39[/C][C]4611.5[/C][C]4618.99203989662[/C][C]-7.49203989661987[/C][/ROW]
[ROW][C]40[/C][C]5104[/C][C]4947.09312038509[/C][C]156.906879614912[/C][/ROW]
[ROW][C]41[/C][C]4586.6[/C][C]4573.38460877025[/C][C]13.2153912297498[/C][/ROW]
[ROW][C]42[/C][C]4529.3[/C][C]4197.92704077918[/C][C]331.372959220822[/C][/ROW]
[ROW][C]43[/C][C]4504.1[/C][C]4572.33967247778[/C][C]-68.2396724777777[/C][/ROW]
[ROW][C]44[/C][C]4604.9[/C][C]4241.70099035286[/C][C]363.199009647144[/C][/ROW]
[ROW][C]45[/C][C]4795.4[/C][C]4928.23527367858[/C][C]-132.835273678579[/C][/ROW]
[ROW][C]46[/C][C]5391.1[/C][C]5240.79752063791[/C][C]150.302479362087[/C][/ROW]
[ROW][C]47[/C][C]5213.9[/C][C]5116.8999782962[/C][C]97.000021703803[/C][/ROW]
[ROW][C]48[/C][C]5415[/C][C]5396.75560971489[/C][C]18.2443902851101[/C][/ROW]
[ROW][C]49[/C][C]5990.3[/C][C]5830.01090327933[/C][C]160.289096720666[/C][/ROW]
[ROW][C]50[/C][C]4241.8[/C][C]4509.70959397225[/C][C]-267.909593972253[/C][/ROW]
[ROW][C]51[/C][C]5677.6[/C][C]5782.40951827015[/C][C]-104.809518270146[/C][/ROW]
[ROW][C]52[/C][C]5164.2[/C][C]5344.57210770545[/C][C]-180.372107705446[/C][/ROW]
[ROW][C]53[/C][C]3962.3[/C][C]4434.5014640856[/C][C]-472.2014640856[/C][/ROW]
[ROW][C]54[/C][C]4011[/C][C]4582.80160593525[/C][C]-571.801605935248[/C][/ROW]
[ROW][C]55[/C][C]3310.3[/C][C]4034.21878389171[/C][C]-723.918783891706[/C][/ROW]
[ROW][C]56[/C][C]3837.3[/C][C]4268.90309213997[/C][C]-431.603092139972[/C][/ROW]
[ROW][C]57[/C][C]4145.3[/C][C]4542.30545457387[/C][C]-397.00545457387[/C][/ROW]
[ROW][C]58[/C][C]3796.7[/C][C]3976.83779104692[/C][C]-180.137791046921[/C][/ROW]
[ROW][C]59[/C][C]3849.6[/C][C]4117.5744889359[/C][C]-267.974488935898[/C][/ROW]
[ROW][C]60[/C][C]4285[/C][C]4306.67828077171[/C][C]-21.6782807717122[/C][/ROW]
[ROW][C]61[/C][C]4189.6[/C][C]4369.77393924165[/C][C]-180.173939241652[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58346&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58346&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
13956.24283.59486676954-327.394866769543
23142.73383.40187945917-240.701879459166
33884.34194.77995254410-310.479952544095
43892.24015.30388373763-123.103883737629
536133770.33635385664-157.336353856642
63730.53711.6308461151118.8691538848887
73481.33382.7167210464098.5832789535953
83649.54002.80322142506-353.30322142506
94215.24329.32003260708-114.120032607077
104066.63971.3270204262695.2729795737447
114196.84304.47168828358-107.671688283582
124536.64680.00367771213-143.403677712131
134441.64396.8001653706644.7998346293384
143548.33626.81379027836-78.5137902783593
154735.94393.22632010743342.673679892569
164130.63995.19543349414135.404566505865
174356.24095.00281872097261.19718127903
184159.64178.22896707127-18.6289670712657
1939883675.96006832906312.039931670936
204167.83998.4063299724169.393670027599
214902.24766.312417782135.887582218004
223909.43891.0690951103918.3309048896106
234697.64386.07799364493311.52200635507
244308.94443.68541843656-134.785418436562
254420.44405.4180726178714.9819273821264
263544.23577.62723122795-33.4272312279492
2744334352.8921691817180.1078308182923
284479.74468.535454677711.1645453222989
294533.24178.07475456654355.125245433462
304237.53997.3115400992240.188459900802
314207.43825.86475425505381.535245744953
3243944141.68636610971252.313633890290
335148.44640.32682135848508.073178641522
344202.24285.96857277852-83.7685727785211
354682.54715.37585083939-32.8758508393926
364884.34602.67701336471281.622986635295
375288.95001.40205272094287.497947279064
384505.23884.64750506227620.552494937727
394611.54618.99203989662-7.49203989661987
4051044947.09312038509156.906879614912
414586.64573.3846087702513.2153912297498
424529.34197.92704077918331.372959220822
434504.14572.33967247778-68.2396724777777
444604.94241.70099035286363.199009647144
454795.44928.23527367858-132.835273678579
465391.15240.79752063791150.302479362087
475213.95116.899978296297.000021703803
4854155396.7556097148918.2443902851101
495990.35830.01090327933160.289096720666
504241.84509.70959397225-267.909593972253
515677.65782.40951827015-104.809518270146
525164.25344.57210770545-180.372107705446
533962.34434.5014640856-472.2014640856
5440114582.80160593525-571.801605935248
553310.34034.21878389171-723.918783891706
563837.34268.90309213997-431.603092139972
574145.34542.30545457387-397.00545457387
583796.73976.83779104692-180.137791046921
593849.64117.5744889359-267.974488935898
6042854306.67828077171-21.6782807717122
614189.64369.77393924165-180.173939241652







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2707228890295740.5414457780591480.729277110970426
170.1516220120655590.3032440241311180.84837798793444
180.2479213035828300.4958426071656600.75207869641717
190.1571511537719920.3143023075439850.842848846228008
200.2037456149724830.4074912299449670.796254385027517
210.1272065906665210.2544131813330420.872793409333479
220.07333457498523770.1466691499704750.926665425014762
230.06868112620799240.1373622524159850.931318873792008
240.04418413432756340.08836826865512680.955815865672437
250.02523043225350840.05046086450701690.974769567746492
260.01395942649103800.02791885298207590.986040573508962
270.006840004630853060.01368000926170610.993159995369147
280.005034147001697220.01006829400339440.994965852998303
290.004094405601217350.00818881120243470.995905594398783
300.002892719858702170.005785439717404330.997107280141298
310.003420684969373660.006841369938747330.996579315030626
320.002744920793085030.005489841586170070.997255079206915
330.01091709027481890.02183418054963770.989082909725181
340.009654924888148030.01930984977629610.990345075111852
350.007391865181836250.01478373036367250.992608134818164
360.008200962842888920.01640192568577780.99179903715711
370.005079878201338060.01015975640267610.994920121798662
380.03604540578719030.07209081157438050.96395459421281
390.02705164211750590.05410328423501170.972948357882494
400.02465437065473900.04930874130947810.97534562934526
410.02837154833081670.05674309666163340.971628451669183
420.1768896018220020.3537792036440040.823110398177998
430.316415736116040.632831472232080.68358426388396
440.9372265823066780.1255468353866440.0627734176933219
450.9131863035310240.1736273929379520.086813696468976

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.270722889029574 & 0.541445778059148 & 0.729277110970426 \tabularnewline
17 & 0.151622012065559 & 0.303244024131118 & 0.84837798793444 \tabularnewline
18 & 0.247921303582830 & 0.495842607165660 & 0.75207869641717 \tabularnewline
19 & 0.157151153771992 & 0.314302307543985 & 0.842848846228008 \tabularnewline
20 & 0.203745614972483 & 0.407491229944967 & 0.796254385027517 \tabularnewline
21 & 0.127206590666521 & 0.254413181333042 & 0.872793409333479 \tabularnewline
22 & 0.0733345749852377 & 0.146669149970475 & 0.926665425014762 \tabularnewline
23 & 0.0686811262079924 & 0.137362252415985 & 0.931318873792008 \tabularnewline
24 & 0.0441841343275634 & 0.0883682686551268 & 0.955815865672437 \tabularnewline
25 & 0.0252304322535084 & 0.0504608645070169 & 0.974769567746492 \tabularnewline
26 & 0.0139594264910380 & 0.0279188529820759 & 0.986040573508962 \tabularnewline
27 & 0.00684000463085306 & 0.0136800092617061 & 0.993159995369147 \tabularnewline
28 & 0.00503414700169722 & 0.0100682940033944 & 0.994965852998303 \tabularnewline
29 & 0.00409440560121735 & 0.0081888112024347 & 0.995905594398783 \tabularnewline
30 & 0.00289271985870217 & 0.00578543971740433 & 0.997107280141298 \tabularnewline
31 & 0.00342068496937366 & 0.00684136993874733 & 0.996579315030626 \tabularnewline
32 & 0.00274492079308503 & 0.00548984158617007 & 0.997255079206915 \tabularnewline
33 & 0.0109170902748189 & 0.0218341805496377 & 0.989082909725181 \tabularnewline
34 & 0.00965492488814803 & 0.0193098497762961 & 0.990345075111852 \tabularnewline
35 & 0.00739186518183625 & 0.0147837303636725 & 0.992608134818164 \tabularnewline
36 & 0.00820096284288892 & 0.0164019256857778 & 0.99179903715711 \tabularnewline
37 & 0.00507987820133806 & 0.0101597564026761 & 0.994920121798662 \tabularnewline
38 & 0.0360454057871903 & 0.0720908115743805 & 0.96395459421281 \tabularnewline
39 & 0.0270516421175059 & 0.0541032842350117 & 0.972948357882494 \tabularnewline
40 & 0.0246543706547390 & 0.0493087413094781 & 0.97534562934526 \tabularnewline
41 & 0.0283715483308167 & 0.0567430966616334 & 0.971628451669183 \tabularnewline
42 & 0.176889601822002 & 0.353779203644004 & 0.823110398177998 \tabularnewline
43 & 0.31641573611604 & 0.63283147223208 & 0.68358426388396 \tabularnewline
44 & 0.937226582306678 & 0.125546835386644 & 0.0627734176933219 \tabularnewline
45 & 0.913186303531024 & 0.173627392937952 & 0.086813696468976 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58346&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]16[/C][C]0.270722889029574[/C][C]0.541445778059148[/C][C]0.729277110970426[/C][/ROW]
[ROW][C]17[/C][C]0.151622012065559[/C][C]0.303244024131118[/C][C]0.84837798793444[/C][/ROW]
[ROW][C]18[/C][C]0.247921303582830[/C][C]0.495842607165660[/C][C]0.75207869641717[/C][/ROW]
[ROW][C]19[/C][C]0.157151153771992[/C][C]0.314302307543985[/C][C]0.842848846228008[/C][/ROW]
[ROW][C]20[/C][C]0.203745614972483[/C][C]0.407491229944967[/C][C]0.796254385027517[/C][/ROW]
[ROW][C]21[/C][C]0.127206590666521[/C][C]0.254413181333042[/C][C]0.872793409333479[/C][/ROW]
[ROW][C]22[/C][C]0.0733345749852377[/C][C]0.146669149970475[/C][C]0.926665425014762[/C][/ROW]
[ROW][C]23[/C][C]0.0686811262079924[/C][C]0.137362252415985[/C][C]0.931318873792008[/C][/ROW]
[ROW][C]24[/C][C]0.0441841343275634[/C][C]0.0883682686551268[/C][C]0.955815865672437[/C][/ROW]
[ROW][C]25[/C][C]0.0252304322535084[/C][C]0.0504608645070169[/C][C]0.974769567746492[/C][/ROW]
[ROW][C]26[/C][C]0.0139594264910380[/C][C]0.0279188529820759[/C][C]0.986040573508962[/C][/ROW]
[ROW][C]27[/C][C]0.00684000463085306[/C][C]0.0136800092617061[/C][C]0.993159995369147[/C][/ROW]
[ROW][C]28[/C][C]0.00503414700169722[/C][C]0.0100682940033944[/C][C]0.994965852998303[/C][/ROW]
[ROW][C]29[/C][C]0.00409440560121735[/C][C]0.0081888112024347[/C][C]0.995905594398783[/C][/ROW]
[ROW][C]30[/C][C]0.00289271985870217[/C][C]0.00578543971740433[/C][C]0.997107280141298[/C][/ROW]
[ROW][C]31[/C][C]0.00342068496937366[/C][C]0.00684136993874733[/C][C]0.996579315030626[/C][/ROW]
[ROW][C]32[/C][C]0.00274492079308503[/C][C]0.00548984158617007[/C][C]0.997255079206915[/C][/ROW]
[ROW][C]33[/C][C]0.0109170902748189[/C][C]0.0218341805496377[/C][C]0.989082909725181[/C][/ROW]
[ROW][C]34[/C][C]0.00965492488814803[/C][C]0.0193098497762961[/C][C]0.990345075111852[/C][/ROW]
[ROW][C]35[/C][C]0.00739186518183625[/C][C]0.0147837303636725[/C][C]0.992608134818164[/C][/ROW]
[ROW][C]36[/C][C]0.00820096284288892[/C][C]0.0164019256857778[/C][C]0.99179903715711[/C][/ROW]
[ROW][C]37[/C][C]0.00507987820133806[/C][C]0.0101597564026761[/C][C]0.994920121798662[/C][/ROW]
[ROW][C]38[/C][C]0.0360454057871903[/C][C]0.0720908115743805[/C][C]0.96395459421281[/C][/ROW]
[ROW][C]39[/C][C]0.0270516421175059[/C][C]0.0541032842350117[/C][C]0.972948357882494[/C][/ROW]
[ROW][C]40[/C][C]0.0246543706547390[/C][C]0.0493087413094781[/C][C]0.97534562934526[/C][/ROW]
[ROW][C]41[/C][C]0.0283715483308167[/C][C]0.0567430966616334[/C][C]0.971628451669183[/C][/ROW]
[ROW][C]42[/C][C]0.176889601822002[/C][C]0.353779203644004[/C][C]0.823110398177998[/C][/ROW]
[ROW][C]43[/C][C]0.31641573611604[/C][C]0.63283147223208[/C][C]0.68358426388396[/C][/ROW]
[ROW][C]44[/C][C]0.937226582306678[/C][C]0.125546835386644[/C][C]0.0627734176933219[/C][/ROW]
[ROW][C]45[/C][C]0.913186303531024[/C][C]0.173627392937952[/C][C]0.086813696468976[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58346&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58346&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
160.2707228890295740.5414457780591480.729277110970426
170.1516220120655590.3032440241311180.84837798793444
180.2479213035828300.4958426071656600.75207869641717
190.1571511537719920.3143023075439850.842848846228008
200.2037456149724830.4074912299449670.796254385027517
210.1272065906665210.2544131813330420.872793409333479
220.07333457498523770.1466691499704750.926665425014762
230.06868112620799240.1373622524159850.931318873792008
240.04418413432756340.08836826865512680.955815865672437
250.02523043225350840.05046086450701690.974769567746492
260.01395942649103800.02791885298207590.986040573508962
270.006840004630853060.01368000926170610.993159995369147
280.005034147001697220.01006829400339440.994965852998303
290.004094405601217350.00818881120243470.995905594398783
300.002892719858702170.005785439717404330.997107280141298
310.003420684969373660.006841369938747330.996579315030626
320.002744920793085030.005489841586170070.997255079206915
330.01091709027481890.02183418054963770.989082909725181
340.009654924888148030.01930984977629610.990345075111852
350.007391865181836250.01478373036367250.992608134818164
360.008200962842888920.01640192568577780.99179903715711
370.005079878201338060.01015975640267610.994920121798662
380.03604540578719030.07209081157438050.96395459421281
390.02705164211750590.05410328423501170.972948357882494
400.02465437065473900.04930874130947810.97534562934526
410.02837154833081670.05674309666163340.971628451669183
420.1768896018220020.3537792036440040.823110398177998
430.316415736116040.632831472232080.68358426388396
440.9372265823066780.1255468353866440.0627734176933219
450.9131863035310240.1736273929379520.086813696468976







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.133333333333333NOK
5% type I error level130.433333333333333NOK
10% type I error level180.6NOK

\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 & 4 & 0.133333333333333 & NOK \tabularnewline
5% type I error level & 13 & 0.433333333333333 & NOK \tabularnewline
10% type I error level & 18 & 0.6 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58346&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]4[/C][C]0.133333333333333[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]13[/C][C]0.433333333333333[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]18[/C][C]0.6[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58346&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58346&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 level40.133333333333333NOK
5% type I error level130.433333333333333NOK
10% type I error level180.6NOK



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