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 12:49:56 -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/t1258746707umoipc9f3yhphwh.htm/, Retrieved Sat, 20 Apr 2024 04:22:58 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58448, Retrieved Sat, 20 Apr 2024 04:22:58 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact128
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
- R  D    [Multiple Regression] [] [2009-11-20 18:20:43] [eba9b8a72d680086d9ebbb043233c887]
-    D        [Multiple Regression] [model 4] [2009-11-20 19:49:56] [18c0746232b29e9668aa6bedcb8dd698] [Current]
Feedback Forum

Post a new message
Dataseries X:
12,8	23	20,3	13,2	15,7	12,6
8	20	12,8	20,3	13,2	15,7
0,9	20	8	12,8	20,3	13,2
3,6	15	0,9	8	12,8	20,3
14,1	17	3,6	0,9	8	12,8
21,7	16	14,1	3,6	0,9	8
24,5	15	21,7	14,1	3,6	0,9
18,9	10	24,5	21,7	14,1	3,6
13,9	13	18,9	24,5	21,7	14,1
11	10	13,9	18,9	24,5	21,7
5,8	19	11	13,9	18,9	24,5
15,5	21	5,8	11	13,9	18,9
22,4	17	15,5	5,8	11	13,9
31,7	16	22,4	15,5	5,8	11
30,3	17	31,7	22,4	15,5	5,8
31,4	14	30,3	31,7	22,4	15,5
20,2	18	31,4	30,3	31,7	22,4
19,7	17	20,2	31,4	30,3	31,7
10,8	14	19,7	20,2	31,4	30,3
13,2	15	10,8	19,7	20,2	31,4
15,1	16	13,2	10,8	19,7	20,2
15,6	11	15,1	13,2	10,8	19,7
15,5	15	15,6	15,1	13,2	10,8
12,7	13	15,5	15,6	15,1	13,2
10,9	17	12,7	15,5	15,6	15,1
10	16	10,9	12,7	15,5	15,6
9,1	9	10	10,9	12,7	15,5
10,3	17	9,1	10	10,9	12,7
16,9	15	10,3	9,1	10	10,9
22	12	16,9	10,3	9,1	10
27,6	12	22	16,9	10,3	9,1
28,9	12	27,6	22	16,9	10,3
31	12	28,9	27,6	22	16,9
32,9	4	31	28,9	27,6	22
38,1	7	32,9	31	28,9	27,6
28,8	4	38,1	32,9	31	28,9
29	3	28,8	38,1	32,9	31
21,8	3	29	28,8	38,1	32,9
28,8	0	21,8	29	28,8	38,1
25,6	5	28,8	21,8	29	28,8
28,2	3	25,6	28,8	21,8	29
20,2	4	28,2	25,6	28,8	21,8
17,9	3	20,2	28,2	25,6	28,8
16,3	10	17,9	20,2	28,2	25,6
13,2	4	16,3	17,9	20,2	28,2
8,1	1	13,2	16,3	17,9	20,2
4,5	1	8,1	13,2	16,3	17,9
-0,1	8	4,5	8,1	13,2	16,3
0	5	-0,1	4,5	8,1	13,2
2,3	4	0	-0,1	4,5	8,1
2,8	0	2,3	0	-0,1	4,5
2,9	2	2,8	2,3	0	-0,1
0,1	7	2,9	2,8	2,3	0
3,5	6	0,1	2,9	2,8	2,3
8,6	9	3,5	0,1	2,9	2,8
13,8	10	8,6	3,5	0,1	2,9




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58448&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] = -3.14673253583627 + 0.159273111161314X[t] + 1.19239391388524Y1[t] + 0.0547489071340255Y2[t] -0.846957446955572Y3[t] + 0.51657962018494Y4[t] + 1.18489455307365M1[t] + 0.787703242296826M2[t] + 1.77623608216405M3[t] + 1.99845232381733M4[t] + 2.44382728416817M5[t] + 2.51934153446727M6[t] + 1.65025027547976M7[t] + 1.96425139545177M8[t] + 1.97878859140112M9[t] + 1.43407402510184M10[t] + 1.18187657202455M11[t] + 0.0360920857270811t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -3.14673253583627 +  0.159273111161314X[t] +  1.19239391388524Y1[t] +  0.0547489071340255Y2[t] -0.846957446955572Y3[t] +  0.51657962018494Y4[t] +  1.18489455307365M1[t] +  0.787703242296826M2[t] +  1.77623608216405M3[t] +  1.99845232381733M4[t] +  2.44382728416817M5[t] +  2.51934153446727M6[t] +  1.65025027547976M7[t] +  1.96425139545177M8[t] +  1.97878859140112M9[t] +  1.43407402510184M10[t] +  1.18187657202455M11[t] +  0.0360920857270811t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58448&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -3.14673253583627 +  0.159273111161314X[t] +  1.19239391388524Y1[t] +  0.0547489071340255Y2[t] -0.846957446955572Y3[t] +  0.51657962018494Y4[t] +  1.18489455307365M1[t] +  0.787703242296826M2[t] +  1.77623608216405M3[t] +  1.99845232381733M4[t] +  2.44382728416817M5[t] +  2.51934153446727M6[t] +  1.65025027547976M7[t] +  1.96425139545177M8[t] +  1.97878859140112M9[t] +  1.43407402510184M10[t] +  1.18187657202455M11[t] +  0.0360920857270811t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58448&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58448&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] = -3.14673253583627 + 0.159273111161314X[t] + 1.19239391388524Y1[t] + 0.0547489071340255Y2[t] -0.846957446955572Y3[t] + 0.51657962018494Y4[t] + 1.18489455307365M1[t] + 0.787703242296826M2[t] + 1.77623608216405M3[t] + 1.99845232381733M4[t] + 2.44382728416817M5[t] + 2.51934153446727M6[t] + 1.65025027547976M7[t] + 1.96425139545177M8[t] + 1.97878859140112M9[t] + 1.43407402510184M10[t] + 1.18187657202455M11[t] + 0.0360920857270811t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-3.146732535836275.714127-0.55070.5850670.292534
X0.1592731111613140.2040920.78040.4399910.219996
Y11.192393913885240.1380548.637100
Y20.05474890713402550.1900130.28810.7748120.387406
Y3-0.8469574469555720.18777-4.51066e-053e-05
Y40.516579620184940.1434383.60140.0009030.000452
M11.184894553073653.0440190.38930.6992620.349631
M20.7877032422968263.0549390.25780.7979170.398959
M31.776236082164053.138580.56590.5747640.287382
M41.998452323817333.0720490.65050.5192660.259633
M52.443827284168173.0475750.80190.4276020.213801
M62.519341534467273.05860.82370.4152550.207628
M71.650250275479763.0692120.53770.5939340.296967
M81.964251395451773.0699220.63980.5261170.263059
M91.978788591401123.2153220.61540.5419430.270971
M101.434074025101843.3768250.42470.6734640.336732
M111.181876572024553.2068760.36850.7145130.357256
t0.03609208572708110.0755090.4780.6353980.317699

\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) & -3.14673253583627 & 5.714127 & -0.5507 & 0.585067 & 0.292534 \tabularnewline
X & 0.159273111161314 & 0.204092 & 0.7804 & 0.439991 & 0.219996 \tabularnewline
Y1 & 1.19239391388524 & 0.138054 & 8.6371 & 0 & 0 \tabularnewline
Y2 & 0.0547489071340255 & 0.190013 & 0.2881 & 0.774812 & 0.387406 \tabularnewline
Y3 & -0.846957446955572 & 0.18777 & -4.5106 & 6e-05 & 3e-05 \tabularnewline
Y4 & 0.51657962018494 & 0.143438 & 3.6014 & 0.000903 & 0.000452 \tabularnewline
M1 & 1.18489455307365 & 3.044019 & 0.3893 & 0.699262 & 0.349631 \tabularnewline
M2 & 0.787703242296826 & 3.054939 & 0.2578 & 0.797917 & 0.398959 \tabularnewline
M3 & 1.77623608216405 & 3.13858 & 0.5659 & 0.574764 & 0.287382 \tabularnewline
M4 & 1.99845232381733 & 3.072049 & 0.6505 & 0.519266 & 0.259633 \tabularnewline
M5 & 2.44382728416817 & 3.047575 & 0.8019 & 0.427602 & 0.213801 \tabularnewline
M6 & 2.51934153446727 & 3.0586 & 0.8237 & 0.415255 & 0.207628 \tabularnewline
M7 & 1.65025027547976 & 3.069212 & 0.5377 & 0.593934 & 0.296967 \tabularnewline
M8 & 1.96425139545177 & 3.069922 & 0.6398 & 0.526117 & 0.263059 \tabularnewline
M9 & 1.97878859140112 & 3.215322 & 0.6154 & 0.541943 & 0.270971 \tabularnewline
M10 & 1.43407402510184 & 3.376825 & 0.4247 & 0.673464 & 0.336732 \tabularnewline
M11 & 1.18187657202455 & 3.206876 & 0.3685 & 0.714513 & 0.357256 \tabularnewline
t & 0.0360920857270811 & 0.075509 & 0.478 & 0.635398 & 0.317699 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58448&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]-3.14673253583627[/C][C]5.714127[/C][C]-0.5507[/C][C]0.585067[/C][C]0.292534[/C][/ROW]
[ROW][C]X[/C][C]0.159273111161314[/C][C]0.204092[/C][C]0.7804[/C][C]0.439991[/C][C]0.219996[/C][/ROW]
[ROW][C]Y1[/C][C]1.19239391388524[/C][C]0.138054[/C][C]8.6371[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]0.0547489071340255[/C][C]0.190013[/C][C]0.2881[/C][C]0.774812[/C][C]0.387406[/C][/ROW]
[ROW][C]Y3[/C][C]-0.846957446955572[/C][C]0.18777[/C][C]-4.5106[/C][C]6e-05[/C][C]3e-05[/C][/ROW]
[ROW][C]Y4[/C][C]0.51657962018494[/C][C]0.143438[/C][C]3.6014[/C][C]0.000903[/C][C]0.000452[/C][/ROW]
[ROW][C]M1[/C][C]1.18489455307365[/C][C]3.044019[/C][C]0.3893[/C][C]0.699262[/C][C]0.349631[/C][/ROW]
[ROW][C]M2[/C][C]0.787703242296826[/C][C]3.054939[/C][C]0.2578[/C][C]0.797917[/C][C]0.398959[/C][/ROW]
[ROW][C]M3[/C][C]1.77623608216405[/C][C]3.13858[/C][C]0.5659[/C][C]0.574764[/C][C]0.287382[/C][/ROW]
[ROW][C]M4[/C][C]1.99845232381733[/C][C]3.072049[/C][C]0.6505[/C][C]0.519266[/C][C]0.259633[/C][/ROW]
[ROW][C]M5[/C][C]2.44382728416817[/C][C]3.047575[/C][C]0.8019[/C][C]0.427602[/C][C]0.213801[/C][/ROW]
[ROW][C]M6[/C][C]2.51934153446727[/C][C]3.0586[/C][C]0.8237[/C][C]0.415255[/C][C]0.207628[/C][/ROW]
[ROW][C]M7[/C][C]1.65025027547976[/C][C]3.069212[/C][C]0.5377[/C][C]0.593934[/C][C]0.296967[/C][/ROW]
[ROW][C]M8[/C][C]1.96425139545177[/C][C]3.069922[/C][C]0.6398[/C][C]0.526117[/C][C]0.263059[/C][/ROW]
[ROW][C]M9[/C][C]1.97878859140112[/C][C]3.215322[/C][C]0.6154[/C][C]0.541943[/C][C]0.270971[/C][/ROW]
[ROW][C]M10[/C][C]1.43407402510184[/C][C]3.376825[/C][C]0.4247[/C][C]0.673464[/C][C]0.336732[/C][/ROW]
[ROW][C]M11[/C][C]1.18187657202455[/C][C]3.206876[/C][C]0.3685[/C][C]0.714513[/C][C]0.357256[/C][/ROW]
[ROW][C]t[/C][C]0.0360920857270811[/C][C]0.075509[/C][C]0.478[/C][C]0.635398[/C][C]0.317699[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58448&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58448&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)-3.146732535836275.714127-0.55070.5850670.292534
X0.1592731111613140.2040920.78040.4399910.219996
Y11.192393913885240.1380548.637100
Y20.05474890713402550.1900130.28810.7748120.387406
Y3-0.8469574469555720.18777-4.51066e-053e-05
Y40.516579620184940.1434383.60140.0009030.000452
M11.184894553073653.0440190.38930.6992620.349631
M20.7877032422968263.0549390.25780.7979170.398959
M31.776236082164053.138580.56590.5747640.287382
M41.998452323817333.0720490.65050.5192660.259633
M52.443827284168173.0475750.80190.4276020.213801
M62.519341534467273.05860.82370.4152550.207628
M71.650250275479763.0692120.53770.5939340.296967
M81.964251395451773.0699220.63980.5261170.263059
M91.978788591401123.2153220.61540.5419430.270971
M101.434074025101843.3768250.42470.6734640.336732
M111.181876572024553.2068760.36850.7145130.357256
t0.03609208572708110.0755090.4780.6353980.317699







Multiple Linear Regression - Regression Statistics
Multiple R0.92674741174573
R-squared0.858860765177409
Adjusted R-squared0.79571952854625
F-TEST (value)13.6022164119855
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value2.89758217419944e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.52155480976008
Sum Squared Residuals776.889400111252

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.92674741174573 \tabularnewline
R-squared & 0.858860765177409 \tabularnewline
Adjusted R-squared & 0.79571952854625 \tabularnewline
F-TEST (value) & 13.6022164119855 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 2.89758217419944e-11 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.52155480976008 \tabularnewline
Sum Squared Residuals & 776.889400111252 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58448&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.92674741174573[/C][/ROW]
[ROW][C]R-squared[/C][C]0.858860765177409[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.79571952854625[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]13.6022164119855[/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]2.89758217419944e-11[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4.52155480976008[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]776.889400111252[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58448&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58448&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.92674741174573
R-squared0.858860765177409
Adjusted R-squared0.79571952854625
F-TEST (value)13.6022164119855
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value2.89758217419944e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.52155480976008
Sum Squared Residuals776.889400111252







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
112.819.8774889828420-7.07748898284196
2814.2031237507828-6.20312375078278
30.91.78879416237584-0.888794162375841
43.62.541841546600961.05815845339904
514.16.363649735839787.73635026416022
621.722.5177568022584-0.81775680225839
724.525.2080413781786-0.708041378178616
818.921.0182754626342-2.11827546263423
913.914.0098245150921-0.109824515092060
10118.309343513589112.69065648641089
115.811.9843939002224-6.18439390022245
1215.56.139876815097889.36012318490212
1322.417.87857615208974.5214238479103
1431.729.02288404651952.6771159534805
1530.330.7721116812019-0.472111681201894
1631.428.55922996380592.84077003619412
1720.226.6004694124044-6.40046941240445
1819.719.24814549305980.451854506940208
1910.815.0730776095617-4.27307760956167
2013.214.9969246273823-1.79692462738228
2115.112.21909411745822.88090588254176
2215.620.5906833623952-4.9906833623952
2315.515.08163382784820.418366172151823
2412.713.1560101206348-0.45601012063484
2510.912.2279339093623-1.32793390936235
26109.750941142970620.249058857029382
279.110.8087746245549-1.70877462455487
2810.311.2969397703106-0.9969397703106
2916.912.67387766023474.22612233976531
302220.54050322707391.45949677292609
3127.624.66878520719962.93121479280037
3228.927.00548015135481.89451984864525
333128.00275791477972.99724208522027
3432.926.68674570334226.21325429665776
3538.131.12078200283286.9792179971672
3628.834.694592326443-5.894592326443
372924.42733482521944.57266517478059
3821.820.37287210078271.42712789921731
3928.822.90830957599465.89169042400536
4025.626.9419667679022-1.34196676790221
4128.229.87387895928-1.67387895928003
4220.223.4217106857197-3.22171068571968
4317.919.3589554203169-1.4589554203169
4416.313.78831899846062.51168100153937
4513.218.9683234526700-5.76832345266998
468.112.0132274206734-3.91322742067344
474.55.71319026909658-1.21319026909658
48-0.12.90952073782429-3.00952073782429
4900.688666130486581-0.688666130486581
502.30.45017895894441.8498210410556
512.85.62200995587275-2.82200995587275
522.94.46002195138034-1.56002195138034
530.13.98812423224105-3.88812423224105
543.51.371883791888222.12811620811178
558.65.091140384743183.50885961525682
5613.814.2910007601681-0.491000760168099

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 12.8 & 19.8774889828420 & -7.07748898284196 \tabularnewline
2 & 8 & 14.2031237507828 & -6.20312375078278 \tabularnewline
3 & 0.9 & 1.78879416237584 & -0.888794162375841 \tabularnewline
4 & 3.6 & 2.54184154660096 & 1.05815845339904 \tabularnewline
5 & 14.1 & 6.36364973583978 & 7.73635026416022 \tabularnewline
6 & 21.7 & 22.5177568022584 & -0.81775680225839 \tabularnewline
7 & 24.5 & 25.2080413781786 & -0.708041378178616 \tabularnewline
8 & 18.9 & 21.0182754626342 & -2.11827546263423 \tabularnewline
9 & 13.9 & 14.0098245150921 & -0.109824515092060 \tabularnewline
10 & 11 & 8.30934351358911 & 2.69065648641089 \tabularnewline
11 & 5.8 & 11.9843939002224 & -6.18439390022245 \tabularnewline
12 & 15.5 & 6.13987681509788 & 9.36012318490212 \tabularnewline
13 & 22.4 & 17.8785761520897 & 4.5214238479103 \tabularnewline
14 & 31.7 & 29.0228840465195 & 2.6771159534805 \tabularnewline
15 & 30.3 & 30.7721116812019 & -0.472111681201894 \tabularnewline
16 & 31.4 & 28.5592299638059 & 2.84077003619412 \tabularnewline
17 & 20.2 & 26.6004694124044 & -6.40046941240445 \tabularnewline
18 & 19.7 & 19.2481454930598 & 0.451854506940208 \tabularnewline
19 & 10.8 & 15.0730776095617 & -4.27307760956167 \tabularnewline
20 & 13.2 & 14.9969246273823 & -1.79692462738228 \tabularnewline
21 & 15.1 & 12.2190941174582 & 2.88090588254176 \tabularnewline
22 & 15.6 & 20.5906833623952 & -4.9906833623952 \tabularnewline
23 & 15.5 & 15.0816338278482 & 0.418366172151823 \tabularnewline
24 & 12.7 & 13.1560101206348 & -0.45601012063484 \tabularnewline
25 & 10.9 & 12.2279339093623 & -1.32793390936235 \tabularnewline
26 & 10 & 9.75094114297062 & 0.249058857029382 \tabularnewline
27 & 9.1 & 10.8087746245549 & -1.70877462455487 \tabularnewline
28 & 10.3 & 11.2969397703106 & -0.9969397703106 \tabularnewline
29 & 16.9 & 12.6738776602347 & 4.22612233976531 \tabularnewline
30 & 22 & 20.5405032270739 & 1.45949677292609 \tabularnewline
31 & 27.6 & 24.6687852071996 & 2.93121479280037 \tabularnewline
32 & 28.9 & 27.0054801513548 & 1.89451984864525 \tabularnewline
33 & 31 & 28.0027579147797 & 2.99724208522027 \tabularnewline
34 & 32.9 & 26.6867457033422 & 6.21325429665776 \tabularnewline
35 & 38.1 & 31.1207820028328 & 6.9792179971672 \tabularnewline
36 & 28.8 & 34.694592326443 & -5.894592326443 \tabularnewline
37 & 29 & 24.4273348252194 & 4.57266517478059 \tabularnewline
38 & 21.8 & 20.3728721007827 & 1.42712789921731 \tabularnewline
39 & 28.8 & 22.9083095759946 & 5.89169042400536 \tabularnewline
40 & 25.6 & 26.9419667679022 & -1.34196676790221 \tabularnewline
41 & 28.2 & 29.87387895928 & -1.67387895928003 \tabularnewline
42 & 20.2 & 23.4217106857197 & -3.22171068571968 \tabularnewline
43 & 17.9 & 19.3589554203169 & -1.4589554203169 \tabularnewline
44 & 16.3 & 13.7883189984606 & 2.51168100153937 \tabularnewline
45 & 13.2 & 18.9683234526700 & -5.76832345266998 \tabularnewline
46 & 8.1 & 12.0132274206734 & -3.91322742067344 \tabularnewline
47 & 4.5 & 5.71319026909658 & -1.21319026909658 \tabularnewline
48 & -0.1 & 2.90952073782429 & -3.00952073782429 \tabularnewline
49 & 0 & 0.688666130486581 & -0.688666130486581 \tabularnewline
50 & 2.3 & 0.4501789589444 & 1.8498210410556 \tabularnewline
51 & 2.8 & 5.62200995587275 & -2.82200995587275 \tabularnewline
52 & 2.9 & 4.46002195138034 & -1.56002195138034 \tabularnewline
53 & 0.1 & 3.98812423224105 & -3.88812423224105 \tabularnewline
54 & 3.5 & 1.37188379188822 & 2.12811620811178 \tabularnewline
55 & 8.6 & 5.09114038474318 & 3.50885961525682 \tabularnewline
56 & 13.8 & 14.2910007601681 & -0.491000760168099 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58448&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]12.8[/C][C]19.8774889828420[/C][C]-7.07748898284196[/C][/ROW]
[ROW][C]2[/C][C]8[/C][C]14.2031237507828[/C][C]-6.20312375078278[/C][/ROW]
[ROW][C]3[/C][C]0.9[/C][C]1.78879416237584[/C][C]-0.888794162375841[/C][/ROW]
[ROW][C]4[/C][C]3.6[/C][C]2.54184154660096[/C][C]1.05815845339904[/C][/ROW]
[ROW][C]5[/C][C]14.1[/C][C]6.36364973583978[/C][C]7.73635026416022[/C][/ROW]
[ROW][C]6[/C][C]21.7[/C][C]22.5177568022584[/C][C]-0.81775680225839[/C][/ROW]
[ROW][C]7[/C][C]24.5[/C][C]25.2080413781786[/C][C]-0.708041378178616[/C][/ROW]
[ROW][C]8[/C][C]18.9[/C][C]21.0182754626342[/C][C]-2.11827546263423[/C][/ROW]
[ROW][C]9[/C][C]13.9[/C][C]14.0098245150921[/C][C]-0.109824515092060[/C][/ROW]
[ROW][C]10[/C][C]11[/C][C]8.30934351358911[/C][C]2.69065648641089[/C][/ROW]
[ROW][C]11[/C][C]5.8[/C][C]11.9843939002224[/C][C]-6.18439390022245[/C][/ROW]
[ROW][C]12[/C][C]15.5[/C][C]6.13987681509788[/C][C]9.36012318490212[/C][/ROW]
[ROW][C]13[/C][C]22.4[/C][C]17.8785761520897[/C][C]4.5214238479103[/C][/ROW]
[ROW][C]14[/C][C]31.7[/C][C]29.0228840465195[/C][C]2.6771159534805[/C][/ROW]
[ROW][C]15[/C][C]30.3[/C][C]30.7721116812019[/C][C]-0.472111681201894[/C][/ROW]
[ROW][C]16[/C][C]31.4[/C][C]28.5592299638059[/C][C]2.84077003619412[/C][/ROW]
[ROW][C]17[/C][C]20.2[/C][C]26.6004694124044[/C][C]-6.40046941240445[/C][/ROW]
[ROW][C]18[/C][C]19.7[/C][C]19.2481454930598[/C][C]0.451854506940208[/C][/ROW]
[ROW][C]19[/C][C]10.8[/C][C]15.0730776095617[/C][C]-4.27307760956167[/C][/ROW]
[ROW][C]20[/C][C]13.2[/C][C]14.9969246273823[/C][C]-1.79692462738228[/C][/ROW]
[ROW][C]21[/C][C]15.1[/C][C]12.2190941174582[/C][C]2.88090588254176[/C][/ROW]
[ROW][C]22[/C][C]15.6[/C][C]20.5906833623952[/C][C]-4.9906833623952[/C][/ROW]
[ROW][C]23[/C][C]15.5[/C][C]15.0816338278482[/C][C]0.418366172151823[/C][/ROW]
[ROW][C]24[/C][C]12.7[/C][C]13.1560101206348[/C][C]-0.45601012063484[/C][/ROW]
[ROW][C]25[/C][C]10.9[/C][C]12.2279339093623[/C][C]-1.32793390936235[/C][/ROW]
[ROW][C]26[/C][C]10[/C][C]9.75094114297062[/C][C]0.249058857029382[/C][/ROW]
[ROW][C]27[/C][C]9.1[/C][C]10.8087746245549[/C][C]-1.70877462455487[/C][/ROW]
[ROW][C]28[/C][C]10.3[/C][C]11.2969397703106[/C][C]-0.9969397703106[/C][/ROW]
[ROW][C]29[/C][C]16.9[/C][C]12.6738776602347[/C][C]4.22612233976531[/C][/ROW]
[ROW][C]30[/C][C]22[/C][C]20.5405032270739[/C][C]1.45949677292609[/C][/ROW]
[ROW][C]31[/C][C]27.6[/C][C]24.6687852071996[/C][C]2.93121479280037[/C][/ROW]
[ROW][C]32[/C][C]28.9[/C][C]27.0054801513548[/C][C]1.89451984864525[/C][/ROW]
[ROW][C]33[/C][C]31[/C][C]28.0027579147797[/C][C]2.99724208522027[/C][/ROW]
[ROW][C]34[/C][C]32.9[/C][C]26.6867457033422[/C][C]6.21325429665776[/C][/ROW]
[ROW][C]35[/C][C]38.1[/C][C]31.1207820028328[/C][C]6.9792179971672[/C][/ROW]
[ROW][C]36[/C][C]28.8[/C][C]34.694592326443[/C][C]-5.894592326443[/C][/ROW]
[ROW][C]37[/C][C]29[/C][C]24.4273348252194[/C][C]4.57266517478059[/C][/ROW]
[ROW][C]38[/C][C]21.8[/C][C]20.3728721007827[/C][C]1.42712789921731[/C][/ROW]
[ROW][C]39[/C][C]28.8[/C][C]22.9083095759946[/C][C]5.89169042400536[/C][/ROW]
[ROW][C]40[/C][C]25.6[/C][C]26.9419667679022[/C][C]-1.34196676790221[/C][/ROW]
[ROW][C]41[/C][C]28.2[/C][C]29.87387895928[/C][C]-1.67387895928003[/C][/ROW]
[ROW][C]42[/C][C]20.2[/C][C]23.4217106857197[/C][C]-3.22171068571968[/C][/ROW]
[ROW][C]43[/C][C]17.9[/C][C]19.3589554203169[/C][C]-1.4589554203169[/C][/ROW]
[ROW][C]44[/C][C]16.3[/C][C]13.7883189984606[/C][C]2.51168100153937[/C][/ROW]
[ROW][C]45[/C][C]13.2[/C][C]18.9683234526700[/C][C]-5.76832345266998[/C][/ROW]
[ROW][C]46[/C][C]8.1[/C][C]12.0132274206734[/C][C]-3.91322742067344[/C][/ROW]
[ROW][C]47[/C][C]4.5[/C][C]5.71319026909658[/C][C]-1.21319026909658[/C][/ROW]
[ROW][C]48[/C][C]-0.1[/C][C]2.90952073782429[/C][C]-3.00952073782429[/C][/ROW]
[ROW][C]49[/C][C]0[/C][C]0.688666130486581[/C][C]-0.688666130486581[/C][/ROW]
[ROW][C]50[/C][C]2.3[/C][C]0.4501789589444[/C][C]1.8498210410556[/C][/ROW]
[ROW][C]51[/C][C]2.8[/C][C]5.62200995587275[/C][C]-2.82200995587275[/C][/ROW]
[ROW][C]52[/C][C]2.9[/C][C]4.46002195138034[/C][C]-1.56002195138034[/C][/ROW]
[ROW][C]53[/C][C]0.1[/C][C]3.98812423224105[/C][C]-3.88812423224105[/C][/ROW]
[ROW][C]54[/C][C]3.5[/C][C]1.37188379188822[/C][C]2.12811620811178[/C][/ROW]
[ROW][C]55[/C][C]8.6[/C][C]5.09114038474318[/C][C]3.50885961525682[/C][/ROW]
[ROW][C]56[/C][C]13.8[/C][C]14.2910007601681[/C][C]-0.491000760168099[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58448&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58448&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
112.819.8774889828420-7.07748898284196
2814.2031237507828-6.20312375078278
30.91.78879416237584-0.888794162375841
43.62.541841546600961.05815845339904
514.16.363649735839787.73635026416022
621.722.5177568022584-0.81775680225839
724.525.2080413781786-0.708041378178616
818.921.0182754626342-2.11827546263423
913.914.0098245150921-0.109824515092060
10118.309343513589112.69065648641089
115.811.9843939002224-6.18439390022245
1215.56.139876815097889.36012318490212
1322.417.87857615208974.5214238479103
1431.729.02288404651952.6771159534805
1530.330.7721116812019-0.472111681201894
1631.428.55922996380592.84077003619412
1720.226.6004694124044-6.40046941240445
1819.719.24814549305980.451854506940208
1910.815.0730776095617-4.27307760956167
2013.214.9969246273823-1.79692462738228
2115.112.21909411745822.88090588254176
2215.620.5906833623952-4.9906833623952
2315.515.08163382784820.418366172151823
2412.713.1560101206348-0.45601012063484
2510.912.2279339093623-1.32793390936235
26109.750941142970620.249058857029382
279.110.8087746245549-1.70877462455487
2810.311.2969397703106-0.9969397703106
2916.912.67387766023474.22612233976531
302220.54050322707391.45949677292609
3127.624.66878520719962.93121479280037
3228.927.00548015135481.89451984864525
333128.00275791477972.99724208522027
3432.926.68674570334226.21325429665776
3538.131.12078200283286.9792179971672
3628.834.694592326443-5.894592326443
372924.42733482521944.57266517478059
3821.820.37287210078271.42712789921731
3928.822.90830957599465.89169042400536
4025.626.9419667679022-1.34196676790221
4128.229.87387895928-1.67387895928003
4220.223.4217106857197-3.22171068571968
4317.919.3589554203169-1.4589554203169
4416.313.78831899846062.51168100153937
4513.218.9683234526700-5.76832345266998
468.112.0132274206734-3.91322742067344
474.55.71319026909658-1.21319026909658
48-0.12.90952073782429-3.00952073782429
4900.688666130486581-0.688666130486581
502.30.45017895894441.8498210410556
512.85.62200995587275-2.82200995587275
522.94.46002195138034-1.56002195138034
530.13.98812423224105-3.88812423224105
543.51.371883791888222.12811620811178
558.65.091140384743183.50885961525682
5613.814.2910007601681-0.491000760168099







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.4583712955290670.9167425910581350.541628704470933
220.844551825673380.3108963486532400.155448174326620
230.7842150011479050.431569997704190.215784998852095
240.9491377495833380.1017245008333240.0508622504166618
250.9390260041440660.1219479917118680.060973995855934
260.9290574034733080.1418851930533850.0709425965266925
270.9249936111960120.1500127776079760.0750063888039879
280.9915681677270730.01686366454585440.00843183227292722
290.9807057184091280.03858856318174410.0192942815908721
300.9573803722111670.0852392555776660.042619627788833
310.9342190805132540.1315618389734920.0657809194867459
320.8893076742848090.2213846514303820.110692325715191
330.903028965284950.1939420694301020.0969710347150508
340.8960186624920570.2079626750158860.103981337507943
350.8748256372990670.2503487254018670.125174362700933

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.458371295529067 & 0.916742591058135 & 0.541628704470933 \tabularnewline
22 & 0.84455182567338 & 0.310896348653240 & 0.155448174326620 \tabularnewline
23 & 0.784215001147905 & 0.43156999770419 & 0.215784998852095 \tabularnewline
24 & 0.949137749583338 & 0.101724500833324 & 0.0508622504166618 \tabularnewline
25 & 0.939026004144066 & 0.121947991711868 & 0.060973995855934 \tabularnewline
26 & 0.929057403473308 & 0.141885193053385 & 0.0709425965266925 \tabularnewline
27 & 0.924993611196012 & 0.150012777607976 & 0.0750063888039879 \tabularnewline
28 & 0.991568167727073 & 0.0168636645458544 & 0.00843183227292722 \tabularnewline
29 & 0.980705718409128 & 0.0385885631817441 & 0.0192942815908721 \tabularnewline
30 & 0.957380372211167 & 0.085239255577666 & 0.042619627788833 \tabularnewline
31 & 0.934219080513254 & 0.131561838973492 & 0.0657809194867459 \tabularnewline
32 & 0.889307674284809 & 0.221384651430382 & 0.110692325715191 \tabularnewline
33 & 0.90302896528495 & 0.193942069430102 & 0.0969710347150508 \tabularnewline
34 & 0.896018662492057 & 0.207962675015886 & 0.103981337507943 \tabularnewline
35 & 0.874825637299067 & 0.250348725401867 & 0.125174362700933 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58448&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.458371295529067[/C][C]0.916742591058135[/C][C]0.541628704470933[/C][/ROW]
[ROW][C]22[/C][C]0.84455182567338[/C][C]0.310896348653240[/C][C]0.155448174326620[/C][/ROW]
[ROW][C]23[/C][C]0.784215001147905[/C][C]0.43156999770419[/C][C]0.215784998852095[/C][/ROW]
[ROW][C]24[/C][C]0.949137749583338[/C][C]0.101724500833324[/C][C]0.0508622504166618[/C][/ROW]
[ROW][C]25[/C][C]0.939026004144066[/C][C]0.121947991711868[/C][C]0.060973995855934[/C][/ROW]
[ROW][C]26[/C][C]0.929057403473308[/C][C]0.141885193053385[/C][C]0.0709425965266925[/C][/ROW]
[ROW][C]27[/C][C]0.924993611196012[/C][C]0.150012777607976[/C][C]0.0750063888039879[/C][/ROW]
[ROW][C]28[/C][C]0.991568167727073[/C][C]0.0168636645458544[/C][C]0.00843183227292722[/C][/ROW]
[ROW][C]29[/C][C]0.980705718409128[/C][C]0.0385885631817441[/C][C]0.0192942815908721[/C][/ROW]
[ROW][C]30[/C][C]0.957380372211167[/C][C]0.085239255577666[/C][C]0.042619627788833[/C][/ROW]
[ROW][C]31[/C][C]0.934219080513254[/C][C]0.131561838973492[/C][C]0.0657809194867459[/C][/ROW]
[ROW][C]32[/C][C]0.889307674284809[/C][C]0.221384651430382[/C][C]0.110692325715191[/C][/ROW]
[ROW][C]33[/C][C]0.90302896528495[/C][C]0.193942069430102[/C][C]0.0969710347150508[/C][/ROW]
[ROW][C]34[/C][C]0.896018662492057[/C][C]0.207962675015886[/C][C]0.103981337507943[/C][/ROW]
[ROW][C]35[/C][C]0.874825637299067[/C][C]0.250348725401867[/C][C]0.125174362700933[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58448&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58448&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.4583712955290670.9167425910581350.541628704470933
220.844551825673380.3108963486532400.155448174326620
230.7842150011479050.431569997704190.215784998852095
240.9491377495833380.1017245008333240.0508622504166618
250.9390260041440660.1219479917118680.060973995855934
260.9290574034733080.1418851930533850.0709425965266925
270.9249936111960120.1500127776079760.0750063888039879
280.9915681677270730.01686366454585440.00843183227292722
290.9807057184091280.03858856318174410.0192942815908721
300.9573803722111670.0852392555776660.042619627788833
310.9342190805132540.1315618389734920.0657809194867459
320.8893076742848090.2213846514303820.110692325715191
330.903028965284950.1939420694301020.0969710347150508
340.8960186624920570.2079626750158860.103981337507943
350.8748256372990670.2503487254018670.125174362700933







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

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

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



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