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 computationWed, 10 Dec 2008 13:09:17 -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/10/t12289401939mdxxrumay32f64.htm/, Retrieved Fri, 17 May 2024 22:34:11 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=32088, Retrieved Fri, 17 May 2024 22:34:11 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact171
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Seatbelt law_paper] [2007-11-19 11:07:28] [955b871771cd8bcf6b1deefcb1ea542b]
-   PD    [Multiple Regression] [Multiple Regressi...] [2008-12-10 20:09:17] [c341394676dfca3684255efe82d168bf] [Current]
Feedback Forum

Post a new message
Dataseries X:
100	0
100	0
100	0
100,1	0
100	0
100	0
99,8	0
100	0
99,9	0
99,2	0
98,7	0
98,7	0
98,9	1
99,2	1
99,8	1
100,5	1
100,1	1
100,5	1
98,4	1
98,6	1
99	1
99,1	1
98,9	1
98,5	1
96,9	1
96,8	1
97	1
97	1
96,9	1
97,1	1
97,2	1
97,9	1
98,9	1
99,2	1
99,5	1
99,3	1
99,9	1
100	1
100,3	1
100,5	1
100,7	1
100,9	1
100,8	1
100,9	1
101	1
100,3	1
100,1	1
99,8	1
99,9	1
99,9	1
100,2	1
99,7	1
100,4	1
100,9	1
101,3	1
101,4	1
101,3	1
100,9	1
100,9	1
100,9	1
101,1	1
101,1	1
101,3	1
101,8	1
102,9	1
103,2	1
103,3	1
104,5	1
105	1
104,9	1
104,9	1
105,4	1
106	1
105,7	1
105,9	1
106,2	1
106,4	1
106,9	1
107,3	1
107,9	1
109,2	1
110,2	1
110,2	1
110,5	1
110,6	1
110,8	1
111,3	1
111,1	1
111,2	1
111,2	1
111,1	1
111,5	1
112,1	1
111,4	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 5 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32088&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]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32088&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32088&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 time5 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Multiple Linear Regression - Estimated Regression Equation
y[t] = + 97.9817316017316 -5.04878787878788x[t] + 0.737189754689754M1[t] + 0.590997474747473M2[t] + 0.707305194805193M3[t] + 0.673612914862912M4[t] + 0.714920634920636M5[t] + 0.806228354978355M6[t] + 0.447536075036072M7[t] + 0.713843795093796M8[t] + 1.00515151515151M9[t] + 0.683959235209236M10[t] + 0.185477994227995M11[t] + 0.17119227994228t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  97.9817316017316 -5.04878787878788x[t] +  0.737189754689754M1[t] +  0.590997474747473M2[t] +  0.707305194805193M3[t] +  0.673612914862912M4[t] +  0.714920634920636M5[t] +  0.806228354978355M6[t] +  0.447536075036072M7[t] +  0.713843795093796M8[t] +  1.00515151515151M9[t] +  0.683959235209236M10[t] +  0.185477994227995M11[t] +  0.17119227994228t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32088&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  97.9817316017316 -5.04878787878788x[t] +  0.737189754689754M1[t] +  0.590997474747473M2[t] +  0.707305194805193M3[t] +  0.673612914862912M4[t] +  0.714920634920636M5[t] +  0.806228354978355M6[t] +  0.447536075036072M7[t] +  0.713843795093796M8[t] +  1.00515151515151M9[t] +  0.683959235209236M10[t] +  0.185477994227995M11[t] +  0.17119227994228t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32088&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32088&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] = + 97.9817316017316 -5.04878787878788x[t] + 0.737189754689754M1[t] + 0.590997474747473M2[t] + 0.707305194805193M3[t] + 0.673612914862912M4[t] + 0.714920634920636M5[t] + 0.806228354978355M6[t] + 0.447536075036072M7[t] + 0.713843795093796M8[t] + 1.00515151515151M9[t] + 0.683959235209236M10[t] + 0.185477994227995M11[t] + 0.17119227994228t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)97.98173160173160.912832107.338200
x-5.048787878787880.748778-6.742700
M10.7371897546897541.0218580.72140.4727540.236377
M20.5909974747474731.0214110.57860.5644780.282239
M30.7073051948051931.0210470.69270.4904880.245244
M40.6736129148629121.0207670.65990.5112080.255604
M50.7149206349206361.0205710.70050.4856410.24282
M60.8062283549783551.0204580.79010.4318250.215913
M70.4475360750360721.020430.43860.6621510.331075
M80.7138437950937961.0204850.69950.486260.24313
M91.005151515151511.0206240.98480.3276720.163836
M100.6839592352092361.0208480.670.5047930.252396
M110.1854779942279951.0538750.1760.8607420.430371
t0.171192279942280.00925218.503800

\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) & 97.9817316017316 & 0.912832 & 107.3382 & 0 & 0 \tabularnewline
x & -5.04878787878788 & 0.748778 & -6.7427 & 0 & 0 \tabularnewline
M1 & 0.737189754689754 & 1.021858 & 0.7214 & 0.472754 & 0.236377 \tabularnewline
M2 & 0.590997474747473 & 1.021411 & 0.5786 & 0.564478 & 0.282239 \tabularnewline
M3 & 0.707305194805193 & 1.021047 & 0.6927 & 0.490488 & 0.245244 \tabularnewline
M4 & 0.673612914862912 & 1.020767 & 0.6599 & 0.511208 & 0.255604 \tabularnewline
M5 & 0.714920634920636 & 1.020571 & 0.7005 & 0.485641 & 0.24282 \tabularnewline
M6 & 0.806228354978355 & 1.020458 & 0.7901 & 0.431825 & 0.215913 \tabularnewline
M7 & 0.447536075036072 & 1.02043 & 0.4386 & 0.662151 & 0.331075 \tabularnewline
M8 & 0.713843795093796 & 1.020485 & 0.6995 & 0.48626 & 0.24313 \tabularnewline
M9 & 1.00515151515151 & 1.020624 & 0.9848 & 0.327672 & 0.163836 \tabularnewline
M10 & 0.683959235209236 & 1.020848 & 0.67 & 0.504793 & 0.252396 \tabularnewline
M11 & 0.185477994227995 & 1.053875 & 0.176 & 0.860742 & 0.430371 \tabularnewline
t & 0.17119227994228 & 0.009252 & 18.5038 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32088&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]97.9817316017316[/C][C]0.912832[/C][C]107.3382[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]-5.04878787878788[/C][C]0.748778[/C][C]-6.7427[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.737189754689754[/C][C]1.021858[/C][C]0.7214[/C][C]0.472754[/C][C]0.236377[/C][/ROW]
[ROW][C]M2[/C][C]0.590997474747473[/C][C]1.021411[/C][C]0.5786[/C][C]0.564478[/C][C]0.282239[/C][/ROW]
[ROW][C]M3[/C][C]0.707305194805193[/C][C]1.021047[/C][C]0.6927[/C][C]0.490488[/C][C]0.245244[/C][/ROW]
[ROW][C]M4[/C][C]0.673612914862912[/C][C]1.020767[/C][C]0.6599[/C][C]0.511208[/C][C]0.255604[/C][/ROW]
[ROW][C]M5[/C][C]0.714920634920636[/C][C]1.020571[/C][C]0.7005[/C][C]0.485641[/C][C]0.24282[/C][/ROW]
[ROW][C]M6[/C][C]0.806228354978355[/C][C]1.020458[/C][C]0.7901[/C][C]0.431825[/C][C]0.215913[/C][/ROW]
[ROW][C]M7[/C][C]0.447536075036072[/C][C]1.02043[/C][C]0.4386[/C][C]0.662151[/C][C]0.331075[/C][/ROW]
[ROW][C]M8[/C][C]0.713843795093796[/C][C]1.020485[/C][C]0.6995[/C][C]0.48626[/C][C]0.24313[/C][/ROW]
[ROW][C]M9[/C][C]1.00515151515151[/C][C]1.020624[/C][C]0.9848[/C][C]0.327672[/C][C]0.163836[/C][/ROW]
[ROW][C]M10[/C][C]0.683959235209236[/C][C]1.020848[/C][C]0.67[/C][C]0.504793[/C][C]0.252396[/C][/ROW]
[ROW][C]M11[/C][C]0.185477994227995[/C][C]1.053875[/C][C]0.176[/C][C]0.860742[/C][C]0.430371[/C][/ROW]
[ROW][C]t[/C][C]0.17119227994228[/C][C]0.009252[/C][C]18.5038[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32088&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32088&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)97.98173160173160.912832107.338200
x-5.048787878787880.748778-6.742700
M10.7371897546897541.0218580.72140.4727540.236377
M20.5909974747474731.0214110.57860.5644780.282239
M30.7073051948051931.0210470.69270.4904880.245244
M40.6736129148629121.0207670.65990.5112080.255604
M50.7149206349206361.0205710.70050.4856410.24282
M60.8062283549783551.0204580.79010.4318250.215913
M70.4475360750360721.020430.43860.6621510.331075
M80.7138437950937961.0204850.69950.486260.24313
M91.005151515151511.0206240.98480.3276720.163836
M100.6839592352092361.0208480.670.5047930.252396
M110.1854779942279951.0538750.1760.8607420.430371
t0.171192279942280.00925218.503800







Multiple Linear Regression - Regression Statistics
Multiple R0.907516079871135
R-squared0.823585435224672
Adjusted R-squared0.794918068448682
F-TEST (value)28.7290228523687
F-TEST (DF numerator)13
F-TEST (DF denominator)80
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.97154340408979
Sum Squared Residuals310.958671536796

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.907516079871135 \tabularnewline
R-squared & 0.823585435224672 \tabularnewline
Adjusted R-squared & 0.794918068448682 \tabularnewline
F-TEST (value) & 28.7290228523687 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 80 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.97154340408979 \tabularnewline
Sum Squared Residuals & 310.958671536796 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32088&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.907516079871135[/C][/ROW]
[ROW][C]R-squared[/C][C]0.823585435224672[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.794918068448682[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]28.7290228523687[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]80[/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]1.97154340408979[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]310.958671536796[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32088&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32088&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.907516079871135
R-squared0.823585435224672
Adjusted R-squared0.794918068448682
F-TEST (value)28.7290228523687
F-TEST (DF numerator)13
F-TEST (DF denominator)80
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.97154340408979
Sum Squared Residuals310.958671536796







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
110098.89011363636361.10988636363636
210098.91511363636361.08488636363637
310099.20261363636360.797386363636364
4100.199.34011363636360.759886363636359
510099.55261363636360.44738636363636
610099.81511363636360.184886363636360
799.899.62761363636360.172386363636364
8100100.065113636364-0.0651136363636372
999.9100.527613636364-0.62761363636363
1099.2100.377613636364-1.17761363636364
1198.7100.050324675325-1.35032467532468
1298.7100.036038961039-1.33603896103896
1398.995.89563311688313.00436688311689
1499.295.92063311688313.27936688311688
1599.896.20813311688313.59186688311688
16100.596.34563311688314.15436688311688
17100.196.55813311688313.54186688311688
18100.596.82063311688313.67936688311688
1998.496.63313311688311.76686688311689
2098.697.07063311688311.52936688311688
219997.53313311688311.46686688311688
2299.197.38313311688311.71686688311688
2398.997.05584415584421.84415584415585
2498.597.04155844155841.45844155844156
2596.997.9499404761905-1.04994047619047
2696.897.9749404761905-1.17494047619048
279798.2624404761905-1.26244047619048
289798.3999404761905-1.39994047619048
2996.998.6124404761905-1.71244047619048
3097.198.8749404761905-1.77494047619049
3197.298.6874404761905-1.48744047619047
3297.999.1249404761905-1.22494047619047
3398.999.5874404761905-0.687440476190472
3499.299.4374404761905-0.237440476190477
3599.599.11015151515150.389848484848482
3699.399.09586580086580.204134199134194
3799.9100.004247835498-0.104247835497830
38100100.029247835498-0.0292478354978352
39100.3100.316747835498-0.0167478354978383
40100.5100.4542478354980.0457521645021657
41100.7100.6667478354980.0332521645021633
42100.9100.929247835498-0.0292478354978325
43100.8100.7417478354980.0582521645021616
44100.9101.179247835498-0.279247835497833
45101101.641747835498-0.641747835497837
46100.3101.491747835498-1.19174783549784
47100.1101.164458874459-1.06445887445888
4899.8101.150173160173-1.35017316017316
4999.9102.058555194805-2.15855519480519
5099.9102.083555194805-2.18355519480519
51100.2102.371055194805-2.17105519480519
5299.7102.508555194805-2.80855519480519
53100.4102.721055194805-2.32105519480519
54100.9102.983555194805-2.08355519480519
55101.3102.796055194805-1.49605519480520
56101.4103.233555194805-1.83355519480519
57101.3103.696055194805-2.3960551948052
58100.9103.546055194805-2.64605519480519
59100.9103.218766233766-2.31876623376623
60100.9103.204480519481-2.30448051948052
61101.1104.112862554113-3.01286255411256
62101.1104.137862554113-3.03786255411256
63101.3104.425362554113-3.12536255411256
64101.8104.562862554113-2.76286255411255
65102.9104.775362554113-1.87536255411255
66103.2105.037862554113-1.83786255411255
67103.3104.850362554113-1.55036255411256
68104.5105.287862554113-0.787862554112556
69105105.750362554113-0.750362554112555
70104.9105.600362554113-0.700362554112551
71104.9105.273073593074-0.37307359307359
72105.4105.2587878787880.141212121212125
73106106.16716991342-0.167169913419916
74105.7106.19216991342-0.492169913419909
75105.9106.47966991342-0.579669913419907
76106.2106.61716991342-0.417169913419911
77106.4106.82966991342-0.429669913419912
78106.9107.09216991342-0.19216991341991
79107.3106.904669913420.395330086580084
80107.9107.342169913420.55783008658009
81109.2107.804669913421.39533008658009
82110.2107.654669913422.54533008658009
83110.2107.3273809523812.87261904761905
84110.5107.3130952380953.18690476190476
85110.6108.2214772727272.37852272727272
86110.8108.2464772727272.55352272727272
87111.3108.5339772727272.76602272727273
88111.1108.6714772727272.42852272727272
89111.2108.8839772727272.31602272727273
90111.2109.1464772727272.05352272727273
91111.1108.9589772727272.14102272727273
92111.5109.3964772727272.10352272727272
93112.1109.8589772727272.24102272727272
94111.4109.7089772727271.69102272727273

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 100 & 98.8901136363636 & 1.10988636363636 \tabularnewline
2 & 100 & 98.9151136363636 & 1.08488636363637 \tabularnewline
3 & 100 & 99.2026136363636 & 0.797386363636364 \tabularnewline
4 & 100.1 & 99.3401136363636 & 0.759886363636359 \tabularnewline
5 & 100 & 99.5526136363636 & 0.44738636363636 \tabularnewline
6 & 100 & 99.8151136363636 & 0.184886363636360 \tabularnewline
7 & 99.8 & 99.6276136363636 & 0.172386363636364 \tabularnewline
8 & 100 & 100.065113636364 & -0.0651136363636372 \tabularnewline
9 & 99.9 & 100.527613636364 & -0.62761363636363 \tabularnewline
10 & 99.2 & 100.377613636364 & -1.17761363636364 \tabularnewline
11 & 98.7 & 100.050324675325 & -1.35032467532468 \tabularnewline
12 & 98.7 & 100.036038961039 & -1.33603896103896 \tabularnewline
13 & 98.9 & 95.8956331168831 & 3.00436688311689 \tabularnewline
14 & 99.2 & 95.9206331168831 & 3.27936688311688 \tabularnewline
15 & 99.8 & 96.2081331168831 & 3.59186688311688 \tabularnewline
16 & 100.5 & 96.3456331168831 & 4.15436688311688 \tabularnewline
17 & 100.1 & 96.5581331168831 & 3.54186688311688 \tabularnewline
18 & 100.5 & 96.8206331168831 & 3.67936688311688 \tabularnewline
19 & 98.4 & 96.6331331168831 & 1.76686688311689 \tabularnewline
20 & 98.6 & 97.0706331168831 & 1.52936688311688 \tabularnewline
21 & 99 & 97.5331331168831 & 1.46686688311688 \tabularnewline
22 & 99.1 & 97.3831331168831 & 1.71686688311688 \tabularnewline
23 & 98.9 & 97.0558441558442 & 1.84415584415585 \tabularnewline
24 & 98.5 & 97.0415584415584 & 1.45844155844156 \tabularnewline
25 & 96.9 & 97.9499404761905 & -1.04994047619047 \tabularnewline
26 & 96.8 & 97.9749404761905 & -1.17494047619048 \tabularnewline
27 & 97 & 98.2624404761905 & -1.26244047619048 \tabularnewline
28 & 97 & 98.3999404761905 & -1.39994047619048 \tabularnewline
29 & 96.9 & 98.6124404761905 & -1.71244047619048 \tabularnewline
30 & 97.1 & 98.8749404761905 & -1.77494047619049 \tabularnewline
31 & 97.2 & 98.6874404761905 & -1.48744047619047 \tabularnewline
32 & 97.9 & 99.1249404761905 & -1.22494047619047 \tabularnewline
33 & 98.9 & 99.5874404761905 & -0.687440476190472 \tabularnewline
34 & 99.2 & 99.4374404761905 & -0.237440476190477 \tabularnewline
35 & 99.5 & 99.1101515151515 & 0.389848484848482 \tabularnewline
36 & 99.3 & 99.0958658008658 & 0.204134199134194 \tabularnewline
37 & 99.9 & 100.004247835498 & -0.104247835497830 \tabularnewline
38 & 100 & 100.029247835498 & -0.0292478354978352 \tabularnewline
39 & 100.3 & 100.316747835498 & -0.0167478354978383 \tabularnewline
40 & 100.5 & 100.454247835498 & 0.0457521645021657 \tabularnewline
41 & 100.7 & 100.666747835498 & 0.0332521645021633 \tabularnewline
42 & 100.9 & 100.929247835498 & -0.0292478354978325 \tabularnewline
43 & 100.8 & 100.741747835498 & 0.0582521645021616 \tabularnewline
44 & 100.9 & 101.179247835498 & -0.279247835497833 \tabularnewline
45 & 101 & 101.641747835498 & -0.641747835497837 \tabularnewline
46 & 100.3 & 101.491747835498 & -1.19174783549784 \tabularnewline
47 & 100.1 & 101.164458874459 & -1.06445887445888 \tabularnewline
48 & 99.8 & 101.150173160173 & -1.35017316017316 \tabularnewline
49 & 99.9 & 102.058555194805 & -2.15855519480519 \tabularnewline
50 & 99.9 & 102.083555194805 & -2.18355519480519 \tabularnewline
51 & 100.2 & 102.371055194805 & -2.17105519480519 \tabularnewline
52 & 99.7 & 102.508555194805 & -2.80855519480519 \tabularnewline
53 & 100.4 & 102.721055194805 & -2.32105519480519 \tabularnewline
54 & 100.9 & 102.983555194805 & -2.08355519480519 \tabularnewline
55 & 101.3 & 102.796055194805 & -1.49605519480520 \tabularnewline
56 & 101.4 & 103.233555194805 & -1.83355519480519 \tabularnewline
57 & 101.3 & 103.696055194805 & -2.3960551948052 \tabularnewline
58 & 100.9 & 103.546055194805 & -2.64605519480519 \tabularnewline
59 & 100.9 & 103.218766233766 & -2.31876623376623 \tabularnewline
60 & 100.9 & 103.204480519481 & -2.30448051948052 \tabularnewline
61 & 101.1 & 104.112862554113 & -3.01286255411256 \tabularnewline
62 & 101.1 & 104.137862554113 & -3.03786255411256 \tabularnewline
63 & 101.3 & 104.425362554113 & -3.12536255411256 \tabularnewline
64 & 101.8 & 104.562862554113 & -2.76286255411255 \tabularnewline
65 & 102.9 & 104.775362554113 & -1.87536255411255 \tabularnewline
66 & 103.2 & 105.037862554113 & -1.83786255411255 \tabularnewline
67 & 103.3 & 104.850362554113 & -1.55036255411256 \tabularnewline
68 & 104.5 & 105.287862554113 & -0.787862554112556 \tabularnewline
69 & 105 & 105.750362554113 & -0.750362554112555 \tabularnewline
70 & 104.9 & 105.600362554113 & -0.700362554112551 \tabularnewline
71 & 104.9 & 105.273073593074 & -0.37307359307359 \tabularnewline
72 & 105.4 & 105.258787878788 & 0.141212121212125 \tabularnewline
73 & 106 & 106.16716991342 & -0.167169913419916 \tabularnewline
74 & 105.7 & 106.19216991342 & -0.492169913419909 \tabularnewline
75 & 105.9 & 106.47966991342 & -0.579669913419907 \tabularnewline
76 & 106.2 & 106.61716991342 & -0.417169913419911 \tabularnewline
77 & 106.4 & 106.82966991342 & -0.429669913419912 \tabularnewline
78 & 106.9 & 107.09216991342 & -0.19216991341991 \tabularnewline
79 & 107.3 & 106.90466991342 & 0.395330086580084 \tabularnewline
80 & 107.9 & 107.34216991342 & 0.55783008658009 \tabularnewline
81 & 109.2 & 107.80466991342 & 1.39533008658009 \tabularnewline
82 & 110.2 & 107.65466991342 & 2.54533008658009 \tabularnewline
83 & 110.2 & 107.327380952381 & 2.87261904761905 \tabularnewline
84 & 110.5 & 107.313095238095 & 3.18690476190476 \tabularnewline
85 & 110.6 & 108.221477272727 & 2.37852272727272 \tabularnewline
86 & 110.8 & 108.246477272727 & 2.55352272727272 \tabularnewline
87 & 111.3 & 108.533977272727 & 2.76602272727273 \tabularnewline
88 & 111.1 & 108.671477272727 & 2.42852272727272 \tabularnewline
89 & 111.2 & 108.883977272727 & 2.31602272727273 \tabularnewline
90 & 111.2 & 109.146477272727 & 2.05352272727273 \tabularnewline
91 & 111.1 & 108.958977272727 & 2.14102272727273 \tabularnewline
92 & 111.5 & 109.396477272727 & 2.10352272727272 \tabularnewline
93 & 112.1 & 109.858977272727 & 2.24102272727272 \tabularnewline
94 & 111.4 & 109.708977272727 & 1.69102272727273 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32088&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]100[/C][C]98.8901136363636[/C][C]1.10988636363636[/C][/ROW]
[ROW][C]2[/C][C]100[/C][C]98.9151136363636[/C][C]1.08488636363637[/C][/ROW]
[ROW][C]3[/C][C]100[/C][C]99.2026136363636[/C][C]0.797386363636364[/C][/ROW]
[ROW][C]4[/C][C]100.1[/C][C]99.3401136363636[/C][C]0.759886363636359[/C][/ROW]
[ROW][C]5[/C][C]100[/C][C]99.5526136363636[/C][C]0.44738636363636[/C][/ROW]
[ROW][C]6[/C][C]100[/C][C]99.8151136363636[/C][C]0.184886363636360[/C][/ROW]
[ROW][C]7[/C][C]99.8[/C][C]99.6276136363636[/C][C]0.172386363636364[/C][/ROW]
[ROW][C]8[/C][C]100[/C][C]100.065113636364[/C][C]-0.0651136363636372[/C][/ROW]
[ROW][C]9[/C][C]99.9[/C][C]100.527613636364[/C][C]-0.62761363636363[/C][/ROW]
[ROW][C]10[/C][C]99.2[/C][C]100.377613636364[/C][C]-1.17761363636364[/C][/ROW]
[ROW][C]11[/C][C]98.7[/C][C]100.050324675325[/C][C]-1.35032467532468[/C][/ROW]
[ROW][C]12[/C][C]98.7[/C][C]100.036038961039[/C][C]-1.33603896103896[/C][/ROW]
[ROW][C]13[/C][C]98.9[/C][C]95.8956331168831[/C][C]3.00436688311689[/C][/ROW]
[ROW][C]14[/C][C]99.2[/C][C]95.9206331168831[/C][C]3.27936688311688[/C][/ROW]
[ROW][C]15[/C][C]99.8[/C][C]96.2081331168831[/C][C]3.59186688311688[/C][/ROW]
[ROW][C]16[/C][C]100.5[/C][C]96.3456331168831[/C][C]4.15436688311688[/C][/ROW]
[ROW][C]17[/C][C]100.1[/C][C]96.5581331168831[/C][C]3.54186688311688[/C][/ROW]
[ROW][C]18[/C][C]100.5[/C][C]96.8206331168831[/C][C]3.67936688311688[/C][/ROW]
[ROW][C]19[/C][C]98.4[/C][C]96.6331331168831[/C][C]1.76686688311689[/C][/ROW]
[ROW][C]20[/C][C]98.6[/C][C]97.0706331168831[/C][C]1.52936688311688[/C][/ROW]
[ROW][C]21[/C][C]99[/C][C]97.5331331168831[/C][C]1.46686688311688[/C][/ROW]
[ROW][C]22[/C][C]99.1[/C][C]97.3831331168831[/C][C]1.71686688311688[/C][/ROW]
[ROW][C]23[/C][C]98.9[/C][C]97.0558441558442[/C][C]1.84415584415585[/C][/ROW]
[ROW][C]24[/C][C]98.5[/C][C]97.0415584415584[/C][C]1.45844155844156[/C][/ROW]
[ROW][C]25[/C][C]96.9[/C][C]97.9499404761905[/C][C]-1.04994047619047[/C][/ROW]
[ROW][C]26[/C][C]96.8[/C][C]97.9749404761905[/C][C]-1.17494047619048[/C][/ROW]
[ROW][C]27[/C][C]97[/C][C]98.2624404761905[/C][C]-1.26244047619048[/C][/ROW]
[ROW][C]28[/C][C]97[/C][C]98.3999404761905[/C][C]-1.39994047619048[/C][/ROW]
[ROW][C]29[/C][C]96.9[/C][C]98.6124404761905[/C][C]-1.71244047619048[/C][/ROW]
[ROW][C]30[/C][C]97.1[/C][C]98.8749404761905[/C][C]-1.77494047619049[/C][/ROW]
[ROW][C]31[/C][C]97.2[/C][C]98.6874404761905[/C][C]-1.48744047619047[/C][/ROW]
[ROW][C]32[/C][C]97.9[/C][C]99.1249404761905[/C][C]-1.22494047619047[/C][/ROW]
[ROW][C]33[/C][C]98.9[/C][C]99.5874404761905[/C][C]-0.687440476190472[/C][/ROW]
[ROW][C]34[/C][C]99.2[/C][C]99.4374404761905[/C][C]-0.237440476190477[/C][/ROW]
[ROW][C]35[/C][C]99.5[/C][C]99.1101515151515[/C][C]0.389848484848482[/C][/ROW]
[ROW][C]36[/C][C]99.3[/C][C]99.0958658008658[/C][C]0.204134199134194[/C][/ROW]
[ROW][C]37[/C][C]99.9[/C][C]100.004247835498[/C][C]-0.104247835497830[/C][/ROW]
[ROW][C]38[/C][C]100[/C][C]100.029247835498[/C][C]-0.0292478354978352[/C][/ROW]
[ROW][C]39[/C][C]100.3[/C][C]100.316747835498[/C][C]-0.0167478354978383[/C][/ROW]
[ROW][C]40[/C][C]100.5[/C][C]100.454247835498[/C][C]0.0457521645021657[/C][/ROW]
[ROW][C]41[/C][C]100.7[/C][C]100.666747835498[/C][C]0.0332521645021633[/C][/ROW]
[ROW][C]42[/C][C]100.9[/C][C]100.929247835498[/C][C]-0.0292478354978325[/C][/ROW]
[ROW][C]43[/C][C]100.8[/C][C]100.741747835498[/C][C]0.0582521645021616[/C][/ROW]
[ROW][C]44[/C][C]100.9[/C][C]101.179247835498[/C][C]-0.279247835497833[/C][/ROW]
[ROW][C]45[/C][C]101[/C][C]101.641747835498[/C][C]-0.641747835497837[/C][/ROW]
[ROW][C]46[/C][C]100.3[/C][C]101.491747835498[/C][C]-1.19174783549784[/C][/ROW]
[ROW][C]47[/C][C]100.1[/C][C]101.164458874459[/C][C]-1.06445887445888[/C][/ROW]
[ROW][C]48[/C][C]99.8[/C][C]101.150173160173[/C][C]-1.35017316017316[/C][/ROW]
[ROW][C]49[/C][C]99.9[/C][C]102.058555194805[/C][C]-2.15855519480519[/C][/ROW]
[ROW][C]50[/C][C]99.9[/C][C]102.083555194805[/C][C]-2.18355519480519[/C][/ROW]
[ROW][C]51[/C][C]100.2[/C][C]102.371055194805[/C][C]-2.17105519480519[/C][/ROW]
[ROW][C]52[/C][C]99.7[/C][C]102.508555194805[/C][C]-2.80855519480519[/C][/ROW]
[ROW][C]53[/C][C]100.4[/C][C]102.721055194805[/C][C]-2.32105519480519[/C][/ROW]
[ROW][C]54[/C][C]100.9[/C][C]102.983555194805[/C][C]-2.08355519480519[/C][/ROW]
[ROW][C]55[/C][C]101.3[/C][C]102.796055194805[/C][C]-1.49605519480520[/C][/ROW]
[ROW][C]56[/C][C]101.4[/C][C]103.233555194805[/C][C]-1.83355519480519[/C][/ROW]
[ROW][C]57[/C][C]101.3[/C][C]103.696055194805[/C][C]-2.3960551948052[/C][/ROW]
[ROW][C]58[/C][C]100.9[/C][C]103.546055194805[/C][C]-2.64605519480519[/C][/ROW]
[ROW][C]59[/C][C]100.9[/C][C]103.218766233766[/C][C]-2.31876623376623[/C][/ROW]
[ROW][C]60[/C][C]100.9[/C][C]103.204480519481[/C][C]-2.30448051948052[/C][/ROW]
[ROW][C]61[/C][C]101.1[/C][C]104.112862554113[/C][C]-3.01286255411256[/C][/ROW]
[ROW][C]62[/C][C]101.1[/C][C]104.137862554113[/C][C]-3.03786255411256[/C][/ROW]
[ROW][C]63[/C][C]101.3[/C][C]104.425362554113[/C][C]-3.12536255411256[/C][/ROW]
[ROW][C]64[/C][C]101.8[/C][C]104.562862554113[/C][C]-2.76286255411255[/C][/ROW]
[ROW][C]65[/C][C]102.9[/C][C]104.775362554113[/C][C]-1.87536255411255[/C][/ROW]
[ROW][C]66[/C][C]103.2[/C][C]105.037862554113[/C][C]-1.83786255411255[/C][/ROW]
[ROW][C]67[/C][C]103.3[/C][C]104.850362554113[/C][C]-1.55036255411256[/C][/ROW]
[ROW][C]68[/C][C]104.5[/C][C]105.287862554113[/C][C]-0.787862554112556[/C][/ROW]
[ROW][C]69[/C][C]105[/C][C]105.750362554113[/C][C]-0.750362554112555[/C][/ROW]
[ROW][C]70[/C][C]104.9[/C][C]105.600362554113[/C][C]-0.700362554112551[/C][/ROW]
[ROW][C]71[/C][C]104.9[/C][C]105.273073593074[/C][C]-0.37307359307359[/C][/ROW]
[ROW][C]72[/C][C]105.4[/C][C]105.258787878788[/C][C]0.141212121212125[/C][/ROW]
[ROW][C]73[/C][C]106[/C][C]106.16716991342[/C][C]-0.167169913419916[/C][/ROW]
[ROW][C]74[/C][C]105.7[/C][C]106.19216991342[/C][C]-0.492169913419909[/C][/ROW]
[ROW][C]75[/C][C]105.9[/C][C]106.47966991342[/C][C]-0.579669913419907[/C][/ROW]
[ROW][C]76[/C][C]106.2[/C][C]106.61716991342[/C][C]-0.417169913419911[/C][/ROW]
[ROW][C]77[/C][C]106.4[/C][C]106.82966991342[/C][C]-0.429669913419912[/C][/ROW]
[ROW][C]78[/C][C]106.9[/C][C]107.09216991342[/C][C]-0.19216991341991[/C][/ROW]
[ROW][C]79[/C][C]107.3[/C][C]106.90466991342[/C][C]0.395330086580084[/C][/ROW]
[ROW][C]80[/C][C]107.9[/C][C]107.34216991342[/C][C]0.55783008658009[/C][/ROW]
[ROW][C]81[/C][C]109.2[/C][C]107.80466991342[/C][C]1.39533008658009[/C][/ROW]
[ROW][C]82[/C][C]110.2[/C][C]107.65466991342[/C][C]2.54533008658009[/C][/ROW]
[ROW][C]83[/C][C]110.2[/C][C]107.327380952381[/C][C]2.87261904761905[/C][/ROW]
[ROW][C]84[/C][C]110.5[/C][C]107.313095238095[/C][C]3.18690476190476[/C][/ROW]
[ROW][C]85[/C][C]110.6[/C][C]108.221477272727[/C][C]2.37852272727272[/C][/ROW]
[ROW][C]86[/C][C]110.8[/C][C]108.246477272727[/C][C]2.55352272727272[/C][/ROW]
[ROW][C]87[/C][C]111.3[/C][C]108.533977272727[/C][C]2.76602272727273[/C][/ROW]
[ROW][C]88[/C][C]111.1[/C][C]108.671477272727[/C][C]2.42852272727272[/C][/ROW]
[ROW][C]89[/C][C]111.2[/C][C]108.883977272727[/C][C]2.31602272727273[/C][/ROW]
[ROW][C]90[/C][C]111.2[/C][C]109.146477272727[/C][C]2.05352272727273[/C][/ROW]
[ROW][C]91[/C][C]111.1[/C][C]108.958977272727[/C][C]2.14102272727273[/C][/ROW]
[ROW][C]92[/C][C]111.5[/C][C]109.396477272727[/C][C]2.10352272727272[/C][/ROW]
[ROW][C]93[/C][C]112.1[/C][C]109.858977272727[/C][C]2.24102272727272[/C][/ROW]
[ROW][C]94[/C][C]111.4[/C][C]109.708977272727[/C][C]1.69102272727273[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32088&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32088&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
110098.89011363636361.10988636363636
210098.91511363636361.08488636363637
310099.20261363636360.797386363636364
4100.199.34011363636360.759886363636359
510099.55261363636360.44738636363636
610099.81511363636360.184886363636360
799.899.62761363636360.172386363636364
8100100.065113636364-0.0651136363636372
999.9100.527613636364-0.62761363636363
1099.2100.377613636364-1.17761363636364
1198.7100.050324675325-1.35032467532468
1298.7100.036038961039-1.33603896103896
1398.995.89563311688313.00436688311689
1499.295.92063311688313.27936688311688
1599.896.20813311688313.59186688311688
16100.596.34563311688314.15436688311688
17100.196.55813311688313.54186688311688
18100.596.82063311688313.67936688311688
1998.496.63313311688311.76686688311689
2098.697.07063311688311.52936688311688
219997.53313311688311.46686688311688
2299.197.38313311688311.71686688311688
2398.997.05584415584421.84415584415585
2498.597.04155844155841.45844155844156
2596.997.9499404761905-1.04994047619047
2696.897.9749404761905-1.17494047619048
279798.2624404761905-1.26244047619048
289798.3999404761905-1.39994047619048
2996.998.6124404761905-1.71244047619048
3097.198.8749404761905-1.77494047619049
3197.298.6874404761905-1.48744047619047
3297.999.1249404761905-1.22494047619047
3398.999.5874404761905-0.687440476190472
3499.299.4374404761905-0.237440476190477
3599.599.11015151515150.389848484848482
3699.399.09586580086580.204134199134194
3799.9100.004247835498-0.104247835497830
38100100.029247835498-0.0292478354978352
39100.3100.316747835498-0.0167478354978383
40100.5100.4542478354980.0457521645021657
41100.7100.6667478354980.0332521645021633
42100.9100.929247835498-0.0292478354978325
43100.8100.7417478354980.0582521645021616
44100.9101.179247835498-0.279247835497833
45101101.641747835498-0.641747835497837
46100.3101.491747835498-1.19174783549784
47100.1101.164458874459-1.06445887445888
4899.8101.150173160173-1.35017316017316
4999.9102.058555194805-2.15855519480519
5099.9102.083555194805-2.18355519480519
51100.2102.371055194805-2.17105519480519
5299.7102.508555194805-2.80855519480519
53100.4102.721055194805-2.32105519480519
54100.9102.983555194805-2.08355519480519
55101.3102.796055194805-1.49605519480520
56101.4103.233555194805-1.83355519480519
57101.3103.696055194805-2.3960551948052
58100.9103.546055194805-2.64605519480519
59100.9103.218766233766-2.31876623376623
60100.9103.204480519481-2.30448051948052
61101.1104.112862554113-3.01286255411256
62101.1104.137862554113-3.03786255411256
63101.3104.425362554113-3.12536255411256
64101.8104.562862554113-2.76286255411255
65102.9104.775362554113-1.87536255411255
66103.2105.037862554113-1.83786255411255
67103.3104.850362554113-1.55036255411256
68104.5105.287862554113-0.787862554112556
69105105.750362554113-0.750362554112555
70104.9105.600362554113-0.700362554112551
71104.9105.273073593074-0.37307359307359
72105.4105.2587878787880.141212121212125
73106106.16716991342-0.167169913419916
74105.7106.19216991342-0.492169913419909
75105.9106.47966991342-0.579669913419907
76106.2106.61716991342-0.417169913419911
77106.4106.82966991342-0.429669913419912
78106.9107.09216991342-0.19216991341991
79107.3106.904669913420.395330086580084
80107.9107.342169913420.55783008658009
81109.2107.804669913421.39533008658009
82110.2107.654669913422.54533008658009
83110.2107.3273809523812.87261904761905
84110.5107.3130952380953.18690476190476
85110.6108.2214772727272.37852272727272
86110.8108.2464772727272.55352272727272
87111.3108.5339772727272.76602272727273
88111.1108.6714772727272.42852272727272
89111.2108.8839772727272.31602272727273
90111.2109.1464772727272.05352272727273
91111.1108.9589772727272.14102272727273
92111.5109.3964772727272.10352272727272
93112.1109.8589772727272.24102272727272
94111.4109.7089772727271.69102272727273



Parameters (Session):
par1 = 1 ; par2 = 1 ; par3 = 0 ; par4 = 12 ; par5 = 1 ; par6 = 1 ; par7 = 0 ;
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')