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 07:35:30 -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/t1261060606acat0c79mu3yrlw.htm/, Retrieved Tue, 30 Apr 2024 05:09:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68911, Retrieved Tue, 30 Apr 2024 05:09:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact137
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:47:34] [90f6d58d515a4caed6fb4b8be4e11eaa]
-   PD          [Multiple Regression] [Multiple Regressi...] [2009-12-17 14:35:30] [2b548c9d2e9bba6e1eaf65bd4d551f41] [Current]
-   P             [Multiple Regression] [Multipe Regressio...] [2009-12-17 20:08:53] [90f6d58d515a4caed6fb4b8be4e11eaa]
Feedback Forum

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




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68911&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68911&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68911&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 2.47606172468974 -0.0101296723117681X[t] + 1.60828180239800Y1[t] -1.17499297834727Y2[t] + 0.403742817331000Y3[t] -0.0323317391383595M1[t] + 0.0603188530954501M2[t] + 0.00766841204588546M3[t] -0.139875510891479M4[t] + 0.0415646067147772M5[t] -0.0899349877552565M6[t] -0.186943880017435M7[t] + 0.0422117435785372M8[t] + 0.345355463489295M9[t] -0.565778112424411M10[t] + 0.173536403281812M11[t] -0.00415623384772254t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  2.47606172468974 -0.0101296723117681X[t] +  1.60828180239800Y1[t] -1.17499297834727Y2[t] +  0.403742817331000Y3[t] -0.0323317391383595M1[t] +  0.0603188530954501M2[t] +  0.00766841204588546M3[t] -0.139875510891479M4[t] +  0.0415646067147772M5[t] -0.0899349877552565M6[t] -0.186943880017435M7[t] +  0.0422117435785372M8[t] +  0.345355463489295M9[t] -0.565778112424411M10[t] +  0.173536403281812M11[t] -0.00415623384772254t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68911&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  2.47606172468974 -0.0101296723117681X[t] +  1.60828180239800Y1[t] -1.17499297834727Y2[t] +  0.403742817331000Y3[t] -0.0323317391383595M1[t] +  0.0603188530954501M2[t] +  0.00766841204588546M3[t] -0.139875510891479M4[t] +  0.0415646067147772M5[t] -0.0899349877552565M6[t] -0.186943880017435M7[t] +  0.0422117435785372M8[t] +  0.345355463489295M9[t] -0.565778112424411M10[t] +  0.173536403281812M11[t] -0.00415623384772254t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68911&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68911&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 2.47606172468974 -0.0101296723117681X[t] + 1.60828180239800Y1[t] -1.17499297834727Y2[t] + 0.403742817331000Y3[t] -0.0323317391383595M1[t] + 0.0603188530954501M2[t] + 0.00766841204588546M3[t] -0.139875510891479M4[t] + 0.0415646067147772M5[t] -0.0899349877552565M6[t] -0.186943880017435M7[t] + 0.0422117435785372M8[t] + 0.345355463489295M9[t] -0.565778112424411M10[t] + 0.173536403281812M11[t] -0.00415623384772254t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.476061724689740.9263712.67290.0108320.005416
X-0.01012967231176810.004085-2.47980.0174570.008728
Y11.608281802398000.13064712.310200
Y2-1.174992978347270.205054-5.73021e-061e-06
Y30.4037428173310000.1318163.06290.003910.001955
M1-0.03233173913835950.114051-0.28350.7782670.389133
M20.06031885309545010.1308540.4610.6473220.323661
M30.007668412045885460.1350750.05680.955010.477505
M4-0.1398755108914790.130083-1.07530.2886940.144347
M50.04156460671477720.1139090.36490.7171130.358557
M6-0.08993498775525650.11612-0.77450.4431910.221595
M7-0.1869438800174350.118169-1.5820.1215250.060763
M80.04221174357853720.1109430.38050.7056020.352801
M90.3453554634892950.1638292.1080.0413420.020671
M10-0.5657781124244110.161505-3.50320.0011470.000574
M110.1735364032818120.1335581.29930.201270.100635
t-0.004156233847722540.002591-1.6040.1165880.058294

\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) & 2.47606172468974 & 0.926371 & 2.6729 & 0.010832 & 0.005416 \tabularnewline
X & -0.0101296723117681 & 0.004085 & -2.4798 & 0.017457 & 0.008728 \tabularnewline
Y1 & 1.60828180239800 & 0.130647 & 12.3102 & 0 & 0 \tabularnewline
Y2 & -1.17499297834727 & 0.205054 & -5.7302 & 1e-06 & 1e-06 \tabularnewline
Y3 & 0.403742817331000 & 0.131816 & 3.0629 & 0.00391 & 0.001955 \tabularnewline
M1 & -0.0323317391383595 & 0.114051 & -0.2835 & 0.778267 & 0.389133 \tabularnewline
M2 & 0.0603188530954501 & 0.130854 & 0.461 & 0.647322 & 0.323661 \tabularnewline
M3 & 0.00766841204588546 & 0.135075 & 0.0568 & 0.95501 & 0.477505 \tabularnewline
M4 & -0.139875510891479 & 0.130083 & -1.0753 & 0.288694 & 0.144347 \tabularnewline
M5 & 0.0415646067147772 & 0.113909 & 0.3649 & 0.717113 & 0.358557 \tabularnewline
M6 & -0.0899349877552565 & 0.11612 & -0.7745 & 0.443191 & 0.221595 \tabularnewline
M7 & -0.186943880017435 & 0.118169 & -1.582 & 0.121525 & 0.060763 \tabularnewline
M8 & 0.0422117435785372 & 0.110943 & 0.3805 & 0.705602 & 0.352801 \tabularnewline
M9 & 0.345355463489295 & 0.163829 & 2.108 & 0.041342 & 0.020671 \tabularnewline
M10 & -0.565778112424411 & 0.161505 & -3.5032 & 0.001147 & 0.000574 \tabularnewline
M11 & 0.173536403281812 & 0.133558 & 1.2993 & 0.20127 & 0.100635 \tabularnewline
t & -0.00415623384772254 & 0.002591 & -1.604 & 0.116588 & 0.058294 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68911&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]2.47606172468974[/C][C]0.926371[/C][C]2.6729[/C][C]0.010832[/C][C]0.005416[/C][/ROW]
[ROW][C]X[/C][C]-0.0101296723117681[/C][C]0.004085[/C][C]-2.4798[/C][C]0.017457[/C][C]0.008728[/C][/ROW]
[ROW][C]Y1[/C][C]1.60828180239800[/C][C]0.130647[/C][C]12.3102[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-1.17499297834727[/C][C]0.205054[/C][C]-5.7302[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]Y3[/C][C]0.403742817331000[/C][C]0.131816[/C][C]3.0629[/C][C]0.00391[/C][C]0.001955[/C][/ROW]
[ROW][C]M1[/C][C]-0.0323317391383595[/C][C]0.114051[/C][C]-0.2835[/C][C]0.778267[/C][C]0.389133[/C][/ROW]
[ROW][C]M2[/C][C]0.0603188530954501[/C][C]0.130854[/C][C]0.461[/C][C]0.647322[/C][C]0.323661[/C][/ROW]
[ROW][C]M3[/C][C]0.00766841204588546[/C][C]0.135075[/C][C]0.0568[/C][C]0.95501[/C][C]0.477505[/C][/ROW]
[ROW][C]M4[/C][C]-0.139875510891479[/C][C]0.130083[/C][C]-1.0753[/C][C]0.288694[/C][C]0.144347[/C][/ROW]
[ROW][C]M5[/C][C]0.0415646067147772[/C][C]0.113909[/C][C]0.3649[/C][C]0.717113[/C][C]0.358557[/C][/ROW]
[ROW][C]M6[/C][C]-0.0899349877552565[/C][C]0.11612[/C][C]-0.7745[/C][C]0.443191[/C][C]0.221595[/C][/ROW]
[ROW][C]M7[/C][C]-0.186943880017435[/C][C]0.118169[/C][C]-1.582[/C][C]0.121525[/C][C]0.060763[/C][/ROW]
[ROW][C]M8[/C][C]0.0422117435785372[/C][C]0.110943[/C][C]0.3805[/C][C]0.705602[/C][C]0.352801[/C][/ROW]
[ROW][C]M9[/C][C]0.345355463489295[/C][C]0.163829[/C][C]2.108[/C][C]0.041342[/C][C]0.020671[/C][/ROW]
[ROW][C]M10[/C][C]-0.565778112424411[/C][C]0.161505[/C][C]-3.5032[/C][C]0.001147[/C][C]0.000574[/C][/ROW]
[ROW][C]M11[/C][C]0.173536403281812[/C][C]0.133558[/C][C]1.2993[/C][C]0.20127[/C][C]0.100635[/C][/ROW]
[ROW][C]t[/C][C]-0.00415623384772254[/C][C]0.002591[/C][C]-1.604[/C][C]0.116588[/C][C]0.058294[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68911&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68911&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)2.476061724689740.9263712.67290.0108320.005416
X-0.01012967231176810.004085-2.47980.0174570.008728
Y11.608281802398000.13064712.310200
Y2-1.174992978347270.205054-5.73021e-061e-06
Y30.4037428173310000.1318163.06290.003910.001955
M1-0.03233173913835950.114051-0.28350.7782670.389133
M20.06031885309545010.1308540.4610.6473220.323661
M30.007668412045885460.1350750.05680.955010.477505
M4-0.1398755108914790.130083-1.07530.2886940.144347
M50.04156460671477720.1139090.36490.7171130.358557
M6-0.08993498775525650.11612-0.77450.4431910.221595
M7-0.1869438800174350.118169-1.5820.1215250.060763
M80.04221174357853720.1109430.38050.7056020.352801
M90.3453554634892950.1638292.1080.0413420.020671
M10-0.5657781124244110.161505-3.50320.0011470.000574
M110.1735364032818120.1335581.29930.201270.100635
t-0.004156233847722540.002591-1.6040.1165880.058294







Multiple Linear Regression - Regression Statistics
Multiple R0.978546142626844
R-squared0.957552553249876
Adjusted R-squared0.940573574549827
F-TEST (value)56.3963575292716
F-TEST (DF numerator)16
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.161239934390964
Sum Squared Residuals1.03993265769610

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.978546142626844 \tabularnewline
R-squared & 0.957552553249876 \tabularnewline
Adjusted R-squared & 0.940573574549827 \tabularnewline
F-TEST (value) & 56.3963575292716 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 40 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.161239934390964 \tabularnewline
Sum Squared Residuals & 1.03993265769610 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68911&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.978546142626844[/C][/ROW]
[ROW][C]R-squared[/C][C]0.957552553249876[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.940573574549827[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]56.3963575292716[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]40[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.161239934390964[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1.03993265769610[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68911&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68911&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.978546142626844
R-squared0.957552553249876
Adjusted R-squared0.940573574549827
F-TEST (value)56.3963575292716
F-TEST (DF numerator)16
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.161239934390964
Sum Squared Residuals1.03993265769610







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.28.2065259819223-0.00652598192229426
28.38.219173472434810.080826527565189
38.58.73935348273474-0.239353482734742
48.68.576770405923720.0232295940762796
58.58.63111703964214-0.131117039642143
68.28.31712867410842-0.117128674108420
78.17.938962046712250.161037953287747
87.98.15520804546585-0.255208045465847
98.68.463194809973060.136805190026943
108.78.71840742561242-0.0184074256124160
118.78.533880973945490.166119026054513
128.58.59525561898883-0.0952556189888331
138.48.248109517552120.151890482447877
148.58.476617161394360.0233828386056436
158.78.650817319734230.0491826802657688
168.78.64567950093090.0543204990690887
178.68.478419920538920.121580079461076
188.58.412603625661730.0873963743382644
198.38.17491663187850.125083368121506
2088.10777521738346-0.107775217383461
218.28.41468890816708-0.214688908167076
228.17.939846737015530.160153262984470
238.18.013201083707190.086798916292807
2488.01653586494858-0.0165358649485785
257.97.815312250311960.0846877496880385
267.97.97089115449125-0.0708911544912477
2787.950690806448510.0493091935514851
2887.926535318788360.0734646812116348
297.97.84956932850330.0504306714966971
3087.72210644003830.277893559961698
317.77.86685384060527-0.166853840605269
327.27.37147069880332-0.171470698803323
337.57.50939236500531-0.0093923650053092
347.37.42444357388993-0.124443573889929
3577.19949991291147-0.199499912911472
3676.795160420044790.204839579955214
3777.12260179513377-0.122601795133774
387.27.22469795006708-0.0246979500670767
397.37.38116014191347-0.0811601419134722
407.17.13401725784402-0.034017257844018
416.86.98328306368973-0.183283063689729
426.46.56454302971686-0.164543029716863
436.16.17487782564224-0.0748778256422407
446.56.197385249090670.302614750909328
457.77.532266701688880.167733298311124
467.97.91730226348213-0.0173022634821257
477.57.55341802943585-0.0534180294358478
486.96.9930480960178-0.0930480960178024
496.66.70745045507985-0.107450455079847
506.96.90862026161251-0.00862026161250823
517.77.477978249169040.222021750830960
5288.11699751651298-0.116997516512985
5387.85761064762590.142389352374098
547.77.78361823047468-0.0836182304746782
557.37.34438965516174-0.0443896551617431
567.47.16816078925670.231839210743302
578.18.18045721516568-0.080457215165682

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.2 & 8.2065259819223 & -0.00652598192229426 \tabularnewline
2 & 8.3 & 8.21917347243481 & 0.080826527565189 \tabularnewline
3 & 8.5 & 8.73935348273474 & -0.239353482734742 \tabularnewline
4 & 8.6 & 8.57677040592372 & 0.0232295940762796 \tabularnewline
5 & 8.5 & 8.63111703964214 & -0.131117039642143 \tabularnewline
6 & 8.2 & 8.31712867410842 & -0.117128674108420 \tabularnewline
7 & 8.1 & 7.93896204671225 & 0.161037953287747 \tabularnewline
8 & 7.9 & 8.15520804546585 & -0.255208045465847 \tabularnewline
9 & 8.6 & 8.46319480997306 & 0.136805190026943 \tabularnewline
10 & 8.7 & 8.71840742561242 & -0.0184074256124160 \tabularnewline
11 & 8.7 & 8.53388097394549 & 0.166119026054513 \tabularnewline
12 & 8.5 & 8.59525561898883 & -0.0952556189888331 \tabularnewline
13 & 8.4 & 8.24810951755212 & 0.151890482447877 \tabularnewline
14 & 8.5 & 8.47661716139436 & 0.0233828386056436 \tabularnewline
15 & 8.7 & 8.65081731973423 & 0.0491826802657688 \tabularnewline
16 & 8.7 & 8.6456795009309 & 0.0543204990690887 \tabularnewline
17 & 8.6 & 8.47841992053892 & 0.121580079461076 \tabularnewline
18 & 8.5 & 8.41260362566173 & 0.0873963743382644 \tabularnewline
19 & 8.3 & 8.1749166318785 & 0.125083368121506 \tabularnewline
20 & 8 & 8.10777521738346 & -0.107775217383461 \tabularnewline
21 & 8.2 & 8.41468890816708 & -0.214688908167076 \tabularnewline
22 & 8.1 & 7.93984673701553 & 0.160153262984470 \tabularnewline
23 & 8.1 & 8.01320108370719 & 0.086798916292807 \tabularnewline
24 & 8 & 8.01653586494858 & -0.0165358649485785 \tabularnewline
25 & 7.9 & 7.81531225031196 & 0.0846877496880385 \tabularnewline
26 & 7.9 & 7.97089115449125 & -0.0708911544912477 \tabularnewline
27 & 8 & 7.95069080644851 & 0.0493091935514851 \tabularnewline
28 & 8 & 7.92653531878836 & 0.0734646812116348 \tabularnewline
29 & 7.9 & 7.8495693285033 & 0.0504306714966971 \tabularnewline
30 & 8 & 7.7221064400383 & 0.277893559961698 \tabularnewline
31 & 7.7 & 7.86685384060527 & -0.166853840605269 \tabularnewline
32 & 7.2 & 7.37147069880332 & -0.171470698803323 \tabularnewline
33 & 7.5 & 7.50939236500531 & -0.0093923650053092 \tabularnewline
34 & 7.3 & 7.42444357388993 & -0.124443573889929 \tabularnewline
35 & 7 & 7.19949991291147 & -0.199499912911472 \tabularnewline
36 & 7 & 6.79516042004479 & 0.204839579955214 \tabularnewline
37 & 7 & 7.12260179513377 & -0.122601795133774 \tabularnewline
38 & 7.2 & 7.22469795006708 & -0.0246979500670767 \tabularnewline
39 & 7.3 & 7.38116014191347 & -0.0811601419134722 \tabularnewline
40 & 7.1 & 7.13401725784402 & -0.034017257844018 \tabularnewline
41 & 6.8 & 6.98328306368973 & -0.183283063689729 \tabularnewline
42 & 6.4 & 6.56454302971686 & -0.164543029716863 \tabularnewline
43 & 6.1 & 6.17487782564224 & -0.0748778256422407 \tabularnewline
44 & 6.5 & 6.19738524909067 & 0.302614750909328 \tabularnewline
45 & 7.7 & 7.53226670168888 & 0.167733298311124 \tabularnewline
46 & 7.9 & 7.91730226348213 & -0.0173022634821257 \tabularnewline
47 & 7.5 & 7.55341802943585 & -0.0534180294358478 \tabularnewline
48 & 6.9 & 6.9930480960178 & -0.0930480960178024 \tabularnewline
49 & 6.6 & 6.70745045507985 & -0.107450455079847 \tabularnewline
50 & 6.9 & 6.90862026161251 & -0.00862026161250823 \tabularnewline
51 & 7.7 & 7.47797824916904 & 0.222021750830960 \tabularnewline
52 & 8 & 8.11699751651298 & -0.116997516512985 \tabularnewline
53 & 8 & 7.8576106476259 & 0.142389352374098 \tabularnewline
54 & 7.7 & 7.78361823047468 & -0.0836182304746782 \tabularnewline
55 & 7.3 & 7.34438965516174 & -0.0443896551617431 \tabularnewline
56 & 7.4 & 7.1681607892567 & 0.231839210743302 \tabularnewline
57 & 8.1 & 8.18045721516568 & -0.080457215165682 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68911&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]8.2[/C][C]8.2065259819223[/C][C]-0.00652598192229426[/C][/ROW]
[ROW][C]2[/C][C]8.3[/C][C]8.21917347243481[/C][C]0.080826527565189[/C][/ROW]
[ROW][C]3[/C][C]8.5[/C][C]8.73935348273474[/C][C]-0.239353482734742[/C][/ROW]
[ROW][C]4[/C][C]8.6[/C][C]8.57677040592372[/C][C]0.0232295940762796[/C][/ROW]
[ROW][C]5[/C][C]8.5[/C][C]8.63111703964214[/C][C]-0.131117039642143[/C][/ROW]
[ROW][C]6[/C][C]8.2[/C][C]8.31712867410842[/C][C]-0.117128674108420[/C][/ROW]
[ROW][C]7[/C][C]8.1[/C][C]7.93896204671225[/C][C]0.161037953287747[/C][/ROW]
[ROW][C]8[/C][C]7.9[/C][C]8.15520804546585[/C][C]-0.255208045465847[/C][/ROW]
[ROW][C]9[/C][C]8.6[/C][C]8.46319480997306[/C][C]0.136805190026943[/C][/ROW]
[ROW][C]10[/C][C]8.7[/C][C]8.71840742561242[/C][C]-0.0184074256124160[/C][/ROW]
[ROW][C]11[/C][C]8.7[/C][C]8.53388097394549[/C][C]0.166119026054513[/C][/ROW]
[ROW][C]12[/C][C]8.5[/C][C]8.59525561898883[/C][C]-0.0952556189888331[/C][/ROW]
[ROW][C]13[/C][C]8.4[/C][C]8.24810951755212[/C][C]0.151890482447877[/C][/ROW]
[ROW][C]14[/C][C]8.5[/C][C]8.47661716139436[/C][C]0.0233828386056436[/C][/ROW]
[ROW][C]15[/C][C]8.7[/C][C]8.65081731973423[/C][C]0.0491826802657688[/C][/ROW]
[ROW][C]16[/C][C]8.7[/C][C]8.6456795009309[/C][C]0.0543204990690887[/C][/ROW]
[ROW][C]17[/C][C]8.6[/C][C]8.47841992053892[/C][C]0.121580079461076[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.41260362566173[/C][C]0.0873963743382644[/C][/ROW]
[ROW][C]19[/C][C]8.3[/C][C]8.1749166318785[/C][C]0.125083368121506[/C][/ROW]
[ROW][C]20[/C][C]8[/C][C]8.10777521738346[/C][C]-0.107775217383461[/C][/ROW]
[ROW][C]21[/C][C]8.2[/C][C]8.41468890816708[/C][C]-0.214688908167076[/C][/ROW]
[ROW][C]22[/C][C]8.1[/C][C]7.93984673701553[/C][C]0.160153262984470[/C][/ROW]
[ROW][C]23[/C][C]8.1[/C][C]8.01320108370719[/C][C]0.086798916292807[/C][/ROW]
[ROW][C]24[/C][C]8[/C][C]8.01653586494858[/C][C]-0.0165358649485785[/C][/ROW]
[ROW][C]25[/C][C]7.9[/C][C]7.81531225031196[/C][C]0.0846877496880385[/C][/ROW]
[ROW][C]26[/C][C]7.9[/C][C]7.97089115449125[/C][C]-0.0708911544912477[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]7.95069080644851[/C][C]0.0493091935514851[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]7.92653531878836[/C][C]0.0734646812116348[/C][/ROW]
[ROW][C]29[/C][C]7.9[/C][C]7.8495693285033[/C][C]0.0504306714966971[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.7221064400383[/C][C]0.277893559961698[/C][/ROW]
[ROW][C]31[/C][C]7.7[/C][C]7.86685384060527[/C][C]-0.166853840605269[/C][/ROW]
[ROW][C]32[/C][C]7.2[/C][C]7.37147069880332[/C][C]-0.171470698803323[/C][/ROW]
[ROW][C]33[/C][C]7.5[/C][C]7.50939236500531[/C][C]-0.0093923650053092[/C][/ROW]
[ROW][C]34[/C][C]7.3[/C][C]7.42444357388993[/C][C]-0.124443573889929[/C][/ROW]
[ROW][C]35[/C][C]7[/C][C]7.19949991291147[/C][C]-0.199499912911472[/C][/ROW]
[ROW][C]36[/C][C]7[/C][C]6.79516042004479[/C][C]0.204839579955214[/C][/ROW]
[ROW][C]37[/C][C]7[/C][C]7.12260179513377[/C][C]-0.122601795133774[/C][/ROW]
[ROW][C]38[/C][C]7.2[/C][C]7.22469795006708[/C][C]-0.0246979500670767[/C][/ROW]
[ROW][C]39[/C][C]7.3[/C][C]7.38116014191347[/C][C]-0.0811601419134722[/C][/ROW]
[ROW][C]40[/C][C]7.1[/C][C]7.13401725784402[/C][C]-0.034017257844018[/C][/ROW]
[ROW][C]41[/C][C]6.8[/C][C]6.98328306368973[/C][C]-0.183283063689729[/C][/ROW]
[ROW][C]42[/C][C]6.4[/C][C]6.56454302971686[/C][C]-0.164543029716863[/C][/ROW]
[ROW][C]43[/C][C]6.1[/C][C]6.17487782564224[/C][C]-0.0748778256422407[/C][/ROW]
[ROW][C]44[/C][C]6.5[/C][C]6.19738524909067[/C][C]0.302614750909328[/C][/ROW]
[ROW][C]45[/C][C]7.7[/C][C]7.53226670168888[/C][C]0.167733298311124[/C][/ROW]
[ROW][C]46[/C][C]7.9[/C][C]7.91730226348213[/C][C]-0.0173022634821257[/C][/ROW]
[ROW][C]47[/C][C]7.5[/C][C]7.55341802943585[/C][C]-0.0534180294358478[/C][/ROW]
[ROW][C]48[/C][C]6.9[/C][C]6.9930480960178[/C][C]-0.0930480960178024[/C][/ROW]
[ROW][C]49[/C][C]6.6[/C][C]6.70745045507985[/C][C]-0.107450455079847[/C][/ROW]
[ROW][C]50[/C][C]6.9[/C][C]6.90862026161251[/C][C]-0.00862026161250823[/C][/ROW]
[ROW][C]51[/C][C]7.7[/C][C]7.47797824916904[/C][C]0.222021750830960[/C][/ROW]
[ROW][C]52[/C][C]8[/C][C]8.11699751651298[/C][C]-0.116997516512985[/C][/ROW]
[ROW][C]53[/C][C]8[/C][C]7.8576106476259[/C][C]0.142389352374098[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]7.78361823047468[/C][C]-0.0836182304746782[/C][/ROW]
[ROW][C]55[/C][C]7.3[/C][C]7.34438965516174[/C][C]-0.0443896551617431[/C][/ROW]
[ROW][C]56[/C][C]7.4[/C][C]7.1681607892567[/C][C]0.231839210743302[/C][/ROW]
[ROW][C]57[/C][C]8.1[/C][C]8.18045721516568[/C][C]-0.080457215165682[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68911&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68911&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
18.28.2065259819223-0.00652598192229426
28.38.219173472434810.080826527565189
38.58.73935348273474-0.239353482734742
48.68.576770405923720.0232295940762796
58.58.63111703964214-0.131117039642143
68.28.31712867410842-0.117128674108420
78.17.938962046712250.161037953287747
87.98.15520804546585-0.255208045465847
98.68.463194809973060.136805190026943
108.78.71840742561242-0.0184074256124160
118.78.533880973945490.166119026054513
128.58.59525561898883-0.0952556189888331
138.48.248109517552120.151890482447877
148.58.476617161394360.0233828386056436
158.78.650817319734230.0491826802657688
168.78.64567950093090.0543204990690887
178.68.478419920538920.121580079461076
188.58.412603625661730.0873963743382644
198.38.17491663187850.125083368121506
2088.10777521738346-0.107775217383461
218.28.41468890816708-0.214688908167076
228.17.939846737015530.160153262984470
238.18.013201083707190.086798916292807
2488.01653586494858-0.0165358649485785
257.97.815312250311960.0846877496880385
267.97.97089115449125-0.0708911544912477
2787.950690806448510.0493091935514851
2887.926535318788360.0734646812116348
297.97.84956932850330.0504306714966971
3087.72210644003830.277893559961698
317.77.86685384060527-0.166853840605269
327.27.37147069880332-0.171470698803323
337.57.50939236500531-0.0093923650053092
347.37.42444357388993-0.124443573889929
3577.19949991291147-0.199499912911472
3676.795160420044790.204839579955214
3777.12260179513377-0.122601795133774
387.27.22469795006708-0.0246979500670767
397.37.38116014191347-0.0811601419134722
407.17.13401725784402-0.034017257844018
416.86.98328306368973-0.183283063689729
426.46.56454302971686-0.164543029716863
436.16.17487782564224-0.0748778256422407
446.56.197385249090670.302614750909328
457.77.532266701688880.167733298311124
467.97.91730226348213-0.0173022634821257
477.57.55341802943585-0.0534180294358478
486.96.9930480960178-0.0930480960178024
496.66.70745045507985-0.107450455079847
506.96.90862026161251-0.00862026161250823
517.77.477978249169040.222021750830960
5288.11699751651298-0.116997516512985
5387.85761064762590.142389352374098
547.77.78361823047468-0.0836182304746782
557.37.34438965516174-0.0443896551617431
567.47.16816078925670.231839210743302
578.18.18045721516568-0.080457215165682







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.05796712923489710.1159342584697940.942032870765103
210.6565509469095410.6868981061809180.343449053090459
220.57407364207420.8518527158515990.425926357925799
230.4697395689320710.9394791378641420.530260431067929
240.3652143450023870.7304286900047740.634785654997613
250.3052436247217570.6104872494435130.694756375278243
260.2954023190328010.5908046380656030.704597680967199
270.198183841746240.396367683492480.80181615825376
280.1443320651569760.2886641303139520.855667934843024
290.1037724311791540.2075448623583080.896227568820846
300.3498204815392870.6996409630785740.650179518460713
310.4077709132159740.815541826431950.592229086784026
320.4799736825586490.9599473651172980.520026317441351
330.368416607713050.73683321542610.63158339228695
340.3335345657348830.6670691314697660.666465434265117
350.2593882279840450.518776455968090.740611772015955
360.5621868735782960.8756262528434090.437813126421704
370.7023447887057410.5953104225885170.297655211294259

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
20 & 0.0579671292348971 & 0.115934258469794 & 0.942032870765103 \tabularnewline
21 & 0.656550946909541 & 0.686898106180918 & 0.343449053090459 \tabularnewline
22 & 0.5740736420742 & 0.851852715851599 & 0.425926357925799 \tabularnewline
23 & 0.469739568932071 & 0.939479137864142 & 0.530260431067929 \tabularnewline
24 & 0.365214345002387 & 0.730428690004774 & 0.634785654997613 \tabularnewline
25 & 0.305243624721757 & 0.610487249443513 & 0.694756375278243 \tabularnewline
26 & 0.295402319032801 & 0.590804638065603 & 0.704597680967199 \tabularnewline
27 & 0.19818384174624 & 0.39636768349248 & 0.80181615825376 \tabularnewline
28 & 0.144332065156976 & 0.288664130313952 & 0.855667934843024 \tabularnewline
29 & 0.103772431179154 & 0.207544862358308 & 0.896227568820846 \tabularnewline
30 & 0.349820481539287 & 0.699640963078574 & 0.650179518460713 \tabularnewline
31 & 0.407770913215974 & 0.81554182643195 & 0.592229086784026 \tabularnewline
32 & 0.479973682558649 & 0.959947365117298 & 0.520026317441351 \tabularnewline
33 & 0.36841660771305 & 0.7368332154261 & 0.63158339228695 \tabularnewline
34 & 0.333534565734883 & 0.667069131469766 & 0.666465434265117 \tabularnewline
35 & 0.259388227984045 & 0.51877645596809 & 0.740611772015955 \tabularnewline
36 & 0.562186873578296 & 0.875626252843409 & 0.437813126421704 \tabularnewline
37 & 0.702344788705741 & 0.595310422588517 & 0.297655211294259 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68911&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]20[/C][C]0.0579671292348971[/C][C]0.115934258469794[/C][C]0.942032870765103[/C][/ROW]
[ROW][C]21[/C][C]0.656550946909541[/C][C]0.686898106180918[/C][C]0.343449053090459[/C][/ROW]
[ROW][C]22[/C][C]0.5740736420742[/C][C]0.851852715851599[/C][C]0.425926357925799[/C][/ROW]
[ROW][C]23[/C][C]0.469739568932071[/C][C]0.939479137864142[/C][C]0.530260431067929[/C][/ROW]
[ROW][C]24[/C][C]0.365214345002387[/C][C]0.730428690004774[/C][C]0.634785654997613[/C][/ROW]
[ROW][C]25[/C][C]0.305243624721757[/C][C]0.610487249443513[/C][C]0.694756375278243[/C][/ROW]
[ROW][C]26[/C][C]0.295402319032801[/C][C]0.590804638065603[/C][C]0.704597680967199[/C][/ROW]
[ROW][C]27[/C][C]0.19818384174624[/C][C]0.39636768349248[/C][C]0.80181615825376[/C][/ROW]
[ROW][C]28[/C][C]0.144332065156976[/C][C]0.288664130313952[/C][C]0.855667934843024[/C][/ROW]
[ROW][C]29[/C][C]0.103772431179154[/C][C]0.207544862358308[/C][C]0.896227568820846[/C][/ROW]
[ROW][C]30[/C][C]0.349820481539287[/C][C]0.699640963078574[/C][C]0.650179518460713[/C][/ROW]
[ROW][C]31[/C][C]0.407770913215974[/C][C]0.81554182643195[/C][C]0.592229086784026[/C][/ROW]
[ROW][C]32[/C][C]0.479973682558649[/C][C]0.959947365117298[/C][C]0.520026317441351[/C][/ROW]
[ROW][C]33[/C][C]0.36841660771305[/C][C]0.7368332154261[/C][C]0.63158339228695[/C][/ROW]
[ROW][C]34[/C][C]0.333534565734883[/C][C]0.667069131469766[/C][C]0.666465434265117[/C][/ROW]
[ROW][C]35[/C][C]0.259388227984045[/C][C]0.51877645596809[/C][C]0.740611772015955[/C][/ROW]
[ROW][C]36[/C][C]0.562186873578296[/C][C]0.875626252843409[/C][C]0.437813126421704[/C][/ROW]
[ROW][C]37[/C][C]0.702344788705741[/C][C]0.595310422588517[/C][C]0.297655211294259[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68911&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68911&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
200.05796712923489710.1159342584697940.942032870765103
210.6565509469095410.6868981061809180.343449053090459
220.57407364207420.8518527158515990.425926357925799
230.4697395689320710.9394791378641420.530260431067929
240.3652143450023870.7304286900047740.634785654997613
250.3052436247217570.6104872494435130.694756375278243
260.2954023190328010.5908046380656030.704597680967199
270.198183841746240.396367683492480.80181615825376
280.1443320651569760.2886641303139520.855667934843024
290.1037724311791540.2075448623583080.896227568820846
300.3498204815392870.6996409630785740.650179518460713
310.4077709132159740.815541826431950.592229086784026
320.4799736825586490.9599473651172980.520026317441351
330.368416607713050.73683321542610.63158339228695
340.3335345657348830.6670691314697660.666465434265117
350.2593882279840450.518776455968090.740611772015955
360.5621868735782960.8756262528434090.437813126421704
370.7023447887057410.5953104225885170.297655211294259







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

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 0 & 0 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68911&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68911&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68911&T=6

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

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



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}