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, 26 Nov 2009 08:09:05 -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/26/t125924840984hsfqgyo71myi1.htm/, Retrieved Mon, 29 Apr 2024 07:10:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60072, Retrieved Mon, 29 Apr 2024 07:10:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact113
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
F R PD    [Multiple Regression] [] [2009-11-20 16:21:07] [b5f606d19093c76de3c66fa39d40cb60]
-    D        [Multiple Regression] [] [2009-11-26 15:09:05] [429631dabc57c2ce83a6344a979b9063] [Current]
Feedback Forum

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




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

\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
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60072&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]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60072&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60072&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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 3086.07012968317 + 1029.87773295181X[t] + 0.349104238294711Y1[t] + 0.244365087497713Y2[t] + 0.335553698868969Y3[t] -0.331113011041976Y4[t] + 3112.6595004969M1[t] + 3772.75130059336M2[t] + 6074.5867318478M3[t] + 3017.52005227921M4[t] + 3327.18125048565M5[t] + 4366.06517737135M6[t] + 3452.46890980666M7[t] + 1033.45678168423M8[t] + 5183.76502098402M9[t] + 5750.95578491961M10[t] + 3520.34574469702M11[t] + 8.64931994290336t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  3086.07012968317 +  1029.87773295181X[t] +  0.349104238294711Y1[t] +  0.244365087497713Y2[t] +  0.335553698868969Y3[t] -0.331113011041976Y4[t] +  3112.6595004969M1[t] +  3772.75130059336M2[t] +  6074.5867318478M3[t] +  3017.52005227921M4[t] +  3327.18125048565M5[t] +  4366.06517737135M6[t] +  3452.46890980666M7[t] +  1033.45678168423M8[t] +  5183.76502098402M9[t] +  5750.95578491961M10[t] +  3520.34574469702M11[t] +  8.64931994290336t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60072&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  3086.07012968317 +  1029.87773295181X[t] +  0.349104238294711Y1[t] +  0.244365087497713Y2[t] +  0.335553698868969Y3[t] -0.331113011041976Y4[t] +  3112.6595004969M1[t] +  3772.75130059336M2[t] +  6074.5867318478M3[t] +  3017.52005227921M4[t] +  3327.18125048565M5[t] +  4366.06517737135M6[t] +  3452.46890980666M7[t] +  1033.45678168423M8[t] +  5183.76502098402M9[t] +  5750.95578491961M10[t] +  3520.34574469702M11[t] +  8.64931994290336t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60072&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60072&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] = + 3086.07012968317 + 1029.87773295181X[t] + 0.349104238294711Y1[t] + 0.244365087497713Y2[t] + 0.335553698868969Y3[t] -0.331113011041976Y4[t] + 3112.6595004969M1[t] + 3772.75130059336M2[t] + 6074.5867318478M3[t] + 3017.52005227921M4[t] + 3327.18125048565M5[t] + 4366.06517737135M6[t] + 3452.46890980666M7[t] + 1033.45678168423M8[t] + 5183.76502098402M9[t] + 5750.95578491961M10[t] + 3520.34574469702M11[t] + 8.64931994290336t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3086.070129683172743.3672151.12490.2676780.133839
X1029.87773295181530.1115951.94280.0594820.029741
Y10.3491042382947110.1542312.26350.0293980.014699
Y20.2443650874977130.1579671.54690.1301670.065083
Y30.3355536988689690.1497862.24020.0310040.015502
Y4-0.3311130110419760.158431-2.08990.0433680.021684
M13112.65950049691032.3437293.01510.004560.00228
M23772.751300593361128.1041943.34430.0018640.000932
M36074.58673184781043.8123315.81961e-061e-06
M43017.52005227921915.161743.29730.0021240.001062
M53327.18125048565860.2240783.86780.0004170.000209
M64366.06517737135832.9423495.24176e-063e-06
M73452.468909806661027.1517333.36120.0017790.00089
M81033.45678168423861.2547951.19990.2375890.118795
M95183.765020984021064.6990084.86882e-051e-05
M105750.955784919611254.2653284.58514.8e-052.4e-05
M113520.345744697021065.2627113.30470.0020810.001041
t8.6493199429033611.2983990.76550.4486820.224341

\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) & 3086.07012968317 & 2743.367215 & 1.1249 & 0.267678 & 0.133839 \tabularnewline
X & 1029.87773295181 & 530.111595 & 1.9428 & 0.059482 & 0.029741 \tabularnewline
Y1 & 0.349104238294711 & 0.154231 & 2.2635 & 0.029398 & 0.014699 \tabularnewline
Y2 & 0.244365087497713 & 0.157967 & 1.5469 & 0.130167 & 0.065083 \tabularnewline
Y3 & 0.335553698868969 & 0.149786 & 2.2402 & 0.031004 & 0.015502 \tabularnewline
Y4 & -0.331113011041976 & 0.158431 & -2.0899 & 0.043368 & 0.021684 \tabularnewline
M1 & 3112.6595004969 & 1032.343729 & 3.0151 & 0.00456 & 0.00228 \tabularnewline
M2 & 3772.75130059336 & 1128.104194 & 3.3443 & 0.001864 & 0.000932 \tabularnewline
M3 & 6074.5867318478 & 1043.812331 & 5.8196 & 1e-06 & 1e-06 \tabularnewline
M4 & 3017.52005227921 & 915.16174 & 3.2973 & 0.002124 & 0.001062 \tabularnewline
M5 & 3327.18125048565 & 860.224078 & 3.8678 & 0.000417 & 0.000209 \tabularnewline
M6 & 4366.06517737135 & 832.942349 & 5.2417 & 6e-06 & 3e-06 \tabularnewline
M7 & 3452.46890980666 & 1027.151733 & 3.3612 & 0.001779 & 0.00089 \tabularnewline
M8 & 1033.45678168423 & 861.254795 & 1.1999 & 0.237589 & 0.118795 \tabularnewline
M9 & 5183.76502098402 & 1064.699008 & 4.8688 & 2e-05 & 1e-05 \tabularnewline
M10 & 5750.95578491961 & 1254.265328 & 4.5851 & 4.8e-05 & 2.4e-05 \tabularnewline
M11 & 3520.34574469702 & 1065.262711 & 3.3047 & 0.002081 & 0.001041 \tabularnewline
t & 8.64931994290336 & 11.298399 & 0.7655 & 0.448682 & 0.224341 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60072&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]3086.07012968317[/C][C]2743.367215[/C][C]1.1249[/C][C]0.267678[/C][C]0.133839[/C][/ROW]
[ROW][C]X[/C][C]1029.87773295181[/C][C]530.111595[/C][C]1.9428[/C][C]0.059482[/C][C]0.029741[/C][/ROW]
[ROW][C]Y1[/C][C]0.349104238294711[/C][C]0.154231[/C][C]2.2635[/C][C]0.029398[/C][C]0.014699[/C][/ROW]
[ROW][C]Y2[/C][C]0.244365087497713[/C][C]0.157967[/C][C]1.5469[/C][C]0.130167[/C][C]0.065083[/C][/ROW]
[ROW][C]Y3[/C][C]0.335553698868969[/C][C]0.149786[/C][C]2.2402[/C][C]0.031004[/C][C]0.015502[/C][/ROW]
[ROW][C]Y4[/C][C]-0.331113011041976[/C][C]0.158431[/C][C]-2.0899[/C][C]0.043368[/C][C]0.021684[/C][/ROW]
[ROW][C]M1[/C][C]3112.6595004969[/C][C]1032.343729[/C][C]3.0151[/C][C]0.00456[/C][C]0.00228[/C][/ROW]
[ROW][C]M2[/C][C]3772.75130059336[/C][C]1128.104194[/C][C]3.3443[/C][C]0.001864[/C][C]0.000932[/C][/ROW]
[ROW][C]M3[/C][C]6074.5867318478[/C][C]1043.812331[/C][C]5.8196[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M4[/C][C]3017.52005227921[/C][C]915.16174[/C][C]3.2973[/C][C]0.002124[/C][C]0.001062[/C][/ROW]
[ROW][C]M5[/C][C]3327.18125048565[/C][C]860.224078[/C][C]3.8678[/C][C]0.000417[/C][C]0.000209[/C][/ROW]
[ROW][C]M6[/C][C]4366.06517737135[/C][C]832.942349[/C][C]5.2417[/C][C]6e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M7[/C][C]3452.46890980666[/C][C]1027.151733[/C][C]3.3612[/C][C]0.001779[/C][C]0.00089[/C][/ROW]
[ROW][C]M8[/C][C]1033.45678168423[/C][C]861.254795[/C][C]1.1999[/C][C]0.237589[/C][C]0.118795[/C][/ROW]
[ROW][C]M9[/C][C]5183.76502098402[/C][C]1064.699008[/C][C]4.8688[/C][C]2e-05[/C][C]1e-05[/C][/ROW]
[ROW][C]M10[/C][C]5750.95578491961[/C][C]1254.265328[/C][C]4.5851[/C][C]4.8e-05[/C][C]2.4e-05[/C][/ROW]
[ROW][C]M11[/C][C]3520.34574469702[/C][C]1065.262711[/C][C]3.3047[/C][C]0.002081[/C][C]0.001041[/C][/ROW]
[ROW][C]t[/C][C]8.64931994290336[/C][C]11.298399[/C][C]0.7655[/C][C]0.448682[/C][C]0.224341[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60072&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60072&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)3086.070129683172743.3672151.12490.2676780.133839
X1029.87773295181530.1115951.94280.0594820.029741
Y10.3491042382947110.1542312.26350.0293980.014699
Y20.2443650874977130.1579671.54690.1301670.065083
Y30.3355536988689690.1497862.24020.0310040.015502
Y4-0.3311130110419760.158431-2.08990.0433680.021684
M13112.65950049691032.3437293.01510.004560.00228
M23772.751300593361128.1041943.34430.0018640.000932
M36074.58673184781043.8123315.81961e-061e-06
M43017.52005227921915.161743.29730.0021240.001062
M53327.18125048565860.2240783.86780.0004170.000209
M64366.06517737135832.9423495.24176e-063e-06
M73452.468909806661027.1517333.36120.0017790.00089
M81033.45678168423861.2547951.19990.2375890.118795
M95183.765020984021064.6990084.86882e-051e-05
M105750.955784919611254.2653284.58514.8e-052.4e-05
M113520.345744697021065.2627113.30470.0020810.001041
t8.6493199429033611.2983990.76550.4486820.224341







Multiple Linear Regression - Regression Statistics
Multiple R0.900217706946649
R-squared0.810391919900283
Adjusted R-squared0.725567252487252
F-TEST (value)9.55372941168509
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value5.256585167146e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1119.19048751641
Sum Squared Residuals47598319.1991945

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.900217706946649 \tabularnewline
R-squared & 0.810391919900283 \tabularnewline
Adjusted R-squared & 0.725567252487252 \tabularnewline
F-TEST (value) & 9.55372941168509 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 5.256585167146e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1119.19048751641 \tabularnewline
Sum Squared Residuals & 47598319.1991945 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60072&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.900217706946649[/C][/ROW]
[ROW][C]R-squared[/C][C]0.810391919900283[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.725567252487252[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]9.55372941168509[/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]5.256585167146e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1119.19048751641[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]47598319.1991945[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60072&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60072&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.900217706946649
R-squared0.810391919900283
Adjusted R-squared0.725567252487252
F-TEST (value)9.55372941168509
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value5.256585167146e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1119.19048751641
Sum Squared Residuals47598319.1991945







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
115991.216391.4156463212-400.215646321166
215583.616468.5158556123-884.9158556123
319123.518371.6987262737751.801273726272
417838.716457.23226799611381.46773200386
517209.417291.4197458337-82.0197458337296
618586.519128.0896330134-541.58963301338
716258.116946.8888422906-688.788842290593
815141.614274.4369415472867.163058452755
919202.118145.10036556541056.99963443461
1017746.518628.3656288960-881.86562889595
1119090.118316.6887802137773.41121978631
1218040.316650.55445975651389.74554024352
1317515.517900.7862369868-385.286236986817
1417751.819062.6010325871-1310.80103258706
1521072.420530.188602666542.211397333997
161717018870.2541047229-1700.25410472288
1719439.518890.7184001334548.78159986659
1819795.420812.9310062759-1017.53100627586
1917574.918177.8582042070-602.958204206977
2016165.417132.9535034078-967.553503407808
2119464.619625.1985448531-160.598544853142
2219932.120145.4306319171-213.330631917135
2319961.219155.1589421756806.041057824427
2417343.417341.62468153321.77531846682331
2518924.218620.6227592028303.577240797171
2618574.119056.4982130619-482.398213061923
2721350.620743.0060392282607.593960771834
2818594.619975.5553075725-1380.95530757255
2919832.119369.3134125899462.786587410122
3020844.421222.9804832400-378.580483239975
3119640.219129.7122825814510.487717418572
3217735.417874.1240895034-138.724089503373
3319813.621003.7721154782-1190.17211547817
342216021100.39454345931059.60545654071
3520664.319964.9751350432699.324864956807
3617877.417832.553502798544.8464972014501
3720906.519714.67099964321191.82900035679
3821164.119481.05146904651683.0485309535
3921374.422181.7628858054-807.362885805437
4022952.321208.91515374941743.38484625058
4121343.521212.9314384861130.568561513853
4223899.322069.68168953661829.61831046341
4322392.922123.6779166053269.222083394673
4418274.118749.6707636218-475.570763621771
4522786.722492.9289741033293.771025896705
4622321.522285.909195727635.5908042723698
4717842.220120.9771425675-2278.77714256754
4816373.517809.8673559118-1436.36735591179
4915933.816643.7043578460-709.904357845976
5016446.115451.0334296922995.066570307783
511772918823.2437460267-1094.24374602666
521664316686.643165959-43.6431659590128
5316196.717256.8170029568-1060.11700295684
5418252.118144.0171879342108.082812065807
5517570.417058.3627543157512.037245684324
5615836.815122.1147019198714.685298080195

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 15991.2 & 16391.4156463212 & -400.215646321166 \tabularnewline
2 & 15583.6 & 16468.5158556123 & -884.9158556123 \tabularnewline
3 & 19123.5 & 18371.6987262737 & 751.801273726272 \tabularnewline
4 & 17838.7 & 16457.2322679961 & 1381.46773200386 \tabularnewline
5 & 17209.4 & 17291.4197458337 & -82.0197458337296 \tabularnewline
6 & 18586.5 & 19128.0896330134 & -541.58963301338 \tabularnewline
7 & 16258.1 & 16946.8888422906 & -688.788842290593 \tabularnewline
8 & 15141.6 & 14274.4369415472 & 867.163058452755 \tabularnewline
9 & 19202.1 & 18145.1003655654 & 1056.99963443461 \tabularnewline
10 & 17746.5 & 18628.3656288960 & -881.86562889595 \tabularnewline
11 & 19090.1 & 18316.6887802137 & 773.41121978631 \tabularnewline
12 & 18040.3 & 16650.5544597565 & 1389.74554024352 \tabularnewline
13 & 17515.5 & 17900.7862369868 & -385.286236986817 \tabularnewline
14 & 17751.8 & 19062.6010325871 & -1310.80103258706 \tabularnewline
15 & 21072.4 & 20530.188602666 & 542.211397333997 \tabularnewline
16 & 17170 & 18870.2541047229 & -1700.25410472288 \tabularnewline
17 & 19439.5 & 18890.7184001334 & 548.78159986659 \tabularnewline
18 & 19795.4 & 20812.9310062759 & -1017.53100627586 \tabularnewline
19 & 17574.9 & 18177.8582042070 & -602.958204206977 \tabularnewline
20 & 16165.4 & 17132.9535034078 & -967.553503407808 \tabularnewline
21 & 19464.6 & 19625.1985448531 & -160.598544853142 \tabularnewline
22 & 19932.1 & 20145.4306319171 & -213.330631917135 \tabularnewline
23 & 19961.2 & 19155.1589421756 & 806.041057824427 \tabularnewline
24 & 17343.4 & 17341.6246815332 & 1.77531846682331 \tabularnewline
25 & 18924.2 & 18620.6227592028 & 303.577240797171 \tabularnewline
26 & 18574.1 & 19056.4982130619 & -482.398213061923 \tabularnewline
27 & 21350.6 & 20743.0060392282 & 607.593960771834 \tabularnewline
28 & 18594.6 & 19975.5553075725 & -1380.95530757255 \tabularnewline
29 & 19832.1 & 19369.3134125899 & 462.786587410122 \tabularnewline
30 & 20844.4 & 21222.9804832400 & -378.580483239975 \tabularnewline
31 & 19640.2 & 19129.7122825814 & 510.487717418572 \tabularnewline
32 & 17735.4 & 17874.1240895034 & -138.724089503373 \tabularnewline
33 & 19813.6 & 21003.7721154782 & -1190.17211547817 \tabularnewline
34 & 22160 & 21100.3945434593 & 1059.60545654071 \tabularnewline
35 & 20664.3 & 19964.9751350432 & 699.324864956807 \tabularnewline
36 & 17877.4 & 17832.5535027985 & 44.8464972014501 \tabularnewline
37 & 20906.5 & 19714.6709996432 & 1191.82900035679 \tabularnewline
38 & 21164.1 & 19481.0514690465 & 1683.0485309535 \tabularnewline
39 & 21374.4 & 22181.7628858054 & -807.362885805437 \tabularnewline
40 & 22952.3 & 21208.9151537494 & 1743.38484625058 \tabularnewline
41 & 21343.5 & 21212.9314384861 & 130.568561513853 \tabularnewline
42 & 23899.3 & 22069.6816895366 & 1829.61831046341 \tabularnewline
43 & 22392.9 & 22123.6779166053 & 269.222083394673 \tabularnewline
44 & 18274.1 & 18749.6707636218 & -475.570763621771 \tabularnewline
45 & 22786.7 & 22492.9289741033 & 293.771025896705 \tabularnewline
46 & 22321.5 & 22285.9091957276 & 35.5908042723698 \tabularnewline
47 & 17842.2 & 20120.9771425675 & -2278.77714256754 \tabularnewline
48 & 16373.5 & 17809.8673559118 & -1436.36735591179 \tabularnewline
49 & 15933.8 & 16643.7043578460 & -709.904357845976 \tabularnewline
50 & 16446.1 & 15451.0334296922 & 995.066570307783 \tabularnewline
51 & 17729 & 18823.2437460267 & -1094.24374602666 \tabularnewline
52 & 16643 & 16686.643165959 & -43.6431659590128 \tabularnewline
53 & 16196.7 & 17256.8170029568 & -1060.11700295684 \tabularnewline
54 & 18252.1 & 18144.0171879342 & 108.082812065807 \tabularnewline
55 & 17570.4 & 17058.3627543157 & 512.037245684324 \tabularnewline
56 & 15836.8 & 15122.1147019198 & 714.685298080195 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60072&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]15991.2[/C][C]16391.4156463212[/C][C]-400.215646321166[/C][/ROW]
[ROW][C]2[/C][C]15583.6[/C][C]16468.5158556123[/C][C]-884.9158556123[/C][/ROW]
[ROW][C]3[/C][C]19123.5[/C][C]18371.6987262737[/C][C]751.801273726272[/C][/ROW]
[ROW][C]4[/C][C]17838.7[/C][C]16457.2322679961[/C][C]1381.46773200386[/C][/ROW]
[ROW][C]5[/C][C]17209.4[/C][C]17291.4197458337[/C][C]-82.0197458337296[/C][/ROW]
[ROW][C]6[/C][C]18586.5[/C][C]19128.0896330134[/C][C]-541.58963301338[/C][/ROW]
[ROW][C]7[/C][C]16258.1[/C][C]16946.8888422906[/C][C]-688.788842290593[/C][/ROW]
[ROW][C]8[/C][C]15141.6[/C][C]14274.4369415472[/C][C]867.163058452755[/C][/ROW]
[ROW][C]9[/C][C]19202.1[/C][C]18145.1003655654[/C][C]1056.99963443461[/C][/ROW]
[ROW][C]10[/C][C]17746.5[/C][C]18628.3656288960[/C][C]-881.86562889595[/C][/ROW]
[ROW][C]11[/C][C]19090.1[/C][C]18316.6887802137[/C][C]773.41121978631[/C][/ROW]
[ROW][C]12[/C][C]18040.3[/C][C]16650.5544597565[/C][C]1389.74554024352[/C][/ROW]
[ROW][C]13[/C][C]17515.5[/C][C]17900.7862369868[/C][C]-385.286236986817[/C][/ROW]
[ROW][C]14[/C][C]17751.8[/C][C]19062.6010325871[/C][C]-1310.80103258706[/C][/ROW]
[ROW][C]15[/C][C]21072.4[/C][C]20530.188602666[/C][C]542.211397333997[/C][/ROW]
[ROW][C]16[/C][C]17170[/C][C]18870.2541047229[/C][C]-1700.25410472288[/C][/ROW]
[ROW][C]17[/C][C]19439.5[/C][C]18890.7184001334[/C][C]548.78159986659[/C][/ROW]
[ROW][C]18[/C][C]19795.4[/C][C]20812.9310062759[/C][C]-1017.53100627586[/C][/ROW]
[ROW][C]19[/C][C]17574.9[/C][C]18177.8582042070[/C][C]-602.958204206977[/C][/ROW]
[ROW][C]20[/C][C]16165.4[/C][C]17132.9535034078[/C][C]-967.553503407808[/C][/ROW]
[ROW][C]21[/C][C]19464.6[/C][C]19625.1985448531[/C][C]-160.598544853142[/C][/ROW]
[ROW][C]22[/C][C]19932.1[/C][C]20145.4306319171[/C][C]-213.330631917135[/C][/ROW]
[ROW][C]23[/C][C]19961.2[/C][C]19155.1589421756[/C][C]806.041057824427[/C][/ROW]
[ROW][C]24[/C][C]17343.4[/C][C]17341.6246815332[/C][C]1.77531846682331[/C][/ROW]
[ROW][C]25[/C][C]18924.2[/C][C]18620.6227592028[/C][C]303.577240797171[/C][/ROW]
[ROW][C]26[/C][C]18574.1[/C][C]19056.4982130619[/C][C]-482.398213061923[/C][/ROW]
[ROW][C]27[/C][C]21350.6[/C][C]20743.0060392282[/C][C]607.593960771834[/C][/ROW]
[ROW][C]28[/C][C]18594.6[/C][C]19975.5553075725[/C][C]-1380.95530757255[/C][/ROW]
[ROW][C]29[/C][C]19832.1[/C][C]19369.3134125899[/C][C]462.786587410122[/C][/ROW]
[ROW][C]30[/C][C]20844.4[/C][C]21222.9804832400[/C][C]-378.580483239975[/C][/ROW]
[ROW][C]31[/C][C]19640.2[/C][C]19129.7122825814[/C][C]510.487717418572[/C][/ROW]
[ROW][C]32[/C][C]17735.4[/C][C]17874.1240895034[/C][C]-138.724089503373[/C][/ROW]
[ROW][C]33[/C][C]19813.6[/C][C]21003.7721154782[/C][C]-1190.17211547817[/C][/ROW]
[ROW][C]34[/C][C]22160[/C][C]21100.3945434593[/C][C]1059.60545654071[/C][/ROW]
[ROW][C]35[/C][C]20664.3[/C][C]19964.9751350432[/C][C]699.324864956807[/C][/ROW]
[ROW][C]36[/C][C]17877.4[/C][C]17832.5535027985[/C][C]44.8464972014501[/C][/ROW]
[ROW][C]37[/C][C]20906.5[/C][C]19714.6709996432[/C][C]1191.82900035679[/C][/ROW]
[ROW][C]38[/C][C]21164.1[/C][C]19481.0514690465[/C][C]1683.0485309535[/C][/ROW]
[ROW][C]39[/C][C]21374.4[/C][C]22181.7628858054[/C][C]-807.362885805437[/C][/ROW]
[ROW][C]40[/C][C]22952.3[/C][C]21208.9151537494[/C][C]1743.38484625058[/C][/ROW]
[ROW][C]41[/C][C]21343.5[/C][C]21212.9314384861[/C][C]130.568561513853[/C][/ROW]
[ROW][C]42[/C][C]23899.3[/C][C]22069.6816895366[/C][C]1829.61831046341[/C][/ROW]
[ROW][C]43[/C][C]22392.9[/C][C]22123.6779166053[/C][C]269.222083394673[/C][/ROW]
[ROW][C]44[/C][C]18274.1[/C][C]18749.6707636218[/C][C]-475.570763621771[/C][/ROW]
[ROW][C]45[/C][C]22786.7[/C][C]22492.9289741033[/C][C]293.771025896705[/C][/ROW]
[ROW][C]46[/C][C]22321.5[/C][C]22285.9091957276[/C][C]35.5908042723698[/C][/ROW]
[ROW][C]47[/C][C]17842.2[/C][C]20120.9771425675[/C][C]-2278.77714256754[/C][/ROW]
[ROW][C]48[/C][C]16373.5[/C][C]17809.8673559118[/C][C]-1436.36735591179[/C][/ROW]
[ROW][C]49[/C][C]15933.8[/C][C]16643.7043578460[/C][C]-709.904357845976[/C][/ROW]
[ROW][C]50[/C][C]16446.1[/C][C]15451.0334296922[/C][C]995.066570307783[/C][/ROW]
[ROW][C]51[/C][C]17729[/C][C]18823.2437460267[/C][C]-1094.24374602666[/C][/ROW]
[ROW][C]52[/C][C]16643[/C][C]16686.643165959[/C][C]-43.6431659590128[/C][/ROW]
[ROW][C]53[/C][C]16196.7[/C][C]17256.8170029568[/C][C]-1060.11700295684[/C][/ROW]
[ROW][C]54[/C][C]18252.1[/C][C]18144.0171879342[/C][C]108.082812065807[/C][/ROW]
[ROW][C]55[/C][C]17570.4[/C][C]17058.3627543157[/C][C]512.037245684324[/C][/ROW]
[ROW][C]56[/C][C]15836.8[/C][C]15122.1147019198[/C][C]714.685298080195[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60072&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60072&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
115991.216391.4156463212-400.215646321166
215583.616468.5158556123-884.9158556123
319123.518371.6987262737751.801273726272
417838.716457.23226799611381.46773200386
517209.417291.4197458337-82.0197458337296
618586.519128.0896330134-541.58963301338
716258.116946.8888422906-688.788842290593
815141.614274.4369415472867.163058452755
919202.118145.10036556541056.99963443461
1017746.518628.3656288960-881.86562889595
1119090.118316.6887802137773.41121978631
1218040.316650.55445975651389.74554024352
1317515.517900.7862369868-385.286236986817
1417751.819062.6010325871-1310.80103258706
1521072.420530.188602666542.211397333997
161717018870.2541047229-1700.25410472288
1719439.518890.7184001334548.78159986659
1819795.420812.9310062759-1017.53100627586
1917574.918177.8582042070-602.958204206977
2016165.417132.9535034078-967.553503407808
2119464.619625.1985448531-160.598544853142
2219932.120145.4306319171-213.330631917135
2319961.219155.1589421756806.041057824427
2417343.417341.62468153321.77531846682331
2518924.218620.6227592028303.577240797171
2618574.119056.4982130619-482.398213061923
2721350.620743.0060392282607.593960771834
2818594.619975.5553075725-1380.95530757255
2919832.119369.3134125899462.786587410122
3020844.421222.9804832400-378.580483239975
3119640.219129.7122825814510.487717418572
3217735.417874.1240895034-138.724089503373
3319813.621003.7721154782-1190.17211547817
342216021100.39454345931059.60545654071
3520664.319964.9751350432699.324864956807
3617877.417832.553502798544.8464972014501
3720906.519714.67099964321191.82900035679
3821164.119481.05146904651683.0485309535
3921374.422181.7628858054-807.362885805437
4022952.321208.91515374941743.38484625058
4121343.521212.9314384861130.568561513853
4223899.322069.68168953661829.61831046341
4322392.922123.6779166053269.222083394673
4418274.118749.6707636218-475.570763621771
4522786.722492.9289741033293.771025896705
4622321.522285.909195727635.5908042723698
4717842.220120.9771425675-2278.77714256754
4816373.517809.8673559118-1436.36735591179
4915933.816643.7043578460-709.904357845976
5016446.115451.0334296922995.066570307783
511772918823.2437460267-1094.24374602666
521664316686.643165959-43.6431659590128
5316196.717256.8170029568-1060.11700295684
5418252.118144.0171879342108.082812065807
5517570.417058.3627543157512.037245684324
5615836.815122.1147019198714.685298080195







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.4206649518624920.8413299037249830.579335048137508
220.2628729724207080.5257459448414150.737127027579292
230.1514714661313260.3029429322626520.848528533868674
240.1156009142937220.2312018285874450.884399085706278
250.05982306854686920.1196461370937380.940176931453131
260.05893039831502850.1178607966300570.941069601684972
270.04683914833030590.09367829666061190.953160851669694
280.06594033316398680.1318806663279740.934059666836013
290.03762956364884610.07525912729769220.962370436351154
300.02868472192646540.05736944385293070.971315278073535
310.04323941020910160.08647882041820330.956760589790898
320.0470012462023080.0940024924046160.952998753797692
330.08502062727344120.1700412545468820.914979372726559
340.1669144362033080.3338288724066150.833085563796692
350.1169503491478590.2339006982957170.883049650852141

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.420664951862492 & 0.841329903724983 & 0.579335048137508 \tabularnewline
22 & 0.262872972420708 & 0.525745944841415 & 0.737127027579292 \tabularnewline
23 & 0.151471466131326 & 0.302942932262652 & 0.848528533868674 \tabularnewline
24 & 0.115600914293722 & 0.231201828587445 & 0.884399085706278 \tabularnewline
25 & 0.0598230685468692 & 0.119646137093738 & 0.940176931453131 \tabularnewline
26 & 0.0589303983150285 & 0.117860796630057 & 0.941069601684972 \tabularnewline
27 & 0.0468391483303059 & 0.0936782966606119 & 0.953160851669694 \tabularnewline
28 & 0.0659403331639868 & 0.131880666327974 & 0.934059666836013 \tabularnewline
29 & 0.0376295636488461 & 0.0752591272976922 & 0.962370436351154 \tabularnewline
30 & 0.0286847219264654 & 0.0573694438529307 & 0.971315278073535 \tabularnewline
31 & 0.0432394102091016 & 0.0864788204182033 & 0.956760589790898 \tabularnewline
32 & 0.047001246202308 & 0.094002492404616 & 0.952998753797692 \tabularnewline
33 & 0.0850206272734412 & 0.170041254546882 & 0.914979372726559 \tabularnewline
34 & 0.166914436203308 & 0.333828872406615 & 0.833085563796692 \tabularnewline
35 & 0.116950349147859 & 0.233900698295717 & 0.883049650852141 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60072&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.420664951862492[/C][C]0.841329903724983[/C][C]0.579335048137508[/C][/ROW]
[ROW][C]22[/C][C]0.262872972420708[/C][C]0.525745944841415[/C][C]0.737127027579292[/C][/ROW]
[ROW][C]23[/C][C]0.151471466131326[/C][C]0.302942932262652[/C][C]0.848528533868674[/C][/ROW]
[ROW][C]24[/C][C]0.115600914293722[/C][C]0.231201828587445[/C][C]0.884399085706278[/C][/ROW]
[ROW][C]25[/C][C]0.0598230685468692[/C][C]0.119646137093738[/C][C]0.940176931453131[/C][/ROW]
[ROW][C]26[/C][C]0.0589303983150285[/C][C]0.117860796630057[/C][C]0.941069601684972[/C][/ROW]
[ROW][C]27[/C][C]0.0468391483303059[/C][C]0.0936782966606119[/C][C]0.953160851669694[/C][/ROW]
[ROW][C]28[/C][C]0.0659403331639868[/C][C]0.131880666327974[/C][C]0.934059666836013[/C][/ROW]
[ROW][C]29[/C][C]0.0376295636488461[/C][C]0.0752591272976922[/C][C]0.962370436351154[/C][/ROW]
[ROW][C]30[/C][C]0.0286847219264654[/C][C]0.0573694438529307[/C][C]0.971315278073535[/C][/ROW]
[ROW][C]31[/C][C]0.0432394102091016[/C][C]0.0864788204182033[/C][C]0.956760589790898[/C][/ROW]
[ROW][C]32[/C][C]0.047001246202308[/C][C]0.094002492404616[/C][C]0.952998753797692[/C][/ROW]
[ROW][C]33[/C][C]0.0850206272734412[/C][C]0.170041254546882[/C][C]0.914979372726559[/C][/ROW]
[ROW][C]34[/C][C]0.166914436203308[/C][C]0.333828872406615[/C][C]0.833085563796692[/C][/ROW]
[ROW][C]35[/C][C]0.116950349147859[/C][C]0.233900698295717[/C][C]0.883049650852141[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60072&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60072&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.4206649518624920.8413299037249830.579335048137508
220.2628729724207080.5257459448414150.737127027579292
230.1514714661313260.3029429322626520.848528533868674
240.1156009142937220.2312018285874450.884399085706278
250.05982306854686920.1196461370937380.940176931453131
260.05893039831502850.1178607966300570.941069601684972
270.04683914833030590.09367829666061190.953160851669694
280.06594033316398680.1318806663279740.934059666836013
290.03762956364884610.07525912729769220.962370436351154
300.02868472192646540.05736944385293070.971315278073535
310.04323941020910160.08647882041820330.956760589790898
320.0470012462023080.0940024924046160.952998753797692
330.08502062727344120.1700412545468820.914979372726559
340.1669144362033080.3338288724066150.833085563796692
350.1169503491478590.2339006982957170.883049650852141







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 level50.333333333333333NOK

\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 & 5 & 0.333333333333333 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60072&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]5[/C][C]0.333333333333333[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60072&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60072&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 level50.333333333333333NOK



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