Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 17:26:03 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/21/t125876327321ji6l23z7zkex9.htm/, Retrieved Sun, 28 Apr 2024 05:01:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58504, Retrieved Sun, 28 Apr 2024 05:01:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact190
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]
-   PD      [Multiple Regression] [Model 3] [2009-11-21 00:26:03] [7d2d29a9bcbcfc0ea3924e19a42d8563] [Current]
Feedback Forum

Post a new message
Dataseries X:
104.08	99.2
103.86	93.6
107.47	104.2
111.1	95.3
117.33	102.7
119.04	103.1
123.68	100
125.9	107.2
124.54	107
119.39	119
118.8	110.4
114.81	101.7
117.9	102.4
120.53	98.8
125.15	105.6
126.49	104.4
131.85	106.3
127.4	107.2
131.08	108.5
122.37	106.9
124.34	114.2
119.61	125.9
119.97	110.6
116.46	110.5
117.03	106.7
120.96	104.7
124.71	107.4
127.08	109.8
131.91	103.4
137.69	114.8
142.46	114.3
144.32	109.6
138.06	118.3
124.45	127.3
126.71	112.3
121.83	114.9
122.51	108.2
125.48	105.4
127.77	122.1
128.03	113.5
132.84	110
133.41	125.3
139.99	114.3
138.53	115.6
136.12	127.1
124.75	123
122.88	122.2
121.46	126.4
118.4	112.7
122.45	105.8
128.94	120.9
133.25	116.3
137.94	115.7
140.04	127.9
130.74	108.3
131.55	121.1
129.47	128.6
125.45	123.1
127.87	127.7
124.68	126.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=58504&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=58504&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58504&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
Y[t] = + 85.7644343849996 + 0.234218267557403X[t] + 0.631597084370433M1[t] + 4.09069715906612M2[t] + 5.61957925812608M3[t] + 8.78867933282185M4[t] + 13.8369594333415M5[t] + 12.9039122784857M6[t] + 16.3271361953193M7[t] + 14.3765491089529M8[t] + 10.5264576830592M9[t] + 1.47643700324979M10[t] + 3.44471695780859M11[t] + 0.191932283694180t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  85.7644343849996 +  0.234218267557403X[t] +  0.631597084370433M1[t] +  4.09069715906612M2[t] +  5.61957925812608M3[t] +  8.78867933282185M4[t] +  13.8369594333415M5[t] +  12.9039122784857M6[t] +  16.3271361953193M7[t] +  14.3765491089529M8[t] +  10.5264576830592M9[t] +  1.47643700324979M10[t] +  3.44471695780859M11[t] +  0.191932283694180t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58504&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  85.7644343849996 +  0.234218267557403X[t] +  0.631597084370433M1[t] +  4.09069715906612M2[t] +  5.61957925812608M3[t] +  8.78867933282185M4[t] +  13.8369594333415M5[t] +  12.9039122784857M6[t] +  16.3271361953193M7[t] +  14.3765491089529M8[t] +  10.5264576830592M9[t] +  1.47643700324979M10[t] +  3.44471695780859M11[t] +  0.191932283694180t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58504&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58504&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] = + 85.7644343849996 + 0.234218267557403X[t] + 0.631597084370433M1[t] + 4.09069715906612M2[t] + 5.61957925812608M3[t] + 8.78867933282185M4[t] + 13.8369594333415M5[t] + 12.9039122784857M6[t] + 16.3271361953193M7[t] + 14.3765491089529M8[t] + 10.5264576830592M9[t] + 1.47643700324979M10[t] + 3.44471695780859M11[t] + 0.191932283694180t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)85.764434384999619.6436544.3667.1e-053.6e-05
X0.2342182675574030.1877961.24720.2186390.10932
M10.6315970843704333.4166540.18490.8541530.427076
M24.090697159066123.7957321.07770.2867830.143391
M35.619579258126083.1933111.75980.0850910.042546
M48.788679332821853.3433612.62870.0116130.005807
M513.83695943334153.3750534.09980.0001678.3e-05
M612.90391227848573.1946494.03920.0002020.000101
M716.32713619531933.3241654.91171.2e-056e-06
M814.37654910895293.2104684.4784.9e-052.5e-05
M910.52645768305923.2623723.22660.002310.001155
M101.476437003249793.5358920.41760.6782140.339107
M113.444716957808593.1757971.08470.2837170.141858
t0.1919322836941800.074912.56220.0137420.006871

\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) & 85.7644343849996 & 19.643654 & 4.366 & 7.1e-05 & 3.6e-05 \tabularnewline
X & 0.234218267557403 & 0.187796 & 1.2472 & 0.218639 & 0.10932 \tabularnewline
M1 & 0.631597084370433 & 3.416654 & 0.1849 & 0.854153 & 0.427076 \tabularnewline
M2 & 4.09069715906612 & 3.795732 & 1.0777 & 0.286783 & 0.143391 \tabularnewline
M3 & 5.61957925812608 & 3.193311 & 1.7598 & 0.085091 & 0.042546 \tabularnewline
M4 & 8.78867933282185 & 3.343361 & 2.6287 & 0.011613 & 0.005807 \tabularnewline
M5 & 13.8369594333415 & 3.375053 & 4.0998 & 0.000167 & 8.3e-05 \tabularnewline
M6 & 12.9039122784857 & 3.194649 & 4.0392 & 0.000202 & 0.000101 \tabularnewline
M7 & 16.3271361953193 & 3.324165 & 4.9117 & 1.2e-05 & 6e-06 \tabularnewline
M8 & 14.3765491089529 & 3.210468 & 4.478 & 4.9e-05 & 2.5e-05 \tabularnewline
M9 & 10.5264576830592 & 3.262372 & 3.2266 & 0.00231 & 0.001155 \tabularnewline
M10 & 1.47643700324979 & 3.535892 & 0.4176 & 0.678214 & 0.339107 \tabularnewline
M11 & 3.44471695780859 & 3.175797 & 1.0847 & 0.283717 & 0.141858 \tabularnewline
t & 0.191932283694180 & 0.07491 & 2.5622 & 0.013742 & 0.006871 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58504&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]85.7644343849996[/C][C]19.643654[/C][C]4.366[/C][C]7.1e-05[/C][C]3.6e-05[/C][/ROW]
[ROW][C]X[/C][C]0.234218267557403[/C][C]0.187796[/C][C]1.2472[/C][C]0.218639[/C][C]0.10932[/C][/ROW]
[ROW][C]M1[/C][C]0.631597084370433[/C][C]3.416654[/C][C]0.1849[/C][C]0.854153[/C][C]0.427076[/C][/ROW]
[ROW][C]M2[/C][C]4.09069715906612[/C][C]3.795732[/C][C]1.0777[/C][C]0.286783[/C][C]0.143391[/C][/ROW]
[ROW][C]M3[/C][C]5.61957925812608[/C][C]3.193311[/C][C]1.7598[/C][C]0.085091[/C][C]0.042546[/C][/ROW]
[ROW][C]M4[/C][C]8.78867933282185[/C][C]3.343361[/C][C]2.6287[/C][C]0.011613[/C][C]0.005807[/C][/ROW]
[ROW][C]M5[/C][C]13.8369594333415[/C][C]3.375053[/C][C]4.0998[/C][C]0.000167[/C][C]8.3e-05[/C][/ROW]
[ROW][C]M6[/C][C]12.9039122784857[/C][C]3.194649[/C][C]4.0392[/C][C]0.000202[/C][C]0.000101[/C][/ROW]
[ROW][C]M7[/C][C]16.3271361953193[/C][C]3.324165[/C][C]4.9117[/C][C]1.2e-05[/C][C]6e-06[/C][/ROW]
[ROW][C]M8[/C][C]14.3765491089529[/C][C]3.210468[/C][C]4.478[/C][C]4.9e-05[/C][C]2.5e-05[/C][/ROW]
[ROW][C]M9[/C][C]10.5264576830592[/C][C]3.262372[/C][C]3.2266[/C][C]0.00231[/C][C]0.001155[/C][/ROW]
[ROW][C]M10[/C][C]1.47643700324979[/C][C]3.535892[/C][C]0.4176[/C][C]0.678214[/C][C]0.339107[/C][/ROW]
[ROW][C]M11[/C][C]3.44471695780859[/C][C]3.175797[/C][C]1.0847[/C][C]0.283717[/C][C]0.141858[/C][/ROW]
[ROW][C]t[/C][C]0.191932283694180[/C][C]0.07491[/C][C]2.5622[/C][C]0.013742[/C][C]0.006871[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58504&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58504&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)85.764434384999619.6436544.3667.1e-053.6e-05
X0.2342182675574030.1877961.24720.2186390.10932
M10.6315970843704333.4166540.18490.8541530.427076
M24.090697159066123.7957321.07770.2867830.143391
M35.619579258126083.1933111.75980.0850910.042546
M48.788679332821853.3433612.62870.0116130.005807
M513.83695943334153.3750534.09980.0001678.3e-05
M612.90391227848573.1946494.03920.0002020.000101
M716.32713619531933.3241654.91171.2e-056e-06
M814.37654910895293.2104684.4784.9e-052.5e-05
M910.52645768305923.2623723.22660.002310.001155
M101.476437003249793.5358920.41760.6782140.339107
M113.444716957808593.1757971.08470.2837170.141858
t0.1919322836941800.074912.56220.0137420.006871







Multiple Linear Regression - Regression Statistics
Multiple R0.859456865028675
R-squared0.738666102844917
Adjusted R-squared0.66481087104022
F-TEST (value)10.0015406464128
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.77725079097968e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.01286005806824
Sum Squared Residuals1155.92323424169

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.859456865028675 \tabularnewline
R-squared & 0.738666102844917 \tabularnewline
Adjusted R-squared & 0.66481087104022 \tabularnewline
F-TEST (value) & 10.0015406464128 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.77725079097968e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.01286005806824 \tabularnewline
Sum Squared Residuals & 1155.92323424169 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58504&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.859456865028675[/C][/ROW]
[ROW][C]R-squared[/C][C]0.738666102844917[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.66481087104022[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.0015406464128[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]1.77725079097968e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.01286005806824[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1155.92323424169[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58504&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58504&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.859456865028675
R-squared0.738666102844917
Adjusted R-squared0.66481087104022
F-TEST (value)10.0015406464128
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.77725079097968e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.01286005806824
Sum Squared Residuals1155.92323424169







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1104.08109.822415894758-5.7424158947582
2103.86112.161825954827-8.301825954827
3107.47116.365353973690-8.89535397368965
4111.1117.641843750819-6.5418437508187
5117.33124.615271314957-7.28527131495727
6119.04123.967843750819-4.92784375081868
7123.68126.856923321918-3.17692332191848
8125.9126.784640045660-0.884640045659552
9124.54123.0796372499491.46036275005146
10119.39117.0321680645222.35783193547781
11118.8117.1781032017811.62189679821851
12114.81111.8876195999182.92238040008234
13117.9112.8751017552725.02489824472755
14120.53115.6829483504564.84705164954433
15125.15118.996446952606.15355304739985
16126.49122.0764173899214.41358261007877
17131.85127.7616444824944.08835551750593
18127.4127.2313260521340.168673947865794
19131.08131.150966000487-0.0709660004865453
20122.37129.017561969722-6.6475619697225
21124.34127.069196180692-2.72919618069201
22119.61120.951461514998-1.34146151499843
23119.97119.5281342596230.441865740376879
24116.46116.2519277587530.208072241247019
25117.03116.1854277100990.84457228990055
26120.96119.3680235333751.59197646662548
27124.71121.7212272385342.98877276146635
28127.08125.6443834390611.43561656093864
29131.91129.3855989109082.52440108909225
30137.69131.3145722899016.37542771009937
31142.46134.8126193566507.64738064335036
32144.32131.95313869645812.3668613035424
33138.06130.3326784820087.72732151799248
34124.45123.5825544939090.867445506091054
35126.71122.2294927188014.48050728119913
36121.83119.5856755403362.24432445966429
37122.51118.8399425157663.67005748423429
38125.48121.8351637249953.64483627500515
39127.77127.4674231759580.302576824042367
40128.03128.814178433354-0.78417843335391
41132.84133.234626881117-0.39462688111677
42133.41136.077051503584-2.66705150358353
43139.99137.1158067609802.87419323902021
44138.53135.6616357061322.86836429386778
45136.12134.6969866408431.42301335915717
46124.75124.878603347742-0.128603347742271
47122.88126.851440971949-3.97144097194932
48121.46124.582373021576-3.12237302157601
49118.4122.197112124104-3.79711212410418
50122.45124.232038436348-1.78203843634797
51128.94129.489548659219-0.549548659218909
52133.25131.7731769868451.47682301315520
53137.94136.8728584105241.06714158947587
54140.04138.9892064035631.05079359643705
55130.74138.013684559966-7.27368455996554
56131.55139.253023582028-7.70302358202809
57129.47137.351501446509-7.8815014465091
58125.45127.205212578828-1.75521257882816
59127.87130.442828847845-2.57282884784519
60124.68126.932404079418-2.25240407941764

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 104.08 & 109.822415894758 & -5.7424158947582 \tabularnewline
2 & 103.86 & 112.161825954827 & -8.301825954827 \tabularnewline
3 & 107.47 & 116.365353973690 & -8.89535397368965 \tabularnewline
4 & 111.1 & 117.641843750819 & -6.5418437508187 \tabularnewline
5 & 117.33 & 124.615271314957 & -7.28527131495727 \tabularnewline
6 & 119.04 & 123.967843750819 & -4.92784375081868 \tabularnewline
7 & 123.68 & 126.856923321918 & -3.17692332191848 \tabularnewline
8 & 125.9 & 126.784640045660 & -0.884640045659552 \tabularnewline
9 & 124.54 & 123.079637249949 & 1.46036275005146 \tabularnewline
10 & 119.39 & 117.032168064522 & 2.35783193547781 \tabularnewline
11 & 118.8 & 117.178103201781 & 1.62189679821851 \tabularnewline
12 & 114.81 & 111.887619599918 & 2.92238040008234 \tabularnewline
13 & 117.9 & 112.875101755272 & 5.02489824472755 \tabularnewline
14 & 120.53 & 115.682948350456 & 4.84705164954433 \tabularnewline
15 & 125.15 & 118.99644695260 & 6.15355304739985 \tabularnewline
16 & 126.49 & 122.076417389921 & 4.41358261007877 \tabularnewline
17 & 131.85 & 127.761644482494 & 4.08835551750593 \tabularnewline
18 & 127.4 & 127.231326052134 & 0.168673947865794 \tabularnewline
19 & 131.08 & 131.150966000487 & -0.0709660004865453 \tabularnewline
20 & 122.37 & 129.017561969722 & -6.6475619697225 \tabularnewline
21 & 124.34 & 127.069196180692 & -2.72919618069201 \tabularnewline
22 & 119.61 & 120.951461514998 & -1.34146151499843 \tabularnewline
23 & 119.97 & 119.528134259623 & 0.441865740376879 \tabularnewline
24 & 116.46 & 116.251927758753 & 0.208072241247019 \tabularnewline
25 & 117.03 & 116.185427710099 & 0.84457228990055 \tabularnewline
26 & 120.96 & 119.368023533375 & 1.59197646662548 \tabularnewline
27 & 124.71 & 121.721227238534 & 2.98877276146635 \tabularnewline
28 & 127.08 & 125.644383439061 & 1.43561656093864 \tabularnewline
29 & 131.91 & 129.385598910908 & 2.52440108909225 \tabularnewline
30 & 137.69 & 131.314572289901 & 6.37542771009937 \tabularnewline
31 & 142.46 & 134.812619356650 & 7.64738064335036 \tabularnewline
32 & 144.32 & 131.953138696458 & 12.3668613035424 \tabularnewline
33 & 138.06 & 130.332678482008 & 7.72732151799248 \tabularnewline
34 & 124.45 & 123.582554493909 & 0.867445506091054 \tabularnewline
35 & 126.71 & 122.229492718801 & 4.48050728119913 \tabularnewline
36 & 121.83 & 119.585675540336 & 2.24432445966429 \tabularnewline
37 & 122.51 & 118.839942515766 & 3.67005748423429 \tabularnewline
38 & 125.48 & 121.835163724995 & 3.64483627500515 \tabularnewline
39 & 127.77 & 127.467423175958 & 0.302576824042367 \tabularnewline
40 & 128.03 & 128.814178433354 & -0.78417843335391 \tabularnewline
41 & 132.84 & 133.234626881117 & -0.39462688111677 \tabularnewline
42 & 133.41 & 136.077051503584 & -2.66705150358353 \tabularnewline
43 & 139.99 & 137.115806760980 & 2.87419323902021 \tabularnewline
44 & 138.53 & 135.661635706132 & 2.86836429386778 \tabularnewline
45 & 136.12 & 134.696986640843 & 1.42301335915717 \tabularnewline
46 & 124.75 & 124.878603347742 & -0.128603347742271 \tabularnewline
47 & 122.88 & 126.851440971949 & -3.97144097194932 \tabularnewline
48 & 121.46 & 124.582373021576 & -3.12237302157601 \tabularnewline
49 & 118.4 & 122.197112124104 & -3.79711212410418 \tabularnewline
50 & 122.45 & 124.232038436348 & -1.78203843634797 \tabularnewline
51 & 128.94 & 129.489548659219 & -0.549548659218909 \tabularnewline
52 & 133.25 & 131.773176986845 & 1.47682301315520 \tabularnewline
53 & 137.94 & 136.872858410524 & 1.06714158947587 \tabularnewline
54 & 140.04 & 138.989206403563 & 1.05079359643705 \tabularnewline
55 & 130.74 & 138.013684559966 & -7.27368455996554 \tabularnewline
56 & 131.55 & 139.253023582028 & -7.70302358202809 \tabularnewline
57 & 129.47 & 137.351501446509 & -7.8815014465091 \tabularnewline
58 & 125.45 & 127.205212578828 & -1.75521257882816 \tabularnewline
59 & 127.87 & 130.442828847845 & -2.57282884784519 \tabularnewline
60 & 124.68 & 126.932404079418 & -2.25240407941764 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58504&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]104.08[/C][C]109.822415894758[/C][C]-5.7424158947582[/C][/ROW]
[ROW][C]2[/C][C]103.86[/C][C]112.161825954827[/C][C]-8.301825954827[/C][/ROW]
[ROW][C]3[/C][C]107.47[/C][C]116.365353973690[/C][C]-8.89535397368965[/C][/ROW]
[ROW][C]4[/C][C]111.1[/C][C]117.641843750819[/C][C]-6.5418437508187[/C][/ROW]
[ROW][C]5[/C][C]117.33[/C][C]124.615271314957[/C][C]-7.28527131495727[/C][/ROW]
[ROW][C]6[/C][C]119.04[/C][C]123.967843750819[/C][C]-4.92784375081868[/C][/ROW]
[ROW][C]7[/C][C]123.68[/C][C]126.856923321918[/C][C]-3.17692332191848[/C][/ROW]
[ROW][C]8[/C][C]125.9[/C][C]126.784640045660[/C][C]-0.884640045659552[/C][/ROW]
[ROW][C]9[/C][C]124.54[/C][C]123.079637249949[/C][C]1.46036275005146[/C][/ROW]
[ROW][C]10[/C][C]119.39[/C][C]117.032168064522[/C][C]2.35783193547781[/C][/ROW]
[ROW][C]11[/C][C]118.8[/C][C]117.178103201781[/C][C]1.62189679821851[/C][/ROW]
[ROW][C]12[/C][C]114.81[/C][C]111.887619599918[/C][C]2.92238040008234[/C][/ROW]
[ROW][C]13[/C][C]117.9[/C][C]112.875101755272[/C][C]5.02489824472755[/C][/ROW]
[ROW][C]14[/C][C]120.53[/C][C]115.682948350456[/C][C]4.84705164954433[/C][/ROW]
[ROW][C]15[/C][C]125.15[/C][C]118.99644695260[/C][C]6.15355304739985[/C][/ROW]
[ROW][C]16[/C][C]126.49[/C][C]122.076417389921[/C][C]4.41358261007877[/C][/ROW]
[ROW][C]17[/C][C]131.85[/C][C]127.761644482494[/C][C]4.08835551750593[/C][/ROW]
[ROW][C]18[/C][C]127.4[/C][C]127.231326052134[/C][C]0.168673947865794[/C][/ROW]
[ROW][C]19[/C][C]131.08[/C][C]131.150966000487[/C][C]-0.0709660004865453[/C][/ROW]
[ROW][C]20[/C][C]122.37[/C][C]129.017561969722[/C][C]-6.6475619697225[/C][/ROW]
[ROW][C]21[/C][C]124.34[/C][C]127.069196180692[/C][C]-2.72919618069201[/C][/ROW]
[ROW][C]22[/C][C]119.61[/C][C]120.951461514998[/C][C]-1.34146151499843[/C][/ROW]
[ROW][C]23[/C][C]119.97[/C][C]119.528134259623[/C][C]0.441865740376879[/C][/ROW]
[ROW][C]24[/C][C]116.46[/C][C]116.251927758753[/C][C]0.208072241247019[/C][/ROW]
[ROW][C]25[/C][C]117.03[/C][C]116.185427710099[/C][C]0.84457228990055[/C][/ROW]
[ROW][C]26[/C][C]120.96[/C][C]119.368023533375[/C][C]1.59197646662548[/C][/ROW]
[ROW][C]27[/C][C]124.71[/C][C]121.721227238534[/C][C]2.98877276146635[/C][/ROW]
[ROW][C]28[/C][C]127.08[/C][C]125.644383439061[/C][C]1.43561656093864[/C][/ROW]
[ROW][C]29[/C][C]131.91[/C][C]129.385598910908[/C][C]2.52440108909225[/C][/ROW]
[ROW][C]30[/C][C]137.69[/C][C]131.314572289901[/C][C]6.37542771009937[/C][/ROW]
[ROW][C]31[/C][C]142.46[/C][C]134.812619356650[/C][C]7.64738064335036[/C][/ROW]
[ROW][C]32[/C][C]144.32[/C][C]131.953138696458[/C][C]12.3668613035424[/C][/ROW]
[ROW][C]33[/C][C]138.06[/C][C]130.332678482008[/C][C]7.72732151799248[/C][/ROW]
[ROW][C]34[/C][C]124.45[/C][C]123.582554493909[/C][C]0.867445506091054[/C][/ROW]
[ROW][C]35[/C][C]126.71[/C][C]122.229492718801[/C][C]4.48050728119913[/C][/ROW]
[ROW][C]36[/C][C]121.83[/C][C]119.585675540336[/C][C]2.24432445966429[/C][/ROW]
[ROW][C]37[/C][C]122.51[/C][C]118.839942515766[/C][C]3.67005748423429[/C][/ROW]
[ROW][C]38[/C][C]125.48[/C][C]121.835163724995[/C][C]3.64483627500515[/C][/ROW]
[ROW][C]39[/C][C]127.77[/C][C]127.467423175958[/C][C]0.302576824042367[/C][/ROW]
[ROW][C]40[/C][C]128.03[/C][C]128.814178433354[/C][C]-0.78417843335391[/C][/ROW]
[ROW][C]41[/C][C]132.84[/C][C]133.234626881117[/C][C]-0.39462688111677[/C][/ROW]
[ROW][C]42[/C][C]133.41[/C][C]136.077051503584[/C][C]-2.66705150358353[/C][/ROW]
[ROW][C]43[/C][C]139.99[/C][C]137.115806760980[/C][C]2.87419323902021[/C][/ROW]
[ROW][C]44[/C][C]138.53[/C][C]135.661635706132[/C][C]2.86836429386778[/C][/ROW]
[ROW][C]45[/C][C]136.12[/C][C]134.696986640843[/C][C]1.42301335915717[/C][/ROW]
[ROW][C]46[/C][C]124.75[/C][C]124.878603347742[/C][C]-0.128603347742271[/C][/ROW]
[ROW][C]47[/C][C]122.88[/C][C]126.851440971949[/C][C]-3.97144097194932[/C][/ROW]
[ROW][C]48[/C][C]121.46[/C][C]124.582373021576[/C][C]-3.12237302157601[/C][/ROW]
[ROW][C]49[/C][C]118.4[/C][C]122.197112124104[/C][C]-3.79711212410418[/C][/ROW]
[ROW][C]50[/C][C]122.45[/C][C]124.232038436348[/C][C]-1.78203843634797[/C][/ROW]
[ROW][C]51[/C][C]128.94[/C][C]129.489548659219[/C][C]-0.549548659218909[/C][/ROW]
[ROW][C]52[/C][C]133.25[/C][C]131.773176986845[/C][C]1.47682301315520[/C][/ROW]
[ROW][C]53[/C][C]137.94[/C][C]136.872858410524[/C][C]1.06714158947587[/C][/ROW]
[ROW][C]54[/C][C]140.04[/C][C]138.989206403563[/C][C]1.05079359643705[/C][/ROW]
[ROW][C]55[/C][C]130.74[/C][C]138.013684559966[/C][C]-7.27368455996554[/C][/ROW]
[ROW][C]56[/C][C]131.55[/C][C]139.253023582028[/C][C]-7.70302358202809[/C][/ROW]
[ROW][C]57[/C][C]129.47[/C][C]137.351501446509[/C][C]-7.8815014465091[/C][/ROW]
[ROW][C]58[/C][C]125.45[/C][C]127.205212578828[/C][C]-1.75521257882816[/C][/ROW]
[ROW][C]59[/C][C]127.87[/C][C]130.442828847845[/C][C]-2.57282884784519[/C][/ROW]
[ROW][C]60[/C][C]124.68[/C][C]126.932404079418[/C][C]-2.25240407941764[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58504&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58504&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
1104.08109.822415894758-5.7424158947582
2103.86112.161825954827-8.301825954827
3107.47116.365353973690-8.89535397368965
4111.1117.641843750819-6.5418437508187
5117.33124.615271314957-7.28527131495727
6119.04123.967843750819-4.92784375081868
7123.68126.856923321918-3.17692332191848
8125.9126.784640045660-0.884640045659552
9124.54123.0796372499491.46036275005146
10119.39117.0321680645222.35783193547781
11118.8117.1781032017811.62189679821851
12114.81111.8876195999182.92238040008234
13117.9112.8751017552725.02489824472755
14120.53115.6829483504564.84705164954433
15125.15118.996446952606.15355304739985
16126.49122.0764173899214.41358261007877
17131.85127.7616444824944.08835551750593
18127.4127.2313260521340.168673947865794
19131.08131.150966000487-0.0709660004865453
20122.37129.017561969722-6.6475619697225
21124.34127.069196180692-2.72919618069201
22119.61120.951461514998-1.34146151499843
23119.97119.5281342596230.441865740376879
24116.46116.2519277587530.208072241247019
25117.03116.1854277100990.84457228990055
26120.96119.3680235333751.59197646662548
27124.71121.7212272385342.98877276146635
28127.08125.6443834390611.43561656093864
29131.91129.3855989109082.52440108909225
30137.69131.3145722899016.37542771009937
31142.46134.8126193566507.64738064335036
32144.32131.95313869645812.3668613035424
33138.06130.3326784820087.72732151799248
34124.45123.5825544939090.867445506091054
35126.71122.2294927188014.48050728119913
36121.83119.5856755403362.24432445966429
37122.51118.8399425157663.67005748423429
38125.48121.8351637249953.64483627500515
39127.77127.4674231759580.302576824042367
40128.03128.814178433354-0.78417843335391
41132.84133.234626881117-0.39462688111677
42133.41136.077051503584-2.66705150358353
43139.99137.1158067609802.87419323902021
44138.53135.6616357061322.86836429386778
45136.12134.6969866408431.42301335915717
46124.75124.878603347742-0.128603347742271
47122.88126.851440971949-3.97144097194932
48121.46124.582373021576-3.12237302157601
49118.4122.197112124104-3.79711212410418
50122.45124.232038436348-1.78203843634797
51128.94129.489548659219-0.549548659218909
52133.25131.7731769868451.47682301315520
53137.94136.8728584105241.06714158947587
54140.04138.9892064035631.05079359643705
55130.74138.013684559966-7.27368455996554
56131.55139.253023582028-7.70302358202809
57129.47137.351501446509-7.8815014465091
58125.45127.205212578828-1.75521257882816
59127.87130.442828847845-2.57282884784519
60124.68126.932404079418-2.25240407941764







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.02861769135280570.05723538270561140.971382308647194
180.1436522818317040.2873045636634070.856347718168296
190.1541469990466560.3082939980933120.845853000953344
200.798989034760680.4020219304786420.201010965239321
210.9254932937358530.1490134125282930.0745067062641466
220.948458832185640.1030823356287210.0515411678143605
230.9448069709492440.1103860581015120.0551930290507562
240.9489351095654740.1021297808690510.0510648904345256
250.938201656984070.1235966860318580.0617983430159292
260.9179423694234050.1641152611531890.0820576305765947
270.8819167105246790.2361665789506420.118083289475321
280.8576384130402860.2847231739194270.142361586959714
290.8259050318021060.3481899363957870.174094968197894
300.7707877834386730.4584244331226540.229212216561327
310.7429783374150590.5140433251698820.257021662584941
320.8720904267593320.2558191464813360.127909573240668
330.8629330184166060.2741339631667880.137066981583394
340.8382772662843440.3234454674313130.161722733715656
350.800972666521390.3980546669572210.199027333478610
360.7519758773108920.4960482453782160.248024122689108
370.7409749830896320.5180500338207360.259025016910368
380.6543805160147740.6912389679704520.345619483985226
390.5861171764355590.8277656471288820.413882823564441
400.5401220915026960.9197558169946080.459877908497304
410.4479313297987140.8958626595974280.552068670201286
420.4845886465967250.969177293193450.515411353403275
430.424476620424790.848953240849580.57552337957521

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0286176913528057 & 0.0572353827056114 & 0.971382308647194 \tabularnewline
18 & 0.143652281831704 & 0.287304563663407 & 0.856347718168296 \tabularnewline
19 & 0.154146999046656 & 0.308293998093312 & 0.845853000953344 \tabularnewline
20 & 0.79898903476068 & 0.402021930478642 & 0.201010965239321 \tabularnewline
21 & 0.925493293735853 & 0.149013412528293 & 0.0745067062641466 \tabularnewline
22 & 0.94845883218564 & 0.103082335628721 & 0.0515411678143605 \tabularnewline
23 & 0.944806970949244 & 0.110386058101512 & 0.0551930290507562 \tabularnewline
24 & 0.948935109565474 & 0.102129780869051 & 0.0510648904345256 \tabularnewline
25 & 0.93820165698407 & 0.123596686031858 & 0.0617983430159292 \tabularnewline
26 & 0.917942369423405 & 0.164115261153189 & 0.0820576305765947 \tabularnewline
27 & 0.881916710524679 & 0.236166578950642 & 0.118083289475321 \tabularnewline
28 & 0.857638413040286 & 0.284723173919427 & 0.142361586959714 \tabularnewline
29 & 0.825905031802106 & 0.348189936395787 & 0.174094968197894 \tabularnewline
30 & 0.770787783438673 & 0.458424433122654 & 0.229212216561327 \tabularnewline
31 & 0.742978337415059 & 0.514043325169882 & 0.257021662584941 \tabularnewline
32 & 0.872090426759332 & 0.255819146481336 & 0.127909573240668 \tabularnewline
33 & 0.862933018416606 & 0.274133963166788 & 0.137066981583394 \tabularnewline
34 & 0.838277266284344 & 0.323445467431313 & 0.161722733715656 \tabularnewline
35 & 0.80097266652139 & 0.398054666957221 & 0.199027333478610 \tabularnewline
36 & 0.751975877310892 & 0.496048245378216 & 0.248024122689108 \tabularnewline
37 & 0.740974983089632 & 0.518050033820736 & 0.259025016910368 \tabularnewline
38 & 0.654380516014774 & 0.691238967970452 & 0.345619483985226 \tabularnewline
39 & 0.586117176435559 & 0.827765647128882 & 0.413882823564441 \tabularnewline
40 & 0.540122091502696 & 0.919755816994608 & 0.459877908497304 \tabularnewline
41 & 0.447931329798714 & 0.895862659597428 & 0.552068670201286 \tabularnewline
42 & 0.484588646596725 & 0.96917729319345 & 0.515411353403275 \tabularnewline
43 & 0.42447662042479 & 0.84895324084958 & 0.57552337957521 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58504&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.0286176913528057[/C][C]0.0572353827056114[/C][C]0.971382308647194[/C][/ROW]
[ROW][C]18[/C][C]0.143652281831704[/C][C]0.287304563663407[/C][C]0.856347718168296[/C][/ROW]
[ROW][C]19[/C][C]0.154146999046656[/C][C]0.308293998093312[/C][C]0.845853000953344[/C][/ROW]
[ROW][C]20[/C][C]0.79898903476068[/C][C]0.402021930478642[/C][C]0.201010965239321[/C][/ROW]
[ROW][C]21[/C][C]0.925493293735853[/C][C]0.149013412528293[/C][C]0.0745067062641466[/C][/ROW]
[ROW][C]22[/C][C]0.94845883218564[/C][C]0.103082335628721[/C][C]0.0515411678143605[/C][/ROW]
[ROW][C]23[/C][C]0.944806970949244[/C][C]0.110386058101512[/C][C]0.0551930290507562[/C][/ROW]
[ROW][C]24[/C][C]0.948935109565474[/C][C]0.102129780869051[/C][C]0.0510648904345256[/C][/ROW]
[ROW][C]25[/C][C]0.93820165698407[/C][C]0.123596686031858[/C][C]0.0617983430159292[/C][/ROW]
[ROW][C]26[/C][C]0.917942369423405[/C][C]0.164115261153189[/C][C]0.0820576305765947[/C][/ROW]
[ROW][C]27[/C][C]0.881916710524679[/C][C]0.236166578950642[/C][C]0.118083289475321[/C][/ROW]
[ROW][C]28[/C][C]0.857638413040286[/C][C]0.284723173919427[/C][C]0.142361586959714[/C][/ROW]
[ROW][C]29[/C][C]0.825905031802106[/C][C]0.348189936395787[/C][C]0.174094968197894[/C][/ROW]
[ROW][C]30[/C][C]0.770787783438673[/C][C]0.458424433122654[/C][C]0.229212216561327[/C][/ROW]
[ROW][C]31[/C][C]0.742978337415059[/C][C]0.514043325169882[/C][C]0.257021662584941[/C][/ROW]
[ROW][C]32[/C][C]0.872090426759332[/C][C]0.255819146481336[/C][C]0.127909573240668[/C][/ROW]
[ROW][C]33[/C][C]0.862933018416606[/C][C]0.274133963166788[/C][C]0.137066981583394[/C][/ROW]
[ROW][C]34[/C][C]0.838277266284344[/C][C]0.323445467431313[/C][C]0.161722733715656[/C][/ROW]
[ROW][C]35[/C][C]0.80097266652139[/C][C]0.398054666957221[/C][C]0.199027333478610[/C][/ROW]
[ROW][C]36[/C][C]0.751975877310892[/C][C]0.496048245378216[/C][C]0.248024122689108[/C][/ROW]
[ROW][C]37[/C][C]0.740974983089632[/C][C]0.518050033820736[/C][C]0.259025016910368[/C][/ROW]
[ROW][C]38[/C][C]0.654380516014774[/C][C]0.691238967970452[/C][C]0.345619483985226[/C][/ROW]
[ROW][C]39[/C][C]0.586117176435559[/C][C]0.827765647128882[/C][C]0.413882823564441[/C][/ROW]
[ROW][C]40[/C][C]0.540122091502696[/C][C]0.919755816994608[/C][C]0.459877908497304[/C][/ROW]
[ROW][C]41[/C][C]0.447931329798714[/C][C]0.895862659597428[/C][C]0.552068670201286[/C][/ROW]
[ROW][C]42[/C][C]0.484588646596725[/C][C]0.96917729319345[/C][C]0.515411353403275[/C][/ROW]
[ROW][C]43[/C][C]0.42447662042479[/C][C]0.84895324084958[/C][C]0.57552337957521[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58504&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58504&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.02861769135280570.05723538270561140.971382308647194
180.1436522818317040.2873045636634070.856347718168296
190.1541469990466560.3082939980933120.845853000953344
200.798989034760680.4020219304786420.201010965239321
210.9254932937358530.1490134125282930.0745067062641466
220.948458832185640.1030823356287210.0515411678143605
230.9448069709492440.1103860581015120.0551930290507562
240.9489351095654740.1021297808690510.0510648904345256
250.938201656984070.1235966860318580.0617983430159292
260.9179423694234050.1641152611531890.0820576305765947
270.8819167105246790.2361665789506420.118083289475321
280.8576384130402860.2847231739194270.142361586959714
290.8259050318021060.3481899363957870.174094968197894
300.7707877834386730.4584244331226540.229212216561327
310.7429783374150590.5140433251698820.257021662584941
320.8720904267593320.2558191464813360.127909573240668
330.8629330184166060.2741339631667880.137066981583394
340.8382772662843440.3234454674313130.161722733715656
350.800972666521390.3980546669572210.199027333478610
360.7519758773108920.4960482453782160.248024122689108
370.7409749830896320.5180500338207360.259025016910368
380.6543805160147740.6912389679704520.345619483985226
390.5861171764355590.8277656471288820.413882823564441
400.5401220915026960.9197558169946080.459877908497304
410.4479313297987140.8958626595974280.552068670201286
420.4845886465967250.969177293193450.515411353403275
430.424476620424790.848953240849580.57552337957521







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 level10.0370370370370370OK

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

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



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