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 computationSun, 07 Dec 2008 05:55:51 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/07/t12286546543aaxe2dliqwy0cy.htm/, Retrieved Sat, 18 May 2024 08:58:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=29912, Retrieved Sat, 18 May 2024 08:58:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact220
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Multiple Regression] [] [2007-11-19 20:22:41] [3a1956effdcb54c39e5044435310d6c8]
-    D  [Multiple Regression] [seatbelt_3.2.] [2008-11-23 14:44:53] [922d8ae7bd2fd460a62d9020ccd4931a]
F   PD    [Multiple Regression] [seatbelt3CG2] [2008-11-23 15:00:12] [922d8ae7bd2fd460a62d9020ccd4931a]
-   PD        [Multiple Regression] [dummy3] [2008-12-07 12:55:51] [89a49ebb3ece8e9a225c7f9f53a14c57] [Current]
Feedback Forum

Post a new message
Dataseries X:
86,9	0
99,7	0
109,1	0
94,6	0
111,2	0
112,8	0
53,5	0
107,5	0
105,2	0
122,8	0
103,4	0
76,9	0
89,6	0
92,8	0
107,6	0
104,6	0
103	0
106,9	0
56,3	0
93,4	0
109,1	0
113,8	0
97,4	0
72,5	0
82,7	0
88,9	0
105,9	0
100,8	0
94	0
105	0
58,5	0
87,6	0
113,1	0
112,5	0
89,6	0
74,5	0
82,7	0
90,1	0
109,4	0
96	0
89,2	0
109,1	0
49,1	0
92,9	0
107,7	0
103,5	0
91,1	0
79,8	0
71,9	0
82,9	0
90,1	0
100,7	0
90,7	0
108,8	0
44,1	0
93,6	0
107,4	0
96,5	0
93,6	0
76,5	0
76,7	0
84	0
103,3	0
88,5	0
99	0
105,9	0
44,7	0
94	0
107,1	0
104,8	0
102,5	0
77,7	0
85,2	0
91,3	0
106,5	0
92,4	0
97,5	0
107	0
51,1	1
98,6	1
102,2	1
114,3	1
99,4	1
72,5	1
92,3	1
99,4	1
85,9	1
109,4	1
97,6	1
104,7	1
56,9	1
86,7	1
108,5	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 6 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29912&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29912&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29912&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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
Bouwnijverheid[t] = + 80.4038607474862 + 6.13955289951306`Wel(1)_geen(0)_financiële_crisis`[t] + 7.26429888909968M1[t] + 15.0165803716352M2[t] + 26.2188618541706M3[t] + 22.4836433367061M4[t] + 21.9984248192416M5[t] + 31.863206301777M6[t] -24.5394563281267M7[t] + 18.0878251544088M8[t] + 31.4526066369443M9[t] + 33.7418656063576M10[t] + 20.8280756603217M11[t] -0.114781482535467t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Bouwnijverheid[t] =  +  80.4038607474862 +  6.13955289951306`Wel(1)_geen(0)_financiële_crisis`[t] +  7.26429888909968M1[t] +  15.0165803716352M2[t] +  26.2188618541706M3[t] +  22.4836433367061M4[t] +  21.9984248192416M5[t] +  31.863206301777M6[t] -24.5394563281267M7[t] +  18.0878251544088M8[t] +  31.4526066369443M9[t] +  33.7418656063576M10[t] +  20.8280756603217M11[t] -0.114781482535467t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29912&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Bouwnijverheid[t] =  +  80.4038607474862 +  6.13955289951306`Wel(1)_geen(0)_financiële_crisis`[t] +  7.26429888909968M1[t] +  15.0165803716352M2[t] +  26.2188618541706M3[t] +  22.4836433367061M4[t] +  21.9984248192416M5[t] +  31.863206301777M6[t] -24.5394563281267M7[t] +  18.0878251544088M8[t] +  31.4526066369443M9[t] +  33.7418656063576M10[t] +  20.8280756603217M11[t] -0.114781482535467t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29912&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29912&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
Bouwnijverheid[t] = + 80.4038607474862 + 6.13955289951306`Wel(1)_geen(0)_financiële_crisis`[t] + 7.26429888909968M1[t] + 15.0165803716352M2[t] + 26.2188618541706M3[t] + 22.4836433367061M4[t] + 21.9984248192416M5[t] + 31.863206301777M6[t] -24.5394563281267M7[t] + 18.0878251544088M8[t] + 31.4526066369443M9[t] + 33.7418656063576M10[t] + 20.8280756603217M11[t] -0.114781482535467t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)80.40386074748622.4859432.343400
`Wel(1)_geen(0)_financiële_crisis`6.139552899513062.1191232.89720.0048690.002435
M17.264298889099682.9728052.44360.0167720.008386
M215.01658037163522.9717795.05313e-061e-06
M326.21886185417062.9710338.824800
M422.48364333670612.9705677.568800
M521.99842481924162.9703817.405900
M631.8632063017772.97047410.726600
M7-24.53945632812672.977639-8.241200
M818.08782515440882.9766596.076600
M931.45260663694432.97595810.568900
M1033.74186560635763.06818610.997300
M1120.82807566032173.0677796.789300
t-0.1147814825354670.028839-3.980.0001527.6e-05

\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) & 80.4038607474862 & 2.48594 & 32.3434 & 0 & 0 \tabularnewline
`Wel(1)_geen(0)_financiële_crisis` & 6.13955289951306 & 2.119123 & 2.8972 & 0.004869 & 0.002435 \tabularnewline
M1 & 7.26429888909968 & 2.972805 & 2.4436 & 0.016772 & 0.008386 \tabularnewline
M2 & 15.0165803716352 & 2.971779 & 5.0531 & 3e-06 & 1e-06 \tabularnewline
M3 & 26.2188618541706 & 2.971033 & 8.8248 & 0 & 0 \tabularnewline
M4 & 22.4836433367061 & 2.970567 & 7.5688 & 0 & 0 \tabularnewline
M5 & 21.9984248192416 & 2.970381 & 7.4059 & 0 & 0 \tabularnewline
M6 & 31.863206301777 & 2.970474 & 10.7266 & 0 & 0 \tabularnewline
M7 & -24.5394563281267 & 2.977639 & -8.2412 & 0 & 0 \tabularnewline
M8 & 18.0878251544088 & 2.976659 & 6.0766 & 0 & 0 \tabularnewline
M9 & 31.4526066369443 & 2.975958 & 10.5689 & 0 & 0 \tabularnewline
M10 & 33.7418656063576 & 3.068186 & 10.9973 & 0 & 0 \tabularnewline
M11 & 20.8280756603217 & 3.067779 & 6.7893 & 0 & 0 \tabularnewline
t & -0.114781482535467 & 0.028839 & -3.98 & 0.000152 & 7.6e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29912&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]80.4038607474862[/C][C]2.48594[/C][C]32.3434[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]`Wel(1)_geen(0)_financiële_crisis`[/C][C]6.13955289951306[/C][C]2.119123[/C][C]2.8972[/C][C]0.004869[/C][C]0.002435[/C][/ROW]
[ROW][C]M1[/C][C]7.26429888909968[/C][C]2.972805[/C][C]2.4436[/C][C]0.016772[/C][C]0.008386[/C][/ROW]
[ROW][C]M2[/C][C]15.0165803716352[/C][C]2.971779[/C][C]5.0531[/C][C]3e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M3[/C][C]26.2188618541706[/C][C]2.971033[/C][C]8.8248[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]22.4836433367061[/C][C]2.970567[/C][C]7.5688[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]21.9984248192416[/C][C]2.970381[/C][C]7.4059[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]31.863206301777[/C][C]2.970474[/C][C]10.7266[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-24.5394563281267[/C][C]2.977639[/C][C]-8.2412[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]18.0878251544088[/C][C]2.976659[/C][C]6.0766[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]31.4526066369443[/C][C]2.975958[/C][C]10.5689[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]33.7418656063576[/C][C]3.068186[/C][C]10.9973[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]20.8280756603217[/C][C]3.067779[/C][C]6.7893[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]t[/C][C]-0.114781482535467[/C][C]0.028839[/C][C]-3.98[/C][C]0.000152[/C][C]7.6e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29912&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29912&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)80.40386074748622.4859432.343400
`Wel(1)_geen(0)_financiële_crisis`6.139552899513062.1191232.89720.0048690.002435
M17.264298889099682.9728052.44360.0167720.008386
M215.01658037163522.9717795.05313e-061e-06
M326.21886185417062.9710338.824800
M422.48364333670612.9705677.568800
M521.99842481924162.9703817.405900
M631.8632063017772.97047410.726600
M7-24.53945632812672.977639-8.241200
M818.08782515440882.9766596.076600
M931.45260663694432.97595810.568900
M1033.74186560635763.06818610.997300
M1120.82807566032173.0677796.789300
t-0.1147814825354670.028839-3.980.0001527.6e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.948844244850798
R-squared0.900305400986481
Adjusted R-squared0.883899960642484
F-TEST (value)54.8784660520207
F-TEST (DF numerator)13
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.7390358528424
Sum Squared Residuals2601.98606909663

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.948844244850798 \tabularnewline
R-squared & 0.900305400986481 \tabularnewline
Adjusted R-squared & 0.883899960642484 \tabularnewline
F-TEST (value) & 54.8784660520207 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 79 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.7390358528424 \tabularnewline
Sum Squared Residuals & 2601.98606909663 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29912&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.948844244850798[/C][/ROW]
[ROW][C]R-squared[/C][C]0.900305400986481[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.883899960642484[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]54.8784660520207[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]79[/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]5.7390358528424[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2601.98606909663[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29912&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29912&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.948844244850798
R-squared0.900305400986481
Adjusted R-squared0.883899960642484
F-TEST (value)54.8784660520207
F-TEST (DF numerator)13
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.7390358528424
Sum Squared Residuals2601.98606909663







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
186.987.5533781540505-0.65337815405051
299.795.19087815405054.50912184594954
3109.1106.2783781540502.82162184594954
494.6102.428378154050-7.82837815405046
5111.2101.8283781540509.37162184594954
6112.8111.5783781540501.22162184594953
753.555.0609340416113-1.56093404161133
8107.597.57343404161139.92656595838867
9105.2110.823434041611-5.62343404161132
10122.8112.9979115284899.80208847151078
11103.499.96934009991783.43065990008222
1276.979.0264829570607-2.12648295706064
1389.686.17600036362493.42399963637512
1492.893.8135003636249-1.01350036362487
15107.6104.9010003636252.69899963637513
16104.6101.0510003636253.54899963637513
17103100.4510003636252.54899963637514
18106.9110.201000363625-3.30100036362486
1956.353.68355625118572.61644374881427
2093.496.1960562511857-2.79605625118573
21109.1109.446056251186-0.34605625118574
22113.8111.6205337380642.17946626193638
2397.498.5919623094922-1.19196230949218
2472.577.649105166635-5.14910516663505
2582.784.7986225731993-2.09862257319925
2688.992.4361225731993-3.53612257319926
27105.9103.5236225731992.37637742680074
28100.899.67362257319931.12637742680073
299499.0736225731993-5.07362257319926
30105108.823622573199-3.82362257319927
3158.552.30617846076016.19382153923987
3287.694.8186784607601-7.21867846076014
33113.1108.0686784607605.03132153923986
34112.5110.2431559476382.25684405236199
3589.697.2145845190666-7.61458451906659
3674.576.2717273762094-1.77172737620945
3782.783.4212447827737-0.721244782773657
3890.191.0587447827737-0.958744782773674
39109.4102.1462447827747.25375521722633
409698.2962447827737-2.29624478277367
4189.297.6962447827737-8.49624478277366
42109.1107.4462447827741.65375521722633
4349.150.9288006703345-1.82880067033453
4492.993.4413006703345-0.541300670334532
45107.7106.6913006703351.00869932966547
46103.5108.865778157212-5.36577815721242
4791.195.837206728641-4.737206728641
4879.874.89434958578384.90565041421615
4971.982.043866992348-10.1438669923481
5082.989.681366992348-6.78136699234806
5190.1100.768866992348-10.6688669923481
52100.796.9188669923483.78113300765194
5390.796.318866992348-5.61886699234806
54108.8106.0688669923482.73113300765193
5544.149.5514228799089-5.45142287990893
5693.692.0639228799091.53607712009106
57107.4105.3139228799092.08607712009107
5896.5107.488400366787-10.9884003667868
5993.694.4598289382154-0.859828938215399
6076.573.51697179535822.98302820464175
6176.780.6664892019225-3.96648920192246
628488.3039892019225-4.30398920192247
63103.399.39148920192253.90851079807753
6488.595.5414892019225-7.04148920192247
659994.94148920192254.05851079807753
66105.9104.6914892019221.20851079807754
6744.748.1740450894833-3.47404508948333
689490.68654508948333.31345491051666
69107.1103.9365450894833.16345491051666
70104.8106.111022576361-1.31102257636123
71102.593.08245114778989.4175488522102
7277.772.13959400493265.56040599506735
7385.279.28911141149695.91088858850314
7491.386.92661141149694.37338858850312
75106.598.01411141149698.48588858850312
7692.494.1641114114969-1.76411141149687
7797.593.56411141149693.93588858850313
78107103.3141114114973.68588858850313
7951.152.9362201985708-1.8362201985708
8098.695.44872019857083.1512798014292
81102.2108.698720198571-6.4987201985708
82114.3110.8731976854493.42680231455132
8399.497.84462625687731.55537374312274
8472.576.9017691140201-4.40176911402011
8592.384.05128652058438.24871347941568
8699.491.68878652058437.71121347941568
8785.9102.776286520584-16.8762865205843
88109.498.926286520584310.4737134794157
8997.698.3262865205843-0.726286520584335
90104.7108.076286520584-3.37628652058433
9156.951.55884240814525.3411575918548
9286.794.0713424081452-7.3713424081452
93108.5107.3213424081451.1786575918548

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 86.9 & 87.5533781540505 & -0.65337815405051 \tabularnewline
2 & 99.7 & 95.1908781540505 & 4.50912184594954 \tabularnewline
3 & 109.1 & 106.278378154050 & 2.82162184594954 \tabularnewline
4 & 94.6 & 102.428378154050 & -7.82837815405046 \tabularnewline
5 & 111.2 & 101.828378154050 & 9.37162184594954 \tabularnewline
6 & 112.8 & 111.578378154050 & 1.22162184594953 \tabularnewline
7 & 53.5 & 55.0609340416113 & -1.56093404161133 \tabularnewline
8 & 107.5 & 97.5734340416113 & 9.92656595838867 \tabularnewline
9 & 105.2 & 110.823434041611 & -5.62343404161132 \tabularnewline
10 & 122.8 & 112.997911528489 & 9.80208847151078 \tabularnewline
11 & 103.4 & 99.9693400999178 & 3.43065990008222 \tabularnewline
12 & 76.9 & 79.0264829570607 & -2.12648295706064 \tabularnewline
13 & 89.6 & 86.1760003636249 & 3.42399963637512 \tabularnewline
14 & 92.8 & 93.8135003636249 & -1.01350036362487 \tabularnewline
15 & 107.6 & 104.901000363625 & 2.69899963637513 \tabularnewline
16 & 104.6 & 101.051000363625 & 3.54899963637513 \tabularnewline
17 & 103 & 100.451000363625 & 2.54899963637514 \tabularnewline
18 & 106.9 & 110.201000363625 & -3.30100036362486 \tabularnewline
19 & 56.3 & 53.6835562511857 & 2.61644374881427 \tabularnewline
20 & 93.4 & 96.1960562511857 & -2.79605625118573 \tabularnewline
21 & 109.1 & 109.446056251186 & -0.34605625118574 \tabularnewline
22 & 113.8 & 111.620533738064 & 2.17946626193638 \tabularnewline
23 & 97.4 & 98.5919623094922 & -1.19196230949218 \tabularnewline
24 & 72.5 & 77.649105166635 & -5.14910516663505 \tabularnewline
25 & 82.7 & 84.7986225731993 & -2.09862257319925 \tabularnewline
26 & 88.9 & 92.4361225731993 & -3.53612257319926 \tabularnewline
27 & 105.9 & 103.523622573199 & 2.37637742680074 \tabularnewline
28 & 100.8 & 99.6736225731993 & 1.12637742680073 \tabularnewline
29 & 94 & 99.0736225731993 & -5.07362257319926 \tabularnewline
30 & 105 & 108.823622573199 & -3.82362257319927 \tabularnewline
31 & 58.5 & 52.3061784607601 & 6.19382153923987 \tabularnewline
32 & 87.6 & 94.8186784607601 & -7.21867846076014 \tabularnewline
33 & 113.1 & 108.068678460760 & 5.03132153923986 \tabularnewline
34 & 112.5 & 110.243155947638 & 2.25684405236199 \tabularnewline
35 & 89.6 & 97.2145845190666 & -7.61458451906659 \tabularnewline
36 & 74.5 & 76.2717273762094 & -1.77172737620945 \tabularnewline
37 & 82.7 & 83.4212447827737 & -0.721244782773657 \tabularnewline
38 & 90.1 & 91.0587447827737 & -0.958744782773674 \tabularnewline
39 & 109.4 & 102.146244782774 & 7.25375521722633 \tabularnewline
40 & 96 & 98.2962447827737 & -2.29624478277367 \tabularnewline
41 & 89.2 & 97.6962447827737 & -8.49624478277366 \tabularnewline
42 & 109.1 & 107.446244782774 & 1.65375521722633 \tabularnewline
43 & 49.1 & 50.9288006703345 & -1.82880067033453 \tabularnewline
44 & 92.9 & 93.4413006703345 & -0.541300670334532 \tabularnewline
45 & 107.7 & 106.691300670335 & 1.00869932966547 \tabularnewline
46 & 103.5 & 108.865778157212 & -5.36577815721242 \tabularnewline
47 & 91.1 & 95.837206728641 & -4.737206728641 \tabularnewline
48 & 79.8 & 74.8943495857838 & 4.90565041421615 \tabularnewline
49 & 71.9 & 82.043866992348 & -10.1438669923481 \tabularnewline
50 & 82.9 & 89.681366992348 & -6.78136699234806 \tabularnewline
51 & 90.1 & 100.768866992348 & -10.6688669923481 \tabularnewline
52 & 100.7 & 96.918866992348 & 3.78113300765194 \tabularnewline
53 & 90.7 & 96.318866992348 & -5.61886699234806 \tabularnewline
54 & 108.8 & 106.068866992348 & 2.73113300765193 \tabularnewline
55 & 44.1 & 49.5514228799089 & -5.45142287990893 \tabularnewline
56 & 93.6 & 92.063922879909 & 1.53607712009106 \tabularnewline
57 & 107.4 & 105.313922879909 & 2.08607712009107 \tabularnewline
58 & 96.5 & 107.488400366787 & -10.9884003667868 \tabularnewline
59 & 93.6 & 94.4598289382154 & -0.859828938215399 \tabularnewline
60 & 76.5 & 73.5169717953582 & 2.98302820464175 \tabularnewline
61 & 76.7 & 80.6664892019225 & -3.96648920192246 \tabularnewline
62 & 84 & 88.3039892019225 & -4.30398920192247 \tabularnewline
63 & 103.3 & 99.3914892019225 & 3.90851079807753 \tabularnewline
64 & 88.5 & 95.5414892019225 & -7.04148920192247 \tabularnewline
65 & 99 & 94.9414892019225 & 4.05851079807753 \tabularnewline
66 & 105.9 & 104.691489201922 & 1.20851079807754 \tabularnewline
67 & 44.7 & 48.1740450894833 & -3.47404508948333 \tabularnewline
68 & 94 & 90.6865450894833 & 3.31345491051666 \tabularnewline
69 & 107.1 & 103.936545089483 & 3.16345491051666 \tabularnewline
70 & 104.8 & 106.111022576361 & -1.31102257636123 \tabularnewline
71 & 102.5 & 93.0824511477898 & 9.4175488522102 \tabularnewline
72 & 77.7 & 72.1395940049326 & 5.56040599506735 \tabularnewline
73 & 85.2 & 79.2891114114969 & 5.91088858850314 \tabularnewline
74 & 91.3 & 86.9266114114969 & 4.37338858850312 \tabularnewline
75 & 106.5 & 98.0141114114969 & 8.48588858850312 \tabularnewline
76 & 92.4 & 94.1641114114969 & -1.76411141149687 \tabularnewline
77 & 97.5 & 93.5641114114969 & 3.93588858850313 \tabularnewline
78 & 107 & 103.314111411497 & 3.68588858850313 \tabularnewline
79 & 51.1 & 52.9362201985708 & -1.8362201985708 \tabularnewline
80 & 98.6 & 95.4487201985708 & 3.1512798014292 \tabularnewline
81 & 102.2 & 108.698720198571 & -6.4987201985708 \tabularnewline
82 & 114.3 & 110.873197685449 & 3.42680231455132 \tabularnewline
83 & 99.4 & 97.8446262568773 & 1.55537374312274 \tabularnewline
84 & 72.5 & 76.9017691140201 & -4.40176911402011 \tabularnewline
85 & 92.3 & 84.0512865205843 & 8.24871347941568 \tabularnewline
86 & 99.4 & 91.6887865205843 & 7.71121347941568 \tabularnewline
87 & 85.9 & 102.776286520584 & -16.8762865205843 \tabularnewline
88 & 109.4 & 98.9262865205843 & 10.4737134794157 \tabularnewline
89 & 97.6 & 98.3262865205843 & -0.726286520584335 \tabularnewline
90 & 104.7 & 108.076286520584 & -3.37628652058433 \tabularnewline
91 & 56.9 & 51.5588424081452 & 5.3411575918548 \tabularnewline
92 & 86.7 & 94.0713424081452 & -7.3713424081452 \tabularnewline
93 & 108.5 & 107.321342408145 & 1.1786575918548 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29912&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]86.9[/C][C]87.5533781540505[/C][C]-0.65337815405051[/C][/ROW]
[ROW][C]2[/C][C]99.7[/C][C]95.1908781540505[/C][C]4.50912184594954[/C][/ROW]
[ROW][C]3[/C][C]109.1[/C][C]106.278378154050[/C][C]2.82162184594954[/C][/ROW]
[ROW][C]4[/C][C]94.6[/C][C]102.428378154050[/C][C]-7.82837815405046[/C][/ROW]
[ROW][C]5[/C][C]111.2[/C][C]101.828378154050[/C][C]9.37162184594954[/C][/ROW]
[ROW][C]6[/C][C]112.8[/C][C]111.578378154050[/C][C]1.22162184594953[/C][/ROW]
[ROW][C]7[/C][C]53.5[/C][C]55.0609340416113[/C][C]-1.56093404161133[/C][/ROW]
[ROW][C]8[/C][C]107.5[/C][C]97.5734340416113[/C][C]9.92656595838867[/C][/ROW]
[ROW][C]9[/C][C]105.2[/C][C]110.823434041611[/C][C]-5.62343404161132[/C][/ROW]
[ROW][C]10[/C][C]122.8[/C][C]112.997911528489[/C][C]9.80208847151078[/C][/ROW]
[ROW][C]11[/C][C]103.4[/C][C]99.9693400999178[/C][C]3.43065990008222[/C][/ROW]
[ROW][C]12[/C][C]76.9[/C][C]79.0264829570607[/C][C]-2.12648295706064[/C][/ROW]
[ROW][C]13[/C][C]89.6[/C][C]86.1760003636249[/C][C]3.42399963637512[/C][/ROW]
[ROW][C]14[/C][C]92.8[/C][C]93.8135003636249[/C][C]-1.01350036362487[/C][/ROW]
[ROW][C]15[/C][C]107.6[/C][C]104.901000363625[/C][C]2.69899963637513[/C][/ROW]
[ROW][C]16[/C][C]104.6[/C][C]101.051000363625[/C][C]3.54899963637513[/C][/ROW]
[ROW][C]17[/C][C]103[/C][C]100.451000363625[/C][C]2.54899963637514[/C][/ROW]
[ROW][C]18[/C][C]106.9[/C][C]110.201000363625[/C][C]-3.30100036362486[/C][/ROW]
[ROW][C]19[/C][C]56.3[/C][C]53.6835562511857[/C][C]2.61644374881427[/C][/ROW]
[ROW][C]20[/C][C]93.4[/C][C]96.1960562511857[/C][C]-2.79605625118573[/C][/ROW]
[ROW][C]21[/C][C]109.1[/C][C]109.446056251186[/C][C]-0.34605625118574[/C][/ROW]
[ROW][C]22[/C][C]113.8[/C][C]111.620533738064[/C][C]2.17946626193638[/C][/ROW]
[ROW][C]23[/C][C]97.4[/C][C]98.5919623094922[/C][C]-1.19196230949218[/C][/ROW]
[ROW][C]24[/C][C]72.5[/C][C]77.649105166635[/C][C]-5.14910516663505[/C][/ROW]
[ROW][C]25[/C][C]82.7[/C][C]84.7986225731993[/C][C]-2.09862257319925[/C][/ROW]
[ROW][C]26[/C][C]88.9[/C][C]92.4361225731993[/C][C]-3.53612257319926[/C][/ROW]
[ROW][C]27[/C][C]105.9[/C][C]103.523622573199[/C][C]2.37637742680074[/C][/ROW]
[ROW][C]28[/C][C]100.8[/C][C]99.6736225731993[/C][C]1.12637742680073[/C][/ROW]
[ROW][C]29[/C][C]94[/C][C]99.0736225731993[/C][C]-5.07362257319926[/C][/ROW]
[ROW][C]30[/C][C]105[/C][C]108.823622573199[/C][C]-3.82362257319927[/C][/ROW]
[ROW][C]31[/C][C]58.5[/C][C]52.3061784607601[/C][C]6.19382153923987[/C][/ROW]
[ROW][C]32[/C][C]87.6[/C][C]94.8186784607601[/C][C]-7.21867846076014[/C][/ROW]
[ROW][C]33[/C][C]113.1[/C][C]108.068678460760[/C][C]5.03132153923986[/C][/ROW]
[ROW][C]34[/C][C]112.5[/C][C]110.243155947638[/C][C]2.25684405236199[/C][/ROW]
[ROW][C]35[/C][C]89.6[/C][C]97.2145845190666[/C][C]-7.61458451906659[/C][/ROW]
[ROW][C]36[/C][C]74.5[/C][C]76.2717273762094[/C][C]-1.77172737620945[/C][/ROW]
[ROW][C]37[/C][C]82.7[/C][C]83.4212447827737[/C][C]-0.721244782773657[/C][/ROW]
[ROW][C]38[/C][C]90.1[/C][C]91.0587447827737[/C][C]-0.958744782773674[/C][/ROW]
[ROW][C]39[/C][C]109.4[/C][C]102.146244782774[/C][C]7.25375521722633[/C][/ROW]
[ROW][C]40[/C][C]96[/C][C]98.2962447827737[/C][C]-2.29624478277367[/C][/ROW]
[ROW][C]41[/C][C]89.2[/C][C]97.6962447827737[/C][C]-8.49624478277366[/C][/ROW]
[ROW][C]42[/C][C]109.1[/C][C]107.446244782774[/C][C]1.65375521722633[/C][/ROW]
[ROW][C]43[/C][C]49.1[/C][C]50.9288006703345[/C][C]-1.82880067033453[/C][/ROW]
[ROW][C]44[/C][C]92.9[/C][C]93.4413006703345[/C][C]-0.541300670334532[/C][/ROW]
[ROW][C]45[/C][C]107.7[/C][C]106.691300670335[/C][C]1.00869932966547[/C][/ROW]
[ROW][C]46[/C][C]103.5[/C][C]108.865778157212[/C][C]-5.36577815721242[/C][/ROW]
[ROW][C]47[/C][C]91.1[/C][C]95.837206728641[/C][C]-4.737206728641[/C][/ROW]
[ROW][C]48[/C][C]79.8[/C][C]74.8943495857838[/C][C]4.90565041421615[/C][/ROW]
[ROW][C]49[/C][C]71.9[/C][C]82.043866992348[/C][C]-10.1438669923481[/C][/ROW]
[ROW][C]50[/C][C]82.9[/C][C]89.681366992348[/C][C]-6.78136699234806[/C][/ROW]
[ROW][C]51[/C][C]90.1[/C][C]100.768866992348[/C][C]-10.6688669923481[/C][/ROW]
[ROW][C]52[/C][C]100.7[/C][C]96.918866992348[/C][C]3.78113300765194[/C][/ROW]
[ROW][C]53[/C][C]90.7[/C][C]96.318866992348[/C][C]-5.61886699234806[/C][/ROW]
[ROW][C]54[/C][C]108.8[/C][C]106.068866992348[/C][C]2.73113300765193[/C][/ROW]
[ROW][C]55[/C][C]44.1[/C][C]49.5514228799089[/C][C]-5.45142287990893[/C][/ROW]
[ROW][C]56[/C][C]93.6[/C][C]92.063922879909[/C][C]1.53607712009106[/C][/ROW]
[ROW][C]57[/C][C]107.4[/C][C]105.313922879909[/C][C]2.08607712009107[/C][/ROW]
[ROW][C]58[/C][C]96.5[/C][C]107.488400366787[/C][C]-10.9884003667868[/C][/ROW]
[ROW][C]59[/C][C]93.6[/C][C]94.4598289382154[/C][C]-0.859828938215399[/C][/ROW]
[ROW][C]60[/C][C]76.5[/C][C]73.5169717953582[/C][C]2.98302820464175[/C][/ROW]
[ROW][C]61[/C][C]76.7[/C][C]80.6664892019225[/C][C]-3.96648920192246[/C][/ROW]
[ROW][C]62[/C][C]84[/C][C]88.3039892019225[/C][C]-4.30398920192247[/C][/ROW]
[ROW][C]63[/C][C]103.3[/C][C]99.3914892019225[/C][C]3.90851079807753[/C][/ROW]
[ROW][C]64[/C][C]88.5[/C][C]95.5414892019225[/C][C]-7.04148920192247[/C][/ROW]
[ROW][C]65[/C][C]99[/C][C]94.9414892019225[/C][C]4.05851079807753[/C][/ROW]
[ROW][C]66[/C][C]105.9[/C][C]104.691489201922[/C][C]1.20851079807754[/C][/ROW]
[ROW][C]67[/C][C]44.7[/C][C]48.1740450894833[/C][C]-3.47404508948333[/C][/ROW]
[ROW][C]68[/C][C]94[/C][C]90.6865450894833[/C][C]3.31345491051666[/C][/ROW]
[ROW][C]69[/C][C]107.1[/C][C]103.936545089483[/C][C]3.16345491051666[/C][/ROW]
[ROW][C]70[/C][C]104.8[/C][C]106.111022576361[/C][C]-1.31102257636123[/C][/ROW]
[ROW][C]71[/C][C]102.5[/C][C]93.0824511477898[/C][C]9.4175488522102[/C][/ROW]
[ROW][C]72[/C][C]77.7[/C][C]72.1395940049326[/C][C]5.56040599506735[/C][/ROW]
[ROW][C]73[/C][C]85.2[/C][C]79.2891114114969[/C][C]5.91088858850314[/C][/ROW]
[ROW][C]74[/C][C]91.3[/C][C]86.9266114114969[/C][C]4.37338858850312[/C][/ROW]
[ROW][C]75[/C][C]106.5[/C][C]98.0141114114969[/C][C]8.48588858850312[/C][/ROW]
[ROW][C]76[/C][C]92.4[/C][C]94.1641114114969[/C][C]-1.76411141149687[/C][/ROW]
[ROW][C]77[/C][C]97.5[/C][C]93.5641114114969[/C][C]3.93588858850313[/C][/ROW]
[ROW][C]78[/C][C]107[/C][C]103.314111411497[/C][C]3.68588858850313[/C][/ROW]
[ROW][C]79[/C][C]51.1[/C][C]52.9362201985708[/C][C]-1.8362201985708[/C][/ROW]
[ROW][C]80[/C][C]98.6[/C][C]95.4487201985708[/C][C]3.1512798014292[/C][/ROW]
[ROW][C]81[/C][C]102.2[/C][C]108.698720198571[/C][C]-6.4987201985708[/C][/ROW]
[ROW][C]82[/C][C]114.3[/C][C]110.873197685449[/C][C]3.42680231455132[/C][/ROW]
[ROW][C]83[/C][C]99.4[/C][C]97.8446262568773[/C][C]1.55537374312274[/C][/ROW]
[ROW][C]84[/C][C]72.5[/C][C]76.9017691140201[/C][C]-4.40176911402011[/C][/ROW]
[ROW][C]85[/C][C]92.3[/C][C]84.0512865205843[/C][C]8.24871347941568[/C][/ROW]
[ROW][C]86[/C][C]99.4[/C][C]91.6887865205843[/C][C]7.71121347941568[/C][/ROW]
[ROW][C]87[/C][C]85.9[/C][C]102.776286520584[/C][C]-16.8762865205843[/C][/ROW]
[ROW][C]88[/C][C]109.4[/C][C]98.9262865205843[/C][C]10.4737134794157[/C][/ROW]
[ROW][C]89[/C][C]97.6[/C][C]98.3262865205843[/C][C]-0.726286520584335[/C][/ROW]
[ROW][C]90[/C][C]104.7[/C][C]108.076286520584[/C][C]-3.37628652058433[/C][/ROW]
[ROW][C]91[/C][C]56.9[/C][C]51.5588424081452[/C][C]5.3411575918548[/C][/ROW]
[ROW][C]92[/C][C]86.7[/C][C]94.0713424081452[/C][C]-7.3713424081452[/C][/ROW]
[ROW][C]93[/C][C]108.5[/C][C]107.321342408145[/C][C]1.1786575918548[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29912&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29912&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
186.987.5533781540505-0.65337815405051
299.795.19087815405054.50912184594954
3109.1106.2783781540502.82162184594954
494.6102.428378154050-7.82837815405046
5111.2101.8283781540509.37162184594954
6112.8111.5783781540501.22162184594953
753.555.0609340416113-1.56093404161133
8107.597.57343404161139.92656595838867
9105.2110.823434041611-5.62343404161132
10122.8112.9979115284899.80208847151078
11103.499.96934009991783.43065990008222
1276.979.0264829570607-2.12648295706064
1389.686.17600036362493.42399963637512
1492.893.8135003636249-1.01350036362487
15107.6104.9010003636252.69899963637513
16104.6101.0510003636253.54899963637513
17103100.4510003636252.54899963637514
18106.9110.201000363625-3.30100036362486
1956.353.68355625118572.61644374881427
2093.496.1960562511857-2.79605625118573
21109.1109.446056251186-0.34605625118574
22113.8111.6205337380642.17946626193638
2397.498.5919623094922-1.19196230949218
2472.577.649105166635-5.14910516663505
2582.784.7986225731993-2.09862257319925
2688.992.4361225731993-3.53612257319926
27105.9103.5236225731992.37637742680074
28100.899.67362257319931.12637742680073
299499.0736225731993-5.07362257319926
30105108.823622573199-3.82362257319927
3158.552.30617846076016.19382153923987
3287.694.8186784607601-7.21867846076014
33113.1108.0686784607605.03132153923986
34112.5110.2431559476382.25684405236199
3589.697.2145845190666-7.61458451906659
3674.576.2717273762094-1.77172737620945
3782.783.4212447827737-0.721244782773657
3890.191.0587447827737-0.958744782773674
39109.4102.1462447827747.25375521722633
409698.2962447827737-2.29624478277367
4189.297.6962447827737-8.49624478277366
42109.1107.4462447827741.65375521722633
4349.150.9288006703345-1.82880067033453
4492.993.4413006703345-0.541300670334532
45107.7106.6913006703351.00869932966547
46103.5108.865778157212-5.36577815721242
4791.195.837206728641-4.737206728641
4879.874.89434958578384.90565041421615
4971.982.043866992348-10.1438669923481
5082.989.681366992348-6.78136699234806
5190.1100.768866992348-10.6688669923481
52100.796.9188669923483.78113300765194
5390.796.318866992348-5.61886699234806
54108.8106.0688669923482.73113300765193
5544.149.5514228799089-5.45142287990893
5693.692.0639228799091.53607712009106
57107.4105.3139228799092.08607712009107
5896.5107.488400366787-10.9884003667868
5993.694.4598289382154-0.859828938215399
6076.573.51697179535822.98302820464175
6176.780.6664892019225-3.96648920192246
628488.3039892019225-4.30398920192247
63103.399.39148920192253.90851079807753
6488.595.5414892019225-7.04148920192247
659994.94148920192254.05851079807753
66105.9104.6914892019221.20851079807754
6744.748.1740450894833-3.47404508948333
689490.68654508948333.31345491051666
69107.1103.9365450894833.16345491051666
70104.8106.111022576361-1.31102257636123
71102.593.08245114778989.4175488522102
7277.772.13959400493265.56040599506735
7385.279.28911141149695.91088858850314
7491.386.92661141149694.37338858850312
75106.598.01411141149698.48588858850312
7692.494.1641114114969-1.76411141149687
7797.593.56411141149693.93588858850313
78107103.3141114114973.68588858850313
7951.152.9362201985708-1.8362201985708
8098.695.44872019857083.1512798014292
81102.2108.698720198571-6.4987201985708
82114.3110.8731976854493.42680231455132
8399.497.84462625687731.55537374312274
8472.576.9017691140201-4.40176911402011
8592.384.05128652058438.24871347941568
8699.491.68878652058437.71121347941568
8785.9102.776286520584-16.8762865205843
88109.498.926286520584310.4737134794157
8997.698.3262865205843-0.726286520584335
90104.7108.076286520584-3.37628652058433
9156.951.55884240814525.3411575918548
9286.794.0713424081452-7.3713424081452
93108.5107.3213424081451.1786575918548



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