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 computationThu, 19 Nov 2009 07:19:07 -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/19/t1258640418jo76c0n9hzb6fke.htm/, Retrieved Thu, 25 Apr 2024 02:08:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57745, Retrieved Thu, 25 Apr 2024 02:08:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact158
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:14:11] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [] [2009-11-19 14:19:07] [8551abdd6804649d94d88b1829ac2b1a] [Current]
Feedback Forum

Post a new message
Dataseries X:
88.9	94.8	104.2	110.8	110.5
89.8	58.5	88.9	104.2	110.8
90	62.4	89.8	88.9	104.2
93.9	56.7	90	89.8	88.9
91.3	65.1	93.9	90	89.8
87.8	114.4	91.3	93.9	90
99.7	50.7	87.8	91.3	93.9
73.5	44.5	99.7	87.8	91.3
79.2	72	73.5	99.7	87.8
96.9	61.2	79.2	73.5	99.7
95.2	68.4	96.9	79.2	73.5
95.6	78.7	95.2	96.9	79.2
89.7	64.1	95.6	95.2	96.9
92.8	64.6	89.7	95.6	95.2
88	71.9	92.8	89.7	95.6
101.1	71	88	92.8	89.7
92.7	76.4	101.1	88	92.8
95.8	117.3	92.7	101.1	88
103.8	66.1	95.8	92.7	101.1
81.8	57.3	103.8	95.8	92.7
87.1	75	81.8	103.8	95.8
105.9	63.8	87.1	81.8	103.8
108.1	62.2	105.9	87.1	81.8
102.6	75.4	108.1	105.9	87.1
93.7	58	102.6	108.1	105.9
103.5	62.1	93.7	102.6	108.1
100.6	99.2	103.5	93.7	102.6
113.3	70.7	100.6	103.5	93.7
102.4	73.3	113.3	100.6	103.5
102.1	111.2	102.4	113.3	100.6
106.9	68.9	102.1	102.4	113.3
87.3	57.6	106.9	102.1	102.4
93.1	72.9	87.3	106.9	102.1
109.1	75.9	93.1	87.3	106.9
120.3	79.4	109.1	93.1	87.3
104.9	96.9	120.3	109.1	93.1
92.6	75.2	104.9	120.3	109.1
109.8	60.3	92.6	104.9	120.3
111.4	88.9	109.8	92.6	104.9
117.9	90.5	111.4	109.8	92.6
121.6	79.9	117.9	111.4	109.8
117.8	116.3	121.6	117.9	111.4
124.2	95.2	117.8	121.6	117.9
106.8	81.5	124.2	117.8	121.6
102.7	89.1	106.8	124.2	117.8
116.8	76	102.7	106.8	124.2
113.6	100.5	116.8	102.7	106.8
96.1	83.9	113.6	116.8	102.7
85	75.1	96.1	113.6	116.8
83.2	69.5	85	96.1	113.6
84.9	95.1	83.2	85	96.1
83	90.1	84.9	83.2	85
79.6	78.4	83	84.9	83.2
83.2	113.8	79.6	83	84.9
83.8	73.6	83.2	79.6	83
82.8	56.5	83.8	83.2	79.6




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
R Framework error message & 
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=57745&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[ROW][C]R Framework error message[/C][C]
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=57745&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 2.86447730374015 -0.086292836908664X[t] + 0.721869390818033Y1[t] + 0.393165691970004Y2[t] -0.186439845201419`Y3 `[t] -2.21022856211889M1[t] + 14.2880488022346M2[t] + 13.5451642013673M3[t] + 16.0560856606977M4[t] + 8.10130396936484M5[t] + 11.6360412404237M6[t] + 17.3124338852545M7[t] -6.22433255674431M8[t] + 7.36102001165116M9[t] + 30.850583715014M10[t] + 16.4618484131315M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  2.86447730374015 -0.086292836908664X[t] +  0.721869390818033Y1[t] +  0.393165691970004Y2[t] -0.186439845201419`Y3
`[t] -2.21022856211889M1[t] +  14.2880488022346M2[t] +  13.5451642013673M3[t] +  16.0560856606977M4[t] +  8.10130396936484M5[t] +  11.6360412404237M6[t] +  17.3124338852545M7[t] -6.22433255674431M8[t] +  7.36102001165116M9[t] +  30.850583715014M10[t] +  16.4618484131315M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57745&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  2.86447730374015 -0.086292836908664X[t] +  0.721869390818033Y1[t] +  0.393165691970004Y2[t] -0.186439845201419`Y3
`[t] -2.21022856211889M1[t] +  14.2880488022346M2[t] +  13.5451642013673M3[t] +  16.0560856606977M4[t] +  8.10130396936484M5[t] +  11.6360412404237M6[t] +  17.3124338852545M7[t] -6.22433255674431M8[t] +  7.36102001165116M9[t] +  30.850583715014M10[t] +  16.4618484131315M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57745&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57745&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] = + 2.86447730374015 -0.086292836908664X[t] + 0.721869390818033Y1[t] + 0.393165691970004Y2[t] -0.186439845201419`Y3 `[t] -2.21022856211889M1[t] + 14.2880488022346M2[t] + 13.5451642013673M3[t] + 16.0560856606977M4[t] + 8.10130396936484M5[t] + 11.6360412404237M6[t] + 17.3124338852545M7[t] -6.22433255674431M8[t] + 7.36102001165116M9[t] + 30.850583715014M10[t] + 16.4618484131315M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.864477303740159.198090.31140.7570980.378549
X-0.0862928369086640.083492-1.03350.3075570.153779
Y10.7218693908180330.1695154.25840.0001216.1e-05
Y20.3931656919700040.2132751.84350.0726780.036339
`Y3 `-0.1864398452014190.177096-1.05280.2987690.149385
M1-2.210228562118895.269972-0.41940.6771670.338584
M214.28804880223466.684782.13740.038730.019365
M313.54516420136735.9522442.27560.0282980.014149
M416.05608566069774.32893.7090.0006320.000316
M58.101303969364844.8204581.68060.1006330.050317
M611.63604124042375.2043822.23580.031010.015505
M717.31243388525455.3616713.22890.0024840.001242
M8-6.224332556744315.08543-1.2240.228130.114065
M97.361020011651166.0370211.21930.2298670.114933
M1030.8505837150147.6291764.04380.0002330.000117
M1116.46184841313155.0158443.2820.0021440.001072

\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) & 2.86447730374015 & 9.19809 & 0.3114 & 0.757098 & 0.378549 \tabularnewline
X & -0.086292836908664 & 0.083492 & -1.0335 & 0.307557 & 0.153779 \tabularnewline
Y1 & 0.721869390818033 & 0.169515 & 4.2584 & 0.000121 & 6.1e-05 \tabularnewline
Y2 & 0.393165691970004 & 0.213275 & 1.8435 & 0.072678 & 0.036339 \tabularnewline
`Y3
` & -0.186439845201419 & 0.177096 & -1.0528 & 0.298769 & 0.149385 \tabularnewline
M1 & -2.21022856211889 & 5.269972 & -0.4194 & 0.677167 & 0.338584 \tabularnewline
M2 & 14.2880488022346 & 6.68478 & 2.1374 & 0.03873 & 0.019365 \tabularnewline
M3 & 13.5451642013673 & 5.952244 & 2.2756 & 0.028298 & 0.014149 \tabularnewline
M4 & 16.0560856606977 & 4.3289 & 3.709 & 0.000632 & 0.000316 \tabularnewline
M5 & 8.10130396936484 & 4.820458 & 1.6806 & 0.100633 & 0.050317 \tabularnewline
M6 & 11.6360412404237 & 5.204382 & 2.2358 & 0.03101 & 0.015505 \tabularnewline
M7 & 17.3124338852545 & 5.361671 & 3.2289 & 0.002484 & 0.001242 \tabularnewline
M8 & -6.22433255674431 & 5.08543 & -1.224 & 0.22813 & 0.114065 \tabularnewline
M9 & 7.36102001165116 & 6.037021 & 1.2193 & 0.229867 & 0.114933 \tabularnewline
M10 & 30.850583715014 & 7.629176 & 4.0438 & 0.000233 & 0.000117 \tabularnewline
M11 & 16.4618484131315 & 5.015844 & 3.282 & 0.002144 & 0.001072 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57745&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]2.86447730374015[/C][C]9.19809[/C][C]0.3114[/C][C]0.757098[/C][C]0.378549[/C][/ROW]
[ROW][C]X[/C][C]-0.086292836908664[/C][C]0.083492[/C][C]-1.0335[/C][C]0.307557[/C][C]0.153779[/C][/ROW]
[ROW][C]Y1[/C][C]0.721869390818033[/C][C]0.169515[/C][C]4.2584[/C][C]0.000121[/C][C]6.1e-05[/C][/ROW]
[ROW][C]Y2[/C][C]0.393165691970004[/C][C]0.213275[/C][C]1.8435[/C][C]0.072678[/C][C]0.036339[/C][/ROW]
[ROW][C]`Y3
`[/C][C]-0.186439845201419[/C][C]0.177096[/C][C]-1.0528[/C][C]0.298769[/C][C]0.149385[/C][/ROW]
[ROW][C]M1[/C][C]-2.21022856211889[/C][C]5.269972[/C][C]-0.4194[/C][C]0.677167[/C][C]0.338584[/C][/ROW]
[ROW][C]M2[/C][C]14.2880488022346[/C][C]6.68478[/C][C]2.1374[/C][C]0.03873[/C][C]0.019365[/C][/ROW]
[ROW][C]M3[/C][C]13.5451642013673[/C][C]5.952244[/C][C]2.2756[/C][C]0.028298[/C][C]0.014149[/C][/ROW]
[ROW][C]M4[/C][C]16.0560856606977[/C][C]4.3289[/C][C]3.709[/C][C]0.000632[/C][C]0.000316[/C][/ROW]
[ROW][C]M5[/C][C]8.10130396936484[/C][C]4.820458[/C][C]1.6806[/C][C]0.100633[/C][C]0.050317[/C][/ROW]
[ROW][C]M6[/C][C]11.6360412404237[/C][C]5.204382[/C][C]2.2358[/C][C]0.03101[/C][C]0.015505[/C][/ROW]
[ROW][C]M7[/C][C]17.3124338852545[/C][C]5.361671[/C][C]3.2289[/C][C]0.002484[/C][C]0.001242[/C][/ROW]
[ROW][C]M8[/C][C]-6.22433255674431[/C][C]5.08543[/C][C]-1.224[/C][C]0.22813[/C][C]0.114065[/C][/ROW]
[ROW][C]M9[/C][C]7.36102001165116[/C][C]6.037021[/C][C]1.2193[/C][C]0.229867[/C][C]0.114933[/C][/ROW]
[ROW][C]M10[/C][C]30.850583715014[/C][C]7.629176[/C][C]4.0438[/C][C]0.000233[/C][C]0.000117[/C][/ROW]
[ROW][C]M11[/C][C]16.4618484131315[/C][C]5.015844[/C][C]3.282[/C][C]0.002144[/C][C]0.001072[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57745&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57745&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)2.864477303740159.198090.31140.7570980.378549
X-0.0862928369086640.083492-1.03350.3075570.153779
Y10.7218693908180330.1695154.25840.0001216.1e-05
Y20.3931656919700040.2132751.84350.0726780.036339
`Y3 `-0.1864398452014190.177096-1.05280.2987690.149385
M1-2.210228562118895.269972-0.41940.6771670.338584
M214.28804880223466.684782.13740.038730.019365
M313.54516420136735.9522442.27560.0282980.014149
M416.05608566069774.32893.7090.0006320.000316
M58.101303969364844.8204581.68060.1006330.050317
M611.63604124042375.2043822.23580.031010.015505
M717.31243388525455.3616713.22890.0024840.001242
M8-6.224332556744315.08543-1.2240.228130.114065
M97.361020011651166.0370211.21930.2298670.114933
M1030.8505837150147.6291764.04380.0002330.000117
M1116.46184841313155.0158443.2820.0021440.001072







Multiple Linear Regression - Regression Statistics
Multiple R0.918965867543781
R-squared0.844498265710494
Adjusted R-squared0.78618511535193
F-TEST (value)14.4821238522995
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value1.10615960835503e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.66210143823518
Sum Squared Residuals1282.37570787460

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.918965867543781 \tabularnewline
R-squared & 0.844498265710494 \tabularnewline
Adjusted R-squared & 0.78618511535193 \tabularnewline
F-TEST (value) & 14.4821238522995 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 40 \tabularnewline
p-value & 1.10615960835503e-11 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.66210143823518 \tabularnewline
Sum Squared Residuals & 1282.37570787460 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57745&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.918965867543781[/C][/ROW]
[ROW][C]R-squared[/C][C]0.844498265710494[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.78618511535193[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]14.4821238522995[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]40[/C][/ROW]
[ROW][C]p-value[/C][C]1.10615960835503e-11[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.66210143823518[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1282.37570787460[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57745&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57745&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.918965867543781
R-squared0.844498265710494
Adjusted R-squared0.78618511535193
F-TEST (value)14.4821238522995
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value1.10615960835503e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.66210143823518
Sum Squared Residuals1282.37570787460







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
188.990.6536341014388-1.75363410143879
289.896.5889142454982-6.78891424549823
39091.3742379236116-1.37423792361164
493.997.7277811858398-3.82778118583978
591.391.7742675663772-0.474267566377228
687.890.6739657913548-2.87396579135480
799.797.57132308399682.12867691600318
873.582.268481657195-8.76848165719501
979.279.8990143638178-0.699014363817748
1096.995.9156209459460.984379054054067
1195.2100.808433824306-5.60843382430649
1295.688.1269168568467.47308314315395
1389.783.49694453350676.20305546649326
1492.896.16726008721-3.36726008720991
158894.6379793677417-6.63797936774166
16101.196.08040003615875.01959996384129
1792.794.6509672036549-1.95096720365488
1895.894.63800638405181.16199361594821
19103.8101.2254336054552.57456639454455
2081.887.007907599596-5.20790759959608
2187.185.75211237234711.34788762765290
22105.9103.8928996354712.00710036452891
23108.1109.398832181894-1.29883218189376
24102.699.7894148108362.81058518916391
2593.792.47029539397611.22970460602390
26103.599.61755558344543.88244441655459
27100.6100.2737712533580.326228746641827
28113.3108.6629557348124.63704426518812
29102.4106.684262941219-4.28426294121861
30102.1104.614005172626-2.51400517262574
31106.9107.070731924917-0.170731924916517
3287.389.8882922210166-2.58829222101665
3393.189.94785159969253.15214840030745
34109.1108.7644204394950.335579560504907
35120.3111.5581524408958.74184755910534
36104.9106.880416528375-1.98041652837531
3792.696.846372135418-4.24637213541808
38109.897.608541340054912.1914586599451
39111.4104.8490707305416.55092926945927
40117.9117.4325746739880.467425326012318
41121.6112.5069478638919.0930521361085
42117.8117.828815862984-0.0288158629844725
43124.2122.8257377479591.37426225204068
44106.8102.9072902161133.89270978388663
45102.7106.501021664143-3.80102166414261
46116.8120.127058979088-3.32705897908788
47113.6115.434581552905-1.83458155290508
4896.1104.403251803943-8.30325180394254
498586.4327538356603-1.43275383566029
5083.289.1177287437916-5.91772874379158
5184.983.76494072474781.1350592752522
528389.296288369202-6.29628836920195
5379.681.9835544248578-2.38355442485778
5483.278.94520678898324.2547932110168
5583.889.7067736376719-5.90677363767189
5682.870.128028306078912.6719716939211

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 88.9 & 90.6536341014388 & -1.75363410143879 \tabularnewline
2 & 89.8 & 96.5889142454982 & -6.78891424549823 \tabularnewline
3 & 90 & 91.3742379236116 & -1.37423792361164 \tabularnewline
4 & 93.9 & 97.7277811858398 & -3.82778118583978 \tabularnewline
5 & 91.3 & 91.7742675663772 & -0.474267566377228 \tabularnewline
6 & 87.8 & 90.6739657913548 & -2.87396579135480 \tabularnewline
7 & 99.7 & 97.5713230839968 & 2.12867691600318 \tabularnewline
8 & 73.5 & 82.268481657195 & -8.76848165719501 \tabularnewline
9 & 79.2 & 79.8990143638178 & -0.699014363817748 \tabularnewline
10 & 96.9 & 95.915620945946 & 0.984379054054067 \tabularnewline
11 & 95.2 & 100.808433824306 & -5.60843382430649 \tabularnewline
12 & 95.6 & 88.126916856846 & 7.47308314315395 \tabularnewline
13 & 89.7 & 83.4969445335067 & 6.20305546649326 \tabularnewline
14 & 92.8 & 96.16726008721 & -3.36726008720991 \tabularnewline
15 & 88 & 94.6379793677417 & -6.63797936774166 \tabularnewline
16 & 101.1 & 96.0804000361587 & 5.01959996384129 \tabularnewline
17 & 92.7 & 94.6509672036549 & -1.95096720365488 \tabularnewline
18 & 95.8 & 94.6380063840518 & 1.16199361594821 \tabularnewline
19 & 103.8 & 101.225433605455 & 2.57456639454455 \tabularnewline
20 & 81.8 & 87.007907599596 & -5.20790759959608 \tabularnewline
21 & 87.1 & 85.7521123723471 & 1.34788762765290 \tabularnewline
22 & 105.9 & 103.892899635471 & 2.00710036452891 \tabularnewline
23 & 108.1 & 109.398832181894 & -1.29883218189376 \tabularnewline
24 & 102.6 & 99.789414810836 & 2.81058518916391 \tabularnewline
25 & 93.7 & 92.4702953939761 & 1.22970460602390 \tabularnewline
26 & 103.5 & 99.6175555834454 & 3.88244441655459 \tabularnewline
27 & 100.6 & 100.273771253358 & 0.326228746641827 \tabularnewline
28 & 113.3 & 108.662955734812 & 4.63704426518812 \tabularnewline
29 & 102.4 & 106.684262941219 & -4.28426294121861 \tabularnewline
30 & 102.1 & 104.614005172626 & -2.51400517262574 \tabularnewline
31 & 106.9 & 107.070731924917 & -0.170731924916517 \tabularnewline
32 & 87.3 & 89.8882922210166 & -2.58829222101665 \tabularnewline
33 & 93.1 & 89.9478515996925 & 3.15214840030745 \tabularnewline
34 & 109.1 & 108.764420439495 & 0.335579560504907 \tabularnewline
35 & 120.3 & 111.558152440895 & 8.74184755910534 \tabularnewline
36 & 104.9 & 106.880416528375 & -1.98041652837531 \tabularnewline
37 & 92.6 & 96.846372135418 & -4.24637213541808 \tabularnewline
38 & 109.8 & 97.6085413400549 & 12.1914586599451 \tabularnewline
39 & 111.4 & 104.849070730541 & 6.55092926945927 \tabularnewline
40 & 117.9 & 117.432574673988 & 0.467425326012318 \tabularnewline
41 & 121.6 & 112.506947863891 & 9.0930521361085 \tabularnewline
42 & 117.8 & 117.828815862984 & -0.0288158629844725 \tabularnewline
43 & 124.2 & 122.825737747959 & 1.37426225204068 \tabularnewline
44 & 106.8 & 102.907290216113 & 3.89270978388663 \tabularnewline
45 & 102.7 & 106.501021664143 & -3.80102166414261 \tabularnewline
46 & 116.8 & 120.127058979088 & -3.32705897908788 \tabularnewline
47 & 113.6 & 115.434581552905 & -1.83458155290508 \tabularnewline
48 & 96.1 & 104.403251803943 & -8.30325180394254 \tabularnewline
49 & 85 & 86.4327538356603 & -1.43275383566029 \tabularnewline
50 & 83.2 & 89.1177287437916 & -5.91772874379158 \tabularnewline
51 & 84.9 & 83.7649407247478 & 1.1350592752522 \tabularnewline
52 & 83 & 89.296288369202 & -6.29628836920195 \tabularnewline
53 & 79.6 & 81.9835544248578 & -2.38355442485778 \tabularnewline
54 & 83.2 & 78.9452067889832 & 4.2547932110168 \tabularnewline
55 & 83.8 & 89.7067736376719 & -5.90677363767189 \tabularnewline
56 & 82.8 & 70.1280283060789 & 12.6719716939211 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57745&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]88.9[/C][C]90.6536341014388[/C][C]-1.75363410143879[/C][/ROW]
[ROW][C]2[/C][C]89.8[/C][C]96.5889142454982[/C][C]-6.78891424549823[/C][/ROW]
[ROW][C]3[/C][C]90[/C][C]91.3742379236116[/C][C]-1.37423792361164[/C][/ROW]
[ROW][C]4[/C][C]93.9[/C][C]97.7277811858398[/C][C]-3.82778118583978[/C][/ROW]
[ROW][C]5[/C][C]91.3[/C][C]91.7742675663772[/C][C]-0.474267566377228[/C][/ROW]
[ROW][C]6[/C][C]87.8[/C][C]90.6739657913548[/C][C]-2.87396579135480[/C][/ROW]
[ROW][C]7[/C][C]99.7[/C][C]97.5713230839968[/C][C]2.12867691600318[/C][/ROW]
[ROW][C]8[/C][C]73.5[/C][C]82.268481657195[/C][C]-8.76848165719501[/C][/ROW]
[ROW][C]9[/C][C]79.2[/C][C]79.8990143638178[/C][C]-0.699014363817748[/C][/ROW]
[ROW][C]10[/C][C]96.9[/C][C]95.915620945946[/C][C]0.984379054054067[/C][/ROW]
[ROW][C]11[/C][C]95.2[/C][C]100.808433824306[/C][C]-5.60843382430649[/C][/ROW]
[ROW][C]12[/C][C]95.6[/C][C]88.126916856846[/C][C]7.47308314315395[/C][/ROW]
[ROW][C]13[/C][C]89.7[/C][C]83.4969445335067[/C][C]6.20305546649326[/C][/ROW]
[ROW][C]14[/C][C]92.8[/C][C]96.16726008721[/C][C]-3.36726008720991[/C][/ROW]
[ROW][C]15[/C][C]88[/C][C]94.6379793677417[/C][C]-6.63797936774166[/C][/ROW]
[ROW][C]16[/C][C]101.1[/C][C]96.0804000361587[/C][C]5.01959996384129[/C][/ROW]
[ROW][C]17[/C][C]92.7[/C][C]94.6509672036549[/C][C]-1.95096720365488[/C][/ROW]
[ROW][C]18[/C][C]95.8[/C][C]94.6380063840518[/C][C]1.16199361594821[/C][/ROW]
[ROW][C]19[/C][C]103.8[/C][C]101.225433605455[/C][C]2.57456639454455[/C][/ROW]
[ROW][C]20[/C][C]81.8[/C][C]87.007907599596[/C][C]-5.20790759959608[/C][/ROW]
[ROW][C]21[/C][C]87.1[/C][C]85.7521123723471[/C][C]1.34788762765290[/C][/ROW]
[ROW][C]22[/C][C]105.9[/C][C]103.892899635471[/C][C]2.00710036452891[/C][/ROW]
[ROW][C]23[/C][C]108.1[/C][C]109.398832181894[/C][C]-1.29883218189376[/C][/ROW]
[ROW][C]24[/C][C]102.6[/C][C]99.789414810836[/C][C]2.81058518916391[/C][/ROW]
[ROW][C]25[/C][C]93.7[/C][C]92.4702953939761[/C][C]1.22970460602390[/C][/ROW]
[ROW][C]26[/C][C]103.5[/C][C]99.6175555834454[/C][C]3.88244441655459[/C][/ROW]
[ROW][C]27[/C][C]100.6[/C][C]100.273771253358[/C][C]0.326228746641827[/C][/ROW]
[ROW][C]28[/C][C]113.3[/C][C]108.662955734812[/C][C]4.63704426518812[/C][/ROW]
[ROW][C]29[/C][C]102.4[/C][C]106.684262941219[/C][C]-4.28426294121861[/C][/ROW]
[ROW][C]30[/C][C]102.1[/C][C]104.614005172626[/C][C]-2.51400517262574[/C][/ROW]
[ROW][C]31[/C][C]106.9[/C][C]107.070731924917[/C][C]-0.170731924916517[/C][/ROW]
[ROW][C]32[/C][C]87.3[/C][C]89.8882922210166[/C][C]-2.58829222101665[/C][/ROW]
[ROW][C]33[/C][C]93.1[/C][C]89.9478515996925[/C][C]3.15214840030745[/C][/ROW]
[ROW][C]34[/C][C]109.1[/C][C]108.764420439495[/C][C]0.335579560504907[/C][/ROW]
[ROW][C]35[/C][C]120.3[/C][C]111.558152440895[/C][C]8.74184755910534[/C][/ROW]
[ROW][C]36[/C][C]104.9[/C][C]106.880416528375[/C][C]-1.98041652837531[/C][/ROW]
[ROW][C]37[/C][C]92.6[/C][C]96.846372135418[/C][C]-4.24637213541808[/C][/ROW]
[ROW][C]38[/C][C]109.8[/C][C]97.6085413400549[/C][C]12.1914586599451[/C][/ROW]
[ROW][C]39[/C][C]111.4[/C][C]104.849070730541[/C][C]6.55092926945927[/C][/ROW]
[ROW][C]40[/C][C]117.9[/C][C]117.432574673988[/C][C]0.467425326012318[/C][/ROW]
[ROW][C]41[/C][C]121.6[/C][C]112.506947863891[/C][C]9.0930521361085[/C][/ROW]
[ROW][C]42[/C][C]117.8[/C][C]117.828815862984[/C][C]-0.0288158629844725[/C][/ROW]
[ROW][C]43[/C][C]124.2[/C][C]122.825737747959[/C][C]1.37426225204068[/C][/ROW]
[ROW][C]44[/C][C]106.8[/C][C]102.907290216113[/C][C]3.89270978388663[/C][/ROW]
[ROW][C]45[/C][C]102.7[/C][C]106.501021664143[/C][C]-3.80102166414261[/C][/ROW]
[ROW][C]46[/C][C]116.8[/C][C]120.127058979088[/C][C]-3.32705897908788[/C][/ROW]
[ROW][C]47[/C][C]113.6[/C][C]115.434581552905[/C][C]-1.83458155290508[/C][/ROW]
[ROW][C]48[/C][C]96.1[/C][C]104.403251803943[/C][C]-8.30325180394254[/C][/ROW]
[ROW][C]49[/C][C]85[/C][C]86.4327538356603[/C][C]-1.43275383566029[/C][/ROW]
[ROW][C]50[/C][C]83.2[/C][C]89.1177287437916[/C][C]-5.91772874379158[/C][/ROW]
[ROW][C]51[/C][C]84.9[/C][C]83.7649407247478[/C][C]1.1350592752522[/C][/ROW]
[ROW][C]52[/C][C]83[/C][C]89.296288369202[/C][C]-6.29628836920195[/C][/ROW]
[ROW][C]53[/C][C]79.6[/C][C]81.9835544248578[/C][C]-2.38355442485778[/C][/ROW]
[ROW][C]54[/C][C]83.2[/C][C]78.9452067889832[/C][C]4.2547932110168[/C][/ROW]
[ROW][C]55[/C][C]83.8[/C][C]89.7067736376719[/C][C]-5.90677363767189[/C][/ROW]
[ROW][C]56[/C][C]82.8[/C][C]70.1280283060789[/C][C]12.6719716939211[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57745&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57745&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
188.990.6536341014388-1.75363410143879
289.896.5889142454982-6.78891424549823
39091.3742379236116-1.37423792361164
493.997.7277811858398-3.82778118583978
591.391.7742675663772-0.474267566377228
687.890.6739657913548-2.87396579135480
799.797.57132308399682.12867691600318
873.582.268481657195-8.76848165719501
979.279.8990143638178-0.699014363817748
1096.995.9156209459460.984379054054067
1195.2100.808433824306-5.60843382430649
1295.688.1269168568467.47308314315395
1389.783.49694453350676.20305546649326
1492.896.16726008721-3.36726008720991
158894.6379793677417-6.63797936774166
16101.196.08040003615875.01959996384129
1792.794.6509672036549-1.95096720365488
1895.894.63800638405181.16199361594821
19103.8101.2254336054552.57456639454455
2081.887.007907599596-5.20790759959608
2187.185.75211237234711.34788762765290
22105.9103.8928996354712.00710036452891
23108.1109.398832181894-1.29883218189376
24102.699.7894148108362.81058518916391
2593.792.47029539397611.22970460602390
26103.599.61755558344543.88244441655459
27100.6100.2737712533580.326228746641827
28113.3108.6629557348124.63704426518812
29102.4106.684262941219-4.28426294121861
30102.1104.614005172626-2.51400517262574
31106.9107.070731924917-0.170731924916517
3287.389.8882922210166-2.58829222101665
3393.189.94785159969253.15214840030745
34109.1108.7644204394950.335579560504907
35120.3111.5581524408958.74184755910534
36104.9106.880416528375-1.98041652837531
3792.696.846372135418-4.24637213541808
38109.897.608541340054912.1914586599451
39111.4104.8490707305416.55092926945927
40117.9117.4325746739880.467425326012318
41121.6112.5069478638919.0930521361085
42117.8117.828815862984-0.0288158629844725
43124.2122.8257377479591.37426225204068
44106.8102.9072902161133.89270978388663
45102.7106.501021664143-3.80102166414261
46116.8120.127058979088-3.32705897908788
47113.6115.434581552905-1.83458155290508
4896.1104.403251803943-8.30325180394254
498586.4327538356603-1.43275383566029
5083.289.1177287437916-5.91772874379158
5184.983.76494072474781.1350592752522
528389.296288369202-6.29628836920195
5379.681.9835544248578-2.38355442485778
5483.278.94520678898324.2547932110168
5583.889.7067736376719-5.90677363767189
5682.870.128028306078912.6719716939211







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.3454224351711950.6908448703423900.654577564828805
200.3180586108802220.6361172217604430.681941389119778
210.2804870936500650.560974187300130.719512906349935
220.1804154260582290.3608308521164590.81958457394177
230.1573991219945160.3147982439890330.842600878005484
240.1171713246314850.2343426492629710.882828675368515
250.06581038964129490.1316207792825900.934189610358705
260.1113762833014000.2227525666028000.8886237166986
270.07700236513141890.1540047302628380.922997634868581
280.05069525233318080.1013905046663620.94930474766682
290.04679143082942590.09358286165885180.953208569170574
300.02891116087052760.05782232174105520.971088839129472
310.01463596549290230.02927193098580450.985364034507098
320.0387867291451810.0775734582903620.961213270854819
330.02441036360692870.04882072721385740.975589636393071
340.01357723092037530.02715446184075050.986422769079625
350.02350825572797650.04701651145595310.976491744272023
360.1649656394963790.3299312789927580.835034360503621
370.1111016397922920.2222032795845840.888898360207708

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.345422435171195 & 0.690844870342390 & 0.654577564828805 \tabularnewline
20 & 0.318058610880222 & 0.636117221760443 & 0.681941389119778 \tabularnewline
21 & 0.280487093650065 & 0.56097418730013 & 0.719512906349935 \tabularnewline
22 & 0.180415426058229 & 0.360830852116459 & 0.81958457394177 \tabularnewline
23 & 0.157399121994516 & 0.314798243989033 & 0.842600878005484 \tabularnewline
24 & 0.117171324631485 & 0.234342649262971 & 0.882828675368515 \tabularnewline
25 & 0.0658103896412949 & 0.131620779282590 & 0.934189610358705 \tabularnewline
26 & 0.111376283301400 & 0.222752566602800 & 0.8886237166986 \tabularnewline
27 & 0.0770023651314189 & 0.154004730262838 & 0.922997634868581 \tabularnewline
28 & 0.0506952523331808 & 0.101390504666362 & 0.94930474766682 \tabularnewline
29 & 0.0467914308294259 & 0.0935828616588518 & 0.953208569170574 \tabularnewline
30 & 0.0289111608705276 & 0.0578223217410552 & 0.971088839129472 \tabularnewline
31 & 0.0146359654929023 & 0.0292719309858045 & 0.985364034507098 \tabularnewline
32 & 0.038786729145181 & 0.077573458290362 & 0.961213270854819 \tabularnewline
33 & 0.0244103636069287 & 0.0488207272138574 & 0.975589636393071 \tabularnewline
34 & 0.0135772309203753 & 0.0271544618407505 & 0.986422769079625 \tabularnewline
35 & 0.0235082557279765 & 0.0470165114559531 & 0.976491744272023 \tabularnewline
36 & 0.164965639496379 & 0.329931278992758 & 0.835034360503621 \tabularnewline
37 & 0.111101639792292 & 0.222203279584584 & 0.888898360207708 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57745&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]19[/C][C]0.345422435171195[/C][C]0.690844870342390[/C][C]0.654577564828805[/C][/ROW]
[ROW][C]20[/C][C]0.318058610880222[/C][C]0.636117221760443[/C][C]0.681941389119778[/C][/ROW]
[ROW][C]21[/C][C]0.280487093650065[/C][C]0.56097418730013[/C][C]0.719512906349935[/C][/ROW]
[ROW][C]22[/C][C]0.180415426058229[/C][C]0.360830852116459[/C][C]0.81958457394177[/C][/ROW]
[ROW][C]23[/C][C]0.157399121994516[/C][C]0.314798243989033[/C][C]0.842600878005484[/C][/ROW]
[ROW][C]24[/C][C]0.117171324631485[/C][C]0.234342649262971[/C][C]0.882828675368515[/C][/ROW]
[ROW][C]25[/C][C]0.0658103896412949[/C][C]0.131620779282590[/C][C]0.934189610358705[/C][/ROW]
[ROW][C]26[/C][C]0.111376283301400[/C][C]0.222752566602800[/C][C]0.8886237166986[/C][/ROW]
[ROW][C]27[/C][C]0.0770023651314189[/C][C]0.154004730262838[/C][C]0.922997634868581[/C][/ROW]
[ROW][C]28[/C][C]0.0506952523331808[/C][C]0.101390504666362[/C][C]0.94930474766682[/C][/ROW]
[ROW][C]29[/C][C]0.0467914308294259[/C][C]0.0935828616588518[/C][C]0.953208569170574[/C][/ROW]
[ROW][C]30[/C][C]0.0289111608705276[/C][C]0.0578223217410552[/C][C]0.971088839129472[/C][/ROW]
[ROW][C]31[/C][C]0.0146359654929023[/C][C]0.0292719309858045[/C][C]0.985364034507098[/C][/ROW]
[ROW][C]32[/C][C]0.038786729145181[/C][C]0.077573458290362[/C][C]0.961213270854819[/C][/ROW]
[ROW][C]33[/C][C]0.0244103636069287[/C][C]0.0488207272138574[/C][C]0.975589636393071[/C][/ROW]
[ROW][C]34[/C][C]0.0135772309203753[/C][C]0.0271544618407505[/C][C]0.986422769079625[/C][/ROW]
[ROW][C]35[/C][C]0.0235082557279765[/C][C]0.0470165114559531[/C][C]0.976491744272023[/C][/ROW]
[ROW][C]36[/C][C]0.164965639496379[/C][C]0.329931278992758[/C][C]0.835034360503621[/C][/ROW]
[ROW][C]37[/C][C]0.111101639792292[/C][C]0.222203279584584[/C][C]0.888898360207708[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57745&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57745&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
190.3454224351711950.6908448703423900.654577564828805
200.3180586108802220.6361172217604430.681941389119778
210.2804870936500650.560974187300130.719512906349935
220.1804154260582290.3608308521164590.81958457394177
230.1573991219945160.3147982439890330.842600878005484
240.1171713246314850.2343426492629710.882828675368515
250.06581038964129490.1316207792825900.934189610358705
260.1113762833014000.2227525666028000.8886237166986
270.07700236513141890.1540047302628380.922997634868581
280.05069525233318080.1013905046663620.94930474766682
290.04679143082942590.09358286165885180.953208569170574
300.02891116087052760.05782232174105520.971088839129472
310.01463596549290230.02927193098580450.985364034507098
320.0387867291451810.0775734582903620.961213270854819
330.02441036360692870.04882072721385740.975589636393071
340.01357723092037530.02715446184075050.986422769079625
350.02350825572797650.04701651145595310.976491744272023
360.1649656394963790.3299312789927580.835034360503621
370.1111016397922920.2222032795845840.888898360207708







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level40.210526315789474NOK
10% type I error level70.368421052631579NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57745&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 level40.210526315789474NOK
10% type I error level70.368421052631579NOK



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