Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 27 Nov 2008 15:29:24 -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/2008/Nov/27/t1227824995ecapjt64xvjptwe.htm/, Retrieved Tue, 28 May 2024 12:25:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25929, Retrieved Tue, 28 May 2024 12:25:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact140
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F       [Multiple Regression] [] [2008-11-27 22:29:24] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum
2008-11-29 14:08:22 [Vincent Vanden Poel] [reply
Je hebt opnieuw een goede afweging gemaakt tussen de verschillende mogelijkheden en er is duidelijk verbetering zichtbaar zoals je zelf aangeeft. Wel mis ik antwoorden in verband met Q1. Je zou bijvoorbeeld de hoogste en laagste maanden kunnen vernoemen en aangeven of bijhorend verschil al dan niet significant is.
2008-12-01 21:16:06 [Peter Van Doninck] [reply
Vraag correct beantwoord, en ook duidelijke links naar de andere 'methoden'. Toch hadden een paar grafieken ivm de vgl van de histogrammen hier interessant geweest, om een duidelijkere analyse mogelijk te maken.

Post a new message
Dataseries X:
123,9	0
124,9	0
112,7	0
121,9	0
100,6	0
104,3	0
120,4	0
107,5	0
102,9	0
125,6	0
107,5	0
108,8	0
128,4	0
121,1	0
119,5	0
128,7	0
108,7	0
105,5	0
119,8	0
111,3	0
110,6	0
120,1	0
97,5	0
107,7	0
127,3	0
117,2	0
119,8	0
116,2	0
111	0
112,4	0
130,6	0
109,1	0
118,8	0
123,9	0
101,6	0
112,8	0
128	0
129,6	0
125,8	0
119,5	0
115,7	0
113,6	0
129,7	0
112	0
116,8	0
127	1
112,1	1
114,2	1
121,1	1
131,6	1
125	1
120,4	1
117,7	1
117,5	1
120,6	1
127,5	1
112,3	1
124,5	1
115,2	1
105,4	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=25929&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=25929&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25929&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
Consumptieindex[t] = + 104.086878306878 -0.638624338624347Dummy[t] + 17.6498941798941M1[t] + 16.6246560846561M2[t] + 12.139417989418M3[t] + 12.7541798941799M4[t] + 1.98894179894179M5[t] + 1.7437037037037M6[t] + 15.1384656084656M7[t] + 4.23322751322751M8[t] + 2.86798941798940M9[t] + 14.7704761904762M10[t] -2.83476190476191M11[t] + 0.165238095238096t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Consumptieindex[t] =  +  104.086878306878 -0.638624338624347Dummy[t] +  17.6498941798941M1[t] +  16.6246560846561M2[t] +  12.139417989418M3[t] +  12.7541798941799M4[t] +  1.98894179894179M5[t] +  1.7437037037037M6[t] +  15.1384656084656M7[t] +  4.23322751322751M8[t] +  2.86798941798940M9[t] +  14.7704761904762M10[t] -2.83476190476191M11[t] +  0.165238095238096t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25929&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Consumptieindex[t] =  +  104.086878306878 -0.638624338624347Dummy[t] +  17.6498941798941M1[t] +  16.6246560846561M2[t] +  12.139417989418M3[t] +  12.7541798941799M4[t] +  1.98894179894179M5[t] +  1.7437037037037M6[t] +  15.1384656084656M7[t] +  4.23322751322751M8[t] +  2.86798941798940M9[t] +  14.7704761904762M10[t] -2.83476190476191M11[t] +  0.165238095238096t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25929&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25929&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
Consumptieindex[t] = + 104.086878306878 -0.638624338624347Dummy[t] + 17.6498941798941M1[t] + 16.6246560846561M2[t] + 12.139417989418M3[t] + 12.7541798941799M4[t] + 1.98894179894179M5[t] + 1.7437037037037M6[t] + 15.1384656084656M7[t] + 4.23322751322751M8[t] + 2.86798941798940M9[t] + 14.7704761904762M10[t] -2.83476190476191M11[t] + 0.165238095238096t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)104.0868783068782.63388439.518400
Dummy-0.6386243386243472.246184-0.28430.7774450.388722
M117.64989417989413.1149355.66621e-060
M216.62465608465613.1103765.34493e-061e-06
M312.1394179894183.1068263.90730.0003040.000152
M412.75417989417993.1042884.10860.0001628.1e-05
M51.988941798941793.1027630.6410.5246890.262344
M61.74370370370373.1022550.56210.5767930.288396
M715.13846560846563.1027634.8791.3e-057e-06
M84.233227513227513.1042881.36370.1793080.089654
M92.867989417989403.1068260.92310.3607590.180379
M1014.77047619047623.0900344.781.8e-059e-06
M11-2.834761904761913.088503-0.91780.3634880.181744
t0.1652380952380960.0561552.94260.0050850.002543

\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) & 104.086878306878 & 2.633884 & 39.5184 & 0 & 0 \tabularnewline
Dummy & -0.638624338624347 & 2.246184 & -0.2843 & 0.777445 & 0.388722 \tabularnewline
M1 & 17.6498941798941 & 3.114935 & 5.6662 & 1e-06 & 0 \tabularnewline
M2 & 16.6246560846561 & 3.110376 & 5.3449 & 3e-06 & 1e-06 \tabularnewline
M3 & 12.139417989418 & 3.106826 & 3.9073 & 0.000304 & 0.000152 \tabularnewline
M4 & 12.7541798941799 & 3.104288 & 4.1086 & 0.000162 & 8.1e-05 \tabularnewline
M5 & 1.98894179894179 & 3.102763 & 0.641 & 0.524689 & 0.262344 \tabularnewline
M6 & 1.7437037037037 & 3.102255 & 0.5621 & 0.576793 & 0.288396 \tabularnewline
M7 & 15.1384656084656 & 3.102763 & 4.879 & 1.3e-05 & 7e-06 \tabularnewline
M8 & 4.23322751322751 & 3.104288 & 1.3637 & 0.179308 & 0.089654 \tabularnewline
M9 & 2.86798941798940 & 3.106826 & 0.9231 & 0.360759 & 0.180379 \tabularnewline
M10 & 14.7704761904762 & 3.090034 & 4.78 & 1.8e-05 & 9e-06 \tabularnewline
M11 & -2.83476190476191 & 3.088503 & -0.9178 & 0.363488 & 0.181744 \tabularnewline
t & 0.165238095238096 & 0.056155 & 2.9426 & 0.005085 & 0.002543 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25929&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]104.086878306878[/C][C]2.633884[/C][C]39.5184[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]-0.638624338624347[/C][C]2.246184[/C][C]-0.2843[/C][C]0.777445[/C][C]0.388722[/C][/ROW]
[ROW][C]M1[/C][C]17.6498941798941[/C][C]3.114935[/C][C]5.6662[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]16.6246560846561[/C][C]3.110376[/C][C]5.3449[/C][C]3e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M3[/C][C]12.139417989418[/C][C]3.106826[/C][C]3.9073[/C][C]0.000304[/C][C]0.000152[/C][/ROW]
[ROW][C]M4[/C][C]12.7541798941799[/C][C]3.104288[/C][C]4.1086[/C][C]0.000162[/C][C]8.1e-05[/C][/ROW]
[ROW][C]M5[/C][C]1.98894179894179[/C][C]3.102763[/C][C]0.641[/C][C]0.524689[/C][C]0.262344[/C][/ROW]
[ROW][C]M6[/C][C]1.7437037037037[/C][C]3.102255[/C][C]0.5621[/C][C]0.576793[/C][C]0.288396[/C][/ROW]
[ROW][C]M7[/C][C]15.1384656084656[/C][C]3.102763[/C][C]4.879[/C][C]1.3e-05[/C][C]7e-06[/C][/ROW]
[ROW][C]M8[/C][C]4.23322751322751[/C][C]3.104288[/C][C]1.3637[/C][C]0.179308[/C][C]0.089654[/C][/ROW]
[ROW][C]M9[/C][C]2.86798941798940[/C][C]3.106826[/C][C]0.9231[/C][C]0.360759[/C][C]0.180379[/C][/ROW]
[ROW][C]M10[/C][C]14.7704761904762[/C][C]3.090034[/C][C]4.78[/C][C]1.8e-05[/C][C]9e-06[/C][/ROW]
[ROW][C]M11[/C][C]-2.83476190476191[/C][C]3.088503[/C][C]-0.9178[/C][C]0.363488[/C][C]0.181744[/C][/ROW]
[ROW][C]t[/C][C]0.165238095238096[/C][C]0.056155[/C][C]2.9426[/C][C]0.005085[/C][C]0.002543[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25929&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25929&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)104.0868783068782.63388439.518400
Dummy-0.6386243386243472.246184-0.28430.7774450.388722
M117.64989417989413.1149355.66621e-060
M216.62465608465613.1103765.34493e-061e-06
M312.1394179894183.1068263.90730.0003040.000152
M412.75417989417993.1042884.10860.0001628.1e-05
M51.988941798941793.1027630.6410.5246890.262344
M61.74370370370373.1022550.56210.5767930.288396
M715.13846560846563.1027634.8791.3e-057e-06
M84.233227513227513.1042881.36370.1793080.089654
M92.867989417989403.1068260.92310.3607590.180379
M1014.77047619047623.0900344.781.8e-059e-06
M11-2.834761904761913.088503-0.91780.3634880.181744
t0.1652380952380960.0561552.94260.0050850.002543







Multiple Linear Regression - Regression Statistics
Multiple R0.860622563195654
R-squared0.740671196281457
Adjusted R-squared0.66738262131752
F-TEST (value)10.1062300180612
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.5097584293855e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.88254403512026
Sum Squared Residuals1096.60486772487

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.860622563195654 \tabularnewline
R-squared & 0.740671196281457 \tabularnewline
Adjusted R-squared & 0.66738262131752 \tabularnewline
F-TEST (value) & 10.1062300180612 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.5097584293855e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.88254403512026 \tabularnewline
Sum Squared Residuals & 1096.60486772487 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25929&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.860622563195654[/C][/ROW]
[ROW][C]R-squared[/C][C]0.740671196281457[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.66738262131752[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.1062300180612[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]1.5097584293855e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4.88254403512026[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1096.60486772487[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25929&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25929&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.860622563195654
R-squared0.740671196281457
Adjusted R-squared0.66738262131752
F-TEST (value)10.1062300180612
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.5097584293855e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.88254403512026
Sum Squared Residuals1096.60486772487







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1123.9121.9020105820111.99798941798925
2124.9121.0420105820113.85798941798943
3112.7116.722010582011-4.02201058201055
4121.9117.5020105820114.39798941798944
5100.6106.902010582011-6.3020105820106
6104.3106.822010582011-2.52201058201058
7120.4120.3820105820110.0179894179894405
8107.5109.642010582011-2.14201058201057
9102.9108.442010582011-5.54201058201058
10125.6120.5097354497355.09026455026455
11107.5103.0697354497354.43026455026456
12108.8106.0697354497352.73026455026455
13128.4123.8848677248684.51513227513233
14121.1123.024867724868-1.92486772486772
15119.5118.7048677248680.795132275132277
16128.7119.4848677248689.21513227513227
17108.7108.884867724868-0.184867724867715
18105.5108.804867724868-3.30486772486772
19119.8122.364867724868-2.56486772486772
20111.3111.624867724868-0.324867724867722
21110.6110.4248677248680.175132275132281
22120.1122.492592592593-2.39259259259259
2397.5105.052592592593-7.55259259259259
24107.7108.052592592593-0.352592592592593
25127.3125.8677248677251.43227513227517
26117.2125.007724867725-7.80772486772487
27119.8120.687724867725-0.887724867724875
28116.2121.467724867725-5.26772486772487
29111110.8677248677250.132275132275134
30112.4110.7877248677251.61227513227514
31130.6124.3477248677256.25227513227513
32109.1113.607724867725-4.50772486772487
33118.8112.4077248677256.39227513227513
34123.9124.475449735450-0.575449735449732
35101.6107.035449735450-5.43544973544975
36112.8110.0354497354502.76455026455025
37128127.8505820105820.149417989418024
38129.6126.9905820105822.60941798941798
39125.8122.6705820105823.12941798941798
40119.5123.450582010582-3.95058201058202
41115.7112.8505820105822.84941798941799
42113.6112.7705820105820.829417989417978
43129.7126.3305820105823.36941798941797
44112115.590582010582-3.59058201058202
45116.8114.3905820105822.40941798941799
46127125.8196825396831.18031746031746
47112.1108.3796825396833.72031746031746
48114.2111.3796825396832.82031746031746
49121.1129.194814814815-8.09481481481478
50131.6128.3348148148153.26518518518518
51125124.0148148148150.98518518518518
52120.4124.794814814815-4.39481481481481
53117.7114.1948148148153.50518518518519
54117.5114.1148148148153.38518518518518
55120.6127.674814814815-7.07481481481482
56127.5116.93481481481510.5651851851852
57112.3115.734814814815-3.43481481481481
58124.5127.802539682540-3.30253968253969
59115.2110.3625396825404.83746031746032
60105.4113.362539682540-7.96253968253969

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 123.9 & 121.902010582011 & 1.99798941798925 \tabularnewline
2 & 124.9 & 121.042010582011 & 3.85798941798943 \tabularnewline
3 & 112.7 & 116.722010582011 & -4.02201058201055 \tabularnewline
4 & 121.9 & 117.502010582011 & 4.39798941798944 \tabularnewline
5 & 100.6 & 106.902010582011 & -6.3020105820106 \tabularnewline
6 & 104.3 & 106.822010582011 & -2.52201058201058 \tabularnewline
7 & 120.4 & 120.382010582011 & 0.0179894179894405 \tabularnewline
8 & 107.5 & 109.642010582011 & -2.14201058201057 \tabularnewline
9 & 102.9 & 108.442010582011 & -5.54201058201058 \tabularnewline
10 & 125.6 & 120.509735449735 & 5.09026455026455 \tabularnewline
11 & 107.5 & 103.069735449735 & 4.43026455026456 \tabularnewline
12 & 108.8 & 106.069735449735 & 2.73026455026455 \tabularnewline
13 & 128.4 & 123.884867724868 & 4.51513227513233 \tabularnewline
14 & 121.1 & 123.024867724868 & -1.92486772486772 \tabularnewline
15 & 119.5 & 118.704867724868 & 0.795132275132277 \tabularnewline
16 & 128.7 & 119.484867724868 & 9.21513227513227 \tabularnewline
17 & 108.7 & 108.884867724868 & -0.184867724867715 \tabularnewline
18 & 105.5 & 108.804867724868 & -3.30486772486772 \tabularnewline
19 & 119.8 & 122.364867724868 & -2.56486772486772 \tabularnewline
20 & 111.3 & 111.624867724868 & -0.324867724867722 \tabularnewline
21 & 110.6 & 110.424867724868 & 0.175132275132281 \tabularnewline
22 & 120.1 & 122.492592592593 & -2.39259259259259 \tabularnewline
23 & 97.5 & 105.052592592593 & -7.55259259259259 \tabularnewline
24 & 107.7 & 108.052592592593 & -0.352592592592593 \tabularnewline
25 & 127.3 & 125.867724867725 & 1.43227513227517 \tabularnewline
26 & 117.2 & 125.007724867725 & -7.80772486772487 \tabularnewline
27 & 119.8 & 120.687724867725 & -0.887724867724875 \tabularnewline
28 & 116.2 & 121.467724867725 & -5.26772486772487 \tabularnewline
29 & 111 & 110.867724867725 & 0.132275132275134 \tabularnewline
30 & 112.4 & 110.787724867725 & 1.61227513227514 \tabularnewline
31 & 130.6 & 124.347724867725 & 6.25227513227513 \tabularnewline
32 & 109.1 & 113.607724867725 & -4.50772486772487 \tabularnewline
33 & 118.8 & 112.407724867725 & 6.39227513227513 \tabularnewline
34 & 123.9 & 124.475449735450 & -0.575449735449732 \tabularnewline
35 & 101.6 & 107.035449735450 & -5.43544973544975 \tabularnewline
36 & 112.8 & 110.035449735450 & 2.76455026455025 \tabularnewline
37 & 128 & 127.850582010582 & 0.149417989418024 \tabularnewline
38 & 129.6 & 126.990582010582 & 2.60941798941798 \tabularnewline
39 & 125.8 & 122.670582010582 & 3.12941798941798 \tabularnewline
40 & 119.5 & 123.450582010582 & -3.95058201058202 \tabularnewline
41 & 115.7 & 112.850582010582 & 2.84941798941799 \tabularnewline
42 & 113.6 & 112.770582010582 & 0.829417989417978 \tabularnewline
43 & 129.7 & 126.330582010582 & 3.36941798941797 \tabularnewline
44 & 112 & 115.590582010582 & -3.59058201058202 \tabularnewline
45 & 116.8 & 114.390582010582 & 2.40941798941799 \tabularnewline
46 & 127 & 125.819682539683 & 1.18031746031746 \tabularnewline
47 & 112.1 & 108.379682539683 & 3.72031746031746 \tabularnewline
48 & 114.2 & 111.379682539683 & 2.82031746031746 \tabularnewline
49 & 121.1 & 129.194814814815 & -8.09481481481478 \tabularnewline
50 & 131.6 & 128.334814814815 & 3.26518518518518 \tabularnewline
51 & 125 & 124.014814814815 & 0.98518518518518 \tabularnewline
52 & 120.4 & 124.794814814815 & -4.39481481481481 \tabularnewline
53 & 117.7 & 114.194814814815 & 3.50518518518519 \tabularnewline
54 & 117.5 & 114.114814814815 & 3.38518518518518 \tabularnewline
55 & 120.6 & 127.674814814815 & -7.07481481481482 \tabularnewline
56 & 127.5 & 116.934814814815 & 10.5651851851852 \tabularnewline
57 & 112.3 & 115.734814814815 & -3.43481481481481 \tabularnewline
58 & 124.5 & 127.802539682540 & -3.30253968253969 \tabularnewline
59 & 115.2 & 110.362539682540 & 4.83746031746032 \tabularnewline
60 & 105.4 & 113.362539682540 & -7.96253968253969 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25929&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]123.9[/C][C]121.902010582011[/C][C]1.99798941798925[/C][/ROW]
[ROW][C]2[/C][C]124.9[/C][C]121.042010582011[/C][C]3.85798941798943[/C][/ROW]
[ROW][C]3[/C][C]112.7[/C][C]116.722010582011[/C][C]-4.02201058201055[/C][/ROW]
[ROW][C]4[/C][C]121.9[/C][C]117.502010582011[/C][C]4.39798941798944[/C][/ROW]
[ROW][C]5[/C][C]100.6[/C][C]106.902010582011[/C][C]-6.3020105820106[/C][/ROW]
[ROW][C]6[/C][C]104.3[/C][C]106.822010582011[/C][C]-2.52201058201058[/C][/ROW]
[ROW][C]7[/C][C]120.4[/C][C]120.382010582011[/C][C]0.0179894179894405[/C][/ROW]
[ROW][C]8[/C][C]107.5[/C][C]109.642010582011[/C][C]-2.14201058201057[/C][/ROW]
[ROW][C]9[/C][C]102.9[/C][C]108.442010582011[/C][C]-5.54201058201058[/C][/ROW]
[ROW][C]10[/C][C]125.6[/C][C]120.509735449735[/C][C]5.09026455026455[/C][/ROW]
[ROW][C]11[/C][C]107.5[/C][C]103.069735449735[/C][C]4.43026455026456[/C][/ROW]
[ROW][C]12[/C][C]108.8[/C][C]106.069735449735[/C][C]2.73026455026455[/C][/ROW]
[ROW][C]13[/C][C]128.4[/C][C]123.884867724868[/C][C]4.51513227513233[/C][/ROW]
[ROW][C]14[/C][C]121.1[/C][C]123.024867724868[/C][C]-1.92486772486772[/C][/ROW]
[ROW][C]15[/C][C]119.5[/C][C]118.704867724868[/C][C]0.795132275132277[/C][/ROW]
[ROW][C]16[/C][C]128.7[/C][C]119.484867724868[/C][C]9.21513227513227[/C][/ROW]
[ROW][C]17[/C][C]108.7[/C][C]108.884867724868[/C][C]-0.184867724867715[/C][/ROW]
[ROW][C]18[/C][C]105.5[/C][C]108.804867724868[/C][C]-3.30486772486772[/C][/ROW]
[ROW][C]19[/C][C]119.8[/C][C]122.364867724868[/C][C]-2.56486772486772[/C][/ROW]
[ROW][C]20[/C][C]111.3[/C][C]111.624867724868[/C][C]-0.324867724867722[/C][/ROW]
[ROW][C]21[/C][C]110.6[/C][C]110.424867724868[/C][C]0.175132275132281[/C][/ROW]
[ROW][C]22[/C][C]120.1[/C][C]122.492592592593[/C][C]-2.39259259259259[/C][/ROW]
[ROW][C]23[/C][C]97.5[/C][C]105.052592592593[/C][C]-7.55259259259259[/C][/ROW]
[ROW][C]24[/C][C]107.7[/C][C]108.052592592593[/C][C]-0.352592592592593[/C][/ROW]
[ROW][C]25[/C][C]127.3[/C][C]125.867724867725[/C][C]1.43227513227517[/C][/ROW]
[ROW][C]26[/C][C]117.2[/C][C]125.007724867725[/C][C]-7.80772486772487[/C][/ROW]
[ROW][C]27[/C][C]119.8[/C][C]120.687724867725[/C][C]-0.887724867724875[/C][/ROW]
[ROW][C]28[/C][C]116.2[/C][C]121.467724867725[/C][C]-5.26772486772487[/C][/ROW]
[ROW][C]29[/C][C]111[/C][C]110.867724867725[/C][C]0.132275132275134[/C][/ROW]
[ROW][C]30[/C][C]112.4[/C][C]110.787724867725[/C][C]1.61227513227514[/C][/ROW]
[ROW][C]31[/C][C]130.6[/C][C]124.347724867725[/C][C]6.25227513227513[/C][/ROW]
[ROW][C]32[/C][C]109.1[/C][C]113.607724867725[/C][C]-4.50772486772487[/C][/ROW]
[ROW][C]33[/C][C]118.8[/C][C]112.407724867725[/C][C]6.39227513227513[/C][/ROW]
[ROW][C]34[/C][C]123.9[/C][C]124.475449735450[/C][C]-0.575449735449732[/C][/ROW]
[ROW][C]35[/C][C]101.6[/C][C]107.035449735450[/C][C]-5.43544973544975[/C][/ROW]
[ROW][C]36[/C][C]112.8[/C][C]110.035449735450[/C][C]2.76455026455025[/C][/ROW]
[ROW][C]37[/C][C]128[/C][C]127.850582010582[/C][C]0.149417989418024[/C][/ROW]
[ROW][C]38[/C][C]129.6[/C][C]126.990582010582[/C][C]2.60941798941798[/C][/ROW]
[ROW][C]39[/C][C]125.8[/C][C]122.670582010582[/C][C]3.12941798941798[/C][/ROW]
[ROW][C]40[/C][C]119.5[/C][C]123.450582010582[/C][C]-3.95058201058202[/C][/ROW]
[ROW][C]41[/C][C]115.7[/C][C]112.850582010582[/C][C]2.84941798941799[/C][/ROW]
[ROW][C]42[/C][C]113.6[/C][C]112.770582010582[/C][C]0.829417989417978[/C][/ROW]
[ROW][C]43[/C][C]129.7[/C][C]126.330582010582[/C][C]3.36941798941797[/C][/ROW]
[ROW][C]44[/C][C]112[/C][C]115.590582010582[/C][C]-3.59058201058202[/C][/ROW]
[ROW][C]45[/C][C]116.8[/C][C]114.390582010582[/C][C]2.40941798941799[/C][/ROW]
[ROW][C]46[/C][C]127[/C][C]125.819682539683[/C][C]1.18031746031746[/C][/ROW]
[ROW][C]47[/C][C]112.1[/C][C]108.379682539683[/C][C]3.72031746031746[/C][/ROW]
[ROW][C]48[/C][C]114.2[/C][C]111.379682539683[/C][C]2.82031746031746[/C][/ROW]
[ROW][C]49[/C][C]121.1[/C][C]129.194814814815[/C][C]-8.09481481481478[/C][/ROW]
[ROW][C]50[/C][C]131.6[/C][C]128.334814814815[/C][C]3.26518518518518[/C][/ROW]
[ROW][C]51[/C][C]125[/C][C]124.014814814815[/C][C]0.98518518518518[/C][/ROW]
[ROW][C]52[/C][C]120.4[/C][C]124.794814814815[/C][C]-4.39481481481481[/C][/ROW]
[ROW][C]53[/C][C]117.7[/C][C]114.194814814815[/C][C]3.50518518518519[/C][/ROW]
[ROW][C]54[/C][C]117.5[/C][C]114.114814814815[/C][C]3.38518518518518[/C][/ROW]
[ROW][C]55[/C][C]120.6[/C][C]127.674814814815[/C][C]-7.07481481481482[/C][/ROW]
[ROW][C]56[/C][C]127.5[/C][C]116.934814814815[/C][C]10.5651851851852[/C][/ROW]
[ROW][C]57[/C][C]112.3[/C][C]115.734814814815[/C][C]-3.43481481481481[/C][/ROW]
[ROW][C]58[/C][C]124.5[/C][C]127.802539682540[/C][C]-3.30253968253969[/C][/ROW]
[ROW][C]59[/C][C]115.2[/C][C]110.362539682540[/C][C]4.83746031746032[/C][/ROW]
[ROW][C]60[/C][C]105.4[/C][C]113.362539682540[/C][C]-7.96253968253969[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25929&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25929&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
1123.9121.9020105820111.99798941798925
2124.9121.0420105820113.85798941798943
3112.7116.722010582011-4.02201058201055
4121.9117.5020105820114.39798941798944
5100.6106.902010582011-6.3020105820106
6104.3106.822010582011-2.52201058201058
7120.4120.3820105820110.0179894179894405
8107.5109.642010582011-2.14201058201057
9102.9108.442010582011-5.54201058201058
10125.6120.5097354497355.09026455026455
11107.5103.0697354497354.43026455026456
12108.8106.0697354497352.73026455026455
13128.4123.8848677248684.51513227513233
14121.1123.024867724868-1.92486772486772
15119.5118.7048677248680.795132275132277
16128.7119.4848677248689.21513227513227
17108.7108.884867724868-0.184867724867715
18105.5108.804867724868-3.30486772486772
19119.8122.364867724868-2.56486772486772
20111.3111.624867724868-0.324867724867722
21110.6110.4248677248680.175132275132281
22120.1122.492592592593-2.39259259259259
2397.5105.052592592593-7.55259259259259
24107.7108.052592592593-0.352592592592593
25127.3125.8677248677251.43227513227517
26117.2125.007724867725-7.80772486772487
27119.8120.687724867725-0.887724867724875
28116.2121.467724867725-5.26772486772487
29111110.8677248677250.132275132275134
30112.4110.7877248677251.61227513227514
31130.6124.3477248677256.25227513227513
32109.1113.607724867725-4.50772486772487
33118.8112.4077248677256.39227513227513
34123.9124.475449735450-0.575449735449732
35101.6107.035449735450-5.43544973544975
36112.8110.0354497354502.76455026455025
37128127.8505820105820.149417989418024
38129.6126.9905820105822.60941798941798
39125.8122.6705820105823.12941798941798
40119.5123.450582010582-3.95058201058202
41115.7112.8505820105822.84941798941799
42113.6112.7705820105820.829417989417978
43129.7126.3305820105823.36941798941797
44112115.590582010582-3.59058201058202
45116.8114.3905820105822.40941798941799
46127125.8196825396831.18031746031746
47112.1108.3796825396833.72031746031746
48114.2111.3796825396832.82031746031746
49121.1129.194814814815-8.09481481481478
50131.6128.3348148148153.26518518518518
51125124.0148148148150.98518518518518
52120.4124.794814814815-4.39481481481481
53117.7114.1948148148153.50518518518519
54117.5114.1148148148153.38518518518518
55120.6127.674814814815-7.07481481481482
56127.5116.93481481481510.5651851851852
57112.3115.734814814815-3.43481481481481
58124.5127.802539682540-3.30253968253969
59115.2110.3625396825404.83746031746032
60105.4113.362539682540-7.96253968253969







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.4292972446367620.8585944892735230.570702755363238
180.2990038095216090.5980076190432170.700996190478391
190.2266029719203780.4532059438407550.773397028079622
200.1291940620446440.2583881240892890.870805937955356
210.09368432978757470.1873686595751490.906315670212425
220.1566848147317130.3133696294634250.843315185268287
230.3736261113665930.7472522227331850.626373888633407
240.2819083740430360.5638167480860730.718091625956964
250.2134154500123910.4268309000247830.786584549987609
260.3121777269526510.6243554539053010.68782227304735
270.2500676401497420.5001352802994840.749932359850258
280.3208024518644920.6416049037289840.679197548135508
290.3093293435970550.618658687194110.690670656402945
300.2877590209188720.5755180418377440.712240979081128
310.3326446124960770.6652892249921540.667355387503923
320.3849019732843360.7698039465686730.615098026715664
330.4138836644417520.8277673288835040.586116335558248
340.3193503773522500.6387007547044990.68064962264775
350.4800442469792970.9600884939585930.519955753020703
360.3835872356583040.7671744713166080.616412764341696
370.370077546957790.740155093915580.62992245304221
380.293054150141550.58610830028310.70694584985845
390.2206357093564170.4412714187128330.779364290643583
400.1648130909807950.329626181961590.835186909019205
410.1074659829606510.2149319659213010.89253401703935
420.06089142310046890.1217828462009380.939108576899531
430.09794669856415830.1958933971283170.902053301435842

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.429297244636762 & 0.858594489273523 & 0.570702755363238 \tabularnewline
18 & 0.299003809521609 & 0.598007619043217 & 0.700996190478391 \tabularnewline
19 & 0.226602971920378 & 0.453205943840755 & 0.773397028079622 \tabularnewline
20 & 0.129194062044644 & 0.258388124089289 & 0.870805937955356 \tabularnewline
21 & 0.0936843297875747 & 0.187368659575149 & 0.906315670212425 \tabularnewline
22 & 0.156684814731713 & 0.313369629463425 & 0.843315185268287 \tabularnewline
23 & 0.373626111366593 & 0.747252222733185 & 0.626373888633407 \tabularnewline
24 & 0.281908374043036 & 0.563816748086073 & 0.718091625956964 \tabularnewline
25 & 0.213415450012391 & 0.426830900024783 & 0.786584549987609 \tabularnewline
26 & 0.312177726952651 & 0.624355453905301 & 0.68782227304735 \tabularnewline
27 & 0.250067640149742 & 0.500135280299484 & 0.749932359850258 \tabularnewline
28 & 0.320802451864492 & 0.641604903728984 & 0.679197548135508 \tabularnewline
29 & 0.309329343597055 & 0.61865868719411 & 0.690670656402945 \tabularnewline
30 & 0.287759020918872 & 0.575518041837744 & 0.712240979081128 \tabularnewline
31 & 0.332644612496077 & 0.665289224992154 & 0.667355387503923 \tabularnewline
32 & 0.384901973284336 & 0.769803946568673 & 0.615098026715664 \tabularnewline
33 & 0.413883664441752 & 0.827767328883504 & 0.586116335558248 \tabularnewline
34 & 0.319350377352250 & 0.638700754704499 & 0.68064962264775 \tabularnewline
35 & 0.480044246979297 & 0.960088493958593 & 0.519955753020703 \tabularnewline
36 & 0.383587235658304 & 0.767174471316608 & 0.616412764341696 \tabularnewline
37 & 0.37007754695779 & 0.74015509391558 & 0.62992245304221 \tabularnewline
38 & 0.29305415014155 & 0.5861083002831 & 0.70694584985845 \tabularnewline
39 & 0.220635709356417 & 0.441271418712833 & 0.779364290643583 \tabularnewline
40 & 0.164813090980795 & 0.32962618196159 & 0.835186909019205 \tabularnewline
41 & 0.107465982960651 & 0.214931965921301 & 0.89253401703935 \tabularnewline
42 & 0.0608914231004689 & 0.121782846200938 & 0.939108576899531 \tabularnewline
43 & 0.0979466985641583 & 0.195893397128317 & 0.902053301435842 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25929&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]17[/C][C]0.429297244636762[/C][C]0.858594489273523[/C][C]0.570702755363238[/C][/ROW]
[ROW][C]18[/C][C]0.299003809521609[/C][C]0.598007619043217[/C][C]0.700996190478391[/C][/ROW]
[ROW][C]19[/C][C]0.226602971920378[/C][C]0.453205943840755[/C][C]0.773397028079622[/C][/ROW]
[ROW][C]20[/C][C]0.129194062044644[/C][C]0.258388124089289[/C][C]0.870805937955356[/C][/ROW]
[ROW][C]21[/C][C]0.0936843297875747[/C][C]0.187368659575149[/C][C]0.906315670212425[/C][/ROW]
[ROW][C]22[/C][C]0.156684814731713[/C][C]0.313369629463425[/C][C]0.843315185268287[/C][/ROW]
[ROW][C]23[/C][C]0.373626111366593[/C][C]0.747252222733185[/C][C]0.626373888633407[/C][/ROW]
[ROW][C]24[/C][C]0.281908374043036[/C][C]0.563816748086073[/C][C]0.718091625956964[/C][/ROW]
[ROW][C]25[/C][C]0.213415450012391[/C][C]0.426830900024783[/C][C]0.786584549987609[/C][/ROW]
[ROW][C]26[/C][C]0.312177726952651[/C][C]0.624355453905301[/C][C]0.68782227304735[/C][/ROW]
[ROW][C]27[/C][C]0.250067640149742[/C][C]0.500135280299484[/C][C]0.749932359850258[/C][/ROW]
[ROW][C]28[/C][C]0.320802451864492[/C][C]0.641604903728984[/C][C]0.679197548135508[/C][/ROW]
[ROW][C]29[/C][C]0.309329343597055[/C][C]0.61865868719411[/C][C]0.690670656402945[/C][/ROW]
[ROW][C]30[/C][C]0.287759020918872[/C][C]0.575518041837744[/C][C]0.712240979081128[/C][/ROW]
[ROW][C]31[/C][C]0.332644612496077[/C][C]0.665289224992154[/C][C]0.667355387503923[/C][/ROW]
[ROW][C]32[/C][C]0.384901973284336[/C][C]0.769803946568673[/C][C]0.615098026715664[/C][/ROW]
[ROW][C]33[/C][C]0.413883664441752[/C][C]0.827767328883504[/C][C]0.586116335558248[/C][/ROW]
[ROW][C]34[/C][C]0.319350377352250[/C][C]0.638700754704499[/C][C]0.68064962264775[/C][/ROW]
[ROW][C]35[/C][C]0.480044246979297[/C][C]0.960088493958593[/C][C]0.519955753020703[/C][/ROW]
[ROW][C]36[/C][C]0.383587235658304[/C][C]0.767174471316608[/C][C]0.616412764341696[/C][/ROW]
[ROW][C]37[/C][C]0.37007754695779[/C][C]0.74015509391558[/C][C]0.62992245304221[/C][/ROW]
[ROW][C]38[/C][C]0.29305415014155[/C][C]0.5861083002831[/C][C]0.70694584985845[/C][/ROW]
[ROW][C]39[/C][C]0.220635709356417[/C][C]0.441271418712833[/C][C]0.779364290643583[/C][/ROW]
[ROW][C]40[/C][C]0.164813090980795[/C][C]0.32962618196159[/C][C]0.835186909019205[/C][/ROW]
[ROW][C]41[/C][C]0.107465982960651[/C][C]0.214931965921301[/C][C]0.89253401703935[/C][/ROW]
[ROW][C]42[/C][C]0.0608914231004689[/C][C]0.121782846200938[/C][C]0.939108576899531[/C][/ROW]
[ROW][C]43[/C][C]0.0979466985641583[/C][C]0.195893397128317[/C][C]0.902053301435842[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25929&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25929&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
170.4292972446367620.8585944892735230.570702755363238
180.2990038095216090.5980076190432170.700996190478391
190.2266029719203780.4532059438407550.773397028079622
200.1291940620446440.2583881240892890.870805937955356
210.09368432978757470.1873686595751490.906315670212425
220.1566848147317130.3133696294634250.843315185268287
230.3736261113665930.7472522227331850.626373888633407
240.2819083740430360.5638167480860730.718091625956964
250.2134154500123910.4268309000247830.786584549987609
260.3121777269526510.6243554539053010.68782227304735
270.2500676401497420.5001352802994840.749932359850258
280.3208024518644920.6416049037289840.679197548135508
290.3093293435970550.618658687194110.690670656402945
300.2877590209188720.5755180418377440.712240979081128
310.3326446124960770.6652892249921540.667355387503923
320.3849019732843360.7698039465686730.615098026715664
330.4138836644417520.8277673288835040.586116335558248
340.3193503773522500.6387007547044990.68064962264775
350.4800442469792970.9600884939585930.519955753020703
360.3835872356583040.7671744713166080.616412764341696
370.370077546957790.740155093915580.62992245304221
380.293054150141550.58610830028310.70694584985845
390.2206357093564170.4412714187128330.779364290643583
400.1648130909807950.329626181961590.835186909019205
410.1074659829606510.2149319659213010.89253401703935
420.06089142310046890.1217828462009380.939108576899531
430.09794669856415830.1958933971283170.902053301435842







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 level00OK

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

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



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