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 computationSat, 28 Nov 2009 06:21:44 -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/28/t1259414869oqmvp9ufuk22bh3.htm/, Retrieved Fri, 03 May 2024 09:04:55 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61462, Retrieved Fri, 03 May 2024 09:04:55 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact110
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 14:03:14] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [trend] [2009-11-28 13:21:44] [df67ec12d4744494b58d8461e1971283] [Current]
Feedback Forum

Post a new message
Dataseries X:
4.3	29
3.9	31
4	31
4.3	33
4.8	37
4.4	30
4.3	20
4.7	19
4.7	17
4.9	22
5	12
4.2	25
4.3	25
4.8	29
4.8	32
4.8	31
4.2	28
4.6	28
4.8	28
4.5	32
4.4	35
4.3	30
3.9	32
3.7	38
4	37
4.1	28
3.7	34
3.8	35
3.8	32
3.8	39
3.3	37
3.3	38
3.3	35
3.2	25
3.4	25
4.2	26
4.9	13
5.1	19
5.5	17
5.6	21
6.4	23
6.1	18
7.1	12
7.8	7
7.9	4
7.4	14
7.5	16
6.8	13
5.2	13
4.7	10
4.1	19
3.9	13
2.6	14
2.7	25
1.8	28
1	30
0.3	31
1.3	42
1	41
1.1	38




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61462&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
Consumentenprijsindex[t] = + 8.77006033367237 -0.127910580491935Consumentenvertrouwen[t] -0.411561028009571M1[t] -0.398545359123509M2[t] -0.0562158326632557M3[t] + 0.0367998362228047M4[t] -0.0246023787927469M5[t] + 0.121905986683635M6[t] -0.288810085906110M7[t] -0.230212300921662M8[t] -0.43952509642915M9[t] -0.0251061504608312M10[t] -0.231165294263479M11[t] -0.0330156688860606t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Consumentenprijsindex[t] =  +  8.77006033367237 -0.127910580491935Consumentenvertrouwen[t] -0.411561028009571M1[t] -0.398545359123509M2[t] -0.0562158326632557M3[t] +  0.0367998362228047M4[t] -0.0246023787927469M5[t] +  0.121905986683635M6[t] -0.288810085906110M7[t] -0.230212300921662M8[t] -0.43952509642915M9[t] -0.0251061504608312M10[t] -0.231165294263479M11[t] -0.0330156688860606t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61462&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Consumentenprijsindex[t] =  +  8.77006033367237 -0.127910580491935Consumentenvertrouwen[t] -0.411561028009571M1[t] -0.398545359123509M2[t] -0.0562158326632557M3[t] +  0.0367998362228047M4[t] -0.0246023787927469M5[t] +  0.121905986683635M6[t] -0.288810085906110M7[t] -0.230212300921662M8[t] -0.43952509642915M9[t] -0.0251061504608312M10[t] -0.231165294263479M11[t] -0.0330156688860606t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61462&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61462&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
Consumentenprijsindex[t] = + 8.77006033367237 -0.127910580491935Consumentenvertrouwen[t] -0.411561028009571M1[t] -0.398545359123509M2[t] -0.0562158326632557M3[t] + 0.0367998362228047M4[t] -0.0246023787927469M5[t] + 0.121905986683635M6[t] -0.288810085906110M7[t] -0.230212300921662M8[t] -0.43952509642915M9[t] -0.0251061504608312M10[t] -0.231165294263479M11[t] -0.0330156688860606t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.770060333672370.86318110.160200
Consumentenvertrouwen-0.1279105804919350.017724-7.216800
M1-0.4115610280095710.782238-0.52610.6013230.300662
M2-0.3985453591235090.780763-0.51050.6121730.306086
M3-0.05621583266325570.773942-0.07260.9424110.471205
M40.03679983622280470.7728640.04760.9622290.481115
M5-0.02460237879274690.771719-0.03190.9747060.487353
M60.1219059866836350.7701940.15830.8749290.437465
M7-0.2888100859061100.772205-0.3740.7101180.355059
M8-0.2302123009216620.771228-0.29850.7666650.383333
M9-0.439525096429150.771835-0.56950.5718180.285909
M10-0.02510615046083120.768855-0.03270.9740920.487046
M11-0.2311652942634790.769878-0.30030.765330.382665
t-0.03301566888606060.009545-3.45890.001180.00059

\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) & 8.77006033367237 & 0.863181 & 10.1602 & 0 & 0 \tabularnewline
Consumentenvertrouwen & -0.127910580491935 & 0.017724 & -7.2168 & 0 & 0 \tabularnewline
M1 & -0.411561028009571 & 0.782238 & -0.5261 & 0.601323 & 0.300662 \tabularnewline
M2 & -0.398545359123509 & 0.780763 & -0.5105 & 0.612173 & 0.306086 \tabularnewline
M3 & -0.0562158326632557 & 0.773942 & -0.0726 & 0.942411 & 0.471205 \tabularnewline
M4 & 0.0367998362228047 & 0.772864 & 0.0476 & 0.962229 & 0.481115 \tabularnewline
M5 & -0.0246023787927469 & 0.771719 & -0.0319 & 0.974706 & 0.487353 \tabularnewline
M6 & 0.121905986683635 & 0.770194 & 0.1583 & 0.874929 & 0.437465 \tabularnewline
M7 & -0.288810085906110 & 0.772205 & -0.374 & 0.710118 & 0.355059 \tabularnewline
M8 & -0.230212300921662 & 0.771228 & -0.2985 & 0.766665 & 0.383333 \tabularnewline
M9 & -0.43952509642915 & 0.771835 & -0.5695 & 0.571818 & 0.285909 \tabularnewline
M10 & -0.0251061504608312 & 0.768855 & -0.0327 & 0.974092 & 0.487046 \tabularnewline
M11 & -0.231165294263479 & 0.769878 & -0.3003 & 0.76533 & 0.382665 \tabularnewline
t & -0.0330156688860606 & 0.009545 & -3.4589 & 0.00118 & 0.00059 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61462&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]8.77006033367237[/C][C]0.863181[/C][C]10.1602[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Consumentenvertrouwen[/C][C]-0.127910580491935[/C][C]0.017724[/C][C]-7.2168[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.411561028009571[/C][C]0.782238[/C][C]-0.5261[/C][C]0.601323[/C][C]0.300662[/C][/ROW]
[ROW][C]M2[/C][C]-0.398545359123509[/C][C]0.780763[/C][C]-0.5105[/C][C]0.612173[/C][C]0.306086[/C][/ROW]
[ROW][C]M3[/C][C]-0.0562158326632557[/C][C]0.773942[/C][C]-0.0726[/C][C]0.942411[/C][C]0.471205[/C][/ROW]
[ROW][C]M4[/C][C]0.0367998362228047[/C][C]0.772864[/C][C]0.0476[/C][C]0.962229[/C][C]0.481115[/C][/ROW]
[ROW][C]M5[/C][C]-0.0246023787927469[/C][C]0.771719[/C][C]-0.0319[/C][C]0.974706[/C][C]0.487353[/C][/ROW]
[ROW][C]M6[/C][C]0.121905986683635[/C][C]0.770194[/C][C]0.1583[/C][C]0.874929[/C][C]0.437465[/C][/ROW]
[ROW][C]M7[/C][C]-0.288810085906110[/C][C]0.772205[/C][C]-0.374[/C][C]0.710118[/C][C]0.355059[/C][/ROW]
[ROW][C]M8[/C][C]-0.230212300921662[/C][C]0.771228[/C][C]-0.2985[/C][C]0.766665[/C][C]0.383333[/C][/ROW]
[ROW][C]M9[/C][C]-0.43952509642915[/C][C]0.771835[/C][C]-0.5695[/C][C]0.571818[/C][C]0.285909[/C][/ROW]
[ROW][C]M10[/C][C]-0.0251061504608312[/C][C]0.768855[/C][C]-0.0327[/C][C]0.974092[/C][C]0.487046[/C][/ROW]
[ROW][C]M11[/C][C]-0.231165294263479[/C][C]0.769878[/C][C]-0.3003[/C][C]0.76533[/C][C]0.382665[/C][/ROW]
[ROW][C]t[/C][C]-0.0330156688860606[/C][C]0.009545[/C][C]-3.4589[/C][C]0.00118[/C][C]0.00059[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61462&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61462&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)8.770060333672370.86318110.160200
Consumentenvertrouwen-0.1279105804919350.017724-7.216800
M1-0.4115610280095710.782238-0.52610.6013230.300662
M2-0.3985453591235090.780763-0.51050.6121730.306086
M3-0.05621583266325570.773942-0.07260.9424110.471205
M40.03679983622280470.7728640.04760.9622290.481115
M5-0.02460237879274690.771719-0.03190.9747060.487353
M60.1219059866836350.7701940.15830.8749290.437465
M7-0.2888100859061100.772205-0.3740.7101180.355059
M8-0.2302123009216620.771228-0.29850.7666650.383333
M9-0.439525096429150.771835-0.56950.5718180.285909
M10-0.02510615046083120.768855-0.03270.9740920.487046
M11-0.2311652942634790.769878-0.30030.765330.382665
t-0.03301566888606060.009545-3.45890.001180.00059







Multiple Linear Regression - Regression Statistics
Multiple R0.740997145924228
R-squared0.549076770267851
Adjusted R-squared0.421641944473983
F-TEST (value)4.30868694524689
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.000109703653049742
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.21441275420385
Sum Squared Residuals67.8407235283572

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.740997145924228 \tabularnewline
R-squared & 0.549076770267851 \tabularnewline
Adjusted R-squared & 0.421641944473983 \tabularnewline
F-TEST (value) & 4.30868694524689 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.000109703653049742 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.21441275420385 \tabularnewline
Sum Squared Residuals & 67.8407235283572 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61462&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.740997145924228[/C][/ROW]
[ROW][C]R-squared[/C][C]0.549076770267851[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.421641944473983[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.30868694524689[/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]0.000109703653049742[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1.21441275420385[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]67.8407235283572[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61462&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61462&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.740997145924228
R-squared0.549076770267851
Adjusted R-squared0.421641944473983
F-TEST (value)4.30868694524689
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.000109703653049742
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.21441275420385
Sum Squared Residuals67.8407235283572







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
14.34.61607680251063-0.316076802510629
23.94.34025564152675-0.440255641526751
344.64956949910094-0.649569499100941
44.34.45374833811707-0.153748338117071
54.83.847688132247720.952311867752282
64.44.85655489228158-0.456554892281584
74.35.69192895572513-1.39192895572513
84.75.84542165231545-1.14542165231545
94.75.85891434890577-1.15891434890577
104.95.60076472352836-0.700764723528356
1156.640795715759-1.640795715759
124.25.17610779474126-0.976107794741261
134.34.73153109784563-0.431531097845629
144.84.199888775877890.60011122412211
154.84.125470891976280.674529108023722
164.84.313381472468210.486618527531787
174.24.60269533004241-0.402695330042405
184.64.71618802663273-0.116188026632728
194.84.272456285156920.527543714843078
204.53.786396079287570.713603920712431
214.43.160335873418221.23966412658178
224.34.181292052960150.118707947039852
233.93.686396079287570.213603920712431
243.73.117082221713380.582917778286623
2542.800416105309681.19958389469032
264.13.93161132973710.168388670262902
273.73.473461704359680.22653829564032
283.83.405551123867740.394448876132255
293.83.694864981441940.105135018558062
303.82.912983614588710.887016385411286
313.32.725073034096780.574926965903221
323.32.622744569703230.67725543029677
333.32.764147846785490.535852153214513
343.24.42465692878710-1.22465692878710
353.44.18558211609839-0.785582116098387
364.24.25582116098387-0.0558211609838709
374.95.47408201048339-0.574082010483395
385.14.686618527531790.413381472468213
395.55.251753546089850.248246453910151
405.64.800111224122110.79988877587789
416.44.449872179236621.95012782076338
426.15.202917778286620.897082221713376
437.15.526649519762431.57335048023757
447.86.191784538320491.60821546167951
457.96.333187815402751.56681218459725
467.45.435485287565651.96451471243435
477.54.940589313893082.55941068610692
486.85.52247068074631.2775293192537
495.25.077893983850670.122106016149333
504.75.44162572532647-0.741625725326475
514.14.59974435847325-0.499744358473252
523.95.42720784142486-1.52720784142486
532.65.20487937703131-2.60487937703131
542.73.91135568821035-1.21135568821035
551.83.08389220525874-1.28389220525874
5612.85365316037326-1.85365316037326
570.32.48341411548777-2.18341411548777
581.31.45780100715874-0.157801007158744
5911.34663677496197-0.34663677496197
601.11.92851814181519-0.828518141815194

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 4.3 & 4.61607680251063 & -0.316076802510629 \tabularnewline
2 & 3.9 & 4.34025564152675 & -0.440255641526751 \tabularnewline
3 & 4 & 4.64956949910094 & -0.649569499100941 \tabularnewline
4 & 4.3 & 4.45374833811707 & -0.153748338117071 \tabularnewline
5 & 4.8 & 3.84768813224772 & 0.952311867752282 \tabularnewline
6 & 4.4 & 4.85655489228158 & -0.456554892281584 \tabularnewline
7 & 4.3 & 5.69192895572513 & -1.39192895572513 \tabularnewline
8 & 4.7 & 5.84542165231545 & -1.14542165231545 \tabularnewline
9 & 4.7 & 5.85891434890577 & -1.15891434890577 \tabularnewline
10 & 4.9 & 5.60076472352836 & -0.700764723528356 \tabularnewline
11 & 5 & 6.640795715759 & -1.640795715759 \tabularnewline
12 & 4.2 & 5.17610779474126 & -0.976107794741261 \tabularnewline
13 & 4.3 & 4.73153109784563 & -0.431531097845629 \tabularnewline
14 & 4.8 & 4.19988877587789 & 0.60011122412211 \tabularnewline
15 & 4.8 & 4.12547089197628 & 0.674529108023722 \tabularnewline
16 & 4.8 & 4.31338147246821 & 0.486618527531787 \tabularnewline
17 & 4.2 & 4.60269533004241 & -0.402695330042405 \tabularnewline
18 & 4.6 & 4.71618802663273 & -0.116188026632728 \tabularnewline
19 & 4.8 & 4.27245628515692 & 0.527543714843078 \tabularnewline
20 & 4.5 & 3.78639607928757 & 0.713603920712431 \tabularnewline
21 & 4.4 & 3.16033587341822 & 1.23966412658178 \tabularnewline
22 & 4.3 & 4.18129205296015 & 0.118707947039852 \tabularnewline
23 & 3.9 & 3.68639607928757 & 0.213603920712431 \tabularnewline
24 & 3.7 & 3.11708222171338 & 0.582917778286623 \tabularnewline
25 & 4 & 2.80041610530968 & 1.19958389469032 \tabularnewline
26 & 4.1 & 3.9316113297371 & 0.168388670262902 \tabularnewline
27 & 3.7 & 3.47346170435968 & 0.22653829564032 \tabularnewline
28 & 3.8 & 3.40555112386774 & 0.394448876132255 \tabularnewline
29 & 3.8 & 3.69486498144194 & 0.105135018558062 \tabularnewline
30 & 3.8 & 2.91298361458871 & 0.887016385411286 \tabularnewline
31 & 3.3 & 2.72507303409678 & 0.574926965903221 \tabularnewline
32 & 3.3 & 2.62274456970323 & 0.67725543029677 \tabularnewline
33 & 3.3 & 2.76414784678549 & 0.535852153214513 \tabularnewline
34 & 3.2 & 4.42465692878710 & -1.22465692878710 \tabularnewline
35 & 3.4 & 4.18558211609839 & -0.785582116098387 \tabularnewline
36 & 4.2 & 4.25582116098387 & -0.0558211609838709 \tabularnewline
37 & 4.9 & 5.47408201048339 & -0.574082010483395 \tabularnewline
38 & 5.1 & 4.68661852753179 & 0.413381472468213 \tabularnewline
39 & 5.5 & 5.25175354608985 & 0.248246453910151 \tabularnewline
40 & 5.6 & 4.80011122412211 & 0.79988877587789 \tabularnewline
41 & 6.4 & 4.44987217923662 & 1.95012782076338 \tabularnewline
42 & 6.1 & 5.20291777828662 & 0.897082221713376 \tabularnewline
43 & 7.1 & 5.52664951976243 & 1.57335048023757 \tabularnewline
44 & 7.8 & 6.19178453832049 & 1.60821546167951 \tabularnewline
45 & 7.9 & 6.33318781540275 & 1.56681218459725 \tabularnewline
46 & 7.4 & 5.43548528756565 & 1.96451471243435 \tabularnewline
47 & 7.5 & 4.94058931389308 & 2.55941068610692 \tabularnewline
48 & 6.8 & 5.5224706807463 & 1.2775293192537 \tabularnewline
49 & 5.2 & 5.07789398385067 & 0.122106016149333 \tabularnewline
50 & 4.7 & 5.44162572532647 & -0.741625725326475 \tabularnewline
51 & 4.1 & 4.59974435847325 & -0.499744358473252 \tabularnewline
52 & 3.9 & 5.42720784142486 & -1.52720784142486 \tabularnewline
53 & 2.6 & 5.20487937703131 & -2.60487937703131 \tabularnewline
54 & 2.7 & 3.91135568821035 & -1.21135568821035 \tabularnewline
55 & 1.8 & 3.08389220525874 & -1.28389220525874 \tabularnewline
56 & 1 & 2.85365316037326 & -1.85365316037326 \tabularnewline
57 & 0.3 & 2.48341411548777 & -2.18341411548777 \tabularnewline
58 & 1.3 & 1.45780100715874 & -0.157801007158744 \tabularnewline
59 & 1 & 1.34663677496197 & -0.34663677496197 \tabularnewline
60 & 1.1 & 1.92851814181519 & -0.828518141815194 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61462&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]4.3[/C][C]4.61607680251063[/C][C]-0.316076802510629[/C][/ROW]
[ROW][C]2[/C][C]3.9[/C][C]4.34025564152675[/C][C]-0.440255641526751[/C][/ROW]
[ROW][C]3[/C][C]4[/C][C]4.64956949910094[/C][C]-0.649569499100941[/C][/ROW]
[ROW][C]4[/C][C]4.3[/C][C]4.45374833811707[/C][C]-0.153748338117071[/C][/ROW]
[ROW][C]5[/C][C]4.8[/C][C]3.84768813224772[/C][C]0.952311867752282[/C][/ROW]
[ROW][C]6[/C][C]4.4[/C][C]4.85655489228158[/C][C]-0.456554892281584[/C][/ROW]
[ROW][C]7[/C][C]4.3[/C][C]5.69192895572513[/C][C]-1.39192895572513[/C][/ROW]
[ROW][C]8[/C][C]4.7[/C][C]5.84542165231545[/C][C]-1.14542165231545[/C][/ROW]
[ROW][C]9[/C][C]4.7[/C][C]5.85891434890577[/C][C]-1.15891434890577[/C][/ROW]
[ROW][C]10[/C][C]4.9[/C][C]5.60076472352836[/C][C]-0.700764723528356[/C][/ROW]
[ROW][C]11[/C][C]5[/C][C]6.640795715759[/C][C]-1.640795715759[/C][/ROW]
[ROW][C]12[/C][C]4.2[/C][C]5.17610779474126[/C][C]-0.976107794741261[/C][/ROW]
[ROW][C]13[/C][C]4.3[/C][C]4.73153109784563[/C][C]-0.431531097845629[/C][/ROW]
[ROW][C]14[/C][C]4.8[/C][C]4.19988877587789[/C][C]0.60011122412211[/C][/ROW]
[ROW][C]15[/C][C]4.8[/C][C]4.12547089197628[/C][C]0.674529108023722[/C][/ROW]
[ROW][C]16[/C][C]4.8[/C][C]4.31338147246821[/C][C]0.486618527531787[/C][/ROW]
[ROW][C]17[/C][C]4.2[/C][C]4.60269533004241[/C][C]-0.402695330042405[/C][/ROW]
[ROW][C]18[/C][C]4.6[/C][C]4.71618802663273[/C][C]-0.116188026632728[/C][/ROW]
[ROW][C]19[/C][C]4.8[/C][C]4.27245628515692[/C][C]0.527543714843078[/C][/ROW]
[ROW][C]20[/C][C]4.5[/C][C]3.78639607928757[/C][C]0.713603920712431[/C][/ROW]
[ROW][C]21[/C][C]4.4[/C][C]3.16033587341822[/C][C]1.23966412658178[/C][/ROW]
[ROW][C]22[/C][C]4.3[/C][C]4.18129205296015[/C][C]0.118707947039852[/C][/ROW]
[ROW][C]23[/C][C]3.9[/C][C]3.68639607928757[/C][C]0.213603920712431[/C][/ROW]
[ROW][C]24[/C][C]3.7[/C][C]3.11708222171338[/C][C]0.582917778286623[/C][/ROW]
[ROW][C]25[/C][C]4[/C][C]2.80041610530968[/C][C]1.19958389469032[/C][/ROW]
[ROW][C]26[/C][C]4.1[/C][C]3.9316113297371[/C][C]0.168388670262902[/C][/ROW]
[ROW][C]27[/C][C]3.7[/C][C]3.47346170435968[/C][C]0.22653829564032[/C][/ROW]
[ROW][C]28[/C][C]3.8[/C][C]3.40555112386774[/C][C]0.394448876132255[/C][/ROW]
[ROW][C]29[/C][C]3.8[/C][C]3.69486498144194[/C][C]0.105135018558062[/C][/ROW]
[ROW][C]30[/C][C]3.8[/C][C]2.91298361458871[/C][C]0.887016385411286[/C][/ROW]
[ROW][C]31[/C][C]3.3[/C][C]2.72507303409678[/C][C]0.574926965903221[/C][/ROW]
[ROW][C]32[/C][C]3.3[/C][C]2.62274456970323[/C][C]0.67725543029677[/C][/ROW]
[ROW][C]33[/C][C]3.3[/C][C]2.76414784678549[/C][C]0.535852153214513[/C][/ROW]
[ROW][C]34[/C][C]3.2[/C][C]4.42465692878710[/C][C]-1.22465692878710[/C][/ROW]
[ROW][C]35[/C][C]3.4[/C][C]4.18558211609839[/C][C]-0.785582116098387[/C][/ROW]
[ROW][C]36[/C][C]4.2[/C][C]4.25582116098387[/C][C]-0.0558211609838709[/C][/ROW]
[ROW][C]37[/C][C]4.9[/C][C]5.47408201048339[/C][C]-0.574082010483395[/C][/ROW]
[ROW][C]38[/C][C]5.1[/C][C]4.68661852753179[/C][C]0.413381472468213[/C][/ROW]
[ROW][C]39[/C][C]5.5[/C][C]5.25175354608985[/C][C]0.248246453910151[/C][/ROW]
[ROW][C]40[/C][C]5.6[/C][C]4.80011122412211[/C][C]0.79988877587789[/C][/ROW]
[ROW][C]41[/C][C]6.4[/C][C]4.44987217923662[/C][C]1.95012782076338[/C][/ROW]
[ROW][C]42[/C][C]6.1[/C][C]5.20291777828662[/C][C]0.897082221713376[/C][/ROW]
[ROW][C]43[/C][C]7.1[/C][C]5.52664951976243[/C][C]1.57335048023757[/C][/ROW]
[ROW][C]44[/C][C]7.8[/C][C]6.19178453832049[/C][C]1.60821546167951[/C][/ROW]
[ROW][C]45[/C][C]7.9[/C][C]6.33318781540275[/C][C]1.56681218459725[/C][/ROW]
[ROW][C]46[/C][C]7.4[/C][C]5.43548528756565[/C][C]1.96451471243435[/C][/ROW]
[ROW][C]47[/C][C]7.5[/C][C]4.94058931389308[/C][C]2.55941068610692[/C][/ROW]
[ROW][C]48[/C][C]6.8[/C][C]5.5224706807463[/C][C]1.2775293192537[/C][/ROW]
[ROW][C]49[/C][C]5.2[/C][C]5.07789398385067[/C][C]0.122106016149333[/C][/ROW]
[ROW][C]50[/C][C]4.7[/C][C]5.44162572532647[/C][C]-0.741625725326475[/C][/ROW]
[ROW][C]51[/C][C]4.1[/C][C]4.59974435847325[/C][C]-0.499744358473252[/C][/ROW]
[ROW][C]52[/C][C]3.9[/C][C]5.42720784142486[/C][C]-1.52720784142486[/C][/ROW]
[ROW][C]53[/C][C]2.6[/C][C]5.20487937703131[/C][C]-2.60487937703131[/C][/ROW]
[ROW][C]54[/C][C]2.7[/C][C]3.91135568821035[/C][C]-1.21135568821035[/C][/ROW]
[ROW][C]55[/C][C]1.8[/C][C]3.08389220525874[/C][C]-1.28389220525874[/C][/ROW]
[ROW][C]56[/C][C]1[/C][C]2.85365316037326[/C][C]-1.85365316037326[/C][/ROW]
[ROW][C]57[/C][C]0.3[/C][C]2.48341411548777[/C][C]-2.18341411548777[/C][/ROW]
[ROW][C]58[/C][C]1.3[/C][C]1.45780100715874[/C][C]-0.157801007158744[/C][/ROW]
[ROW][C]59[/C][C]1[/C][C]1.34663677496197[/C][C]-0.34663677496197[/C][/ROW]
[ROW][C]60[/C][C]1.1[/C][C]1.92851814181519[/C][C]-0.828518141815194[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61462&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61462&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
14.34.61607680251063-0.316076802510629
23.94.34025564152675-0.440255641526751
344.64956949910094-0.649569499100941
44.34.45374833811707-0.153748338117071
54.83.847688132247720.952311867752282
64.44.85655489228158-0.456554892281584
74.35.69192895572513-1.39192895572513
84.75.84542165231545-1.14542165231545
94.75.85891434890577-1.15891434890577
104.95.60076472352836-0.700764723528356
1156.640795715759-1.640795715759
124.25.17610779474126-0.976107794741261
134.34.73153109784563-0.431531097845629
144.84.199888775877890.60011122412211
154.84.125470891976280.674529108023722
164.84.313381472468210.486618527531787
174.24.60269533004241-0.402695330042405
184.64.71618802663273-0.116188026632728
194.84.272456285156920.527543714843078
204.53.786396079287570.713603920712431
214.43.160335873418221.23966412658178
224.34.181292052960150.118707947039852
233.93.686396079287570.213603920712431
243.73.117082221713380.582917778286623
2542.800416105309681.19958389469032
264.13.93161132973710.168388670262902
273.73.473461704359680.22653829564032
283.83.405551123867740.394448876132255
293.83.694864981441940.105135018558062
303.82.912983614588710.887016385411286
313.32.725073034096780.574926965903221
323.32.622744569703230.67725543029677
333.32.764147846785490.535852153214513
343.24.42465692878710-1.22465692878710
353.44.18558211609839-0.785582116098387
364.24.25582116098387-0.0558211609838709
374.95.47408201048339-0.574082010483395
385.14.686618527531790.413381472468213
395.55.251753546089850.248246453910151
405.64.800111224122110.79988877587789
416.44.449872179236621.95012782076338
426.15.202917778286620.897082221713376
437.15.526649519762431.57335048023757
447.86.191784538320491.60821546167951
457.96.333187815402751.56681218459725
467.45.435485287565651.96451471243435
477.54.940589313893082.55941068610692
486.85.52247068074631.2775293192537
495.25.077893983850670.122106016149333
504.75.44162572532647-0.741625725326475
514.14.59974435847325-0.499744358473252
523.95.42720784142486-1.52720784142486
532.65.20487937703131-2.60487937703131
542.73.91135568821035-1.21135568821035
551.83.08389220525874-1.28389220525874
5612.85365316037326-1.85365316037326
570.32.48341411548777-2.18341411548777
581.31.45780100715874-0.157801007158744
5911.34663677496197-0.34663677496197
601.11.92851814181519-0.828518141815194







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.006011057287897910.01202211457579580.993988942712102
180.001492219664346160.002984439328692310.998507780335654
190.003254948680840890.006509897361681790.99674505131916
200.004496109031921740.008992218063843470.995503890968078
210.001968979750837460.003937959501674910.998031020249163
220.001289284270861310.002578568541722610.998710715729139
230.001050311496370980.002100622992741970.998949688503629
240.0003512175529924410.0007024351059848820.999648782447008
250.0001236713946726950.000247342789345390.999876328605327
264.93473101351366e-059.86946202702732e-050.999950652689865
272.96017413468292e-055.92034826936584e-050.999970398258653
281.53669387616298e-053.07338775232595e-050.999984633061238
296.84612636738422e-061.36922527347684e-050.999993153873633
302.20473932456749e-064.40947864913499e-060.999997795260675
311.30367942266505e-062.60735884533011e-060.999998696320577
327.80742602943792e-071.56148520588758e-060.999999219257397
334.98082476407894e-079.96164952815788e-070.999999501917524
344.68111827051134e-069.36223654102267e-060.99999531888173
357.73488289885961e-050.0001546976579771920.999922651171011
360.0007360184505375070.001472036901075010.999263981549462
370.01071528486020910.02143056972041820.989284715139791
380.0181494484361610.0362988968723220.981850551563839
390.1363184864457710.2726369728915420.863681513554229
400.2158446437462200.4316892874924410.78415535625378
410.5486219161857440.9027561676285120.451378083814256
420.4834787570728840.9669575141457690.516521242927116
430.4422491071761330.8844982143522670.557750892823867

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.00601105728789791 & 0.0120221145757958 & 0.993988942712102 \tabularnewline
18 & 0.00149221966434616 & 0.00298443932869231 & 0.998507780335654 \tabularnewline
19 & 0.00325494868084089 & 0.00650989736168179 & 0.99674505131916 \tabularnewline
20 & 0.00449610903192174 & 0.00899221806384347 & 0.995503890968078 \tabularnewline
21 & 0.00196897975083746 & 0.00393795950167491 & 0.998031020249163 \tabularnewline
22 & 0.00128928427086131 & 0.00257856854172261 & 0.998710715729139 \tabularnewline
23 & 0.00105031149637098 & 0.00210062299274197 & 0.998949688503629 \tabularnewline
24 & 0.000351217552992441 & 0.000702435105984882 & 0.999648782447008 \tabularnewline
25 & 0.000123671394672695 & 0.00024734278934539 & 0.999876328605327 \tabularnewline
26 & 4.93473101351366e-05 & 9.86946202702732e-05 & 0.999950652689865 \tabularnewline
27 & 2.96017413468292e-05 & 5.92034826936584e-05 & 0.999970398258653 \tabularnewline
28 & 1.53669387616298e-05 & 3.07338775232595e-05 & 0.999984633061238 \tabularnewline
29 & 6.84612636738422e-06 & 1.36922527347684e-05 & 0.999993153873633 \tabularnewline
30 & 2.20473932456749e-06 & 4.40947864913499e-06 & 0.999997795260675 \tabularnewline
31 & 1.30367942266505e-06 & 2.60735884533011e-06 & 0.999998696320577 \tabularnewline
32 & 7.80742602943792e-07 & 1.56148520588758e-06 & 0.999999219257397 \tabularnewline
33 & 4.98082476407894e-07 & 9.96164952815788e-07 & 0.999999501917524 \tabularnewline
34 & 4.68111827051134e-06 & 9.36223654102267e-06 & 0.99999531888173 \tabularnewline
35 & 7.73488289885961e-05 & 0.000154697657977192 & 0.999922651171011 \tabularnewline
36 & 0.000736018450537507 & 0.00147203690107501 & 0.999263981549462 \tabularnewline
37 & 0.0107152848602091 & 0.0214305697204182 & 0.989284715139791 \tabularnewline
38 & 0.018149448436161 & 0.036298896872322 & 0.981850551563839 \tabularnewline
39 & 0.136318486445771 & 0.272636972891542 & 0.863681513554229 \tabularnewline
40 & 0.215844643746220 & 0.431689287492441 & 0.78415535625378 \tabularnewline
41 & 0.548621916185744 & 0.902756167628512 & 0.451378083814256 \tabularnewline
42 & 0.483478757072884 & 0.966957514145769 & 0.516521242927116 \tabularnewline
43 & 0.442249107176133 & 0.884498214352267 & 0.557750892823867 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61462&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.00601105728789791[/C][C]0.0120221145757958[/C][C]0.993988942712102[/C][/ROW]
[ROW][C]18[/C][C]0.00149221966434616[/C][C]0.00298443932869231[/C][C]0.998507780335654[/C][/ROW]
[ROW][C]19[/C][C]0.00325494868084089[/C][C]0.00650989736168179[/C][C]0.99674505131916[/C][/ROW]
[ROW][C]20[/C][C]0.00449610903192174[/C][C]0.00899221806384347[/C][C]0.995503890968078[/C][/ROW]
[ROW][C]21[/C][C]0.00196897975083746[/C][C]0.00393795950167491[/C][C]0.998031020249163[/C][/ROW]
[ROW][C]22[/C][C]0.00128928427086131[/C][C]0.00257856854172261[/C][C]0.998710715729139[/C][/ROW]
[ROW][C]23[/C][C]0.00105031149637098[/C][C]0.00210062299274197[/C][C]0.998949688503629[/C][/ROW]
[ROW][C]24[/C][C]0.000351217552992441[/C][C]0.000702435105984882[/C][C]0.999648782447008[/C][/ROW]
[ROW][C]25[/C][C]0.000123671394672695[/C][C]0.00024734278934539[/C][C]0.999876328605327[/C][/ROW]
[ROW][C]26[/C][C]4.93473101351366e-05[/C][C]9.86946202702732e-05[/C][C]0.999950652689865[/C][/ROW]
[ROW][C]27[/C][C]2.96017413468292e-05[/C][C]5.92034826936584e-05[/C][C]0.999970398258653[/C][/ROW]
[ROW][C]28[/C][C]1.53669387616298e-05[/C][C]3.07338775232595e-05[/C][C]0.999984633061238[/C][/ROW]
[ROW][C]29[/C][C]6.84612636738422e-06[/C][C]1.36922527347684e-05[/C][C]0.999993153873633[/C][/ROW]
[ROW][C]30[/C][C]2.20473932456749e-06[/C][C]4.40947864913499e-06[/C][C]0.999997795260675[/C][/ROW]
[ROW][C]31[/C][C]1.30367942266505e-06[/C][C]2.60735884533011e-06[/C][C]0.999998696320577[/C][/ROW]
[ROW][C]32[/C][C]7.80742602943792e-07[/C][C]1.56148520588758e-06[/C][C]0.999999219257397[/C][/ROW]
[ROW][C]33[/C][C]4.98082476407894e-07[/C][C]9.96164952815788e-07[/C][C]0.999999501917524[/C][/ROW]
[ROW][C]34[/C][C]4.68111827051134e-06[/C][C]9.36223654102267e-06[/C][C]0.99999531888173[/C][/ROW]
[ROW][C]35[/C][C]7.73488289885961e-05[/C][C]0.000154697657977192[/C][C]0.999922651171011[/C][/ROW]
[ROW][C]36[/C][C]0.000736018450537507[/C][C]0.00147203690107501[/C][C]0.999263981549462[/C][/ROW]
[ROW][C]37[/C][C]0.0107152848602091[/C][C]0.0214305697204182[/C][C]0.989284715139791[/C][/ROW]
[ROW][C]38[/C][C]0.018149448436161[/C][C]0.036298896872322[/C][C]0.981850551563839[/C][/ROW]
[ROW][C]39[/C][C]0.136318486445771[/C][C]0.272636972891542[/C][C]0.863681513554229[/C][/ROW]
[ROW][C]40[/C][C]0.215844643746220[/C][C]0.431689287492441[/C][C]0.78415535625378[/C][/ROW]
[ROW][C]41[/C][C]0.548621916185744[/C][C]0.902756167628512[/C][C]0.451378083814256[/C][/ROW]
[ROW][C]42[/C][C]0.483478757072884[/C][C]0.966957514145769[/C][C]0.516521242927116[/C][/ROW]
[ROW][C]43[/C][C]0.442249107176133[/C][C]0.884498214352267[/C][C]0.557750892823867[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61462&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61462&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.006011057287897910.01202211457579580.993988942712102
180.001492219664346160.002984439328692310.998507780335654
190.003254948680840890.006509897361681790.99674505131916
200.004496109031921740.008992218063843470.995503890968078
210.001968979750837460.003937959501674910.998031020249163
220.001289284270861310.002578568541722610.998710715729139
230.001050311496370980.002100622992741970.998949688503629
240.0003512175529924410.0007024351059848820.999648782447008
250.0001236713946726950.000247342789345390.999876328605327
264.93473101351366e-059.86946202702732e-050.999950652689865
272.96017413468292e-055.92034826936584e-050.999970398258653
281.53669387616298e-053.07338775232595e-050.999984633061238
296.84612636738422e-061.36922527347684e-050.999993153873633
302.20473932456749e-064.40947864913499e-060.999997795260675
311.30367942266505e-062.60735884533011e-060.999998696320577
327.80742602943792e-071.56148520588758e-060.999999219257397
334.98082476407894e-079.96164952815788e-070.999999501917524
344.68111827051134e-069.36223654102267e-060.99999531888173
357.73488289885961e-050.0001546976579771920.999922651171011
360.0007360184505375070.001472036901075010.999263981549462
370.01071528486020910.02143056972041820.989284715139791
380.0181494484361610.0362988968723220.981850551563839
390.1363184864457710.2726369728915420.863681513554229
400.2158446437462200.4316892874924410.78415535625378
410.5486219161857440.9027561676285120.451378083814256
420.4834787570728840.9669575141457690.516521242927116
430.4422491071761330.8844982143522670.557750892823867







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level190.703703703703704NOK
5% type I error level220.814814814814815NOK
10% type I error level220.814814814814815NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61462&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 level190.703703703703704NOK
5% type I error level220.814814814814815NOK
10% type I error level220.814814814814815NOK



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