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:08:39 -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/t12587369843off82ofkdogdvm.htm/, Retrieved Fri, 26 Apr 2024 03:16:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58337, Retrieved Fri, 26 Apr 2024 03:16:13 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact205
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]
-    D      [Multiple Regression] [] [2009-11-20 17:08:39] [fc845972e0ebdb725d2fb9537c0c51aa] [Current]
Feedback Forum

Post a new message
Dataseries X:
114.1	0	87.4	111.4
110.3	0	96.8	87.4
103.9	0	114.1	96.8
101.6	0	110.3	114.1
94.6	0	103.9	110.3
95.9	0	101.6	103.9
104.7	0	94.6	101.6
102.8	0	95.9	94.6
98.1	0	104.7	95.9
113.9	0	102.8	104.7
80.9	0	98.1	102.8
95.7	0	113.9	98.1
113.2	0	80.9	113.9
105.9	0	95.7	80.9
108.8	0	113.2	95.7
102.3	0	105.9	113.2
99	0	108.8	105.9
100.7	0	102.3	108.8
115.5	0	99	102.3
100.7	0	100.7	99
109.9	0	115.5	100.7
114.6	0	100.7	115.5
85.4	0	109.9	100.7
100.5	0	114.6	109.9
114.8	0	85.4	114.6
116.5	0	100.5	85.4
112.9	0	114.8	100.5
102	0	116.5	114.8
106	0	112.9	116.5
105.3	0	102	112.9
118.8	0	106	102
106.1	0	105.3	106
109.3	0	118.8	105.3
117.2	0	106.1	118.8
92.5	0	109.3	106.1
104.2	0	117.2	109.3
112.5	0	92.5	117.2
122.4	0	104.2	92.5
113.3	0	112.5	104.2
100	0	122.4	112.5
110.7	0	113.3	122.4
112.8	0	100	113.3
109.8	0	110.7	100
117.3	0	112.8	110.7
109.1	0	109.8	112.8
115.9	0	117.3	109.8
96	0	109.1	117.3
99.8	0	115.9	109.1
116.8	1	96	115.9
115.7	1	99.8	96
99.4	1	116.8	99.8
94.3	1	115.7	116.8
91	1	99.4	115.7
93.2	1	94.3	99.4
103.1	1	91	94.3
94.1	1	93.2	91
91.8	1	103.1	93.2
102.7	1	94.1	103.1




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58337&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] = + 18.5409969905715 -8.0136453659114X[t] + 0.225676466959048Y2[t] + 0.498893804159903Y3[t] + 18.3064593889371M1[t] + 28.6879785879254M2[t] + 13.2859080260186M3[t] -1.80667924380932M4[t] -0.136043592039938M5[t] + 6.07029217326375M6[t] + 18.5460854982676M7[t] + 11.8823072850028M8[t] + 8.60168591430853M9[t] + 14.7499723635447M10[t] -9.35028017631675M11[t] + 0.0761286399636236t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  18.5409969905715 -8.0136453659114X[t] +  0.225676466959048Y2[t] +  0.498893804159903Y3[t] +  18.3064593889371M1[t] +  28.6879785879254M2[t] +  13.2859080260186M3[t] -1.80667924380932M4[t] -0.136043592039938M5[t] +  6.07029217326375M6[t] +  18.5460854982676M7[t] +  11.8823072850028M8[t] +  8.60168591430853M9[t] +  14.7499723635447M10[t] -9.35028017631675M11[t] +  0.0761286399636236t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58337&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  18.5409969905715 -8.0136453659114X[t] +  0.225676466959048Y2[t] +  0.498893804159903Y3[t] +  18.3064593889371M1[t] +  28.6879785879254M2[t] +  13.2859080260186M3[t] -1.80667924380932M4[t] -0.136043592039938M5[t] +  6.07029217326375M6[t] +  18.5460854982676M7[t] +  11.8823072850028M8[t] +  8.60168591430853M9[t] +  14.7499723635447M10[t] -9.35028017631675M11[t] +  0.0761286399636236t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58337&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58337&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] = + 18.5409969905715 -8.0136453659114X[t] + 0.225676466959048Y2[t] + 0.498893804159903Y3[t] + 18.3064593889371M1[t] + 28.6879785879254M2[t] + 13.2859080260186M3[t] -1.80667924380932M4[t] -0.136043592039938M5[t] + 6.07029217326375M6[t] + 18.5460854982676M7[t] + 11.8823072850028M8[t] + 8.60168591430853M9[t] + 14.7499723635447M10[t] -9.35028017631675M11[t] + 0.0761286399636236t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)18.540996990571515.8521451.16960.2487490.124374
X-8.01364536591142.365898-3.38710.0015440.000772
Y20.2256764669590480.1127522.00150.0518230.025912
Y30.4988938041599030.11594.30459.8e-054.9e-05
M118.30645938893713.914964.6763e-051.5e-05
M228.68797858792543.1984478.969300
M313.28590802601862.4560335.40953e-061e-06
M4-1.806679243809322.657664-0.67980.5003610.250181
M5-0.1360435920399382.73368-0.04980.9605450.480272
M66.070292173263752.8390082.13820.0383650.019183
M718.54608549826762.8073876.606200
M811.88230728500282.7462464.32679.2e-054.6e-05
M98.601685914308532.4253513.54660.0009750.000487
M1014.74997236354472.7002595.46242e-061e-06
M11-9.350280176316752.661259-3.51350.0010730.000537
t0.07612863996362360.0520531.46250.1510430.075522

\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) & 18.5409969905715 & 15.852145 & 1.1696 & 0.248749 & 0.124374 \tabularnewline
X & -8.0136453659114 & 2.365898 & -3.3871 & 0.001544 & 0.000772 \tabularnewline
Y2 & 0.225676466959048 & 0.112752 & 2.0015 & 0.051823 & 0.025912 \tabularnewline
Y3 & 0.498893804159903 & 0.1159 & 4.3045 & 9.8e-05 & 4.9e-05 \tabularnewline
M1 & 18.3064593889371 & 3.91496 & 4.676 & 3e-05 & 1.5e-05 \tabularnewline
M2 & 28.6879785879254 & 3.198447 & 8.9693 & 0 & 0 \tabularnewline
M3 & 13.2859080260186 & 2.456033 & 5.4095 & 3e-06 & 1e-06 \tabularnewline
M4 & -1.80667924380932 & 2.657664 & -0.6798 & 0.500361 & 0.250181 \tabularnewline
M5 & -0.136043592039938 & 2.73368 & -0.0498 & 0.960545 & 0.480272 \tabularnewline
M6 & 6.07029217326375 & 2.839008 & 2.1382 & 0.038365 & 0.019183 \tabularnewline
M7 & 18.5460854982676 & 2.807387 & 6.6062 & 0 & 0 \tabularnewline
M8 & 11.8823072850028 & 2.746246 & 4.3267 & 9.2e-05 & 4.6e-05 \tabularnewline
M9 & 8.60168591430853 & 2.425351 & 3.5466 & 0.000975 & 0.000487 \tabularnewline
M10 & 14.7499723635447 & 2.700259 & 5.4624 & 2e-06 & 1e-06 \tabularnewline
M11 & -9.35028017631675 & 2.661259 & -3.5135 & 0.001073 & 0.000537 \tabularnewline
t & 0.0761286399636236 & 0.052053 & 1.4625 & 0.151043 & 0.075522 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58337&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]18.5409969905715[/C][C]15.852145[/C][C]1.1696[/C][C]0.248749[/C][C]0.124374[/C][/ROW]
[ROW][C]X[/C][C]-8.0136453659114[/C][C]2.365898[/C][C]-3.3871[/C][C]0.001544[/C][C]0.000772[/C][/ROW]
[ROW][C]Y2[/C][C]0.225676466959048[/C][C]0.112752[/C][C]2.0015[/C][C]0.051823[/C][C]0.025912[/C][/ROW]
[ROW][C]Y3[/C][C]0.498893804159903[/C][C]0.1159[/C][C]4.3045[/C][C]9.8e-05[/C][C]4.9e-05[/C][/ROW]
[ROW][C]M1[/C][C]18.3064593889371[/C][C]3.91496[/C][C]4.676[/C][C]3e-05[/C][C]1.5e-05[/C][/ROW]
[ROW][C]M2[/C][C]28.6879785879254[/C][C]3.198447[/C][C]8.9693[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]13.2859080260186[/C][C]2.456033[/C][C]5.4095[/C][C]3e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M4[/C][C]-1.80667924380932[/C][C]2.657664[/C][C]-0.6798[/C][C]0.500361[/C][C]0.250181[/C][/ROW]
[ROW][C]M5[/C][C]-0.136043592039938[/C][C]2.73368[/C][C]-0.0498[/C][C]0.960545[/C][C]0.480272[/C][/ROW]
[ROW][C]M6[/C][C]6.07029217326375[/C][C]2.839008[/C][C]2.1382[/C][C]0.038365[/C][C]0.019183[/C][/ROW]
[ROW][C]M7[/C][C]18.5460854982676[/C][C]2.807387[/C][C]6.6062[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]11.8823072850028[/C][C]2.746246[/C][C]4.3267[/C][C]9.2e-05[/C][C]4.6e-05[/C][/ROW]
[ROW][C]M9[/C][C]8.60168591430853[/C][C]2.425351[/C][C]3.5466[/C][C]0.000975[/C][C]0.000487[/C][/ROW]
[ROW][C]M10[/C][C]14.7499723635447[/C][C]2.700259[/C][C]5.4624[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M11[/C][C]-9.35028017631675[/C][C]2.661259[/C][C]-3.5135[/C][C]0.001073[/C][C]0.000537[/C][/ROW]
[ROW][C]t[/C][C]0.0761286399636236[/C][C]0.052053[/C][C]1.4625[/C][C]0.151043[/C][C]0.075522[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58337&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58337&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)18.540996990571515.8521451.16960.2487490.124374
X-8.01364536591142.365898-3.38710.0015440.000772
Y20.2256764669590480.1127522.00150.0518230.025912
Y30.4988938041599030.11594.30459.8e-054.9e-05
M118.30645938893713.914964.6763e-051.5e-05
M228.68797858792543.1984478.969300
M313.28590802601862.4560335.40953e-061e-06
M4-1.806679243809322.657664-0.67980.5003610.250181
M5-0.1360435920399382.73368-0.04980.9605450.480272
M66.070292173263752.8390082.13820.0383650.019183
M718.54608549826762.8073876.606200
M811.88230728500282.7462464.32679.2e-054.6e-05
M98.601685914308532.4253513.54660.0009750.000487
M1014.74997236354472.7002595.46242e-061e-06
M11-9.350280176316752.661259-3.51350.0010730.000537
t0.07612863996362360.0520531.46250.1510430.075522







Multiple Linear Regression - Regression Statistics
Multiple R0.94385972161455
R-squared0.890871174086295
Adjusted R-squared0.851896593402829
F-TEST (value)22.8577487804564
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value1.77635683940025e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.50314977912597
Sum Squared Residuals515.426451749593

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.94385972161455 \tabularnewline
R-squared & 0.890871174086295 \tabularnewline
Adjusted R-squared & 0.851896593402829 \tabularnewline
F-TEST (value) & 22.8577487804564 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 1.77635683940025e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3.50314977912597 \tabularnewline
Sum Squared Residuals & 515.426451749593 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58337&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.94385972161455[/C][/ROW]
[ROW][C]R-squared[/C][C]0.890871174086295[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.851896593402829[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]22.8577487804564[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/C][/ROW]
[ROW][C]p-value[/C][C]1.77635683940025e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]3.50314977912597[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]515.426451749593[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58337&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58337&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.94385972161455
R-squared0.890871174086295
Adjusted R-squared0.851896593402829
F-TEST (value)22.8577487804564
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value1.77635683940025e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.50314977912597
Sum Squared Residuals515.426451749593







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1114.1112.2244780151061.87552198489374
2110.3112.830033343636-2.53003334363553
3103.9106.097896059187-2.19789605918694
4101.698.85472966684462.74527033315539
594.697.261368114232-2.66136811423205
695.999.8318562988702-3.93185629887019
7104.7109.656587245557-4.95658724555654
8102.899.87006045018292.92993954981713
998.199.3000825740997-1.20008257409967
10113.9109.4859778526844.41402214731561
1180.983.4532763301753-2.55327633017525
1295.794.1005724448571.59942755514298
13113.2112.9183591698360.281640830164382
14105.9110.252523182505-4.35252318250465
15108.8106.2595477339112.54045226608862
16102.398.32629246804443.97370753195563
179997.08559374359131.91440625640868
18100.7103.347953145689-2.64795314568853
19115.5111.9123330426523.58766695734823
20100.7104.061983909453-3.36198390945335
21109.9105.0456223567884.8543776432116
22114.6115.313654036561-0.713654036560848
2385.485.9821253311197-0.582125331119699
24100.5101.059036540379-0.559036540378706
25114.8115.196672613627-0.396672613626765
26116.5114.4943360221912.00566397780888
27112.9109.9288640205772.97113597942311
28102102.430236784030-0.430236784029603
29106104.2126852617821.78731473821812
30105.3106.239258482220-0.939258482219917
31118.8114.2559438496814.54405615031937
32106.1109.505895966148-3.40589596614779
33109.3108.9988098764520.301190123547688
34117.2119.092200191431-1.89220019143086
3592.589.45428967297123.04571032702876
36104.2102.2600027515401.93999724846023
37112.5119.009643099415-6.50964309941524
38122.4119.7850286390382.61497136096161
39113.3112.1692589015261.13074109847380
40100103.527815869084-3.5278158690837
41110.7108.1599729726722.54002702732759
42112.8106.9010067495295.89899325047074
43109.8115.232379315632-5.43237931563184
44117.3114.4568140274562.84318597254432
45109.1111.622968884584-2.52296888458364
46115.9118.043276063497-2.14327606349656
479695.91030866573380.0896913342661778
4899.8102.780388263225-2.98038826322451
49116.8112.0508471020164.74915289798389
50115.7113.4380788126302.26192118736969
5199.4103.844433284799-4.44443328479859
5294.397.0609252119977-2.76092521199773
539194.5803799077223-3.58037990772235
5493.291.57992532369211.62007467630791
55103.1100.8427565464792.25724345352080
5694.193.10524564676030.994754353239697
5791.893.232516308076-1.43251630807598
58102.7102.3648918558270.335108144172656

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 114.1 & 112.224478015106 & 1.87552198489374 \tabularnewline
2 & 110.3 & 112.830033343636 & -2.53003334363553 \tabularnewline
3 & 103.9 & 106.097896059187 & -2.19789605918694 \tabularnewline
4 & 101.6 & 98.8547296668446 & 2.74527033315539 \tabularnewline
5 & 94.6 & 97.261368114232 & -2.66136811423205 \tabularnewline
6 & 95.9 & 99.8318562988702 & -3.93185629887019 \tabularnewline
7 & 104.7 & 109.656587245557 & -4.95658724555654 \tabularnewline
8 & 102.8 & 99.8700604501829 & 2.92993954981713 \tabularnewline
9 & 98.1 & 99.3000825740997 & -1.20008257409967 \tabularnewline
10 & 113.9 & 109.485977852684 & 4.41402214731561 \tabularnewline
11 & 80.9 & 83.4532763301753 & -2.55327633017525 \tabularnewline
12 & 95.7 & 94.100572444857 & 1.59942755514298 \tabularnewline
13 & 113.2 & 112.918359169836 & 0.281640830164382 \tabularnewline
14 & 105.9 & 110.252523182505 & -4.35252318250465 \tabularnewline
15 & 108.8 & 106.259547733911 & 2.54045226608862 \tabularnewline
16 & 102.3 & 98.3262924680444 & 3.97370753195563 \tabularnewline
17 & 99 & 97.0855937435913 & 1.91440625640868 \tabularnewline
18 & 100.7 & 103.347953145689 & -2.64795314568853 \tabularnewline
19 & 115.5 & 111.912333042652 & 3.58766695734823 \tabularnewline
20 & 100.7 & 104.061983909453 & -3.36198390945335 \tabularnewline
21 & 109.9 & 105.045622356788 & 4.8543776432116 \tabularnewline
22 & 114.6 & 115.313654036561 & -0.713654036560848 \tabularnewline
23 & 85.4 & 85.9821253311197 & -0.582125331119699 \tabularnewline
24 & 100.5 & 101.059036540379 & -0.559036540378706 \tabularnewline
25 & 114.8 & 115.196672613627 & -0.396672613626765 \tabularnewline
26 & 116.5 & 114.494336022191 & 2.00566397780888 \tabularnewline
27 & 112.9 & 109.928864020577 & 2.97113597942311 \tabularnewline
28 & 102 & 102.430236784030 & -0.430236784029603 \tabularnewline
29 & 106 & 104.212685261782 & 1.78731473821812 \tabularnewline
30 & 105.3 & 106.239258482220 & -0.939258482219917 \tabularnewline
31 & 118.8 & 114.255943849681 & 4.54405615031937 \tabularnewline
32 & 106.1 & 109.505895966148 & -3.40589596614779 \tabularnewline
33 & 109.3 & 108.998809876452 & 0.301190123547688 \tabularnewline
34 & 117.2 & 119.092200191431 & -1.89220019143086 \tabularnewline
35 & 92.5 & 89.4542896729712 & 3.04571032702876 \tabularnewline
36 & 104.2 & 102.260002751540 & 1.93999724846023 \tabularnewline
37 & 112.5 & 119.009643099415 & -6.50964309941524 \tabularnewline
38 & 122.4 & 119.785028639038 & 2.61497136096161 \tabularnewline
39 & 113.3 & 112.169258901526 & 1.13074109847380 \tabularnewline
40 & 100 & 103.527815869084 & -3.5278158690837 \tabularnewline
41 & 110.7 & 108.159972972672 & 2.54002702732759 \tabularnewline
42 & 112.8 & 106.901006749529 & 5.89899325047074 \tabularnewline
43 & 109.8 & 115.232379315632 & -5.43237931563184 \tabularnewline
44 & 117.3 & 114.456814027456 & 2.84318597254432 \tabularnewline
45 & 109.1 & 111.622968884584 & -2.52296888458364 \tabularnewline
46 & 115.9 & 118.043276063497 & -2.14327606349656 \tabularnewline
47 & 96 & 95.9103086657338 & 0.0896913342661778 \tabularnewline
48 & 99.8 & 102.780388263225 & -2.98038826322451 \tabularnewline
49 & 116.8 & 112.050847102016 & 4.74915289798389 \tabularnewline
50 & 115.7 & 113.438078812630 & 2.26192118736969 \tabularnewline
51 & 99.4 & 103.844433284799 & -4.44443328479859 \tabularnewline
52 & 94.3 & 97.0609252119977 & -2.76092521199773 \tabularnewline
53 & 91 & 94.5803799077223 & -3.58037990772235 \tabularnewline
54 & 93.2 & 91.5799253236921 & 1.62007467630791 \tabularnewline
55 & 103.1 & 100.842756546479 & 2.25724345352080 \tabularnewline
56 & 94.1 & 93.1052456467603 & 0.994754353239697 \tabularnewline
57 & 91.8 & 93.232516308076 & -1.43251630807598 \tabularnewline
58 & 102.7 & 102.364891855827 & 0.335108144172656 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58337&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]114.1[/C][C]112.224478015106[/C][C]1.87552198489374[/C][/ROW]
[ROW][C]2[/C][C]110.3[/C][C]112.830033343636[/C][C]-2.53003334363553[/C][/ROW]
[ROW][C]3[/C][C]103.9[/C][C]106.097896059187[/C][C]-2.19789605918694[/C][/ROW]
[ROW][C]4[/C][C]101.6[/C][C]98.8547296668446[/C][C]2.74527033315539[/C][/ROW]
[ROW][C]5[/C][C]94.6[/C][C]97.261368114232[/C][C]-2.66136811423205[/C][/ROW]
[ROW][C]6[/C][C]95.9[/C][C]99.8318562988702[/C][C]-3.93185629887019[/C][/ROW]
[ROW][C]7[/C][C]104.7[/C][C]109.656587245557[/C][C]-4.95658724555654[/C][/ROW]
[ROW][C]8[/C][C]102.8[/C][C]99.8700604501829[/C][C]2.92993954981713[/C][/ROW]
[ROW][C]9[/C][C]98.1[/C][C]99.3000825740997[/C][C]-1.20008257409967[/C][/ROW]
[ROW][C]10[/C][C]113.9[/C][C]109.485977852684[/C][C]4.41402214731561[/C][/ROW]
[ROW][C]11[/C][C]80.9[/C][C]83.4532763301753[/C][C]-2.55327633017525[/C][/ROW]
[ROW][C]12[/C][C]95.7[/C][C]94.100572444857[/C][C]1.59942755514298[/C][/ROW]
[ROW][C]13[/C][C]113.2[/C][C]112.918359169836[/C][C]0.281640830164382[/C][/ROW]
[ROW][C]14[/C][C]105.9[/C][C]110.252523182505[/C][C]-4.35252318250465[/C][/ROW]
[ROW][C]15[/C][C]108.8[/C][C]106.259547733911[/C][C]2.54045226608862[/C][/ROW]
[ROW][C]16[/C][C]102.3[/C][C]98.3262924680444[/C][C]3.97370753195563[/C][/ROW]
[ROW][C]17[/C][C]99[/C][C]97.0855937435913[/C][C]1.91440625640868[/C][/ROW]
[ROW][C]18[/C][C]100.7[/C][C]103.347953145689[/C][C]-2.64795314568853[/C][/ROW]
[ROW][C]19[/C][C]115.5[/C][C]111.912333042652[/C][C]3.58766695734823[/C][/ROW]
[ROW][C]20[/C][C]100.7[/C][C]104.061983909453[/C][C]-3.36198390945335[/C][/ROW]
[ROW][C]21[/C][C]109.9[/C][C]105.045622356788[/C][C]4.8543776432116[/C][/ROW]
[ROW][C]22[/C][C]114.6[/C][C]115.313654036561[/C][C]-0.713654036560848[/C][/ROW]
[ROW][C]23[/C][C]85.4[/C][C]85.9821253311197[/C][C]-0.582125331119699[/C][/ROW]
[ROW][C]24[/C][C]100.5[/C][C]101.059036540379[/C][C]-0.559036540378706[/C][/ROW]
[ROW][C]25[/C][C]114.8[/C][C]115.196672613627[/C][C]-0.396672613626765[/C][/ROW]
[ROW][C]26[/C][C]116.5[/C][C]114.494336022191[/C][C]2.00566397780888[/C][/ROW]
[ROW][C]27[/C][C]112.9[/C][C]109.928864020577[/C][C]2.97113597942311[/C][/ROW]
[ROW][C]28[/C][C]102[/C][C]102.430236784030[/C][C]-0.430236784029603[/C][/ROW]
[ROW][C]29[/C][C]106[/C][C]104.212685261782[/C][C]1.78731473821812[/C][/ROW]
[ROW][C]30[/C][C]105.3[/C][C]106.239258482220[/C][C]-0.939258482219917[/C][/ROW]
[ROW][C]31[/C][C]118.8[/C][C]114.255943849681[/C][C]4.54405615031937[/C][/ROW]
[ROW][C]32[/C][C]106.1[/C][C]109.505895966148[/C][C]-3.40589596614779[/C][/ROW]
[ROW][C]33[/C][C]109.3[/C][C]108.998809876452[/C][C]0.301190123547688[/C][/ROW]
[ROW][C]34[/C][C]117.2[/C][C]119.092200191431[/C][C]-1.89220019143086[/C][/ROW]
[ROW][C]35[/C][C]92.5[/C][C]89.4542896729712[/C][C]3.04571032702876[/C][/ROW]
[ROW][C]36[/C][C]104.2[/C][C]102.260002751540[/C][C]1.93999724846023[/C][/ROW]
[ROW][C]37[/C][C]112.5[/C][C]119.009643099415[/C][C]-6.50964309941524[/C][/ROW]
[ROW][C]38[/C][C]122.4[/C][C]119.785028639038[/C][C]2.61497136096161[/C][/ROW]
[ROW][C]39[/C][C]113.3[/C][C]112.169258901526[/C][C]1.13074109847380[/C][/ROW]
[ROW][C]40[/C][C]100[/C][C]103.527815869084[/C][C]-3.5278158690837[/C][/ROW]
[ROW][C]41[/C][C]110.7[/C][C]108.159972972672[/C][C]2.54002702732759[/C][/ROW]
[ROW][C]42[/C][C]112.8[/C][C]106.901006749529[/C][C]5.89899325047074[/C][/ROW]
[ROW][C]43[/C][C]109.8[/C][C]115.232379315632[/C][C]-5.43237931563184[/C][/ROW]
[ROW][C]44[/C][C]117.3[/C][C]114.456814027456[/C][C]2.84318597254432[/C][/ROW]
[ROW][C]45[/C][C]109.1[/C][C]111.622968884584[/C][C]-2.52296888458364[/C][/ROW]
[ROW][C]46[/C][C]115.9[/C][C]118.043276063497[/C][C]-2.14327606349656[/C][/ROW]
[ROW][C]47[/C][C]96[/C][C]95.9103086657338[/C][C]0.0896913342661778[/C][/ROW]
[ROW][C]48[/C][C]99.8[/C][C]102.780388263225[/C][C]-2.98038826322451[/C][/ROW]
[ROW][C]49[/C][C]116.8[/C][C]112.050847102016[/C][C]4.74915289798389[/C][/ROW]
[ROW][C]50[/C][C]115.7[/C][C]113.438078812630[/C][C]2.26192118736969[/C][/ROW]
[ROW][C]51[/C][C]99.4[/C][C]103.844433284799[/C][C]-4.44443328479859[/C][/ROW]
[ROW][C]52[/C][C]94.3[/C][C]97.0609252119977[/C][C]-2.76092521199773[/C][/ROW]
[ROW][C]53[/C][C]91[/C][C]94.5803799077223[/C][C]-3.58037990772235[/C][/ROW]
[ROW][C]54[/C][C]93.2[/C][C]91.5799253236921[/C][C]1.62007467630791[/C][/ROW]
[ROW][C]55[/C][C]103.1[/C][C]100.842756546479[/C][C]2.25724345352080[/C][/ROW]
[ROW][C]56[/C][C]94.1[/C][C]93.1052456467603[/C][C]0.994754353239697[/C][/ROW]
[ROW][C]57[/C][C]91.8[/C][C]93.232516308076[/C][C]-1.43251630807598[/C][/ROW]
[ROW][C]58[/C][C]102.7[/C][C]102.364891855827[/C][C]0.335108144172656[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58337&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58337&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
1114.1112.2244780151061.87552198489374
2110.3112.830033343636-2.53003334363553
3103.9106.097896059187-2.19789605918694
4101.698.85472966684462.74527033315539
594.697.261368114232-2.66136811423205
695.999.8318562988702-3.93185629887019
7104.7109.656587245557-4.95658724555654
8102.899.87006045018292.92993954981713
998.199.3000825740997-1.20008257409967
10113.9109.4859778526844.41402214731561
1180.983.4532763301753-2.55327633017525
1295.794.1005724448571.59942755514298
13113.2112.9183591698360.281640830164382
14105.9110.252523182505-4.35252318250465
15108.8106.2595477339112.54045226608862
16102.398.32629246804443.97370753195563
179997.08559374359131.91440625640868
18100.7103.347953145689-2.64795314568853
19115.5111.9123330426523.58766695734823
20100.7104.061983909453-3.36198390945335
21109.9105.0456223567884.8543776432116
22114.6115.313654036561-0.713654036560848
2385.485.9821253311197-0.582125331119699
24100.5101.059036540379-0.559036540378706
25114.8115.196672613627-0.396672613626765
26116.5114.4943360221912.00566397780888
27112.9109.9288640205772.97113597942311
28102102.430236784030-0.430236784029603
29106104.2126852617821.78731473821812
30105.3106.239258482220-0.939258482219917
31118.8114.2559438496814.54405615031937
32106.1109.505895966148-3.40589596614779
33109.3108.9988098764520.301190123547688
34117.2119.092200191431-1.89220019143086
3592.589.45428967297123.04571032702876
36104.2102.2600027515401.93999724846023
37112.5119.009643099415-6.50964309941524
38122.4119.7850286390382.61497136096161
39113.3112.1692589015261.13074109847380
40100103.527815869084-3.5278158690837
41110.7108.1599729726722.54002702732759
42112.8106.9010067495295.89899325047074
43109.8115.232379315632-5.43237931563184
44117.3114.4568140274562.84318597254432
45109.1111.622968884584-2.52296888458364
46115.9118.043276063497-2.14327606349656
479695.91030866573380.0896913342661778
4899.8102.780388263225-2.98038826322451
49116.8112.0508471020164.74915289798389
50115.7113.4380788126302.26192118736969
5199.4103.844433284799-4.44443328479859
5294.397.0609252119977-2.76092521199773
539194.5803799077223-3.58037990772235
5493.291.57992532369211.62007467630791
55103.1100.8427565464792.25724345352080
5694.193.10524564676030.994754353239697
5791.893.232516308076-1.43251630807598
58102.7102.3648918558270.335108144172656







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.2876967473456660.5753934946913320.712303252654334
200.7391880982984490.5216238034031030.260811901701551
210.6602823217085520.6794353565828960.339717678291448
220.5447024048012020.9105951903975970.455297595198798
230.4927928364132240.9855856728264480.507207163586776
240.3737318738958020.7474637477916040.626268126104198
250.2892116514012210.5784233028024410.71078834859878
260.2369223571854930.4738447143709870.763077642814507
270.1835947301435230.3671894602870450.816405269856477
280.2527088371896760.5054176743793510.747291162810324
290.1823767571313320.3647535142626630.817623242868668
300.1688238849214620.3376477698429230.831176115078538
310.1493648642141650.2987297284283290.850635135785835
320.1804908958249780.3609817916499550.819509104175022
330.1234297242443470.2468594484886940.876570275755653
340.1215015469564180.2430030939128360.878498453043582
350.08429018288917450.1685803657783490.915709817110826
360.04594850096182910.09189700192365820.95405149903817
370.4609434631674830.9218869263349670.539056536832517
380.3448367718654770.6896735437309540.655163228134523
390.2105798915074670.4211597830149340.789420108492533

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.287696747345666 & 0.575393494691332 & 0.712303252654334 \tabularnewline
20 & 0.739188098298449 & 0.521623803403103 & 0.260811901701551 \tabularnewline
21 & 0.660282321708552 & 0.679435356582896 & 0.339717678291448 \tabularnewline
22 & 0.544702404801202 & 0.910595190397597 & 0.455297595198798 \tabularnewline
23 & 0.492792836413224 & 0.985585672826448 & 0.507207163586776 \tabularnewline
24 & 0.373731873895802 & 0.747463747791604 & 0.626268126104198 \tabularnewline
25 & 0.289211651401221 & 0.578423302802441 & 0.71078834859878 \tabularnewline
26 & 0.236922357185493 & 0.473844714370987 & 0.763077642814507 \tabularnewline
27 & 0.183594730143523 & 0.367189460287045 & 0.816405269856477 \tabularnewline
28 & 0.252708837189676 & 0.505417674379351 & 0.747291162810324 \tabularnewline
29 & 0.182376757131332 & 0.364753514262663 & 0.817623242868668 \tabularnewline
30 & 0.168823884921462 & 0.337647769842923 & 0.831176115078538 \tabularnewline
31 & 0.149364864214165 & 0.298729728428329 & 0.850635135785835 \tabularnewline
32 & 0.180490895824978 & 0.360981791649955 & 0.819509104175022 \tabularnewline
33 & 0.123429724244347 & 0.246859448488694 & 0.876570275755653 \tabularnewline
34 & 0.121501546956418 & 0.243003093912836 & 0.878498453043582 \tabularnewline
35 & 0.0842901828891745 & 0.168580365778349 & 0.915709817110826 \tabularnewline
36 & 0.0459485009618291 & 0.0918970019236582 & 0.95405149903817 \tabularnewline
37 & 0.460943463167483 & 0.921886926334967 & 0.539056536832517 \tabularnewline
38 & 0.344836771865477 & 0.689673543730954 & 0.655163228134523 \tabularnewline
39 & 0.210579891507467 & 0.421159783014934 & 0.789420108492533 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58337&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.287696747345666[/C][C]0.575393494691332[/C][C]0.712303252654334[/C][/ROW]
[ROW][C]20[/C][C]0.739188098298449[/C][C]0.521623803403103[/C][C]0.260811901701551[/C][/ROW]
[ROW][C]21[/C][C]0.660282321708552[/C][C]0.679435356582896[/C][C]0.339717678291448[/C][/ROW]
[ROW][C]22[/C][C]0.544702404801202[/C][C]0.910595190397597[/C][C]0.455297595198798[/C][/ROW]
[ROW][C]23[/C][C]0.492792836413224[/C][C]0.985585672826448[/C][C]0.507207163586776[/C][/ROW]
[ROW][C]24[/C][C]0.373731873895802[/C][C]0.747463747791604[/C][C]0.626268126104198[/C][/ROW]
[ROW][C]25[/C][C]0.289211651401221[/C][C]0.578423302802441[/C][C]0.71078834859878[/C][/ROW]
[ROW][C]26[/C][C]0.236922357185493[/C][C]0.473844714370987[/C][C]0.763077642814507[/C][/ROW]
[ROW][C]27[/C][C]0.183594730143523[/C][C]0.367189460287045[/C][C]0.816405269856477[/C][/ROW]
[ROW][C]28[/C][C]0.252708837189676[/C][C]0.505417674379351[/C][C]0.747291162810324[/C][/ROW]
[ROW][C]29[/C][C]0.182376757131332[/C][C]0.364753514262663[/C][C]0.817623242868668[/C][/ROW]
[ROW][C]30[/C][C]0.168823884921462[/C][C]0.337647769842923[/C][C]0.831176115078538[/C][/ROW]
[ROW][C]31[/C][C]0.149364864214165[/C][C]0.298729728428329[/C][C]0.850635135785835[/C][/ROW]
[ROW][C]32[/C][C]0.180490895824978[/C][C]0.360981791649955[/C][C]0.819509104175022[/C][/ROW]
[ROW][C]33[/C][C]0.123429724244347[/C][C]0.246859448488694[/C][C]0.876570275755653[/C][/ROW]
[ROW][C]34[/C][C]0.121501546956418[/C][C]0.243003093912836[/C][C]0.878498453043582[/C][/ROW]
[ROW][C]35[/C][C]0.0842901828891745[/C][C]0.168580365778349[/C][C]0.915709817110826[/C][/ROW]
[ROW][C]36[/C][C]0.0459485009618291[/C][C]0.0918970019236582[/C][C]0.95405149903817[/C][/ROW]
[ROW][C]37[/C][C]0.460943463167483[/C][C]0.921886926334967[/C][C]0.539056536832517[/C][/ROW]
[ROW][C]38[/C][C]0.344836771865477[/C][C]0.689673543730954[/C][C]0.655163228134523[/C][/ROW]
[ROW][C]39[/C][C]0.210579891507467[/C][C]0.421159783014934[/C][C]0.789420108492533[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58337&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58337&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.2876967473456660.5753934946913320.712303252654334
200.7391880982984490.5216238034031030.260811901701551
210.6602823217085520.6794353565828960.339717678291448
220.5447024048012020.9105951903975970.455297595198798
230.4927928364132240.9855856728264480.507207163586776
240.3737318738958020.7474637477916040.626268126104198
250.2892116514012210.5784233028024410.71078834859878
260.2369223571854930.4738447143709870.763077642814507
270.1835947301435230.3671894602870450.816405269856477
280.2527088371896760.5054176743793510.747291162810324
290.1823767571313320.3647535142626630.817623242868668
300.1688238849214620.3376477698429230.831176115078538
310.1493648642141650.2987297284283290.850635135785835
320.1804908958249780.3609817916499550.819509104175022
330.1234297242443470.2468594484886940.876570275755653
340.1215015469564180.2430030939128360.878498453043582
350.08429018288917450.1685803657783490.915709817110826
360.04594850096182910.09189700192365820.95405149903817
370.4609434631674830.9218869263349670.539056536832517
380.3448367718654770.6896735437309540.655163228134523
390.2105798915074670.4211597830149340.789420108492533







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58337&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 level00OK
10% type I error level10.0476190476190476OK



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