Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSat, 15 Dec 2007 07:35: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/Dec/15/t11977283730a1kpoi7wastzwr.htm/, Retrieved Thu, 02 May 2024 15:26:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=4068, Retrieved Thu, 02 May 2024 15:26:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact191
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2007-12-15 14:35: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	0
112.5	0
106.2	0
107.1	0
108.5	0
106.5	0
108.3	0
125.6	0
124	0
127.2	0
136.9	0
135.8	0
124.3	0
115.4	0
113.6	0
114.4	0
118.4	0
117	0
116.5	0
115.4	0
113.6	0
117.4	0
116.9	0
116.4	0
111.1	0
110.2	0
118.9	0
131.8	0
130.6	0
138.3	0
148.4	0
148.7	0
144.3	0
152.5	0
162.9	0
167.2	0
166.5	0
185.6	0




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

\begin{tabular}{lllllllll}
\hline
Summary of compuational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4068&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4068&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4068&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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Oliezaden[t] = + 83.2959751769888 + 48.8972974659844Fluctuatie[t] + 2.60606597104575M1[t] + 3.88662883921507M2[t] + 8.61719170738446M3[t] + 8.43525457555386M4[t] + 10.5533174437232M5[t] + 10.8463803118926M6[t] + 8.72694318006193M7[t] + 7.40716823147933M8[t] + 8.36273109964869M9[t] -4.35041145062445M10[t] -0.582348582455086M11[t] + 0.531937131830638t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Oliezaden[t] =  +  83.2959751769888 +  48.8972974659844Fluctuatie[t] +  2.60606597104575M1[t] +  3.88662883921507M2[t] +  8.61719170738446M3[t] +  8.43525457555386M4[t] +  10.5533174437232M5[t] +  10.8463803118926M6[t] +  8.72694318006193M7[t] +  7.40716823147933M8[t] +  8.36273109964869M9[t] -4.35041145062445M10[t] -0.582348582455086M11[t] +  0.531937131830638t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4068&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Oliezaden[t] =  +  83.2959751769888 +  48.8972974659844Fluctuatie[t] +  2.60606597104575M1[t] +  3.88662883921507M2[t] +  8.61719170738446M3[t] +  8.43525457555386M4[t] +  10.5533174437232M5[t] +  10.8463803118926M6[t] +  8.72694318006193M7[t] +  7.40716823147933M8[t] +  8.36273109964869M9[t] -4.35041145062445M10[t] -0.582348582455086M11[t] +  0.531937131830638t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4068&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4068&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
Oliezaden[t] = + 83.2959751769888 + 48.8972974659844Fluctuatie[t] + 2.60606597104575M1[t] + 3.88662883921507M2[t] + 8.61719170738446M3[t] + 8.43525457555386M4[t] + 10.5533174437232M5[t] + 10.8463803118926M6[t] + 8.72694318006193M7[t] + 7.40716823147933M8[t] + 8.36273109964869M9[t] -4.35041145062445M10[t] -0.582348582455086M11[t] + 0.531937131830638t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)83.29597517698885.36567615.523900
Fluctuatie48.89729746598444.30775311.35100
M12.606065971045756.5695310.39670.6926660.346333
M23.886628839215076.5679010.59180.55570.27785
M38.617191707384466.566641.31230.193230.096615
M48.435254575553866.5657491.28470.2026390.101319
M510.55331744372326.5652261.60750.1119440.055972
M610.84638031189266.5650741.65210.1024770.051238
M78.726943180061936.565291.32930.187590.093795
M87.407168231479336.5946481.12320.2647510.132375
M98.362731099648696.5958211.26790.2085640.104282
M10-4.350411450624456.780629-0.64160.5229940.261497
M11-0.5823485824550866.780092-0.08590.931770.465885
t0.5319371318306380.04925110.800400

\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) & 83.2959751769888 & 5.365676 & 15.5239 & 0 & 0 \tabularnewline
Fluctuatie & 48.8972974659844 & 4.307753 & 11.351 & 0 & 0 \tabularnewline
M1 & 2.60606597104575 & 6.569531 & 0.3967 & 0.692666 & 0.346333 \tabularnewline
M2 & 3.88662883921507 & 6.567901 & 0.5918 & 0.5557 & 0.27785 \tabularnewline
M3 & 8.61719170738446 & 6.56664 & 1.3123 & 0.19323 & 0.096615 \tabularnewline
M4 & 8.43525457555386 & 6.565749 & 1.2847 & 0.202639 & 0.101319 \tabularnewline
M5 & 10.5533174437232 & 6.565226 & 1.6075 & 0.111944 & 0.055972 \tabularnewline
M6 & 10.8463803118926 & 6.565074 & 1.6521 & 0.102477 & 0.051238 \tabularnewline
M7 & 8.72694318006193 & 6.56529 & 1.3293 & 0.18759 & 0.093795 \tabularnewline
M8 & 7.40716823147933 & 6.594648 & 1.1232 & 0.264751 & 0.132375 \tabularnewline
M9 & 8.36273109964869 & 6.595821 & 1.2679 & 0.208564 & 0.104282 \tabularnewline
M10 & -4.35041145062445 & 6.780629 & -0.6416 & 0.522994 & 0.261497 \tabularnewline
M11 & -0.582348582455086 & 6.780092 & -0.0859 & 0.93177 & 0.465885 \tabularnewline
t & 0.531937131830638 & 0.049251 & 10.8004 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4068&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]83.2959751769888[/C][C]5.365676[/C][C]15.5239[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Fluctuatie[/C][C]48.8972974659844[/C][C]4.307753[/C][C]11.351[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]2.60606597104575[/C][C]6.569531[/C][C]0.3967[/C][C]0.692666[/C][C]0.346333[/C][/ROW]
[ROW][C]M2[/C][C]3.88662883921507[/C][C]6.567901[/C][C]0.5918[/C][C]0.5557[/C][C]0.27785[/C][/ROW]
[ROW][C]M3[/C][C]8.61719170738446[/C][C]6.56664[/C][C]1.3123[/C][C]0.19323[/C][C]0.096615[/C][/ROW]
[ROW][C]M4[/C][C]8.43525457555386[/C][C]6.565749[/C][C]1.2847[/C][C]0.202639[/C][C]0.101319[/C][/ROW]
[ROW][C]M5[/C][C]10.5533174437232[/C][C]6.565226[/C][C]1.6075[/C][C]0.111944[/C][C]0.055972[/C][/ROW]
[ROW][C]M6[/C][C]10.8463803118926[/C][C]6.565074[/C][C]1.6521[/C][C]0.102477[/C][C]0.051238[/C][/ROW]
[ROW][C]M7[/C][C]8.72694318006193[/C][C]6.56529[/C][C]1.3293[/C][C]0.18759[/C][C]0.093795[/C][/ROW]
[ROW][C]M8[/C][C]7.40716823147933[/C][C]6.594648[/C][C]1.1232[/C][C]0.264751[/C][C]0.132375[/C][/ROW]
[ROW][C]M9[/C][C]8.36273109964869[/C][C]6.595821[/C][C]1.2679[/C][C]0.208564[/C][C]0.104282[/C][/ROW]
[ROW][C]M10[/C][C]-4.35041145062445[/C][C]6.780629[/C][C]-0.6416[/C][C]0.522994[/C][C]0.261497[/C][/ROW]
[ROW][C]M11[/C][C]-0.582348582455086[/C][C]6.780092[/C][C]-0.0859[/C][C]0.93177[/C][C]0.465885[/C][/ROW]
[ROW][C]t[/C][C]0.531937131830638[/C][C]0.049251[/C][C]10.8004[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4068&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4068&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)83.29597517698885.36567615.523900
Fluctuatie48.89729746598444.30775311.35100
M12.606065971045756.5695310.39670.6926660.346333
M23.886628839215076.5679010.59180.55570.27785
M38.617191707384466.566641.31230.193230.096615
M48.435254575553866.5657491.28470.2026390.101319
M510.55331744372326.5652261.60750.1119440.055972
M610.84638031189266.5650741.65210.1024770.051238
M78.726943180061936.565291.32930.187590.093795
M87.407168231479336.5946481.12320.2647510.132375
M98.362731099648696.5958211.26790.2085640.104282
M10-4.350411450624456.780629-0.64160.5229940.261497
M11-0.5823485824550866.780092-0.08590.931770.465885
t0.5319371318306380.04925110.800400







Multiple Linear Regression - Regression Statistics
Multiple R0.880267809888163
R-squared0.774871417125303
Adjusted R-squared0.737824941462378
F-TEST (value)20.9161979178703
F-TEST (DF numerator)13
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation12.6840563780077
Sum Squared Residuals12709.9376098378

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.880267809888163 \tabularnewline
R-squared & 0.774871417125303 \tabularnewline
Adjusted R-squared & 0.737824941462378 \tabularnewline
F-TEST (value) & 20.9161979178703 \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 & 12.6840563780077 \tabularnewline
Sum Squared Residuals & 12709.9376098378 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4068&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.880267809888163[/C][/ROW]
[ROW][C]R-squared[/C][C]0.774871417125303[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.737824941462378[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]20.9161979178703[/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]12.6840563780077[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]12709.9376098378[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4068&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4068&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.880267809888163
R-squared0.774871417125303
Adjusted R-squared0.737824941462378
F-TEST (value)20.9161979178703
F-TEST (DF numerator)13
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation12.6840563780077
Sum Squared Residuals12709.9376098378







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
199.586.433978279865113.0660217201349
2101.688.246478279865513.3535217201345
3103.993.508978279865110.3910217201349
4106.693.858978279865212.7410217201348
5108.396.508978279865111.7910217201349
610297.33397827986524.66602172013478
793.895.7464782798651-1.94647827986514
891.694.9586404631132-3.35864046311321
997.796.44614046311321.25385953688681
1094.884.264935044670710.5350649553293
119888.56493504467079.43506495532929
12103.889.679220758956414.1207792410436
1397.892.81722386183284.98277613816715
1491.294.6297238618328-3.42972386183278
1589.399.8922238618328-10.5922238618328
1687.5100.242223861833-12.7422238618328
1790.4102.892223861833-12.4922238618328
1894.2103.717223861833-9.51722386183282
19102.2102.1297238618330.0702761381671688
20101.3101.341886045081-0.0418860450808649
2196102.829386045081-6.82938604508087
2290.890.64818062663840.151819373361632
2393.294.9481806266384-1.74818062663837
2490.996.062466340924-5.16246634092409
2591.199.2004694438005-8.1004694438005
2690.2101.012969443800-10.8129694438004
2794.3106.275469443800-11.9754694438005
2896106.625469443800-10.6254694438005
2999109.275469443800-10.2754694438005
30103.3110.100469443800-6.80046944380048
31113.1108.5129694438004.5870305561995
32112.8107.7251316270495.07486837295148
33112.1109.2126316270492.88736837295148
34107.497.03142620860610.3685737913940
35111101.3314262086069.66857379139398
36110.5102.4457119228928.05428807710826
37110.8105.5837150257685.21628497423185
38112.4107.3962150257685.00378497423192
39111.5112.658715025768-1.15871502576813
40116.2113.0087150257683.19128497423186
41122.5115.6587150257686.84128497423186
42121.3116.4837150257684.81628497423186
43113.9114.896215025768-0.996215025768139
44110.7114.108377209016-3.40837720901617
45120.8115.5958772090165.20412279098383
46141.1152.311969256558-11.2119692565580
47147.4156.611969256558-9.21196925655796
48148157.726254970844-9.72625497084368
49158.1160.86425807372-2.76425807372009
50165162.676758073722.32324192627998
51187167.9392580737219.0607419262799
52190.3168.2892580737222.0107419262799
53182.4170.9392580737211.4607419262799
54168.8171.76425807372-2.96425807372007
55151.2170.17675807372-18.9767580737201
56120.1120.491622790984-0.391622790983825
57112.5121.979122790984-9.47912279098382
58106.2109.797917372541-3.59791737254132
59107.1114.097917372541-6.99791737254134
60108.5115.212203086827-6.71220308682705
61106.5118.350206189703-11.8502061897035
62108.3120.162706189703-11.8627061897034
63125.6125.4252061897030.174793810296551
64124125.775206189703-1.77520618970345
65127.2128.425206189703-1.22520618970344
66136.9129.2502061897037.64979381029656
67135.8127.6627061897038.13729381029656
68124.3126.874868372951-2.57486837295148
69115.4128.362368372951-12.9623683729515
70113.6116.181162954509-2.58116295450898
71114.4120.481162954509-6.08116295450897
72118.4121.595448668795-3.19544866879469
73117124.733451771671-7.73345177167111
74116.5126.545951771671-10.0459517716710
75115.4131.808451771671-16.4084517716711
76113.6132.158451771671-18.5584517716711
77117.4134.808451771671-17.4084517716711
78116.9135.633451771671-18.7334517716711
79116.4134.045951771671-17.6459517716711
80111.1133.258113954919-22.1581139549191
81110.2134.745613954919-24.5456139549191
82118.9122.564408536477-3.66440853647663
83131.8126.8644085364774.93559146352338
84130.6127.9786942507622.62130574923764
85138.3131.1166973536397.18330264636125
86148.4132.92919735363915.4708026463613
87148.7138.19169735363910.5083026463612
88144.3138.5416973536395.75830264636125
89152.5141.19169735363911.3083026463612
90162.9142.01669735363920.8833026463613
91167.2140.42919735363926.7708026463612
92166.5139.64135953688726.8586404631132
93185.6141.12885953688744.4711404631132

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 99.5 & 86.4339782798651 & 13.0660217201349 \tabularnewline
2 & 101.6 & 88.2464782798655 & 13.3535217201345 \tabularnewline
3 & 103.9 & 93.5089782798651 & 10.3910217201349 \tabularnewline
4 & 106.6 & 93.8589782798652 & 12.7410217201348 \tabularnewline
5 & 108.3 & 96.5089782798651 & 11.7910217201349 \tabularnewline
6 & 102 & 97.3339782798652 & 4.66602172013478 \tabularnewline
7 & 93.8 & 95.7464782798651 & -1.94647827986514 \tabularnewline
8 & 91.6 & 94.9586404631132 & -3.35864046311321 \tabularnewline
9 & 97.7 & 96.4461404631132 & 1.25385953688681 \tabularnewline
10 & 94.8 & 84.2649350446707 & 10.5350649553293 \tabularnewline
11 & 98 & 88.5649350446707 & 9.43506495532929 \tabularnewline
12 & 103.8 & 89.6792207589564 & 14.1207792410436 \tabularnewline
13 & 97.8 & 92.8172238618328 & 4.98277613816715 \tabularnewline
14 & 91.2 & 94.6297238618328 & -3.42972386183278 \tabularnewline
15 & 89.3 & 99.8922238618328 & -10.5922238618328 \tabularnewline
16 & 87.5 & 100.242223861833 & -12.7422238618328 \tabularnewline
17 & 90.4 & 102.892223861833 & -12.4922238618328 \tabularnewline
18 & 94.2 & 103.717223861833 & -9.51722386183282 \tabularnewline
19 & 102.2 & 102.129723861833 & 0.0702761381671688 \tabularnewline
20 & 101.3 & 101.341886045081 & -0.0418860450808649 \tabularnewline
21 & 96 & 102.829386045081 & -6.82938604508087 \tabularnewline
22 & 90.8 & 90.6481806266384 & 0.151819373361632 \tabularnewline
23 & 93.2 & 94.9481806266384 & -1.74818062663837 \tabularnewline
24 & 90.9 & 96.062466340924 & -5.16246634092409 \tabularnewline
25 & 91.1 & 99.2004694438005 & -8.1004694438005 \tabularnewline
26 & 90.2 & 101.012969443800 & -10.8129694438004 \tabularnewline
27 & 94.3 & 106.275469443800 & -11.9754694438005 \tabularnewline
28 & 96 & 106.625469443800 & -10.6254694438005 \tabularnewline
29 & 99 & 109.275469443800 & -10.2754694438005 \tabularnewline
30 & 103.3 & 110.100469443800 & -6.80046944380048 \tabularnewline
31 & 113.1 & 108.512969443800 & 4.5870305561995 \tabularnewline
32 & 112.8 & 107.725131627049 & 5.07486837295148 \tabularnewline
33 & 112.1 & 109.212631627049 & 2.88736837295148 \tabularnewline
34 & 107.4 & 97.031426208606 & 10.3685737913940 \tabularnewline
35 & 111 & 101.331426208606 & 9.66857379139398 \tabularnewline
36 & 110.5 & 102.445711922892 & 8.05428807710826 \tabularnewline
37 & 110.8 & 105.583715025768 & 5.21628497423185 \tabularnewline
38 & 112.4 & 107.396215025768 & 5.00378497423192 \tabularnewline
39 & 111.5 & 112.658715025768 & -1.15871502576813 \tabularnewline
40 & 116.2 & 113.008715025768 & 3.19128497423186 \tabularnewline
41 & 122.5 & 115.658715025768 & 6.84128497423186 \tabularnewline
42 & 121.3 & 116.483715025768 & 4.81628497423186 \tabularnewline
43 & 113.9 & 114.896215025768 & -0.996215025768139 \tabularnewline
44 & 110.7 & 114.108377209016 & -3.40837720901617 \tabularnewline
45 & 120.8 & 115.595877209016 & 5.20412279098383 \tabularnewline
46 & 141.1 & 152.311969256558 & -11.2119692565580 \tabularnewline
47 & 147.4 & 156.611969256558 & -9.21196925655796 \tabularnewline
48 & 148 & 157.726254970844 & -9.72625497084368 \tabularnewline
49 & 158.1 & 160.86425807372 & -2.76425807372009 \tabularnewline
50 & 165 & 162.67675807372 & 2.32324192627998 \tabularnewline
51 & 187 & 167.93925807372 & 19.0607419262799 \tabularnewline
52 & 190.3 & 168.28925807372 & 22.0107419262799 \tabularnewline
53 & 182.4 & 170.93925807372 & 11.4607419262799 \tabularnewline
54 & 168.8 & 171.76425807372 & -2.96425807372007 \tabularnewline
55 & 151.2 & 170.17675807372 & -18.9767580737201 \tabularnewline
56 & 120.1 & 120.491622790984 & -0.391622790983825 \tabularnewline
57 & 112.5 & 121.979122790984 & -9.47912279098382 \tabularnewline
58 & 106.2 & 109.797917372541 & -3.59791737254132 \tabularnewline
59 & 107.1 & 114.097917372541 & -6.99791737254134 \tabularnewline
60 & 108.5 & 115.212203086827 & -6.71220308682705 \tabularnewline
61 & 106.5 & 118.350206189703 & -11.8502061897035 \tabularnewline
62 & 108.3 & 120.162706189703 & -11.8627061897034 \tabularnewline
63 & 125.6 & 125.425206189703 & 0.174793810296551 \tabularnewline
64 & 124 & 125.775206189703 & -1.77520618970345 \tabularnewline
65 & 127.2 & 128.425206189703 & -1.22520618970344 \tabularnewline
66 & 136.9 & 129.250206189703 & 7.64979381029656 \tabularnewline
67 & 135.8 & 127.662706189703 & 8.13729381029656 \tabularnewline
68 & 124.3 & 126.874868372951 & -2.57486837295148 \tabularnewline
69 & 115.4 & 128.362368372951 & -12.9623683729515 \tabularnewline
70 & 113.6 & 116.181162954509 & -2.58116295450898 \tabularnewline
71 & 114.4 & 120.481162954509 & -6.08116295450897 \tabularnewline
72 & 118.4 & 121.595448668795 & -3.19544866879469 \tabularnewline
73 & 117 & 124.733451771671 & -7.73345177167111 \tabularnewline
74 & 116.5 & 126.545951771671 & -10.0459517716710 \tabularnewline
75 & 115.4 & 131.808451771671 & -16.4084517716711 \tabularnewline
76 & 113.6 & 132.158451771671 & -18.5584517716711 \tabularnewline
77 & 117.4 & 134.808451771671 & -17.4084517716711 \tabularnewline
78 & 116.9 & 135.633451771671 & -18.7334517716711 \tabularnewline
79 & 116.4 & 134.045951771671 & -17.6459517716711 \tabularnewline
80 & 111.1 & 133.258113954919 & -22.1581139549191 \tabularnewline
81 & 110.2 & 134.745613954919 & -24.5456139549191 \tabularnewline
82 & 118.9 & 122.564408536477 & -3.66440853647663 \tabularnewline
83 & 131.8 & 126.864408536477 & 4.93559146352338 \tabularnewline
84 & 130.6 & 127.978694250762 & 2.62130574923764 \tabularnewline
85 & 138.3 & 131.116697353639 & 7.18330264636125 \tabularnewline
86 & 148.4 & 132.929197353639 & 15.4708026463613 \tabularnewline
87 & 148.7 & 138.191697353639 & 10.5083026463612 \tabularnewline
88 & 144.3 & 138.541697353639 & 5.75830264636125 \tabularnewline
89 & 152.5 & 141.191697353639 & 11.3083026463612 \tabularnewline
90 & 162.9 & 142.016697353639 & 20.8833026463613 \tabularnewline
91 & 167.2 & 140.429197353639 & 26.7708026463612 \tabularnewline
92 & 166.5 & 139.641359536887 & 26.8586404631132 \tabularnewline
93 & 185.6 & 141.128859536887 & 44.4711404631132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4068&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]86.4339782798651[/C][C]13.0660217201349[/C][/ROW]
[ROW][C]2[/C][C]101.6[/C][C]88.2464782798655[/C][C]13.3535217201345[/C][/ROW]
[ROW][C]3[/C][C]103.9[/C][C]93.5089782798651[/C][C]10.3910217201349[/C][/ROW]
[ROW][C]4[/C][C]106.6[/C][C]93.8589782798652[/C][C]12.7410217201348[/C][/ROW]
[ROW][C]5[/C][C]108.3[/C][C]96.5089782798651[/C][C]11.7910217201349[/C][/ROW]
[ROW][C]6[/C][C]102[/C][C]97.3339782798652[/C][C]4.66602172013478[/C][/ROW]
[ROW][C]7[/C][C]93.8[/C][C]95.7464782798651[/C][C]-1.94647827986514[/C][/ROW]
[ROW][C]8[/C][C]91.6[/C][C]94.9586404631132[/C][C]-3.35864046311321[/C][/ROW]
[ROW][C]9[/C][C]97.7[/C][C]96.4461404631132[/C][C]1.25385953688681[/C][/ROW]
[ROW][C]10[/C][C]94.8[/C][C]84.2649350446707[/C][C]10.5350649553293[/C][/ROW]
[ROW][C]11[/C][C]98[/C][C]88.5649350446707[/C][C]9.43506495532929[/C][/ROW]
[ROW][C]12[/C][C]103.8[/C][C]89.6792207589564[/C][C]14.1207792410436[/C][/ROW]
[ROW][C]13[/C][C]97.8[/C][C]92.8172238618328[/C][C]4.98277613816715[/C][/ROW]
[ROW][C]14[/C][C]91.2[/C][C]94.6297238618328[/C][C]-3.42972386183278[/C][/ROW]
[ROW][C]15[/C][C]89.3[/C][C]99.8922238618328[/C][C]-10.5922238618328[/C][/ROW]
[ROW][C]16[/C][C]87.5[/C][C]100.242223861833[/C][C]-12.7422238618328[/C][/ROW]
[ROW][C]17[/C][C]90.4[/C][C]102.892223861833[/C][C]-12.4922238618328[/C][/ROW]
[ROW][C]18[/C][C]94.2[/C][C]103.717223861833[/C][C]-9.51722386183282[/C][/ROW]
[ROW][C]19[/C][C]102.2[/C][C]102.129723861833[/C][C]0.0702761381671688[/C][/ROW]
[ROW][C]20[/C][C]101.3[/C][C]101.341886045081[/C][C]-0.0418860450808649[/C][/ROW]
[ROW][C]21[/C][C]96[/C][C]102.829386045081[/C][C]-6.82938604508087[/C][/ROW]
[ROW][C]22[/C][C]90.8[/C][C]90.6481806266384[/C][C]0.151819373361632[/C][/ROW]
[ROW][C]23[/C][C]93.2[/C][C]94.9481806266384[/C][C]-1.74818062663837[/C][/ROW]
[ROW][C]24[/C][C]90.9[/C][C]96.062466340924[/C][C]-5.16246634092409[/C][/ROW]
[ROW][C]25[/C][C]91.1[/C][C]99.2004694438005[/C][C]-8.1004694438005[/C][/ROW]
[ROW][C]26[/C][C]90.2[/C][C]101.012969443800[/C][C]-10.8129694438004[/C][/ROW]
[ROW][C]27[/C][C]94.3[/C][C]106.275469443800[/C][C]-11.9754694438005[/C][/ROW]
[ROW][C]28[/C][C]96[/C][C]106.625469443800[/C][C]-10.6254694438005[/C][/ROW]
[ROW][C]29[/C][C]99[/C][C]109.275469443800[/C][C]-10.2754694438005[/C][/ROW]
[ROW][C]30[/C][C]103.3[/C][C]110.100469443800[/C][C]-6.80046944380048[/C][/ROW]
[ROW][C]31[/C][C]113.1[/C][C]108.512969443800[/C][C]4.5870305561995[/C][/ROW]
[ROW][C]32[/C][C]112.8[/C][C]107.725131627049[/C][C]5.07486837295148[/C][/ROW]
[ROW][C]33[/C][C]112.1[/C][C]109.212631627049[/C][C]2.88736837295148[/C][/ROW]
[ROW][C]34[/C][C]107.4[/C][C]97.031426208606[/C][C]10.3685737913940[/C][/ROW]
[ROW][C]35[/C][C]111[/C][C]101.331426208606[/C][C]9.66857379139398[/C][/ROW]
[ROW][C]36[/C][C]110.5[/C][C]102.445711922892[/C][C]8.05428807710826[/C][/ROW]
[ROW][C]37[/C][C]110.8[/C][C]105.583715025768[/C][C]5.21628497423185[/C][/ROW]
[ROW][C]38[/C][C]112.4[/C][C]107.396215025768[/C][C]5.00378497423192[/C][/ROW]
[ROW][C]39[/C][C]111.5[/C][C]112.658715025768[/C][C]-1.15871502576813[/C][/ROW]
[ROW][C]40[/C][C]116.2[/C][C]113.008715025768[/C][C]3.19128497423186[/C][/ROW]
[ROW][C]41[/C][C]122.5[/C][C]115.658715025768[/C][C]6.84128497423186[/C][/ROW]
[ROW][C]42[/C][C]121.3[/C][C]116.483715025768[/C][C]4.81628497423186[/C][/ROW]
[ROW][C]43[/C][C]113.9[/C][C]114.896215025768[/C][C]-0.996215025768139[/C][/ROW]
[ROW][C]44[/C][C]110.7[/C][C]114.108377209016[/C][C]-3.40837720901617[/C][/ROW]
[ROW][C]45[/C][C]120.8[/C][C]115.595877209016[/C][C]5.20412279098383[/C][/ROW]
[ROW][C]46[/C][C]141.1[/C][C]152.311969256558[/C][C]-11.2119692565580[/C][/ROW]
[ROW][C]47[/C][C]147.4[/C][C]156.611969256558[/C][C]-9.21196925655796[/C][/ROW]
[ROW][C]48[/C][C]148[/C][C]157.726254970844[/C][C]-9.72625497084368[/C][/ROW]
[ROW][C]49[/C][C]158.1[/C][C]160.86425807372[/C][C]-2.76425807372009[/C][/ROW]
[ROW][C]50[/C][C]165[/C][C]162.67675807372[/C][C]2.32324192627998[/C][/ROW]
[ROW][C]51[/C][C]187[/C][C]167.93925807372[/C][C]19.0607419262799[/C][/ROW]
[ROW][C]52[/C][C]190.3[/C][C]168.28925807372[/C][C]22.0107419262799[/C][/ROW]
[ROW][C]53[/C][C]182.4[/C][C]170.93925807372[/C][C]11.4607419262799[/C][/ROW]
[ROW][C]54[/C][C]168.8[/C][C]171.76425807372[/C][C]-2.96425807372007[/C][/ROW]
[ROW][C]55[/C][C]151.2[/C][C]170.17675807372[/C][C]-18.9767580737201[/C][/ROW]
[ROW][C]56[/C][C]120.1[/C][C]120.491622790984[/C][C]-0.391622790983825[/C][/ROW]
[ROW][C]57[/C][C]112.5[/C][C]121.979122790984[/C][C]-9.47912279098382[/C][/ROW]
[ROW][C]58[/C][C]106.2[/C][C]109.797917372541[/C][C]-3.59791737254132[/C][/ROW]
[ROW][C]59[/C][C]107.1[/C][C]114.097917372541[/C][C]-6.99791737254134[/C][/ROW]
[ROW][C]60[/C][C]108.5[/C][C]115.212203086827[/C][C]-6.71220308682705[/C][/ROW]
[ROW][C]61[/C][C]106.5[/C][C]118.350206189703[/C][C]-11.8502061897035[/C][/ROW]
[ROW][C]62[/C][C]108.3[/C][C]120.162706189703[/C][C]-11.8627061897034[/C][/ROW]
[ROW][C]63[/C][C]125.6[/C][C]125.425206189703[/C][C]0.174793810296551[/C][/ROW]
[ROW][C]64[/C][C]124[/C][C]125.775206189703[/C][C]-1.77520618970345[/C][/ROW]
[ROW][C]65[/C][C]127.2[/C][C]128.425206189703[/C][C]-1.22520618970344[/C][/ROW]
[ROW][C]66[/C][C]136.9[/C][C]129.250206189703[/C][C]7.64979381029656[/C][/ROW]
[ROW][C]67[/C][C]135.8[/C][C]127.662706189703[/C][C]8.13729381029656[/C][/ROW]
[ROW][C]68[/C][C]124.3[/C][C]126.874868372951[/C][C]-2.57486837295148[/C][/ROW]
[ROW][C]69[/C][C]115.4[/C][C]128.362368372951[/C][C]-12.9623683729515[/C][/ROW]
[ROW][C]70[/C][C]113.6[/C][C]116.181162954509[/C][C]-2.58116295450898[/C][/ROW]
[ROW][C]71[/C][C]114.4[/C][C]120.481162954509[/C][C]-6.08116295450897[/C][/ROW]
[ROW][C]72[/C][C]118.4[/C][C]121.595448668795[/C][C]-3.19544866879469[/C][/ROW]
[ROW][C]73[/C][C]117[/C][C]124.733451771671[/C][C]-7.73345177167111[/C][/ROW]
[ROW][C]74[/C][C]116.5[/C][C]126.545951771671[/C][C]-10.0459517716710[/C][/ROW]
[ROW][C]75[/C][C]115.4[/C][C]131.808451771671[/C][C]-16.4084517716711[/C][/ROW]
[ROW][C]76[/C][C]113.6[/C][C]132.158451771671[/C][C]-18.5584517716711[/C][/ROW]
[ROW][C]77[/C][C]117.4[/C][C]134.808451771671[/C][C]-17.4084517716711[/C][/ROW]
[ROW][C]78[/C][C]116.9[/C][C]135.633451771671[/C][C]-18.7334517716711[/C][/ROW]
[ROW][C]79[/C][C]116.4[/C][C]134.045951771671[/C][C]-17.6459517716711[/C][/ROW]
[ROW][C]80[/C][C]111.1[/C][C]133.258113954919[/C][C]-22.1581139549191[/C][/ROW]
[ROW][C]81[/C][C]110.2[/C][C]134.745613954919[/C][C]-24.5456139549191[/C][/ROW]
[ROW][C]82[/C][C]118.9[/C][C]122.564408536477[/C][C]-3.66440853647663[/C][/ROW]
[ROW][C]83[/C][C]131.8[/C][C]126.864408536477[/C][C]4.93559146352338[/C][/ROW]
[ROW][C]84[/C][C]130.6[/C][C]127.978694250762[/C][C]2.62130574923764[/C][/ROW]
[ROW][C]85[/C][C]138.3[/C][C]131.116697353639[/C][C]7.18330264636125[/C][/ROW]
[ROW][C]86[/C][C]148.4[/C][C]132.929197353639[/C][C]15.4708026463613[/C][/ROW]
[ROW][C]87[/C][C]148.7[/C][C]138.191697353639[/C][C]10.5083026463612[/C][/ROW]
[ROW][C]88[/C][C]144.3[/C][C]138.541697353639[/C][C]5.75830264636125[/C][/ROW]
[ROW][C]89[/C][C]152.5[/C][C]141.191697353639[/C][C]11.3083026463612[/C][/ROW]
[ROW][C]90[/C][C]162.9[/C][C]142.016697353639[/C][C]20.8833026463613[/C][/ROW]
[ROW][C]91[/C][C]167.2[/C][C]140.429197353639[/C][C]26.7708026463612[/C][/ROW]
[ROW][C]92[/C][C]166.5[/C][C]139.641359536887[/C][C]26.8586404631132[/C][/ROW]
[ROW][C]93[/C][C]185.6[/C][C]141.128859536887[/C][C]44.4711404631132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4068&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4068&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.586.433978279865113.0660217201349
2101.688.246478279865513.3535217201345
3103.993.508978279865110.3910217201349
4106.693.858978279865212.7410217201348
5108.396.508978279865111.7910217201349
610297.33397827986524.66602172013478
793.895.7464782798651-1.94647827986514
891.694.9586404631132-3.35864046311321
997.796.44614046311321.25385953688681
1094.884.264935044670710.5350649553293
119888.56493504467079.43506495532929
12103.889.679220758956414.1207792410436
1397.892.81722386183284.98277613816715
1491.294.6297238618328-3.42972386183278
1589.399.8922238618328-10.5922238618328
1687.5100.242223861833-12.7422238618328
1790.4102.892223861833-12.4922238618328
1894.2103.717223861833-9.51722386183282
19102.2102.1297238618330.0702761381671688
20101.3101.341886045081-0.0418860450808649
2196102.829386045081-6.82938604508087
2290.890.64818062663840.151819373361632
2393.294.9481806266384-1.74818062663837
2490.996.062466340924-5.16246634092409
2591.199.2004694438005-8.1004694438005
2690.2101.012969443800-10.8129694438004
2794.3106.275469443800-11.9754694438005
2896106.625469443800-10.6254694438005
2999109.275469443800-10.2754694438005
30103.3110.100469443800-6.80046944380048
31113.1108.5129694438004.5870305561995
32112.8107.7251316270495.07486837295148
33112.1109.2126316270492.88736837295148
34107.497.03142620860610.3685737913940
35111101.3314262086069.66857379139398
36110.5102.4457119228928.05428807710826
37110.8105.5837150257685.21628497423185
38112.4107.3962150257685.00378497423192
39111.5112.658715025768-1.15871502576813
40116.2113.0087150257683.19128497423186
41122.5115.6587150257686.84128497423186
42121.3116.4837150257684.81628497423186
43113.9114.896215025768-0.996215025768139
44110.7114.108377209016-3.40837720901617
45120.8115.5958772090165.20412279098383
46141.1152.311969256558-11.2119692565580
47147.4156.611969256558-9.21196925655796
48148157.726254970844-9.72625497084368
49158.1160.86425807372-2.76425807372009
50165162.676758073722.32324192627998
51187167.9392580737219.0607419262799
52190.3168.2892580737222.0107419262799
53182.4170.9392580737211.4607419262799
54168.8171.76425807372-2.96425807372007
55151.2170.17675807372-18.9767580737201
56120.1120.491622790984-0.391622790983825
57112.5121.979122790984-9.47912279098382
58106.2109.797917372541-3.59791737254132
59107.1114.097917372541-6.99791737254134
60108.5115.212203086827-6.71220308682705
61106.5118.350206189703-11.8502061897035
62108.3120.162706189703-11.8627061897034
63125.6125.4252061897030.174793810296551
64124125.775206189703-1.77520618970345
65127.2128.425206189703-1.22520618970344
66136.9129.2502061897037.64979381029656
67135.8127.6627061897038.13729381029656
68124.3126.874868372951-2.57486837295148
69115.4128.362368372951-12.9623683729515
70113.6116.181162954509-2.58116295450898
71114.4120.481162954509-6.08116295450897
72118.4121.595448668795-3.19544866879469
73117124.733451771671-7.73345177167111
74116.5126.545951771671-10.0459517716710
75115.4131.808451771671-16.4084517716711
76113.6132.158451771671-18.5584517716711
77117.4134.808451771671-17.4084517716711
78116.9135.633451771671-18.7334517716711
79116.4134.045951771671-17.6459517716711
80111.1133.258113954919-22.1581139549191
81110.2134.745613954919-24.5456139549191
82118.9122.564408536477-3.66440853647663
83131.8126.8644085364774.93559146352338
84130.6127.9786942507622.62130574923764
85138.3131.1166973536397.18330264636125
86148.4132.92919735363915.4708026463613
87148.7138.19169735363910.5083026463612
88144.3138.5416973536395.75830264636125
89152.5141.19169735363911.3083026463612
90162.9142.01669735363920.8833026463613
91167.2140.42919735363926.7708026463612
92166.5139.64135953688726.8586404631132
93185.6141.12885953688744.4711404631132



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