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 13:17:23 -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/t1258575549i7m5bsbf3jfxtgn.htm/, Retrieved Sun, 05 May 2024 15:12:37 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57611, Retrieved Sun, 05 May 2024 15:12:37 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact189
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-18 20:17:23] [f90b018c65398c2fee7b197f24b65ddd] [Current]
Feedback Forum

Post a new message
Dataseries X:
944.2	0	930.9	874	891.9	902.2
935.9	0	944.2	930.9	874	891.9
937.1	0	935.9	944.2	930.9	874
885.1	0	937.1	935.9	944.2	930.9
892.4	0	885.1	937.1	935.9	944.2
987.3	0	892.4	885.1	937.1	935.9
946.3	0	987.3	892.4	885.1	937.1
799.6	0	946.3	987.3	892.4	885.1
875.4	0	799.6	946.3	987.3	892.4
846.2	0	875.4	799.6	946.3	987.3
880.6	0	846.2	875.4	799.6	946.3
885.7	0	880.6	846.2	875.4	799.6
868.9	0	885.7	880.6	846.2	875.4
882.5	0	868.9	885.7	880.6	846.2
789.6	0	882.5	868.9	885.7	880.6
773.3	0	789.6	882.5	868.9	885.7
804.3	0	773.3	789.6	882.5	868.9
817.8	0	804.3	773.3	789.6	882.5
836.7	0	817.8	804.3	773.3	789.6
721.8	0	836.7	817.8	804.3	773.3
760.8	0	721.8	836.7	817.8	804.3
841.4	0	760.8	721.8	836.7	817.8
1045.6	0	841.4	760.8	721.8	836.7
949.2	0	1045.6	841.4	760.8	721.8
850.1	0	949.2	1045.6	841.4	760.8
957.4	0	850.1	949.2	1045.6	841.4
851.8	0	957.4	850.1	949.2	1045.6
913.9	0	851.8	957.4	850.1	949.2
888	0	913.9	851.8	957.4	850.1
973.8	0	888	913.9	851.8	957.4
927.6	1	973.8	888	913.9	851.8
833	1	927.6	973.8	888	913.9
879.5	1	833	927.6	973.8	888
797.3	1	879.5	833	927.6	973.8
834.5	1	797.3	879.5	833	927.6
735.1	1	834.5	797.3	879.5	833
835	1	735.1	834.5	797.3	879.5
892.8	1	835	735.1	834.5	797.3
697.2	1	892.8	835	735.1	834.5
821.1	1	697.2	892.8	835	735.1
732.7	1	821.1	697.2	892.8	835
797.6	1	732.7	821.1	697.2	892.8
866.3	1	797.6	732.7	821.1	697.2
826.3	1	866.3	797.6	732.7	821.1
778.6	1	826.3	866.3	797.6	732.7
779.2	1	778.6	826.3	866.3	797.6
951	1	779.2	778.6	826.3	866.3
692.3	1	951	779.2	778.6	826.3
841.4	1	692.3	951	779.2	778.6
857.3	1	841.4	692.3	951	779.2
760.7	1	857.3	841.4	692.3	951
841.2	1	760.7	857.3	841.4	692.3
810.3	1	841.2	760.7	857.3	841.4
1007.4	1	810.3	841.2	760.7	857.3
931.3	1	1007.4	810.3	841.2	760.7
931.2	1	931.3	1007.4	810.3	841.2




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 216.239700723775 -49.088920369534X[t] + 0.371323296188282Y1[t] + 0.185849885726791Y2[t] + 0.235814478394152Y3[t] -0.129975533253905Y4[t] + 71.868552684524M1[t] + 90.2999304272343M2[t] + 1.57747955706059M3[t] + 52.3107421420012M4[t] + 28.1986325605593M5[t] + 146.712766884783M6[t] + 88.1853992603089M7[t] + 6.55743999523928M8[t] + 34.2452911491028M9[t] + 41.726930355377M10[t] + 173.295912043324M11[t] + 1.22679408189955t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  216.239700723775 -49.088920369534X[t] +  0.371323296188282Y1[t] +  0.185849885726791Y2[t] +  0.235814478394152Y3[t] -0.129975533253905Y4[t] +  71.868552684524M1[t] +  90.2999304272343M2[t] +  1.57747955706059M3[t] +  52.3107421420012M4[t] +  28.1986325605593M5[t] +  146.712766884783M6[t] +  88.1853992603089M7[t] +  6.55743999523928M8[t] +  34.2452911491028M9[t] +  41.726930355377M10[t] +  173.295912043324M11[t] +  1.22679408189955t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57611&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  216.239700723775 -49.088920369534X[t] +  0.371323296188282Y1[t] +  0.185849885726791Y2[t] +  0.235814478394152Y3[t] -0.129975533253905Y4[t] +  71.868552684524M1[t] +  90.2999304272343M2[t] +  1.57747955706059M3[t] +  52.3107421420012M4[t] +  28.1986325605593M5[t] +  146.712766884783M6[t] +  88.1853992603089M7[t] +  6.55743999523928M8[t] +  34.2452911491028M9[t] +  41.726930355377M10[t] +  173.295912043324M11[t] +  1.22679408189955t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57611&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57611&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] = + 216.239700723775 -49.088920369534X[t] + 0.371323296188282Y1[t] + 0.185849885726791Y2[t] + 0.235814478394152Y3[t] -0.129975533253905Y4[t] + 71.868552684524M1[t] + 90.2999304272343M2[t] + 1.57747955706059M3[t] + 52.3107421420012M4[t] + 28.1986325605593M5[t] + 146.712766884783M6[t] + 88.1853992603089M7[t] + 6.55743999523928M8[t] + 34.2452911491028M9[t] + 41.726930355377M10[t] + 173.295912043324M11[t] + 1.22679408189955t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)216.239700723775184.8019711.17010.2492410.12462
X-49.08892036953434.986374-1.40310.1687090.084355
Y10.3713232961882820.1591552.33310.0250370.012518
Y20.1858498857267910.1574211.18060.2451010.12255
Y30.2358144783941520.1645491.43310.1600080.080004
Y4-0.1299755332539050.164839-0.78850.4352950.217648
M171.86855268452448.5139741.48140.1467460.073373
M290.299930427234345.6240211.97920.055070.027535
M31.5774795570605946.5904160.03390.9731670.486584
M452.310742142001250.5450561.03490.3072420.153621
M528.198632560559347.7328370.59080.5581790.27909
M6146.71276688478350.6136122.89870.0061920.003096
M788.185399260308941.6529512.11710.0408510.020425
M86.5574399952392845.616480.14380.8864560.443228
M934.245291149102852.8664880.64780.5210290.260514
M1041.72693035537751.3463850.81270.4214780.210739
M11173.29591204332451.4275963.36970.0017370.000869
t1.226794081899551.1593871.05810.2966720.148336

\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) & 216.239700723775 & 184.801971 & 1.1701 & 0.249241 & 0.12462 \tabularnewline
X & -49.088920369534 & 34.986374 & -1.4031 & 0.168709 & 0.084355 \tabularnewline
Y1 & 0.371323296188282 & 0.159155 & 2.3331 & 0.025037 & 0.012518 \tabularnewline
Y2 & 0.185849885726791 & 0.157421 & 1.1806 & 0.245101 & 0.12255 \tabularnewline
Y3 & 0.235814478394152 & 0.164549 & 1.4331 & 0.160008 & 0.080004 \tabularnewline
Y4 & -0.129975533253905 & 0.164839 & -0.7885 & 0.435295 & 0.217648 \tabularnewline
M1 & 71.868552684524 & 48.513974 & 1.4814 & 0.146746 & 0.073373 \tabularnewline
M2 & 90.2999304272343 & 45.624021 & 1.9792 & 0.05507 & 0.027535 \tabularnewline
M3 & 1.57747955706059 & 46.590416 & 0.0339 & 0.973167 & 0.486584 \tabularnewline
M4 & 52.3107421420012 & 50.545056 & 1.0349 & 0.307242 & 0.153621 \tabularnewline
M5 & 28.1986325605593 & 47.732837 & 0.5908 & 0.558179 & 0.27909 \tabularnewline
M6 & 146.712766884783 & 50.613612 & 2.8987 & 0.006192 & 0.003096 \tabularnewline
M7 & 88.1853992603089 & 41.652951 & 2.1171 & 0.040851 & 0.020425 \tabularnewline
M8 & 6.55743999523928 & 45.61648 & 0.1438 & 0.886456 & 0.443228 \tabularnewline
M9 & 34.2452911491028 & 52.866488 & 0.6478 & 0.521029 & 0.260514 \tabularnewline
M10 & 41.726930355377 & 51.346385 & 0.8127 & 0.421478 & 0.210739 \tabularnewline
M11 & 173.295912043324 & 51.427596 & 3.3697 & 0.001737 & 0.000869 \tabularnewline
t & 1.22679408189955 & 1.159387 & 1.0581 & 0.296672 & 0.148336 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57611&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]216.239700723775[/C][C]184.801971[/C][C]1.1701[/C][C]0.249241[/C][C]0.12462[/C][/ROW]
[ROW][C]X[/C][C]-49.088920369534[/C][C]34.986374[/C][C]-1.4031[/C][C]0.168709[/C][C]0.084355[/C][/ROW]
[ROW][C]Y1[/C][C]0.371323296188282[/C][C]0.159155[/C][C]2.3331[/C][C]0.025037[/C][C]0.012518[/C][/ROW]
[ROW][C]Y2[/C][C]0.185849885726791[/C][C]0.157421[/C][C]1.1806[/C][C]0.245101[/C][C]0.12255[/C][/ROW]
[ROW][C]Y3[/C][C]0.235814478394152[/C][C]0.164549[/C][C]1.4331[/C][C]0.160008[/C][C]0.080004[/C][/ROW]
[ROW][C]Y4[/C][C]-0.129975533253905[/C][C]0.164839[/C][C]-0.7885[/C][C]0.435295[/C][C]0.217648[/C][/ROW]
[ROW][C]M1[/C][C]71.868552684524[/C][C]48.513974[/C][C]1.4814[/C][C]0.146746[/C][C]0.073373[/C][/ROW]
[ROW][C]M2[/C][C]90.2999304272343[/C][C]45.624021[/C][C]1.9792[/C][C]0.05507[/C][C]0.027535[/C][/ROW]
[ROW][C]M3[/C][C]1.57747955706059[/C][C]46.590416[/C][C]0.0339[/C][C]0.973167[/C][C]0.486584[/C][/ROW]
[ROW][C]M4[/C][C]52.3107421420012[/C][C]50.545056[/C][C]1.0349[/C][C]0.307242[/C][C]0.153621[/C][/ROW]
[ROW][C]M5[/C][C]28.1986325605593[/C][C]47.732837[/C][C]0.5908[/C][C]0.558179[/C][C]0.27909[/C][/ROW]
[ROW][C]M6[/C][C]146.712766884783[/C][C]50.613612[/C][C]2.8987[/C][C]0.006192[/C][C]0.003096[/C][/ROW]
[ROW][C]M7[/C][C]88.1853992603089[/C][C]41.652951[/C][C]2.1171[/C][C]0.040851[/C][C]0.020425[/C][/ROW]
[ROW][C]M8[/C][C]6.55743999523928[/C][C]45.61648[/C][C]0.1438[/C][C]0.886456[/C][C]0.443228[/C][/ROW]
[ROW][C]M9[/C][C]34.2452911491028[/C][C]52.866488[/C][C]0.6478[/C][C]0.521029[/C][C]0.260514[/C][/ROW]
[ROW][C]M10[/C][C]41.726930355377[/C][C]51.346385[/C][C]0.8127[/C][C]0.421478[/C][C]0.210739[/C][/ROW]
[ROW][C]M11[/C][C]173.295912043324[/C][C]51.427596[/C][C]3.3697[/C][C]0.001737[/C][C]0.000869[/C][/ROW]
[ROW][C]t[/C][C]1.22679408189955[/C][C]1.159387[/C][C]1.0581[/C][C]0.296672[/C][C]0.148336[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57611&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57611&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)216.239700723775184.8019711.17010.2492410.12462
X-49.08892036953434.986374-1.40310.1687090.084355
Y10.3713232961882820.1591552.33310.0250370.012518
Y20.1858498857267910.1574211.18060.2451010.12255
Y30.2358144783941520.1645491.43310.1600080.080004
Y4-0.1299755332539050.164839-0.78850.4352950.217648
M171.86855268452448.5139741.48140.1467460.073373
M290.299930427234345.6240211.97920.055070.027535
M31.5774795570605946.5904160.03390.9731670.486584
M452.310742142001250.5450561.03490.3072420.153621
M528.198632560559347.7328370.59080.5581790.27909
M6146.71276688478350.6136122.89870.0061920.003096
M788.185399260308941.6529512.11710.0408510.020425
M86.5574399952392845.616480.14380.8864560.443228
M934.245291149102852.8664880.64780.5210290.260514
M1041.72693035537751.3463850.81270.4214780.210739
M11173.29591204332451.4275963.36970.0017370.000869
t1.226794081899551.1593871.05810.2966720.148336







Multiple Linear Regression - Regression Statistics
Multiple R0.755754198583511
R-squared0.571164408676605
Adjusted R-squared0.379316907295086
F-TEST (value)2.97717929378061
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0.00257148750707459
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation61.6353408099398
Sum Squared Residuals144358.778996782

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.755754198583511 \tabularnewline
R-squared & 0.571164408676605 \tabularnewline
Adjusted R-squared & 0.379316907295086 \tabularnewline
F-TEST (value) & 2.97717929378061 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 0.00257148750707459 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 61.6353408099398 \tabularnewline
Sum Squared Residuals & 144358.778996782 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57611&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.755754198583511[/C][/ROW]
[ROW][C]R-squared[/C][C]0.571164408676605[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.379316907295086[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.97717929378061[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/C][/ROW]
[ROW][C]p-value[/C][C]0.00257148750707459[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]61.6353408099398[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]144358.778996782[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57611&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57611&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.755754198583511
R-squared0.571164408676605
Adjusted R-squared0.379316907295086
F-TEST (value)2.97717929378061
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0.00257148750707459
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation61.6353408099398
Sum Squared Residuals144358.778996782







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1944.2890.49171121515553.7082887848453
2935.9922.78101020618513.1189897938154
3937.1850.41957940558686.6804205944141
4885.1897.023394696815-11.9233946968148
5892.4851.36635289540541.0336471045945
6987.3965.5155216059921.7844783940093
7946.3932.39190952108913.9080904789111
8799.6862.883816771152-63.283816771152
9875.4851.13546174814724.2645382518527
10846.2838.7229509313177.47704906868335
11880.6945.498520673544-64.8985206735445
12885.7817.71825562839967.981744371601
13868.9882.362659084629-13.4626590846292
14882.5908.637737578255-26.1377375782554
15789.6819.801295033808-30.2012950338076
16773.3835.168417474024-61.868417474024
17804.3794.355743727429.94425627258015
18817.8898.903508882963-81.1035088829636
19836.7860.608097337924-23.9080973379241
20721.8799.162765932282-77.3627659322818
21760.8788.079181203698-27.2791812036976
22841.4792.61729511592848.7827048840723
231045.6933.038252955908112.561747044092
24949.2875.90380629395573.2961937060446
25850.1965.091735134906-114.991735134906
26957.4967.713127831015-10.3131278310154
27851.8852.369217440575-0.569217440575073
28913.9874.21965336523339.6803466347666
29888892.951235503389-4.95123550338862
30973.8975.767784805303-1.96778480530282
31927.6924.7938130857142.80618691428599
32833829.0043562085283.99564379147196
33879.5837.80480146179641.6951985382037
34797.3824.151839177976-26.8518391779758
35834.5918.763679667685-84.2636796676853
36735.1768.49198640887-33.3919864088699
37835786.1636008629148.8363991370910
38892.8843.89977876521948.9002212347813
39697.2768.15796309131-70.9579630913096
40821.1794.70674081574426.3932591842557
41732.7782.121665144887-49.4216651448865
42797.6838.426517213543-40.8265172135434
43866.3843.4363238728422.8636761271608
44826.3763.6567582612762.6432417387291
45778.6817.280555586359-38.6805555863589
46779.2808.60791477478-29.4079147747798
47951914.39954670286236.6004532971378
48692.3800.185951668776-107.885951668776
49841.4815.49029370240125.9097062975988
50857.3882.868345619326-25.568345619326
51760.7745.65194502872215.0480549712781
52841.2833.4817936481837.71820635181659
53810.3806.90500272893.39499727110049
541007.4905.2866674922102.113332507801
55931.3946.969856182434-15.6698561824337
56931.2857.19230282676774.0076971732328

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 944.2 & 890.491711215155 & 53.7082887848453 \tabularnewline
2 & 935.9 & 922.781010206185 & 13.1189897938154 \tabularnewline
3 & 937.1 & 850.419579405586 & 86.6804205944141 \tabularnewline
4 & 885.1 & 897.023394696815 & -11.9233946968148 \tabularnewline
5 & 892.4 & 851.366352895405 & 41.0336471045945 \tabularnewline
6 & 987.3 & 965.51552160599 & 21.7844783940093 \tabularnewline
7 & 946.3 & 932.391909521089 & 13.9080904789111 \tabularnewline
8 & 799.6 & 862.883816771152 & -63.283816771152 \tabularnewline
9 & 875.4 & 851.135461748147 & 24.2645382518527 \tabularnewline
10 & 846.2 & 838.722950931317 & 7.47704906868335 \tabularnewline
11 & 880.6 & 945.498520673544 & -64.8985206735445 \tabularnewline
12 & 885.7 & 817.718255628399 & 67.981744371601 \tabularnewline
13 & 868.9 & 882.362659084629 & -13.4626590846292 \tabularnewline
14 & 882.5 & 908.637737578255 & -26.1377375782554 \tabularnewline
15 & 789.6 & 819.801295033808 & -30.2012950338076 \tabularnewline
16 & 773.3 & 835.168417474024 & -61.868417474024 \tabularnewline
17 & 804.3 & 794.35574372742 & 9.94425627258015 \tabularnewline
18 & 817.8 & 898.903508882963 & -81.1035088829636 \tabularnewline
19 & 836.7 & 860.608097337924 & -23.9080973379241 \tabularnewline
20 & 721.8 & 799.162765932282 & -77.3627659322818 \tabularnewline
21 & 760.8 & 788.079181203698 & -27.2791812036976 \tabularnewline
22 & 841.4 & 792.617295115928 & 48.7827048840723 \tabularnewline
23 & 1045.6 & 933.038252955908 & 112.561747044092 \tabularnewline
24 & 949.2 & 875.903806293955 & 73.2961937060446 \tabularnewline
25 & 850.1 & 965.091735134906 & -114.991735134906 \tabularnewline
26 & 957.4 & 967.713127831015 & -10.3131278310154 \tabularnewline
27 & 851.8 & 852.369217440575 & -0.569217440575073 \tabularnewline
28 & 913.9 & 874.219653365233 & 39.6803466347666 \tabularnewline
29 & 888 & 892.951235503389 & -4.95123550338862 \tabularnewline
30 & 973.8 & 975.767784805303 & -1.96778480530282 \tabularnewline
31 & 927.6 & 924.793813085714 & 2.80618691428599 \tabularnewline
32 & 833 & 829.004356208528 & 3.99564379147196 \tabularnewline
33 & 879.5 & 837.804801461796 & 41.6951985382037 \tabularnewline
34 & 797.3 & 824.151839177976 & -26.8518391779758 \tabularnewline
35 & 834.5 & 918.763679667685 & -84.2636796676853 \tabularnewline
36 & 735.1 & 768.49198640887 & -33.3919864088699 \tabularnewline
37 & 835 & 786.16360086291 & 48.8363991370910 \tabularnewline
38 & 892.8 & 843.899778765219 & 48.9002212347813 \tabularnewline
39 & 697.2 & 768.15796309131 & -70.9579630913096 \tabularnewline
40 & 821.1 & 794.706740815744 & 26.3932591842557 \tabularnewline
41 & 732.7 & 782.121665144887 & -49.4216651448865 \tabularnewline
42 & 797.6 & 838.426517213543 & -40.8265172135434 \tabularnewline
43 & 866.3 & 843.43632387284 & 22.8636761271608 \tabularnewline
44 & 826.3 & 763.65675826127 & 62.6432417387291 \tabularnewline
45 & 778.6 & 817.280555586359 & -38.6805555863589 \tabularnewline
46 & 779.2 & 808.60791477478 & -29.4079147747798 \tabularnewline
47 & 951 & 914.399546702862 & 36.6004532971378 \tabularnewline
48 & 692.3 & 800.185951668776 & -107.885951668776 \tabularnewline
49 & 841.4 & 815.490293702401 & 25.9097062975988 \tabularnewline
50 & 857.3 & 882.868345619326 & -25.568345619326 \tabularnewline
51 & 760.7 & 745.651945028722 & 15.0480549712781 \tabularnewline
52 & 841.2 & 833.481793648183 & 7.71820635181659 \tabularnewline
53 & 810.3 & 806.9050027289 & 3.39499727110049 \tabularnewline
54 & 1007.4 & 905.2866674922 & 102.113332507801 \tabularnewline
55 & 931.3 & 946.969856182434 & -15.6698561824337 \tabularnewline
56 & 931.2 & 857.192302826767 & 74.0076971732328 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57611&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]944.2[/C][C]890.491711215155[/C][C]53.7082887848453[/C][/ROW]
[ROW][C]2[/C][C]935.9[/C][C]922.781010206185[/C][C]13.1189897938154[/C][/ROW]
[ROW][C]3[/C][C]937.1[/C][C]850.419579405586[/C][C]86.6804205944141[/C][/ROW]
[ROW][C]4[/C][C]885.1[/C][C]897.023394696815[/C][C]-11.9233946968148[/C][/ROW]
[ROW][C]5[/C][C]892.4[/C][C]851.366352895405[/C][C]41.0336471045945[/C][/ROW]
[ROW][C]6[/C][C]987.3[/C][C]965.51552160599[/C][C]21.7844783940093[/C][/ROW]
[ROW][C]7[/C][C]946.3[/C][C]932.391909521089[/C][C]13.9080904789111[/C][/ROW]
[ROW][C]8[/C][C]799.6[/C][C]862.883816771152[/C][C]-63.283816771152[/C][/ROW]
[ROW][C]9[/C][C]875.4[/C][C]851.135461748147[/C][C]24.2645382518527[/C][/ROW]
[ROW][C]10[/C][C]846.2[/C][C]838.722950931317[/C][C]7.47704906868335[/C][/ROW]
[ROW][C]11[/C][C]880.6[/C][C]945.498520673544[/C][C]-64.8985206735445[/C][/ROW]
[ROW][C]12[/C][C]885.7[/C][C]817.718255628399[/C][C]67.981744371601[/C][/ROW]
[ROW][C]13[/C][C]868.9[/C][C]882.362659084629[/C][C]-13.4626590846292[/C][/ROW]
[ROW][C]14[/C][C]882.5[/C][C]908.637737578255[/C][C]-26.1377375782554[/C][/ROW]
[ROW][C]15[/C][C]789.6[/C][C]819.801295033808[/C][C]-30.2012950338076[/C][/ROW]
[ROW][C]16[/C][C]773.3[/C][C]835.168417474024[/C][C]-61.868417474024[/C][/ROW]
[ROW][C]17[/C][C]804.3[/C][C]794.35574372742[/C][C]9.94425627258015[/C][/ROW]
[ROW][C]18[/C][C]817.8[/C][C]898.903508882963[/C][C]-81.1035088829636[/C][/ROW]
[ROW][C]19[/C][C]836.7[/C][C]860.608097337924[/C][C]-23.9080973379241[/C][/ROW]
[ROW][C]20[/C][C]721.8[/C][C]799.162765932282[/C][C]-77.3627659322818[/C][/ROW]
[ROW][C]21[/C][C]760.8[/C][C]788.079181203698[/C][C]-27.2791812036976[/C][/ROW]
[ROW][C]22[/C][C]841.4[/C][C]792.617295115928[/C][C]48.7827048840723[/C][/ROW]
[ROW][C]23[/C][C]1045.6[/C][C]933.038252955908[/C][C]112.561747044092[/C][/ROW]
[ROW][C]24[/C][C]949.2[/C][C]875.903806293955[/C][C]73.2961937060446[/C][/ROW]
[ROW][C]25[/C][C]850.1[/C][C]965.091735134906[/C][C]-114.991735134906[/C][/ROW]
[ROW][C]26[/C][C]957.4[/C][C]967.713127831015[/C][C]-10.3131278310154[/C][/ROW]
[ROW][C]27[/C][C]851.8[/C][C]852.369217440575[/C][C]-0.569217440575073[/C][/ROW]
[ROW][C]28[/C][C]913.9[/C][C]874.219653365233[/C][C]39.6803466347666[/C][/ROW]
[ROW][C]29[/C][C]888[/C][C]892.951235503389[/C][C]-4.95123550338862[/C][/ROW]
[ROW][C]30[/C][C]973.8[/C][C]975.767784805303[/C][C]-1.96778480530282[/C][/ROW]
[ROW][C]31[/C][C]927.6[/C][C]924.793813085714[/C][C]2.80618691428599[/C][/ROW]
[ROW][C]32[/C][C]833[/C][C]829.004356208528[/C][C]3.99564379147196[/C][/ROW]
[ROW][C]33[/C][C]879.5[/C][C]837.804801461796[/C][C]41.6951985382037[/C][/ROW]
[ROW][C]34[/C][C]797.3[/C][C]824.151839177976[/C][C]-26.8518391779758[/C][/ROW]
[ROW][C]35[/C][C]834.5[/C][C]918.763679667685[/C][C]-84.2636796676853[/C][/ROW]
[ROW][C]36[/C][C]735.1[/C][C]768.49198640887[/C][C]-33.3919864088699[/C][/ROW]
[ROW][C]37[/C][C]835[/C][C]786.16360086291[/C][C]48.8363991370910[/C][/ROW]
[ROW][C]38[/C][C]892.8[/C][C]843.899778765219[/C][C]48.9002212347813[/C][/ROW]
[ROW][C]39[/C][C]697.2[/C][C]768.15796309131[/C][C]-70.9579630913096[/C][/ROW]
[ROW][C]40[/C][C]821.1[/C][C]794.706740815744[/C][C]26.3932591842557[/C][/ROW]
[ROW][C]41[/C][C]732.7[/C][C]782.121665144887[/C][C]-49.4216651448865[/C][/ROW]
[ROW][C]42[/C][C]797.6[/C][C]838.426517213543[/C][C]-40.8265172135434[/C][/ROW]
[ROW][C]43[/C][C]866.3[/C][C]843.43632387284[/C][C]22.8636761271608[/C][/ROW]
[ROW][C]44[/C][C]826.3[/C][C]763.65675826127[/C][C]62.6432417387291[/C][/ROW]
[ROW][C]45[/C][C]778.6[/C][C]817.280555586359[/C][C]-38.6805555863589[/C][/ROW]
[ROW][C]46[/C][C]779.2[/C][C]808.60791477478[/C][C]-29.4079147747798[/C][/ROW]
[ROW][C]47[/C][C]951[/C][C]914.399546702862[/C][C]36.6004532971378[/C][/ROW]
[ROW][C]48[/C][C]692.3[/C][C]800.185951668776[/C][C]-107.885951668776[/C][/ROW]
[ROW][C]49[/C][C]841.4[/C][C]815.490293702401[/C][C]25.9097062975988[/C][/ROW]
[ROW][C]50[/C][C]857.3[/C][C]882.868345619326[/C][C]-25.568345619326[/C][/ROW]
[ROW][C]51[/C][C]760.7[/C][C]745.651945028722[/C][C]15.0480549712781[/C][/ROW]
[ROW][C]52[/C][C]841.2[/C][C]833.481793648183[/C][C]7.71820635181659[/C][/ROW]
[ROW][C]53[/C][C]810.3[/C][C]806.9050027289[/C][C]3.39499727110049[/C][/ROW]
[ROW][C]54[/C][C]1007.4[/C][C]905.2866674922[/C][C]102.113332507801[/C][/ROW]
[ROW][C]55[/C][C]931.3[/C][C]946.969856182434[/C][C]-15.6698561824337[/C][/ROW]
[ROW][C]56[/C][C]931.2[/C][C]857.192302826767[/C][C]74.0076971732328[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57611&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57611&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
1944.2890.49171121515553.7082887848453
2935.9922.78101020618513.1189897938154
3937.1850.41957940558686.6804205944141
4885.1897.023394696815-11.9233946968148
5892.4851.36635289540541.0336471045945
6987.3965.5155216059921.7844783940093
7946.3932.39190952108913.9080904789111
8799.6862.883816771152-63.283816771152
9875.4851.13546174814724.2645382518527
10846.2838.7229509313177.47704906868335
11880.6945.498520673544-64.8985206735445
12885.7817.71825562839967.981744371601
13868.9882.362659084629-13.4626590846292
14882.5908.637737578255-26.1377375782554
15789.6819.801295033808-30.2012950338076
16773.3835.168417474024-61.868417474024
17804.3794.355743727429.94425627258015
18817.8898.903508882963-81.1035088829636
19836.7860.608097337924-23.9080973379241
20721.8799.162765932282-77.3627659322818
21760.8788.079181203698-27.2791812036976
22841.4792.61729511592848.7827048840723
231045.6933.038252955908112.561747044092
24949.2875.90380629395573.2961937060446
25850.1965.091735134906-114.991735134906
26957.4967.713127831015-10.3131278310154
27851.8852.369217440575-0.569217440575073
28913.9874.21965336523339.6803466347666
29888892.951235503389-4.95123550338862
30973.8975.767784805303-1.96778480530282
31927.6924.7938130857142.80618691428599
32833829.0043562085283.99564379147196
33879.5837.80480146179641.6951985382037
34797.3824.151839177976-26.8518391779758
35834.5918.763679667685-84.2636796676853
36735.1768.49198640887-33.3919864088699
37835786.1636008629148.8363991370910
38892.8843.89977876521948.9002212347813
39697.2768.15796309131-70.9579630913096
40821.1794.70674081574426.3932591842557
41732.7782.121665144887-49.4216651448865
42797.6838.426517213543-40.8265172135434
43866.3843.4363238728422.8636761271608
44826.3763.6567582612762.6432417387291
45778.6817.280555586359-38.6805555863589
46779.2808.60791477478-29.4079147747798
47951914.39954670286236.6004532971378
48692.3800.185951668776-107.885951668776
49841.4815.49029370240125.9097062975988
50857.3882.868345619326-25.568345619326
51760.7745.65194502872215.0480549712781
52841.2833.4817936481837.71820635181659
53810.3806.90500272893.39499727110049
541007.4905.2866674922102.113332507801
55931.3946.969856182434-15.6698561824337
56931.2857.19230282676774.0076971732328







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.04794355209054020.09588710418108050.95205644790946
220.01761473219377110.03522946438754220.982385267806229
230.1366975869895480.2733951739790960.863302413010452
240.4640688925258010.9281377850516020.535931107474199
250.4450856481662930.8901712963325860.554914351833707
260.3462658077089440.6925316154178880.653734192291056
270.3448529646768080.6897059293536150.655147035323193
280.7123644986644750.5752710026710510.287635501335525
290.648731181000730.7025376379985420.351268818999271
300.5621009104228110.8757981791543770.437899089577189
310.4476595256492630.8953190512985260.552340474350737
320.3604562690603780.7209125381207550.639543730939622
330.2507764200272990.5015528400545970.749223579972701
340.1771992284046270.3543984568092530.822800771595373
350.1805073019173740.3610146038347480.819492698082626

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.0479435520905402 & 0.0958871041810805 & 0.95205644790946 \tabularnewline
22 & 0.0176147321937711 & 0.0352294643875422 & 0.982385267806229 \tabularnewline
23 & 0.136697586989548 & 0.273395173979096 & 0.863302413010452 \tabularnewline
24 & 0.464068892525801 & 0.928137785051602 & 0.535931107474199 \tabularnewline
25 & 0.445085648166293 & 0.890171296332586 & 0.554914351833707 \tabularnewline
26 & 0.346265807708944 & 0.692531615417888 & 0.653734192291056 \tabularnewline
27 & 0.344852964676808 & 0.689705929353615 & 0.655147035323193 \tabularnewline
28 & 0.712364498664475 & 0.575271002671051 & 0.287635501335525 \tabularnewline
29 & 0.64873118100073 & 0.702537637998542 & 0.351268818999271 \tabularnewline
30 & 0.562100910422811 & 0.875798179154377 & 0.437899089577189 \tabularnewline
31 & 0.447659525649263 & 0.895319051298526 & 0.552340474350737 \tabularnewline
32 & 0.360456269060378 & 0.720912538120755 & 0.639543730939622 \tabularnewline
33 & 0.250776420027299 & 0.501552840054597 & 0.749223579972701 \tabularnewline
34 & 0.177199228404627 & 0.354398456809253 & 0.822800771595373 \tabularnewline
35 & 0.180507301917374 & 0.361014603834748 & 0.819492698082626 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57611&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]21[/C][C]0.0479435520905402[/C][C]0.0958871041810805[/C][C]0.95205644790946[/C][/ROW]
[ROW][C]22[/C][C]0.0176147321937711[/C][C]0.0352294643875422[/C][C]0.982385267806229[/C][/ROW]
[ROW][C]23[/C][C]0.136697586989548[/C][C]0.273395173979096[/C][C]0.863302413010452[/C][/ROW]
[ROW][C]24[/C][C]0.464068892525801[/C][C]0.928137785051602[/C][C]0.535931107474199[/C][/ROW]
[ROW][C]25[/C][C]0.445085648166293[/C][C]0.890171296332586[/C][C]0.554914351833707[/C][/ROW]
[ROW][C]26[/C][C]0.346265807708944[/C][C]0.692531615417888[/C][C]0.653734192291056[/C][/ROW]
[ROW][C]27[/C][C]0.344852964676808[/C][C]0.689705929353615[/C][C]0.655147035323193[/C][/ROW]
[ROW][C]28[/C][C]0.712364498664475[/C][C]0.575271002671051[/C][C]0.287635501335525[/C][/ROW]
[ROW][C]29[/C][C]0.64873118100073[/C][C]0.702537637998542[/C][C]0.351268818999271[/C][/ROW]
[ROW][C]30[/C][C]0.562100910422811[/C][C]0.875798179154377[/C][C]0.437899089577189[/C][/ROW]
[ROW][C]31[/C][C]0.447659525649263[/C][C]0.895319051298526[/C][C]0.552340474350737[/C][/ROW]
[ROW][C]32[/C][C]0.360456269060378[/C][C]0.720912538120755[/C][C]0.639543730939622[/C][/ROW]
[ROW][C]33[/C][C]0.250776420027299[/C][C]0.501552840054597[/C][C]0.749223579972701[/C][/ROW]
[ROW][C]34[/C][C]0.177199228404627[/C][C]0.354398456809253[/C][C]0.822800771595373[/C][/ROW]
[ROW][C]35[/C][C]0.180507301917374[/C][C]0.361014603834748[/C][C]0.819492698082626[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57611&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57611&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
210.04794355209054020.09588710418108050.95205644790946
220.01761473219377110.03522946438754220.982385267806229
230.1366975869895480.2733951739790960.863302413010452
240.4640688925258010.9281377850516020.535931107474199
250.4450856481662930.8901712963325860.554914351833707
260.3462658077089440.6925316154178880.653734192291056
270.3448529646768080.6897059293536150.655147035323193
280.7123644986644750.5752710026710510.287635501335525
290.648731181000730.7025376379985420.351268818999271
300.5621009104228110.8757981791543770.437899089577189
310.4476595256492630.8953190512985260.552340474350737
320.3604562690603780.7209125381207550.639543730939622
330.2507764200272990.5015528400545970.749223579972701
340.1771992284046270.3543984568092530.822800771595373
350.1805073019173740.3610146038347480.819492698082626







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.0666666666666667NOK
10% type I error level20.133333333333333NOK

\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 & 0 & 0 & OK \tabularnewline
5% type I error level & 1 & 0.0666666666666667 & NOK \tabularnewline
10% type I error level & 2 & 0.133333333333333 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57611&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]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]1[/C][C]0.0666666666666667[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]2[/C][C]0.133333333333333[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57611&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57611&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 level00OK
5% type I error level10.0666666666666667NOK
10% type I error level20.133333333333333NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}