Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 17 Dec 2009 06:58:51 -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/Dec/17/t1261058410xlrs73qhl8eco95.htm/, Retrieved Tue, 30 Apr 2024 00:26:19 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68897, Retrieved Tue, 30 Apr 2024 00:26:19 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact118
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [] [2009-11-18 16:22:43] [90f6d58d515a4caed6fb4b8be4e11eaa]
-    D      [Multiple Regression] [Multiple Regressi...] [2009-12-17 13:41:03] [90f6d58d515a4caed6fb4b8be4e11eaa]
-   PD          [Multiple Regression] [Multiple Regressi...] [2009-12-17 13:58:51] [2b548c9d2e9bba6e1eaf65bd4d551f41] [Current]
Feedback Forum

Post a new message
Dataseries X:
9.3	96.8
9.3	114.1
8.7	110.3
8.2	103.9
8.3	101.6
8.5	94.6
8.6	95.9
8.5	104.7
8.2	102.8
8.1	98.1
7.9	113.9
8.6	80.9
8.7	95.7
8.7	113.2
8.5	105.9
8.4	108.8
8.5	102.3
8.7	99
8.7	100.7
8.6	115.5
8.5	100.7
8.3	109.9
8	114.6
8.2	85.4
8.1	100.5
8.1	114.8
8	116.5
7.9	112.9
7.9	102
8	106
8	105.3
7.9	118.8
8	106.1
7.7	109.3
7.2	117.2
7.5	92.5
7.3	104.2
7	112.5
7	122.4
7	113.3
7.2	100
7.3	110.7
7.1	112.8
6.8	109.8
6.4	117.3
6.1	109.1
6.5	115.9
7.7	96
7.9	99.8
7.5	116.8
6.9	115.7
6.6	99.4
6.9	94.3
7.7	91
8	93.2
8	103.1
7.7	94.1
7.3	91.8
7.4	102.7
8.1	82.6




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68897&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
werklh[t] = + 12.1281080048809 -0.0347898199866124ecogr[t] + 0.329371318768953M1[t] + 0.73661868884898M2[t] + 0.462018759129809M3[t] + 0.0654597778960518M4[t] -0.0300638017227109M5[t] + 0.287164807353566M6[t] + 0.402662218415118M7[t] + 0.61838748297653M8[t] + 0.232961244138489M9[t] -0.0169462063747899M10[t] + 0.233390782581000M11[t] -0.0295748486792233t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
werklh[t] =  +  12.1281080048809 -0.0347898199866124ecogr[t] +  0.329371318768953M1[t] +  0.73661868884898M2[t] +  0.462018759129809M3[t] +  0.0654597778960518M4[t] -0.0300638017227109M5[t] +  0.287164807353566M6[t] +  0.402662218415118M7[t] +  0.61838748297653M8[t] +  0.232961244138489M9[t] -0.0169462063747899M10[t] +  0.233390782581000M11[t] -0.0295748486792233t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68897&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]werklh[t] =  +  12.1281080048809 -0.0347898199866124ecogr[t] +  0.329371318768953M1[t] +  0.73661868884898M2[t] +  0.462018759129809M3[t] +  0.0654597778960518M4[t] -0.0300638017227109M5[t] +  0.287164807353566M6[t] +  0.402662218415118M7[t] +  0.61838748297653M8[t] +  0.232961244138489M9[t] -0.0169462063747899M10[t] +  0.233390782581000M11[t] -0.0295748486792233t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68897&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68897&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
werklh[t] = + 12.1281080048809 -0.0347898199866124ecogr[t] + 0.329371318768953M1[t] + 0.73661868884898M2[t] + 0.462018759129809M3[t] + 0.0654597778960518M4[t] -0.0300638017227109M5[t] + 0.287164807353566M6[t] + 0.402662218415118M7[t] + 0.61838748297653M8[t] + 0.232961244138489M9[t] -0.0169462063747899M10[t] + 0.233390782581000M11[t] -0.0295748486792233t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)12.12810800488090.85855514.126200
ecogr-0.03478981998661240.009502-3.66130.0006460.000323
M10.3293713187689530.2912571.13090.2639750.131988
M20.736618688848980.3697831.9920.0523230.026162
M30.4620187591298090.3687071.25310.2165090.108255
M40.06545977789605180.3289530.1990.8431440.421572
M5-0.03006380172271090.292363-0.10280.9185450.459272
M60.2871648073535660.2929810.98010.332140.16607
M70.4026622184151180.2982021.35030.1835260.091763
M80.618387482976530.3438691.79830.078690.039345
M90.2329612441384890.3098960.75170.4560370.228018
M10-0.01694620637478990.307097-0.05520.9562320.478116
M110.2333907825810000.358960.65020.5188060.259403
t-0.02957484867922330.003198-9.248900

\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) & 12.1281080048809 & 0.858555 & 14.1262 & 0 & 0 \tabularnewline
ecogr & -0.0347898199866124 & 0.009502 & -3.6613 & 0.000646 & 0.000323 \tabularnewline
M1 & 0.329371318768953 & 0.291257 & 1.1309 & 0.263975 & 0.131988 \tabularnewline
M2 & 0.73661868884898 & 0.369783 & 1.992 & 0.052323 & 0.026162 \tabularnewline
M3 & 0.462018759129809 & 0.368707 & 1.2531 & 0.216509 & 0.108255 \tabularnewline
M4 & 0.0654597778960518 & 0.328953 & 0.199 & 0.843144 & 0.421572 \tabularnewline
M5 & -0.0300638017227109 & 0.292363 & -0.1028 & 0.918545 & 0.459272 \tabularnewline
M6 & 0.287164807353566 & 0.292981 & 0.9801 & 0.33214 & 0.16607 \tabularnewline
M7 & 0.402662218415118 & 0.298202 & 1.3503 & 0.183526 & 0.091763 \tabularnewline
M8 & 0.61838748297653 & 0.343869 & 1.7983 & 0.07869 & 0.039345 \tabularnewline
M9 & 0.232961244138489 & 0.309896 & 0.7517 & 0.456037 & 0.228018 \tabularnewline
M10 & -0.0169462063747899 & 0.307097 & -0.0552 & 0.956232 & 0.478116 \tabularnewline
M11 & 0.233390782581000 & 0.35896 & 0.6502 & 0.518806 & 0.259403 \tabularnewline
t & -0.0295748486792233 & 0.003198 & -9.2489 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68897&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]12.1281080048809[/C][C]0.858555[/C][C]14.1262[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]ecogr[/C][C]-0.0347898199866124[/C][C]0.009502[/C][C]-3.6613[/C][C]0.000646[/C][C]0.000323[/C][/ROW]
[ROW][C]M1[/C][C]0.329371318768953[/C][C]0.291257[/C][C]1.1309[/C][C]0.263975[/C][C]0.131988[/C][/ROW]
[ROW][C]M2[/C][C]0.73661868884898[/C][C]0.369783[/C][C]1.992[/C][C]0.052323[/C][C]0.026162[/C][/ROW]
[ROW][C]M3[/C][C]0.462018759129809[/C][C]0.368707[/C][C]1.2531[/C][C]0.216509[/C][C]0.108255[/C][/ROW]
[ROW][C]M4[/C][C]0.0654597778960518[/C][C]0.328953[/C][C]0.199[/C][C]0.843144[/C][C]0.421572[/C][/ROW]
[ROW][C]M5[/C][C]-0.0300638017227109[/C][C]0.292363[/C][C]-0.1028[/C][C]0.918545[/C][C]0.459272[/C][/ROW]
[ROW][C]M6[/C][C]0.287164807353566[/C][C]0.292981[/C][C]0.9801[/C][C]0.33214[/C][C]0.16607[/C][/ROW]
[ROW][C]M7[/C][C]0.402662218415118[/C][C]0.298202[/C][C]1.3503[/C][C]0.183526[/C][C]0.091763[/C][/ROW]
[ROW][C]M8[/C][C]0.61838748297653[/C][C]0.343869[/C][C]1.7983[/C][C]0.07869[/C][C]0.039345[/C][/ROW]
[ROW][C]M9[/C][C]0.232961244138489[/C][C]0.309896[/C][C]0.7517[/C][C]0.456037[/C][C]0.228018[/C][/ROW]
[ROW][C]M10[/C][C]-0.0169462063747899[/C][C]0.307097[/C][C]-0.0552[/C][C]0.956232[/C][C]0.478116[/C][/ROW]
[ROW][C]M11[/C][C]0.233390782581000[/C][C]0.35896[/C][C]0.6502[/C][C]0.518806[/C][C]0.259403[/C][/ROW]
[ROW][C]t[/C][C]-0.0295748486792233[/C][C]0.003198[/C][C]-9.2489[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68897&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68897&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)12.12810800488090.85855514.126200
ecogr-0.03478981998661240.009502-3.66130.0006460.000323
M10.3293713187689530.2912571.13090.2639750.131988
M20.736618688848980.3697831.9920.0523230.026162
M30.4620187591298090.3687071.25310.2165090.108255
M40.06545977789605180.3289530.1990.8431440.421572
M5-0.03006380172271090.292363-0.10280.9185450.459272
M60.2871648073535660.2929810.98010.332140.16607
M70.4026622184151180.2982021.35030.1835260.091763
M80.618387482976530.3438691.79830.078690.039345
M90.2329612441384890.3098960.75170.4560370.228018
M10-0.01694620637478990.307097-0.05520.9562320.478116
M110.2333907825810000.358960.65020.5188060.259403
t-0.02957484867922330.003198-9.248900







Multiple Linear Regression - Regression Statistics
Multiple R0.851639257562177
R-squared0.725289425021056
Adjusted R-squared0.647653827744398
F-TEST (value)9.34222766956312
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value5.09720377017686e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.420311541905972
Sum Squared Residuals8.1264424439313

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.851639257562177 \tabularnewline
R-squared & 0.725289425021056 \tabularnewline
Adjusted R-squared & 0.647653827744398 \tabularnewline
F-TEST (value) & 9.34222766956312 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 5.09720377017686e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.420311541905972 \tabularnewline
Sum Squared Residuals & 8.1264424439313 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68897&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.851639257562177[/C][/ROW]
[ROW][C]R-squared[/C][C]0.725289425021056[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.647653827744398[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]9.34222766956312[/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]5.09720377017686e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.420311541905972[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]8.1264424439313[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68897&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68897&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.851639257562177
R-squared0.725289425021056
Adjusted R-squared0.647653827744398
F-TEST (value)9.34222766956312
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value5.09720377017686e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.420311541905972
Sum Squared Residuals8.1264424439313







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
19.39.06024990026660.239750099733406
29.38.836058535898950.463941464101053
38.78.664085073449680.0359149265503157
48.28.46060609145102-0.260606091451024
58.38.41552424912224-0.115524249122243
68.58.94670674942559-0.446706749425586
78.68.98740254582532-0.387402545825318
88.58.86740254582532-0.367402545825317
98.28.51850211628262-0.318502116282617
108.18.40253197102719-0.302531971027192
117.98.07361495551528-0.173614955515282
128.68.95871338381327-0.358713383813269
138.78.74362051810114-0.0436205181011353
148.78.512471189736220.187528810263777
158.58.46226209724010.0377379027599024
168.47.935237789365940.464762210634059
178.58.036273190980940.463726809019064
188.78.438733357333810.261266642666188
198.78.46551322573890.234486774261101
208.68.136774305819230.463225694180775
218.58.236662554103820.263337445896177
228.37.637113911034490.662886088965515
2387.694363897373970.305636102626026
248.28.44726100972283-0.247261009722834
258.18.22173119801472-0.121731198014716
268.18.10190929360696-0.00190929360696137
2787.738591821231330.261408178768673
287.97.437701343270150.46229865672985
297.97.691811952826240.208188047173760
3087.840306433276840.159693566723155
3187.95058186964980.0494181303501983
327.97.667069715712720.232930284287277
3387.693899342025440.306100657974564
347.77.303089618875770.396910381124226
357.27.2490121812581-0.0490121812581021
367.57.8453551036672-0.345355103667206
377.37.73811067991357-0.43811067991357
3877.82702769542549-0.82702769542549
3977.17843369915963-0.178433699159634
4077.06888723112483-0.068887231124826
417.27.40649340864879-0.206493408648785
427.37.32189609518909-0.0218960951890868
437.17.33476003559953-0.234760035599529
446.87.62527991144156-0.825279911441556
456.46.9493551740247-0.549355174024697
466.16.95514939872242-0.855149398722417
476.56.93934076309002-0.439340763090019
487.77.368692549563380.331307450436618
497.97.536287703703980.363712296296015
507.57.322533285332380.177466714667623
516.97.05662730891926-0.156627308919257
526.67.19756754478806-0.597567544788059
536.97.2498971984218-0.349897198421796
547.77.652357364774670.0476426352253289
5587.661742323186450.338257676813547
5687.503473521201180.496526478798821
577.77.401580813563430.298419186436574
587.37.202115100340130.0978848996598677
597.47.043668202762620.356331797237377
608.17.479977953233310.62002204676669

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 9.3 & 9.0602499002666 & 0.239750099733406 \tabularnewline
2 & 9.3 & 8.83605853589895 & 0.463941464101053 \tabularnewline
3 & 8.7 & 8.66408507344968 & 0.0359149265503157 \tabularnewline
4 & 8.2 & 8.46060609145102 & -0.260606091451024 \tabularnewline
5 & 8.3 & 8.41552424912224 & -0.115524249122243 \tabularnewline
6 & 8.5 & 8.94670674942559 & -0.446706749425586 \tabularnewline
7 & 8.6 & 8.98740254582532 & -0.387402545825318 \tabularnewline
8 & 8.5 & 8.86740254582532 & -0.367402545825317 \tabularnewline
9 & 8.2 & 8.51850211628262 & -0.318502116282617 \tabularnewline
10 & 8.1 & 8.40253197102719 & -0.302531971027192 \tabularnewline
11 & 7.9 & 8.07361495551528 & -0.173614955515282 \tabularnewline
12 & 8.6 & 8.95871338381327 & -0.358713383813269 \tabularnewline
13 & 8.7 & 8.74362051810114 & -0.0436205181011353 \tabularnewline
14 & 8.7 & 8.51247118973622 & 0.187528810263777 \tabularnewline
15 & 8.5 & 8.4622620972401 & 0.0377379027599024 \tabularnewline
16 & 8.4 & 7.93523778936594 & 0.464762210634059 \tabularnewline
17 & 8.5 & 8.03627319098094 & 0.463726809019064 \tabularnewline
18 & 8.7 & 8.43873335733381 & 0.261266642666188 \tabularnewline
19 & 8.7 & 8.4655132257389 & 0.234486774261101 \tabularnewline
20 & 8.6 & 8.13677430581923 & 0.463225694180775 \tabularnewline
21 & 8.5 & 8.23666255410382 & 0.263337445896177 \tabularnewline
22 & 8.3 & 7.63711391103449 & 0.662886088965515 \tabularnewline
23 & 8 & 7.69436389737397 & 0.305636102626026 \tabularnewline
24 & 8.2 & 8.44726100972283 & -0.247261009722834 \tabularnewline
25 & 8.1 & 8.22173119801472 & -0.121731198014716 \tabularnewline
26 & 8.1 & 8.10190929360696 & -0.00190929360696137 \tabularnewline
27 & 8 & 7.73859182123133 & 0.261408178768673 \tabularnewline
28 & 7.9 & 7.43770134327015 & 0.46229865672985 \tabularnewline
29 & 7.9 & 7.69181195282624 & 0.208188047173760 \tabularnewline
30 & 8 & 7.84030643327684 & 0.159693566723155 \tabularnewline
31 & 8 & 7.9505818696498 & 0.0494181303501983 \tabularnewline
32 & 7.9 & 7.66706971571272 & 0.232930284287277 \tabularnewline
33 & 8 & 7.69389934202544 & 0.306100657974564 \tabularnewline
34 & 7.7 & 7.30308961887577 & 0.396910381124226 \tabularnewline
35 & 7.2 & 7.2490121812581 & -0.0490121812581021 \tabularnewline
36 & 7.5 & 7.8453551036672 & -0.345355103667206 \tabularnewline
37 & 7.3 & 7.73811067991357 & -0.43811067991357 \tabularnewline
38 & 7 & 7.82702769542549 & -0.82702769542549 \tabularnewline
39 & 7 & 7.17843369915963 & -0.178433699159634 \tabularnewline
40 & 7 & 7.06888723112483 & -0.068887231124826 \tabularnewline
41 & 7.2 & 7.40649340864879 & -0.206493408648785 \tabularnewline
42 & 7.3 & 7.32189609518909 & -0.0218960951890868 \tabularnewline
43 & 7.1 & 7.33476003559953 & -0.234760035599529 \tabularnewline
44 & 6.8 & 7.62527991144156 & -0.825279911441556 \tabularnewline
45 & 6.4 & 6.9493551740247 & -0.549355174024697 \tabularnewline
46 & 6.1 & 6.95514939872242 & -0.855149398722417 \tabularnewline
47 & 6.5 & 6.93934076309002 & -0.439340763090019 \tabularnewline
48 & 7.7 & 7.36869254956338 & 0.331307450436618 \tabularnewline
49 & 7.9 & 7.53628770370398 & 0.363712296296015 \tabularnewline
50 & 7.5 & 7.32253328533238 & 0.177466714667623 \tabularnewline
51 & 6.9 & 7.05662730891926 & -0.156627308919257 \tabularnewline
52 & 6.6 & 7.19756754478806 & -0.597567544788059 \tabularnewline
53 & 6.9 & 7.2498971984218 & -0.349897198421796 \tabularnewline
54 & 7.7 & 7.65235736477467 & 0.0476426352253289 \tabularnewline
55 & 8 & 7.66174232318645 & 0.338257676813547 \tabularnewline
56 & 8 & 7.50347352120118 & 0.496526478798821 \tabularnewline
57 & 7.7 & 7.40158081356343 & 0.298419186436574 \tabularnewline
58 & 7.3 & 7.20211510034013 & 0.0978848996598677 \tabularnewline
59 & 7.4 & 7.04366820276262 & 0.356331797237377 \tabularnewline
60 & 8.1 & 7.47997795323331 & 0.62002204676669 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68897&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]9.3[/C][C]9.0602499002666[/C][C]0.239750099733406[/C][/ROW]
[ROW][C]2[/C][C]9.3[/C][C]8.83605853589895[/C][C]0.463941464101053[/C][/ROW]
[ROW][C]3[/C][C]8.7[/C][C]8.66408507344968[/C][C]0.0359149265503157[/C][/ROW]
[ROW][C]4[/C][C]8.2[/C][C]8.46060609145102[/C][C]-0.260606091451024[/C][/ROW]
[ROW][C]5[/C][C]8.3[/C][C]8.41552424912224[/C][C]-0.115524249122243[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.94670674942559[/C][C]-0.446706749425586[/C][/ROW]
[ROW][C]7[/C][C]8.6[/C][C]8.98740254582532[/C][C]-0.387402545825318[/C][/ROW]
[ROW][C]8[/C][C]8.5[/C][C]8.86740254582532[/C][C]-0.367402545825317[/C][/ROW]
[ROW][C]9[/C][C]8.2[/C][C]8.51850211628262[/C][C]-0.318502116282617[/C][/ROW]
[ROW][C]10[/C][C]8.1[/C][C]8.40253197102719[/C][C]-0.302531971027192[/C][/ROW]
[ROW][C]11[/C][C]7.9[/C][C]8.07361495551528[/C][C]-0.173614955515282[/C][/ROW]
[ROW][C]12[/C][C]8.6[/C][C]8.95871338381327[/C][C]-0.358713383813269[/C][/ROW]
[ROW][C]13[/C][C]8.7[/C][C]8.74362051810114[/C][C]-0.0436205181011353[/C][/ROW]
[ROW][C]14[/C][C]8.7[/C][C]8.51247118973622[/C][C]0.187528810263777[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.4622620972401[/C][C]0.0377379027599024[/C][/ROW]
[ROW][C]16[/C][C]8.4[/C][C]7.93523778936594[/C][C]0.464762210634059[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]8.03627319098094[/C][C]0.463726809019064[/C][/ROW]
[ROW][C]18[/C][C]8.7[/C][C]8.43873335733381[/C][C]0.261266642666188[/C][/ROW]
[ROW][C]19[/C][C]8.7[/C][C]8.4655132257389[/C][C]0.234486774261101[/C][/ROW]
[ROW][C]20[/C][C]8.6[/C][C]8.13677430581923[/C][C]0.463225694180775[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]8.23666255410382[/C][C]0.263337445896177[/C][/ROW]
[ROW][C]22[/C][C]8.3[/C][C]7.63711391103449[/C][C]0.662886088965515[/C][/ROW]
[ROW][C]23[/C][C]8[/C][C]7.69436389737397[/C][C]0.305636102626026[/C][/ROW]
[ROW][C]24[/C][C]8.2[/C][C]8.44726100972283[/C][C]-0.247261009722834[/C][/ROW]
[ROW][C]25[/C][C]8.1[/C][C]8.22173119801472[/C][C]-0.121731198014716[/C][/ROW]
[ROW][C]26[/C][C]8.1[/C][C]8.10190929360696[/C][C]-0.00190929360696137[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]7.73859182123133[/C][C]0.261408178768673[/C][/ROW]
[ROW][C]28[/C][C]7.9[/C][C]7.43770134327015[/C][C]0.46229865672985[/C][/ROW]
[ROW][C]29[/C][C]7.9[/C][C]7.69181195282624[/C][C]0.208188047173760[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.84030643327684[/C][C]0.159693566723155[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]7.9505818696498[/C][C]0.0494181303501983[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]7.66706971571272[/C][C]0.232930284287277[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]7.69389934202544[/C][C]0.306100657974564[/C][/ROW]
[ROW][C]34[/C][C]7.7[/C][C]7.30308961887577[/C][C]0.396910381124226[/C][/ROW]
[ROW][C]35[/C][C]7.2[/C][C]7.2490121812581[/C][C]-0.0490121812581021[/C][/ROW]
[ROW][C]36[/C][C]7.5[/C][C]7.8453551036672[/C][C]-0.345355103667206[/C][/ROW]
[ROW][C]37[/C][C]7.3[/C][C]7.73811067991357[/C][C]-0.43811067991357[/C][/ROW]
[ROW][C]38[/C][C]7[/C][C]7.82702769542549[/C][C]-0.82702769542549[/C][/ROW]
[ROW][C]39[/C][C]7[/C][C]7.17843369915963[/C][C]-0.178433699159634[/C][/ROW]
[ROW][C]40[/C][C]7[/C][C]7.06888723112483[/C][C]-0.068887231124826[/C][/ROW]
[ROW][C]41[/C][C]7.2[/C][C]7.40649340864879[/C][C]-0.206493408648785[/C][/ROW]
[ROW][C]42[/C][C]7.3[/C][C]7.32189609518909[/C][C]-0.0218960951890868[/C][/ROW]
[ROW][C]43[/C][C]7.1[/C][C]7.33476003559953[/C][C]-0.234760035599529[/C][/ROW]
[ROW][C]44[/C][C]6.8[/C][C]7.62527991144156[/C][C]-0.825279911441556[/C][/ROW]
[ROW][C]45[/C][C]6.4[/C][C]6.9493551740247[/C][C]-0.549355174024697[/C][/ROW]
[ROW][C]46[/C][C]6.1[/C][C]6.95514939872242[/C][C]-0.855149398722417[/C][/ROW]
[ROW][C]47[/C][C]6.5[/C][C]6.93934076309002[/C][C]-0.439340763090019[/C][/ROW]
[ROW][C]48[/C][C]7.7[/C][C]7.36869254956338[/C][C]0.331307450436618[/C][/ROW]
[ROW][C]49[/C][C]7.9[/C][C]7.53628770370398[/C][C]0.363712296296015[/C][/ROW]
[ROW][C]50[/C][C]7.5[/C][C]7.32253328533238[/C][C]0.177466714667623[/C][/ROW]
[ROW][C]51[/C][C]6.9[/C][C]7.05662730891926[/C][C]-0.156627308919257[/C][/ROW]
[ROW][C]52[/C][C]6.6[/C][C]7.19756754478806[/C][C]-0.597567544788059[/C][/ROW]
[ROW][C]53[/C][C]6.9[/C][C]7.2498971984218[/C][C]-0.349897198421796[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]7.65235736477467[/C][C]0.0476426352253289[/C][/ROW]
[ROW][C]55[/C][C]8[/C][C]7.66174232318645[/C][C]0.338257676813547[/C][/ROW]
[ROW][C]56[/C][C]8[/C][C]7.50347352120118[/C][C]0.496526478798821[/C][/ROW]
[ROW][C]57[/C][C]7.7[/C][C]7.40158081356343[/C][C]0.298419186436574[/C][/ROW]
[ROW][C]58[/C][C]7.3[/C][C]7.20211510034013[/C][C]0.0978848996598677[/C][/ROW]
[ROW][C]59[/C][C]7.4[/C][C]7.04366820276262[/C][C]0.356331797237377[/C][/ROW]
[ROW][C]60[/C][C]8.1[/C][C]7.47997795323331[/C][C]0.62002204676669[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68897&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68897&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
19.39.06024990026660.239750099733406
29.38.836058535898950.463941464101053
38.78.664085073449680.0359149265503157
48.28.46060609145102-0.260606091451024
58.38.41552424912224-0.115524249122243
68.58.94670674942559-0.446706749425586
78.68.98740254582532-0.387402545825318
88.58.86740254582532-0.367402545825317
98.28.51850211628262-0.318502116282617
108.18.40253197102719-0.302531971027192
117.98.07361495551528-0.173614955515282
128.68.95871338381327-0.358713383813269
138.78.74362051810114-0.0436205181011353
148.78.512471189736220.187528810263777
158.58.46226209724010.0377379027599024
168.47.935237789365940.464762210634059
178.58.036273190980940.463726809019064
188.78.438733357333810.261266642666188
198.78.46551322573890.234486774261101
208.68.136774305819230.463225694180775
218.58.236662554103820.263337445896177
228.37.637113911034490.662886088965515
2387.694363897373970.305636102626026
248.28.44726100972283-0.247261009722834
258.18.22173119801472-0.121731198014716
268.18.10190929360696-0.00190929360696137
2787.738591821231330.261408178768673
287.97.437701343270150.46229865672985
297.97.691811952826240.208188047173760
3087.840306433276840.159693566723155
3187.95058186964980.0494181303501983
327.97.667069715712720.232930284287277
3387.693899342025440.306100657974564
347.77.303089618875770.396910381124226
357.27.2490121812581-0.0490121812581021
367.57.8453551036672-0.345355103667206
377.37.73811067991357-0.43811067991357
3877.82702769542549-0.82702769542549
3977.17843369915963-0.178433699159634
4077.06888723112483-0.068887231124826
417.27.40649340864879-0.206493408648785
427.37.32189609518909-0.0218960951890868
437.17.33476003559953-0.234760035599529
446.87.62527991144156-0.825279911441556
456.46.9493551740247-0.549355174024697
466.16.95514939872242-0.855149398722417
476.56.93934076309002-0.439340763090019
487.77.368692549563380.331307450436618
497.97.536287703703980.363712296296015
507.57.322533285332380.177466714667623
516.97.05662730891926-0.156627308919257
526.67.19756754478806-0.597567544788059
536.97.2498971984218-0.349897198421796
547.77.652357364774670.0476426352253289
5587.661742323186450.338257676813547
5687.503473521201180.496526478798821
577.77.401580813563430.298419186436574
587.37.202115100340130.0978848996598677
597.47.043668202762620.356331797237377
608.17.479977953233310.62002204676669







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2327985359456230.4655970718912450.767201464054377
180.1114782980393980.2229565960787950.888521701960602
190.04814243192083680.09628486384167360.951857568079163
200.03137777814406580.06275555628813160.968622221855934
210.0377958121788820.0755916243577640.962204187821118
220.02161068399653480.04322136799306960.978389316003465
230.01084456047951760.02168912095903520.989155439520482
240.01253271118464960.02506542236929920.98746728881535
250.04850421317126220.09700842634252440.951495786828738
260.05335741834260690.1067148366852140.946642581657393
270.04088865551118820.08177731102237650.959111344488812
280.03472179407341330.06944358814682660.965278205926587
290.02339593792097080.04679187584194160.97660406207903
300.01632972187717170.03265944375434340.983670278122828
310.01004402413097460.02008804826194910.989955975869026
320.009388348338867330.01877669667773470.990611651661133
330.00783531141762110.01567062283524220.99216468858238
340.03537963070888950.0707592614177790.96462036929111
350.05175680187323660.1035136037464730.948243198126763
360.04499672972590130.08999345945180260.95500327027410
370.06419169078216160.1283833815643230.935808309217838
380.1158955380272530.2317910760545060.884104461972747
390.1193648519957110.2387297039914220.880635148004289
400.2743585997361690.5487171994723390.72564140026383
410.5324635135828590.9350729728342820.467536486417141
420.619650559972950.7606988800541010.380349440027050
430.4877098176823280.9754196353646560.512290182317672

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.232798535945623 & 0.465597071891245 & 0.767201464054377 \tabularnewline
18 & 0.111478298039398 & 0.222956596078795 & 0.888521701960602 \tabularnewline
19 & 0.0481424319208368 & 0.0962848638416736 & 0.951857568079163 \tabularnewline
20 & 0.0313777781440658 & 0.0627555562881316 & 0.968622221855934 \tabularnewline
21 & 0.037795812178882 & 0.075591624357764 & 0.962204187821118 \tabularnewline
22 & 0.0216106839965348 & 0.0432213679930696 & 0.978389316003465 \tabularnewline
23 & 0.0108445604795176 & 0.0216891209590352 & 0.989155439520482 \tabularnewline
24 & 0.0125327111846496 & 0.0250654223692992 & 0.98746728881535 \tabularnewline
25 & 0.0485042131712622 & 0.0970084263425244 & 0.951495786828738 \tabularnewline
26 & 0.0533574183426069 & 0.106714836685214 & 0.946642581657393 \tabularnewline
27 & 0.0408886555111882 & 0.0817773110223765 & 0.959111344488812 \tabularnewline
28 & 0.0347217940734133 & 0.0694435881468266 & 0.965278205926587 \tabularnewline
29 & 0.0233959379209708 & 0.0467918758419416 & 0.97660406207903 \tabularnewline
30 & 0.0163297218771717 & 0.0326594437543434 & 0.983670278122828 \tabularnewline
31 & 0.0100440241309746 & 0.0200880482619491 & 0.989955975869026 \tabularnewline
32 & 0.00938834833886733 & 0.0187766966777347 & 0.990611651661133 \tabularnewline
33 & 0.0078353114176211 & 0.0156706228352422 & 0.99216468858238 \tabularnewline
34 & 0.0353796307088895 & 0.070759261417779 & 0.96462036929111 \tabularnewline
35 & 0.0517568018732366 & 0.103513603746473 & 0.948243198126763 \tabularnewline
36 & 0.0449967297259013 & 0.0899934594518026 & 0.95500327027410 \tabularnewline
37 & 0.0641916907821616 & 0.128383381564323 & 0.935808309217838 \tabularnewline
38 & 0.115895538027253 & 0.231791076054506 & 0.884104461972747 \tabularnewline
39 & 0.119364851995711 & 0.238729703991422 & 0.880635148004289 \tabularnewline
40 & 0.274358599736169 & 0.548717199472339 & 0.72564140026383 \tabularnewline
41 & 0.532463513582859 & 0.935072972834282 & 0.467536486417141 \tabularnewline
42 & 0.61965055997295 & 0.760698880054101 & 0.380349440027050 \tabularnewline
43 & 0.487709817682328 & 0.975419635364656 & 0.512290182317672 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68897&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.232798535945623[/C][C]0.465597071891245[/C][C]0.767201464054377[/C][/ROW]
[ROW][C]18[/C][C]0.111478298039398[/C][C]0.222956596078795[/C][C]0.888521701960602[/C][/ROW]
[ROW][C]19[/C][C]0.0481424319208368[/C][C]0.0962848638416736[/C][C]0.951857568079163[/C][/ROW]
[ROW][C]20[/C][C]0.0313777781440658[/C][C]0.0627555562881316[/C][C]0.968622221855934[/C][/ROW]
[ROW][C]21[/C][C]0.037795812178882[/C][C]0.075591624357764[/C][C]0.962204187821118[/C][/ROW]
[ROW][C]22[/C][C]0.0216106839965348[/C][C]0.0432213679930696[/C][C]0.978389316003465[/C][/ROW]
[ROW][C]23[/C][C]0.0108445604795176[/C][C]0.0216891209590352[/C][C]0.989155439520482[/C][/ROW]
[ROW][C]24[/C][C]0.0125327111846496[/C][C]0.0250654223692992[/C][C]0.98746728881535[/C][/ROW]
[ROW][C]25[/C][C]0.0485042131712622[/C][C]0.0970084263425244[/C][C]0.951495786828738[/C][/ROW]
[ROW][C]26[/C][C]0.0533574183426069[/C][C]0.106714836685214[/C][C]0.946642581657393[/C][/ROW]
[ROW][C]27[/C][C]0.0408886555111882[/C][C]0.0817773110223765[/C][C]0.959111344488812[/C][/ROW]
[ROW][C]28[/C][C]0.0347217940734133[/C][C]0.0694435881468266[/C][C]0.965278205926587[/C][/ROW]
[ROW][C]29[/C][C]0.0233959379209708[/C][C]0.0467918758419416[/C][C]0.97660406207903[/C][/ROW]
[ROW][C]30[/C][C]0.0163297218771717[/C][C]0.0326594437543434[/C][C]0.983670278122828[/C][/ROW]
[ROW][C]31[/C][C]0.0100440241309746[/C][C]0.0200880482619491[/C][C]0.989955975869026[/C][/ROW]
[ROW][C]32[/C][C]0.00938834833886733[/C][C]0.0187766966777347[/C][C]0.990611651661133[/C][/ROW]
[ROW][C]33[/C][C]0.0078353114176211[/C][C]0.0156706228352422[/C][C]0.99216468858238[/C][/ROW]
[ROW][C]34[/C][C]0.0353796307088895[/C][C]0.070759261417779[/C][C]0.96462036929111[/C][/ROW]
[ROW][C]35[/C][C]0.0517568018732366[/C][C]0.103513603746473[/C][C]0.948243198126763[/C][/ROW]
[ROW][C]36[/C][C]0.0449967297259013[/C][C]0.0899934594518026[/C][C]0.95500327027410[/C][/ROW]
[ROW][C]37[/C][C]0.0641916907821616[/C][C]0.128383381564323[/C][C]0.935808309217838[/C][/ROW]
[ROW][C]38[/C][C]0.115895538027253[/C][C]0.231791076054506[/C][C]0.884104461972747[/C][/ROW]
[ROW][C]39[/C][C]0.119364851995711[/C][C]0.238729703991422[/C][C]0.880635148004289[/C][/ROW]
[ROW][C]40[/C][C]0.274358599736169[/C][C]0.548717199472339[/C][C]0.72564140026383[/C][/ROW]
[ROW][C]41[/C][C]0.532463513582859[/C][C]0.935072972834282[/C][C]0.467536486417141[/C][/ROW]
[ROW][C]42[/C][C]0.61965055997295[/C][C]0.760698880054101[/C][C]0.380349440027050[/C][/ROW]
[ROW][C]43[/C][C]0.487709817682328[/C][C]0.975419635364656[/C][C]0.512290182317672[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68897&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68897&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.2327985359456230.4655970718912450.767201464054377
180.1114782980393980.2229565960787950.888521701960602
190.04814243192083680.09628486384167360.951857568079163
200.03137777814406580.06275555628813160.968622221855934
210.0377958121788820.0755916243577640.962204187821118
220.02161068399653480.04322136799306960.978389316003465
230.01084456047951760.02168912095903520.989155439520482
240.01253271118464960.02506542236929920.98746728881535
250.04850421317126220.09700842634252440.951495786828738
260.05335741834260690.1067148366852140.946642581657393
270.04088865551118820.08177731102237650.959111344488812
280.03472179407341330.06944358814682660.965278205926587
290.02339593792097080.04679187584194160.97660406207903
300.01632972187717170.03265944375434340.983670278122828
310.01004402413097460.02008804826194910.989955975869026
320.009388348338867330.01877669667773470.990611651661133
330.00783531141762110.01567062283524220.99216468858238
340.03537963070888950.0707592614177790.96462036929111
350.05175680187323660.1035136037464730.948243198126763
360.04499672972590130.08999345945180260.95500327027410
370.06419169078216160.1283833815643230.935808309217838
380.1158955380272530.2317910760545060.884104461972747
390.1193648519957110.2387297039914220.880635148004289
400.2743585997361690.5487171994723390.72564140026383
410.5324635135828590.9350729728342820.467536486417141
420.619650559972950.7606988800541010.380349440027050
430.4877098176823280.9754196353646560.512290182317672







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level80.296296296296296NOK
10% type I error level160.592592592592593NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68897&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 level80.296296296296296NOK
10% type I error level160.592592592592593NOK



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