Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 19 Nov 2007 15:57:19 -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/2007/Nov/19/t11955126157k5xwjvmkapa2yd.htm/, Retrieved Fri, 03 May 2024 04:34:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=5790, Retrieved Fri, 03 May 2024 04:34:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact194
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2007-11-19 22:57:19] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
99.5	0
101.6	0
103.9	0
106.6	0
108.3	0
102	0
93.8	0
91.6	0
97.7	0
94.8	0
98	0
103.8	0
97.8	0
91.2	0
89.3	0
87.5	0
90.4	0
94.2	0
102.2	0
101.3	0
96	0
90.8	0
93.2	0
90.9	0
91.1	0
90.2	0
94.3	0
96	0
99	0
103.3	0
113.1	0
112.8	0
112.1	0
107.4	0
111	0
110.5	0
110.8	0
112.4	0
111.5	0
116.2	0
122.5	0
121.3	0
113.9	0
110.7	0
120.8	0
141.1	1
147.4	1
148	1
158.1	1
165	1
187	1
190.3	1
182.4	1
168.8	1
151.2	1
120.1	1
112.5	1
106.2	1
107.1	1
108.5	1
106.5	1
108.3	1
125.6	1
124	1
127.2	1
136.9	1
135.8	1
124.3	1
115.4	1
113.6	1
114.4	1
118.4	1
117	1
116.5	1
115.4	1
113.6	1
117.4	1
116.9	1
116.4	1
111.1	1
110.2	1
118.9	1
131.8	1
130.6	1
138.3	1
148.4	1
148.7	1
144.3	1
152.5	1
162.9	1
167.2	1
166.5	1
185.6	1




Summary of compuational 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 compuational 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=5790&T=0

[TABLE]
[ROW][C]Summary of compuational 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=5790&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5790&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 compuational 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] = + 94.5481481481482 + 27.6650462962963x[t] + 1.61778273809523M1[t] + 3.31658399470900M2[t] + 8.46538525132275M3[t] + 8.7016865079365M4[t] + 11.2379877645503M5[t] + 11.9492890211640M6[t] + 10.2480902777778M7[t] + 3.23439153439153M8[t] + 4.60819279100529M9[t] -5.18688822751323M10[t] -1.00058697089947M11[t] + 0.113698743386243t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  94.5481481481482 +  27.6650462962963x[t] +  1.61778273809523M1[t] +  3.31658399470900M2[t] +  8.46538525132275M3[t] +  8.7016865079365M4[t] +  11.2379877645503M5[t] +  11.9492890211640M6[t] +  10.2480902777778M7[t] +  3.23439153439153M8[t] +  4.60819279100529M9[t] -5.18688822751323M10[t] -1.00058697089947M11[t] +  0.113698743386243t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5790&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  94.5481481481482 +  27.6650462962963x[t] +  1.61778273809523M1[t] +  3.31658399470900M2[t] +  8.46538525132275M3[t] +  8.7016865079365M4[t] +  11.2379877645503M5[t] +  11.9492890211640M6[t] +  10.2480902777778M7[t] +  3.23439153439153M8[t] +  4.60819279100529M9[t] -5.18688822751323M10[t] -1.00058697089947M11[t] +  0.113698743386243t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5790&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5790&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] = + 94.5481481481482 + 27.6650462962963x[t] + 1.61778273809523M1[t] + 3.31658399470900M2[t] + 8.46538525132275M3[t] + 8.7016865079365M4[t] + 11.2379877645503M5[t] + 11.9492890211640M6[t] + 10.2480902777778M7[t] + 3.23439153439153M8[t] + 4.60819279100529M9[t] -5.18688822751323M10[t] -1.00058697089947M11[t] + 0.113698743386243t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)94.54814814814828.26558811.438800
x27.66504629629638.1091283.41160.0010210.00051
M11.617782738095239.9481060.16260.8712310.435616
M23.316583994709009.9454230.33350.7396570.369828
M38.465385251322759.9450390.85120.3972220.198611
M48.70168650793659.9469560.87480.384330.192165
M511.23798776455039.9511711.12930.2621830.131092
M611.94928902116409.9576821.20.2337230.116861
M710.24809027777789.9664841.02830.3069680.153484
M83.234391534391539.9775710.32420.7466690.373334
M94.608192791005299.9909360.46120.6458960.322948
M10-5.1868882275132310.271291-0.5050.6149720.307486
M11-1.0005869708994710.26795-0.09740.9226180.461309
t0.1136987433862430.1512450.75180.4544330.227217

\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) & 94.5481481481482 & 8.265588 & 11.4388 & 0 & 0 \tabularnewline
x & 27.6650462962963 & 8.109128 & 3.4116 & 0.001021 & 0.00051 \tabularnewline
M1 & 1.61778273809523 & 9.948106 & 0.1626 & 0.871231 & 0.435616 \tabularnewline
M2 & 3.31658399470900 & 9.945423 & 0.3335 & 0.739657 & 0.369828 \tabularnewline
M3 & 8.46538525132275 & 9.945039 & 0.8512 & 0.397222 & 0.198611 \tabularnewline
M4 & 8.7016865079365 & 9.946956 & 0.8748 & 0.38433 & 0.192165 \tabularnewline
M5 & 11.2379877645503 & 9.951171 & 1.1293 & 0.262183 & 0.131092 \tabularnewline
M6 & 11.9492890211640 & 9.957682 & 1.2 & 0.233723 & 0.116861 \tabularnewline
M7 & 10.2480902777778 & 9.966484 & 1.0283 & 0.306968 & 0.153484 \tabularnewline
M8 & 3.23439153439153 & 9.977571 & 0.3242 & 0.746669 & 0.373334 \tabularnewline
M9 & 4.60819279100529 & 9.990936 & 0.4612 & 0.645896 & 0.322948 \tabularnewline
M10 & -5.18688822751323 & 10.271291 & -0.505 & 0.614972 & 0.307486 \tabularnewline
M11 & -1.00058697089947 & 10.26795 & -0.0974 & 0.922618 & 0.461309 \tabularnewline
t & 0.113698743386243 & 0.151245 & 0.7518 & 0.454433 & 0.227217 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5790&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]94.5481481481482[/C][C]8.265588[/C][C]11.4388[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]27.6650462962963[/C][C]8.109128[/C][C]3.4116[/C][C]0.001021[/C][C]0.00051[/C][/ROW]
[ROW][C]M1[/C][C]1.61778273809523[/C][C]9.948106[/C][C]0.1626[/C][C]0.871231[/C][C]0.435616[/C][/ROW]
[ROW][C]M2[/C][C]3.31658399470900[/C][C]9.945423[/C][C]0.3335[/C][C]0.739657[/C][C]0.369828[/C][/ROW]
[ROW][C]M3[/C][C]8.46538525132275[/C][C]9.945039[/C][C]0.8512[/C][C]0.397222[/C][C]0.198611[/C][/ROW]
[ROW][C]M4[/C][C]8.7016865079365[/C][C]9.946956[/C][C]0.8748[/C][C]0.38433[/C][C]0.192165[/C][/ROW]
[ROW][C]M5[/C][C]11.2379877645503[/C][C]9.951171[/C][C]1.1293[/C][C]0.262183[/C][C]0.131092[/C][/ROW]
[ROW][C]M6[/C][C]11.9492890211640[/C][C]9.957682[/C][C]1.2[/C][C]0.233723[/C][C]0.116861[/C][/ROW]
[ROW][C]M7[/C][C]10.2480902777778[/C][C]9.966484[/C][C]1.0283[/C][C]0.306968[/C][C]0.153484[/C][/ROW]
[ROW][C]M8[/C][C]3.23439153439153[/C][C]9.977571[/C][C]0.3242[/C][C]0.746669[/C][C]0.373334[/C][/ROW]
[ROW][C]M9[/C][C]4.60819279100529[/C][C]9.990936[/C][C]0.4612[/C][C]0.645896[/C][C]0.322948[/C][/ROW]
[ROW][C]M10[/C][C]-5.18688822751323[/C][C]10.271291[/C][C]-0.505[/C][C]0.614972[/C][C]0.307486[/C][/ROW]
[ROW][C]M11[/C][C]-1.00058697089947[/C][C]10.26795[/C][C]-0.0974[/C][C]0.922618[/C][C]0.461309[/C][/ROW]
[ROW][C]t[/C][C]0.113698743386243[/C][C]0.151245[/C][C]0.7518[/C][C]0.454433[/C][C]0.227217[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5790&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5790&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)94.54814814814828.26558811.438800
x27.66504629629638.1091283.41160.0010210.00051
M11.617782738095239.9481060.16260.8712310.435616
M23.316583994709009.9454230.33350.7396570.369828
M38.465385251322759.9450390.85120.3972220.198611
M48.70168650793659.9469560.87480.384330.192165
M511.23798776455039.9511711.12930.2621830.131092
M611.94928902116409.9576821.20.2337230.116861
M710.24809027777789.9664841.02830.3069680.153484
M83.234391534391539.9775710.32420.7466690.373334
M94.608192791005299.9909360.46120.6458960.322948
M10-5.1868882275132310.271291-0.5050.6149720.307486
M11-1.0005869708994710.26795-0.09740.9226180.461309
t0.1136987433862430.1512450.75180.4544330.227217







Multiple Linear Regression - Regression Statistics
Multiple R0.695525186305115
R-squared0.483755284784765
Adjusted R-squared0.398803622787321
F-TEST (value)5.6944769932732
F-TEST (DF numerator)13
F-TEST (DF denominator)79
p-value3.14955991953525e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19.2074917059669
Sum Squared Residuals29145.2912731482

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.695525186305115 \tabularnewline
R-squared & 0.483755284784765 \tabularnewline
Adjusted R-squared & 0.398803622787321 \tabularnewline
F-TEST (value) & 5.6944769932732 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 79 \tabularnewline
p-value & 3.14955991953525e-07 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 19.2074917059669 \tabularnewline
Sum Squared Residuals & 29145.2912731482 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5790&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.695525186305115[/C][/ROW]
[ROW][C]R-squared[/C][C]0.483755284784765[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.398803622787321[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5.6944769932732[/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]3.14955991953525e-07[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]19.2074917059669[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]29145.2912731482[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5790&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5790&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.695525186305115
R-squared0.483755284784765
Adjusted R-squared0.398803622787321
F-TEST (value)5.6944769932732
F-TEST (DF numerator)13
F-TEST (DF denominator)79
p-value3.14955991953525e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19.2074917059669
Sum Squared Residuals29145.2912731482







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
199.596.27962962962973.22037037037033
2101.698.09212962962963.50787037037038
3103.9103.3546296296300.54537037037038
4106.6103.7046296296302.89537037037037
5108.3106.3546296296301.94537037037038
6102107.179629629630-5.17962962962963
793.8105.592129629630-11.7921296296296
891.698.6921296296296-7.09212962962964
997.7100.179629629630-2.47962962962962
1094.890.49824735449744.30175264550264
119894.79824735449733.20175264550265
12103.895.9125330687837.88746693121693
1397.897.64401455026450.155985449735449
1491.299.4565145502646-8.25651455026456
1589.3104.719014550265-15.4190145502646
1687.5105.069014550265-17.5690145502646
1790.4107.719014550265-17.3190145502646
1894.2108.544014550265-14.3440145502646
19102.2106.956514550265-4.75651455026454
20101.3100.0565145502651.24348544973545
2196101.544014550265-5.54401455026455
2290.891.8626322751323-1.06263227513227
2393.296.1626322751323-2.96263227513228
2490.997.276917989418-6.37691798941798
2591.199.0083994708995-7.90839947089947
2690.2100.820899470899-10.6208994708995
2794.3106.083399470899-11.7833994708995
2896106.433399470899-10.4333994708995
2999109.083399470899-10.0833994708995
30103.3109.908399470899-6.60839947089947
31113.1108.3208994708994.77910052910053
32112.8101.42089947089911.3791005291005
33112.1102.9083994708999.19160052910053
34107.493.227017195767214.1729828042328
3511197.527017195767213.4729828042328
36110.598.641302910052911.8586970899471
37110.8100.37278439153410.4272156084656
38112.4102.18528439153410.2147156084656
39111.5107.4477843915344.05221560846561
40116.2107.7977843915348.40221560846561
41122.5110.44778439153412.0522156084656
42121.3111.27278439153410.0272156084656
43113.9109.6852843915344.21471560846562
44110.7102.7852843915347.91471560846562
45120.8104.27278439153416.5272156084656
46141.1122.25644841269818.8435515873016
47147.4126.55644841269820.8435515873016
48148127.67073412698420.3292658730159
49158.1129.40221560846628.6977843915344
50165131.21471560846633.7852843915344
51187136.47721560846650.5227843915344
52190.3136.82721560846653.4727843915344
53182.4139.47721560846642.9227843915344
54168.8140.30221560846628.4977843915344
55151.2138.71471560846612.4852843915344
56120.1131.814715608466-11.7147156084656
57112.5133.302215608466-20.8022156084656
58106.2123.620833333333-17.4208333333333
59107.1127.920833333333-20.8208333333334
60108.5129.035119047619-20.5351190476191
61106.5130.766600529101-24.2666005291005
62108.3132.579100529101-24.2791005291005
63125.6137.841600529101-12.2416005291005
64124138.191600529101-14.1916005291005
65127.2140.841600529101-13.6416005291005
66136.9141.666600529101-4.76660052910053
67135.8140.079100529101-4.27910052910052
68124.3133.179100529101-8.87910052910053
69115.4134.666600529101-19.2666005291005
70113.6124.985218253968-11.3852182539683
71114.4129.285218253968-14.8852182539683
72118.4130.399503968254-11.9995039682540
73117132.130985449735-15.1309854497354
74116.5133.943485449735-17.4434854497355
75115.4139.205985449735-23.8059854497354
76113.6139.555985449735-25.9559854497355
77117.4142.205985449735-24.8059854497355
78116.9143.030985449735-26.1309854497355
79116.4141.443485449735-25.0434854497354
80111.1134.543485449735-23.4434854497355
81110.2136.030985449735-25.8309854497354
82118.9126.349603174603-7.44960317460317
83131.8130.6496031746031.15039682539683
84130.6131.763888888889-1.16388888888890
85138.3133.4953703703704.80462962962964
86148.4135.30787037037013.0921296296296
87148.7140.5703703703708.12962962962961
88144.3140.9203703703703.37962962962964
89152.5143.5703703703708.92962962962963
90162.9144.39537037037018.5046296296296
91167.2142.80787037037024.3921296296296
92166.5135.90787037037030.5921296296296
93185.6137.39537037037048.2046296296296

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 99.5 & 96.2796296296297 & 3.22037037037033 \tabularnewline
2 & 101.6 & 98.0921296296296 & 3.50787037037038 \tabularnewline
3 & 103.9 & 103.354629629630 & 0.54537037037038 \tabularnewline
4 & 106.6 & 103.704629629630 & 2.89537037037037 \tabularnewline
5 & 108.3 & 106.354629629630 & 1.94537037037038 \tabularnewline
6 & 102 & 107.179629629630 & -5.17962962962963 \tabularnewline
7 & 93.8 & 105.592129629630 & -11.7921296296296 \tabularnewline
8 & 91.6 & 98.6921296296296 & -7.09212962962964 \tabularnewline
9 & 97.7 & 100.179629629630 & -2.47962962962962 \tabularnewline
10 & 94.8 & 90.4982473544974 & 4.30175264550264 \tabularnewline
11 & 98 & 94.7982473544973 & 3.20175264550265 \tabularnewline
12 & 103.8 & 95.912533068783 & 7.88746693121693 \tabularnewline
13 & 97.8 & 97.6440145502645 & 0.155985449735449 \tabularnewline
14 & 91.2 & 99.4565145502646 & -8.25651455026456 \tabularnewline
15 & 89.3 & 104.719014550265 & -15.4190145502646 \tabularnewline
16 & 87.5 & 105.069014550265 & -17.5690145502646 \tabularnewline
17 & 90.4 & 107.719014550265 & -17.3190145502646 \tabularnewline
18 & 94.2 & 108.544014550265 & -14.3440145502646 \tabularnewline
19 & 102.2 & 106.956514550265 & -4.75651455026454 \tabularnewline
20 & 101.3 & 100.056514550265 & 1.24348544973545 \tabularnewline
21 & 96 & 101.544014550265 & -5.54401455026455 \tabularnewline
22 & 90.8 & 91.8626322751323 & -1.06263227513227 \tabularnewline
23 & 93.2 & 96.1626322751323 & -2.96263227513228 \tabularnewline
24 & 90.9 & 97.276917989418 & -6.37691798941798 \tabularnewline
25 & 91.1 & 99.0083994708995 & -7.90839947089947 \tabularnewline
26 & 90.2 & 100.820899470899 & -10.6208994708995 \tabularnewline
27 & 94.3 & 106.083399470899 & -11.7833994708995 \tabularnewline
28 & 96 & 106.433399470899 & -10.4333994708995 \tabularnewline
29 & 99 & 109.083399470899 & -10.0833994708995 \tabularnewline
30 & 103.3 & 109.908399470899 & -6.60839947089947 \tabularnewline
31 & 113.1 & 108.320899470899 & 4.77910052910053 \tabularnewline
32 & 112.8 & 101.420899470899 & 11.3791005291005 \tabularnewline
33 & 112.1 & 102.908399470899 & 9.19160052910053 \tabularnewline
34 & 107.4 & 93.2270171957672 & 14.1729828042328 \tabularnewline
35 & 111 & 97.5270171957672 & 13.4729828042328 \tabularnewline
36 & 110.5 & 98.6413029100529 & 11.8586970899471 \tabularnewline
37 & 110.8 & 100.372784391534 & 10.4272156084656 \tabularnewline
38 & 112.4 & 102.185284391534 & 10.2147156084656 \tabularnewline
39 & 111.5 & 107.447784391534 & 4.05221560846561 \tabularnewline
40 & 116.2 & 107.797784391534 & 8.40221560846561 \tabularnewline
41 & 122.5 & 110.447784391534 & 12.0522156084656 \tabularnewline
42 & 121.3 & 111.272784391534 & 10.0272156084656 \tabularnewline
43 & 113.9 & 109.685284391534 & 4.21471560846562 \tabularnewline
44 & 110.7 & 102.785284391534 & 7.91471560846562 \tabularnewline
45 & 120.8 & 104.272784391534 & 16.5272156084656 \tabularnewline
46 & 141.1 & 122.256448412698 & 18.8435515873016 \tabularnewline
47 & 147.4 & 126.556448412698 & 20.8435515873016 \tabularnewline
48 & 148 & 127.670734126984 & 20.3292658730159 \tabularnewline
49 & 158.1 & 129.402215608466 & 28.6977843915344 \tabularnewline
50 & 165 & 131.214715608466 & 33.7852843915344 \tabularnewline
51 & 187 & 136.477215608466 & 50.5227843915344 \tabularnewline
52 & 190.3 & 136.827215608466 & 53.4727843915344 \tabularnewline
53 & 182.4 & 139.477215608466 & 42.9227843915344 \tabularnewline
54 & 168.8 & 140.302215608466 & 28.4977843915344 \tabularnewline
55 & 151.2 & 138.714715608466 & 12.4852843915344 \tabularnewline
56 & 120.1 & 131.814715608466 & -11.7147156084656 \tabularnewline
57 & 112.5 & 133.302215608466 & -20.8022156084656 \tabularnewline
58 & 106.2 & 123.620833333333 & -17.4208333333333 \tabularnewline
59 & 107.1 & 127.920833333333 & -20.8208333333334 \tabularnewline
60 & 108.5 & 129.035119047619 & -20.5351190476191 \tabularnewline
61 & 106.5 & 130.766600529101 & -24.2666005291005 \tabularnewline
62 & 108.3 & 132.579100529101 & -24.2791005291005 \tabularnewline
63 & 125.6 & 137.841600529101 & -12.2416005291005 \tabularnewline
64 & 124 & 138.191600529101 & -14.1916005291005 \tabularnewline
65 & 127.2 & 140.841600529101 & -13.6416005291005 \tabularnewline
66 & 136.9 & 141.666600529101 & -4.76660052910053 \tabularnewline
67 & 135.8 & 140.079100529101 & -4.27910052910052 \tabularnewline
68 & 124.3 & 133.179100529101 & -8.87910052910053 \tabularnewline
69 & 115.4 & 134.666600529101 & -19.2666005291005 \tabularnewline
70 & 113.6 & 124.985218253968 & -11.3852182539683 \tabularnewline
71 & 114.4 & 129.285218253968 & -14.8852182539683 \tabularnewline
72 & 118.4 & 130.399503968254 & -11.9995039682540 \tabularnewline
73 & 117 & 132.130985449735 & -15.1309854497354 \tabularnewline
74 & 116.5 & 133.943485449735 & -17.4434854497355 \tabularnewline
75 & 115.4 & 139.205985449735 & -23.8059854497354 \tabularnewline
76 & 113.6 & 139.555985449735 & -25.9559854497355 \tabularnewline
77 & 117.4 & 142.205985449735 & -24.8059854497355 \tabularnewline
78 & 116.9 & 143.030985449735 & -26.1309854497355 \tabularnewline
79 & 116.4 & 141.443485449735 & -25.0434854497354 \tabularnewline
80 & 111.1 & 134.543485449735 & -23.4434854497355 \tabularnewline
81 & 110.2 & 136.030985449735 & -25.8309854497354 \tabularnewline
82 & 118.9 & 126.349603174603 & -7.44960317460317 \tabularnewline
83 & 131.8 & 130.649603174603 & 1.15039682539683 \tabularnewline
84 & 130.6 & 131.763888888889 & -1.16388888888890 \tabularnewline
85 & 138.3 & 133.495370370370 & 4.80462962962964 \tabularnewline
86 & 148.4 & 135.307870370370 & 13.0921296296296 \tabularnewline
87 & 148.7 & 140.570370370370 & 8.12962962962961 \tabularnewline
88 & 144.3 & 140.920370370370 & 3.37962962962964 \tabularnewline
89 & 152.5 & 143.570370370370 & 8.92962962962963 \tabularnewline
90 & 162.9 & 144.395370370370 & 18.5046296296296 \tabularnewline
91 & 167.2 & 142.807870370370 & 24.3921296296296 \tabularnewline
92 & 166.5 & 135.907870370370 & 30.5921296296296 \tabularnewline
93 & 185.6 & 137.395370370370 & 48.2046296296296 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5790&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]99.5[/C][C]96.2796296296297[/C][C]3.22037037037033[/C][/ROW]
[ROW][C]2[/C][C]101.6[/C][C]98.0921296296296[/C][C]3.50787037037038[/C][/ROW]
[ROW][C]3[/C][C]103.9[/C][C]103.354629629630[/C][C]0.54537037037038[/C][/ROW]
[ROW][C]4[/C][C]106.6[/C][C]103.704629629630[/C][C]2.89537037037037[/C][/ROW]
[ROW][C]5[/C][C]108.3[/C][C]106.354629629630[/C][C]1.94537037037038[/C][/ROW]
[ROW][C]6[/C][C]102[/C][C]107.179629629630[/C][C]-5.17962962962963[/C][/ROW]
[ROW][C]7[/C][C]93.8[/C][C]105.592129629630[/C][C]-11.7921296296296[/C][/ROW]
[ROW][C]8[/C][C]91.6[/C][C]98.6921296296296[/C][C]-7.09212962962964[/C][/ROW]
[ROW][C]9[/C][C]97.7[/C][C]100.179629629630[/C][C]-2.47962962962962[/C][/ROW]
[ROW][C]10[/C][C]94.8[/C][C]90.4982473544974[/C][C]4.30175264550264[/C][/ROW]
[ROW][C]11[/C][C]98[/C][C]94.7982473544973[/C][C]3.20175264550265[/C][/ROW]
[ROW][C]12[/C][C]103.8[/C][C]95.912533068783[/C][C]7.88746693121693[/C][/ROW]
[ROW][C]13[/C][C]97.8[/C][C]97.6440145502645[/C][C]0.155985449735449[/C][/ROW]
[ROW][C]14[/C][C]91.2[/C][C]99.4565145502646[/C][C]-8.25651455026456[/C][/ROW]
[ROW][C]15[/C][C]89.3[/C][C]104.719014550265[/C][C]-15.4190145502646[/C][/ROW]
[ROW][C]16[/C][C]87.5[/C][C]105.069014550265[/C][C]-17.5690145502646[/C][/ROW]
[ROW][C]17[/C][C]90.4[/C][C]107.719014550265[/C][C]-17.3190145502646[/C][/ROW]
[ROW][C]18[/C][C]94.2[/C][C]108.544014550265[/C][C]-14.3440145502646[/C][/ROW]
[ROW][C]19[/C][C]102.2[/C][C]106.956514550265[/C][C]-4.75651455026454[/C][/ROW]
[ROW][C]20[/C][C]101.3[/C][C]100.056514550265[/C][C]1.24348544973545[/C][/ROW]
[ROW][C]21[/C][C]96[/C][C]101.544014550265[/C][C]-5.54401455026455[/C][/ROW]
[ROW][C]22[/C][C]90.8[/C][C]91.8626322751323[/C][C]-1.06263227513227[/C][/ROW]
[ROW][C]23[/C][C]93.2[/C][C]96.1626322751323[/C][C]-2.96263227513228[/C][/ROW]
[ROW][C]24[/C][C]90.9[/C][C]97.276917989418[/C][C]-6.37691798941798[/C][/ROW]
[ROW][C]25[/C][C]91.1[/C][C]99.0083994708995[/C][C]-7.90839947089947[/C][/ROW]
[ROW][C]26[/C][C]90.2[/C][C]100.820899470899[/C][C]-10.6208994708995[/C][/ROW]
[ROW][C]27[/C][C]94.3[/C][C]106.083399470899[/C][C]-11.7833994708995[/C][/ROW]
[ROW][C]28[/C][C]96[/C][C]106.433399470899[/C][C]-10.4333994708995[/C][/ROW]
[ROW][C]29[/C][C]99[/C][C]109.083399470899[/C][C]-10.0833994708995[/C][/ROW]
[ROW][C]30[/C][C]103.3[/C][C]109.908399470899[/C][C]-6.60839947089947[/C][/ROW]
[ROW][C]31[/C][C]113.1[/C][C]108.320899470899[/C][C]4.77910052910053[/C][/ROW]
[ROW][C]32[/C][C]112.8[/C][C]101.420899470899[/C][C]11.3791005291005[/C][/ROW]
[ROW][C]33[/C][C]112.1[/C][C]102.908399470899[/C][C]9.19160052910053[/C][/ROW]
[ROW][C]34[/C][C]107.4[/C][C]93.2270171957672[/C][C]14.1729828042328[/C][/ROW]
[ROW][C]35[/C][C]111[/C][C]97.5270171957672[/C][C]13.4729828042328[/C][/ROW]
[ROW][C]36[/C][C]110.5[/C][C]98.6413029100529[/C][C]11.8586970899471[/C][/ROW]
[ROW][C]37[/C][C]110.8[/C][C]100.372784391534[/C][C]10.4272156084656[/C][/ROW]
[ROW][C]38[/C][C]112.4[/C][C]102.185284391534[/C][C]10.2147156084656[/C][/ROW]
[ROW][C]39[/C][C]111.5[/C][C]107.447784391534[/C][C]4.05221560846561[/C][/ROW]
[ROW][C]40[/C][C]116.2[/C][C]107.797784391534[/C][C]8.40221560846561[/C][/ROW]
[ROW][C]41[/C][C]122.5[/C][C]110.447784391534[/C][C]12.0522156084656[/C][/ROW]
[ROW][C]42[/C][C]121.3[/C][C]111.272784391534[/C][C]10.0272156084656[/C][/ROW]
[ROW][C]43[/C][C]113.9[/C][C]109.685284391534[/C][C]4.21471560846562[/C][/ROW]
[ROW][C]44[/C][C]110.7[/C][C]102.785284391534[/C][C]7.91471560846562[/C][/ROW]
[ROW][C]45[/C][C]120.8[/C][C]104.272784391534[/C][C]16.5272156084656[/C][/ROW]
[ROW][C]46[/C][C]141.1[/C][C]122.256448412698[/C][C]18.8435515873016[/C][/ROW]
[ROW][C]47[/C][C]147.4[/C][C]126.556448412698[/C][C]20.8435515873016[/C][/ROW]
[ROW][C]48[/C][C]148[/C][C]127.670734126984[/C][C]20.3292658730159[/C][/ROW]
[ROW][C]49[/C][C]158.1[/C][C]129.402215608466[/C][C]28.6977843915344[/C][/ROW]
[ROW][C]50[/C][C]165[/C][C]131.214715608466[/C][C]33.7852843915344[/C][/ROW]
[ROW][C]51[/C][C]187[/C][C]136.477215608466[/C][C]50.5227843915344[/C][/ROW]
[ROW][C]52[/C][C]190.3[/C][C]136.827215608466[/C][C]53.4727843915344[/C][/ROW]
[ROW][C]53[/C][C]182.4[/C][C]139.477215608466[/C][C]42.9227843915344[/C][/ROW]
[ROW][C]54[/C][C]168.8[/C][C]140.302215608466[/C][C]28.4977843915344[/C][/ROW]
[ROW][C]55[/C][C]151.2[/C][C]138.714715608466[/C][C]12.4852843915344[/C][/ROW]
[ROW][C]56[/C][C]120.1[/C][C]131.814715608466[/C][C]-11.7147156084656[/C][/ROW]
[ROW][C]57[/C][C]112.5[/C][C]133.302215608466[/C][C]-20.8022156084656[/C][/ROW]
[ROW][C]58[/C][C]106.2[/C][C]123.620833333333[/C][C]-17.4208333333333[/C][/ROW]
[ROW][C]59[/C][C]107.1[/C][C]127.920833333333[/C][C]-20.8208333333334[/C][/ROW]
[ROW][C]60[/C][C]108.5[/C][C]129.035119047619[/C][C]-20.5351190476191[/C][/ROW]
[ROW][C]61[/C][C]106.5[/C][C]130.766600529101[/C][C]-24.2666005291005[/C][/ROW]
[ROW][C]62[/C][C]108.3[/C][C]132.579100529101[/C][C]-24.2791005291005[/C][/ROW]
[ROW][C]63[/C][C]125.6[/C][C]137.841600529101[/C][C]-12.2416005291005[/C][/ROW]
[ROW][C]64[/C][C]124[/C][C]138.191600529101[/C][C]-14.1916005291005[/C][/ROW]
[ROW][C]65[/C][C]127.2[/C][C]140.841600529101[/C][C]-13.6416005291005[/C][/ROW]
[ROW][C]66[/C][C]136.9[/C][C]141.666600529101[/C][C]-4.76660052910053[/C][/ROW]
[ROW][C]67[/C][C]135.8[/C][C]140.079100529101[/C][C]-4.27910052910052[/C][/ROW]
[ROW][C]68[/C][C]124.3[/C][C]133.179100529101[/C][C]-8.87910052910053[/C][/ROW]
[ROW][C]69[/C][C]115.4[/C][C]134.666600529101[/C][C]-19.2666005291005[/C][/ROW]
[ROW][C]70[/C][C]113.6[/C][C]124.985218253968[/C][C]-11.3852182539683[/C][/ROW]
[ROW][C]71[/C][C]114.4[/C][C]129.285218253968[/C][C]-14.8852182539683[/C][/ROW]
[ROW][C]72[/C][C]118.4[/C][C]130.399503968254[/C][C]-11.9995039682540[/C][/ROW]
[ROW][C]73[/C][C]117[/C][C]132.130985449735[/C][C]-15.1309854497354[/C][/ROW]
[ROW][C]74[/C][C]116.5[/C][C]133.943485449735[/C][C]-17.4434854497355[/C][/ROW]
[ROW][C]75[/C][C]115.4[/C][C]139.205985449735[/C][C]-23.8059854497354[/C][/ROW]
[ROW][C]76[/C][C]113.6[/C][C]139.555985449735[/C][C]-25.9559854497355[/C][/ROW]
[ROW][C]77[/C][C]117.4[/C][C]142.205985449735[/C][C]-24.8059854497355[/C][/ROW]
[ROW][C]78[/C][C]116.9[/C][C]143.030985449735[/C][C]-26.1309854497355[/C][/ROW]
[ROW][C]79[/C][C]116.4[/C][C]141.443485449735[/C][C]-25.0434854497354[/C][/ROW]
[ROW][C]80[/C][C]111.1[/C][C]134.543485449735[/C][C]-23.4434854497355[/C][/ROW]
[ROW][C]81[/C][C]110.2[/C][C]136.030985449735[/C][C]-25.8309854497354[/C][/ROW]
[ROW][C]82[/C][C]118.9[/C][C]126.349603174603[/C][C]-7.44960317460317[/C][/ROW]
[ROW][C]83[/C][C]131.8[/C][C]130.649603174603[/C][C]1.15039682539683[/C][/ROW]
[ROW][C]84[/C][C]130.6[/C][C]131.763888888889[/C][C]-1.16388888888890[/C][/ROW]
[ROW][C]85[/C][C]138.3[/C][C]133.495370370370[/C][C]4.80462962962964[/C][/ROW]
[ROW][C]86[/C][C]148.4[/C][C]135.307870370370[/C][C]13.0921296296296[/C][/ROW]
[ROW][C]87[/C][C]148.7[/C][C]140.570370370370[/C][C]8.12962962962961[/C][/ROW]
[ROW][C]88[/C][C]144.3[/C][C]140.920370370370[/C][C]3.37962962962964[/C][/ROW]
[ROW][C]89[/C][C]152.5[/C][C]143.570370370370[/C][C]8.92962962962963[/C][/ROW]
[ROW][C]90[/C][C]162.9[/C][C]144.395370370370[/C][C]18.5046296296296[/C][/ROW]
[ROW][C]91[/C][C]167.2[/C][C]142.807870370370[/C][C]24.3921296296296[/C][/ROW]
[ROW][C]92[/C][C]166.5[/C][C]135.907870370370[/C][C]30.5921296296296[/C][/ROW]
[ROW][C]93[/C][C]185.6[/C][C]137.395370370370[/C][C]48.2046296296296[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5790&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5790&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
199.596.27962962962973.22037037037033
2101.698.09212962962963.50787037037038
3103.9103.3546296296300.54537037037038
4106.6103.7046296296302.89537037037037
5108.3106.3546296296301.94537037037038
6102107.179629629630-5.17962962962963
793.8105.592129629630-11.7921296296296
891.698.6921296296296-7.09212962962964
997.7100.179629629630-2.47962962962962
1094.890.49824735449744.30175264550264
119894.79824735449733.20175264550265
12103.895.9125330687837.88746693121693
1397.897.64401455026450.155985449735449
1491.299.4565145502646-8.25651455026456
1589.3104.719014550265-15.4190145502646
1687.5105.069014550265-17.5690145502646
1790.4107.719014550265-17.3190145502646
1894.2108.544014550265-14.3440145502646
19102.2106.956514550265-4.75651455026454
20101.3100.0565145502651.24348544973545
2196101.544014550265-5.54401455026455
2290.891.8626322751323-1.06263227513227
2393.296.1626322751323-2.96263227513228
2490.997.276917989418-6.37691798941798
2591.199.0083994708995-7.90839947089947
2690.2100.820899470899-10.6208994708995
2794.3106.083399470899-11.7833994708995
2896106.433399470899-10.4333994708995
2999109.083399470899-10.0833994708995
30103.3109.908399470899-6.60839947089947
31113.1108.3208994708994.77910052910053
32112.8101.42089947089911.3791005291005
33112.1102.9083994708999.19160052910053
34107.493.227017195767214.1729828042328
3511197.527017195767213.4729828042328
36110.598.641302910052911.8586970899471
37110.8100.37278439153410.4272156084656
38112.4102.18528439153410.2147156084656
39111.5107.4477843915344.05221560846561
40116.2107.7977843915348.40221560846561
41122.5110.44778439153412.0522156084656
42121.3111.27278439153410.0272156084656
43113.9109.6852843915344.21471560846562
44110.7102.7852843915347.91471560846562
45120.8104.27278439153416.5272156084656
46141.1122.25644841269818.8435515873016
47147.4126.55644841269820.8435515873016
48148127.67073412698420.3292658730159
49158.1129.40221560846628.6977843915344
50165131.21471560846633.7852843915344
51187136.47721560846650.5227843915344
52190.3136.82721560846653.4727843915344
53182.4139.47721560846642.9227843915344
54168.8140.30221560846628.4977843915344
55151.2138.71471560846612.4852843915344
56120.1131.814715608466-11.7147156084656
57112.5133.302215608466-20.8022156084656
58106.2123.620833333333-17.4208333333333
59107.1127.920833333333-20.8208333333334
60108.5129.035119047619-20.5351190476191
61106.5130.766600529101-24.2666005291005
62108.3132.579100529101-24.2791005291005
63125.6137.841600529101-12.2416005291005
64124138.191600529101-14.1916005291005
65127.2140.841600529101-13.6416005291005
66136.9141.666600529101-4.76660052910053
67135.8140.079100529101-4.27910052910052
68124.3133.179100529101-8.87910052910053
69115.4134.666600529101-19.2666005291005
70113.6124.985218253968-11.3852182539683
71114.4129.285218253968-14.8852182539683
72118.4130.399503968254-11.9995039682540
73117132.130985449735-15.1309854497354
74116.5133.943485449735-17.4434854497355
75115.4139.205985449735-23.8059854497354
76113.6139.555985449735-25.9559854497355
77117.4142.205985449735-24.8059854497355
78116.9143.030985449735-26.1309854497355
79116.4141.443485449735-25.0434854497354
80111.1134.543485449735-23.4434854497355
81110.2136.030985449735-25.8309854497354
82118.9126.349603174603-7.44960317460317
83131.8130.6496031746031.15039682539683
84130.6131.763888888889-1.16388888888890
85138.3133.4953703703704.80462962962964
86148.4135.30787037037013.0921296296296
87148.7140.5703703703708.12962962962961
88144.3140.9203703703703.37962962962964
89152.5143.5703703703708.92962962962963
90162.9144.39537037037018.5046296296296
91167.2142.80787037037024.3921296296296
92166.5135.90787037037030.5921296296296
93185.6137.39537037037048.2046296296296



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