Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSun, 16 Dec 2007 14:10:24 -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/16/t1197838442xq08l0f6h5lvvb6.htm/, Retrieved Thu, 02 May 2024 06:10:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=4269, Retrieved Thu, 02 May 2024 06:10:44 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact173
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2007-12-16 21:10:24] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
112.1	0
104.2	0
102.4	0
100.3	0
102.6	0
101.5	0
103.4	0
99.4	0
97.9	0
98	0
90.2	0
87.1	0
91.8	0
94.8	0
91.8	0
89.3	0
91.7	0
86.2	0
82.8	0
82.3	0
79.8	0
79.4	0
85.3	0
87.5	0
88.3	0
88.6	0
94.9	0
94.7	0
92.6	0
91.8	0
96.4	0
96.4	0
107.1	0
111.9	0
107.8	0
109.2	0
115.3	0
119.2	0
107.8	0
106.8	0
104.2	0
94.8	0
97.5	0
98.3	0
100.6	0
94.9	0
93.6	0
98	0
104.3	0
103.9	0
105.3	0
102.6	0
103.3	0
107.9	0
107.8	0
109.8	0
110.6	0
110.8	1
119.3	1
128.1	1
127.6	1
137.9	1
151.4	1
143.6	1
143.4	1
141.9	1
135.2	1
133.1	1
129.6	1
134.1	1
136.8	1
143.5	1
162.5	1
163.1	1
157.2	1
158.8	1
155.4	1
148.5	1
154.2	1
153.3	1
149.4	1
147.9	1
156	1
163	1
159.1	1
159.5	1
157.3	1
156.4	1
156.6	1
162.4	1
166.8	1
162.6	1
168.1	1




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 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 & 6 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=4269&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]6 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=4269&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 84.2627133872417 + 32.0095387840671X[t] + 7.15367157082959M1[t] + 8.04018231506439M2[t] + 7.26419305929919M3[t] + 4.92570380353399M4[t] + 4.19971454776879M5[t] + 1.96122529200359M6[t] + 2.71023603623839M7[t] + 1.20924678047320M8[t] + 1.80825752470799M9[t] -4.85159291704103M10[t] -3.52579645852052M11[t] + 0.388489255765199t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  84.2627133872417 +  32.0095387840671X[t] +  7.15367157082959M1[t] +  8.04018231506439M2[t] +  7.26419305929919M3[t] +  4.92570380353399M4[t] +  4.19971454776879M5[t] +  1.96122529200359M6[t] +  2.71023603623839M7[t] +  1.20924678047320M8[t] +  1.80825752470799M9[t] -4.85159291704103M10[t] -3.52579645852052M11[t] +  0.388489255765199t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4269&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  84.2627133872417 +  32.0095387840671X[t] +  7.15367157082959M1[t] +  8.04018231506439M2[t] +  7.26419305929919M3[t] +  4.92570380353399M4[t] +  4.19971454776879M5[t] +  1.96122529200359M6[t] +  2.71023603623839M7[t] +  1.20924678047320M8[t] +  1.80825752470799M9[t] -4.85159291704103M10[t] -3.52579645852052M11[t] +  0.388489255765199t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4269&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4269&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] = + 84.2627133872417 + 32.0095387840671X[t] + 7.15367157082959M1[t] + 8.04018231506439M2[t] + 7.26419305929919M3[t] + 4.92570380353399M4[t] + 4.19971454776879M5[t] + 1.96122529200359M6[t] + 2.71023603623839M7[t] + 1.20924678047320M8[t] + 1.80825752470799M9[t] -4.85159291704103M10[t] -3.52579645852052M11[t] + 0.388489255765199t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)84.26271338724174.28648919.657700
X32.00953878406713.9184678.168900
M17.153671570829595.0519431.4160.1606990.08035
M28.040182315064395.0499271.59210.1153470.057674
M37.264193059299195.0489171.43880.1541680.077084
M44.925703803533995.0489140.97560.3322420.166121
M54.199714547768795.0499160.83160.4081190.204059
M61.961225292003595.0519250.38820.6989020.349451
M72.710236036238395.0549380.53620.5933570.296679
M81.209246780473205.0589540.2390.8117010.40585
M91.808257524707995.063970.35710.7219820.360991
M10-4.851592917041035.215048-0.93030.3550470.177523
M11-3.525796458520525.213587-0.67630.5008440.250422
t0.3884892557651990.0712865.44981e-060

\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) & 84.2627133872417 & 4.286489 & 19.6577 & 0 & 0 \tabularnewline
X & 32.0095387840671 & 3.918467 & 8.1689 & 0 & 0 \tabularnewline
M1 & 7.15367157082959 & 5.051943 & 1.416 & 0.160699 & 0.08035 \tabularnewline
M2 & 8.04018231506439 & 5.049927 & 1.5921 & 0.115347 & 0.057674 \tabularnewline
M3 & 7.26419305929919 & 5.048917 & 1.4388 & 0.154168 & 0.077084 \tabularnewline
M4 & 4.92570380353399 & 5.048914 & 0.9756 & 0.332242 & 0.166121 \tabularnewline
M5 & 4.19971454776879 & 5.049916 & 0.8316 & 0.408119 & 0.204059 \tabularnewline
M6 & 1.96122529200359 & 5.051925 & 0.3882 & 0.698902 & 0.349451 \tabularnewline
M7 & 2.71023603623839 & 5.054938 & 0.5362 & 0.593357 & 0.296679 \tabularnewline
M8 & 1.20924678047320 & 5.058954 & 0.239 & 0.811701 & 0.40585 \tabularnewline
M9 & 1.80825752470799 & 5.06397 & 0.3571 & 0.721982 & 0.360991 \tabularnewline
M10 & -4.85159291704103 & 5.215048 & -0.9303 & 0.355047 & 0.177523 \tabularnewline
M11 & -3.52579645852052 & 5.213587 & -0.6763 & 0.500844 & 0.250422 \tabularnewline
t & 0.388489255765199 & 0.071286 & 5.4498 & 1e-06 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4269&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]84.2627133872417[/C][C]4.286489[/C][C]19.6577[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]32.0095387840671[/C][C]3.918467[/C][C]8.1689[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]7.15367157082959[/C][C]5.051943[/C][C]1.416[/C][C]0.160699[/C][C]0.08035[/C][/ROW]
[ROW][C]M2[/C][C]8.04018231506439[/C][C]5.049927[/C][C]1.5921[/C][C]0.115347[/C][C]0.057674[/C][/ROW]
[ROW][C]M3[/C][C]7.26419305929919[/C][C]5.048917[/C][C]1.4388[/C][C]0.154168[/C][C]0.077084[/C][/ROW]
[ROW][C]M4[/C][C]4.92570380353399[/C][C]5.048914[/C][C]0.9756[/C][C]0.332242[/C][C]0.166121[/C][/ROW]
[ROW][C]M5[/C][C]4.19971454776879[/C][C]5.049916[/C][C]0.8316[/C][C]0.408119[/C][C]0.204059[/C][/ROW]
[ROW][C]M6[/C][C]1.96122529200359[/C][C]5.051925[/C][C]0.3882[/C][C]0.698902[/C][C]0.349451[/C][/ROW]
[ROW][C]M7[/C][C]2.71023603623839[/C][C]5.054938[/C][C]0.5362[/C][C]0.593357[/C][C]0.296679[/C][/ROW]
[ROW][C]M8[/C][C]1.20924678047320[/C][C]5.058954[/C][C]0.239[/C][C]0.811701[/C][C]0.40585[/C][/ROW]
[ROW][C]M9[/C][C]1.80825752470799[/C][C]5.06397[/C][C]0.3571[/C][C]0.721982[/C][C]0.360991[/C][/ROW]
[ROW][C]M10[/C][C]-4.85159291704103[/C][C]5.215048[/C][C]-0.9303[/C][C]0.355047[/C][C]0.177523[/C][/ROW]
[ROW][C]M11[/C][C]-3.52579645852052[/C][C]5.213587[/C][C]-0.6763[/C][C]0.500844[/C][C]0.250422[/C][/ROW]
[ROW][C]t[/C][C]0.388489255765199[/C][C]0.071286[/C][C]5.4498[/C][C]1e-06[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4269&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4269&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)84.26271338724174.28648919.657700
X32.00953878406713.9184678.168900
M17.153671570829595.0519431.4160.1606990.08035
M28.040182315064395.0499271.59210.1153470.057674
M37.264193059299195.0489171.43880.1541680.077084
M44.925703803533995.0489140.97560.3322420.166121
M54.199714547768795.0499160.83160.4081190.204059
M61.961225292003595.0519250.38820.6989020.349451
M72.710236036238395.0549380.53620.5933570.296679
M81.209246780473205.0589540.2390.8117010.40585
M91.808257524707995.063970.35710.7219820.360991
M10-4.851592917041035.215048-0.93030.3550470.177523
M11-3.525796458520525.213587-0.67630.5008440.250422
t0.3884892557651990.0712865.44981e-060







Multiple Linear Regression - Regression Statistics
Multiple R0.941724895594095
R-squared0.886845778981708
Adjusted R-squared0.868225464130597
F-TEST (value)47.6278616163561
F-TEST (DF numerator)13
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation9.75281567270224
Sum Squared Residuals7514.27567011082

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.941724895594095 \tabularnewline
R-squared & 0.886845778981708 \tabularnewline
Adjusted R-squared & 0.868225464130597 \tabularnewline
F-TEST (value) & 47.6278616163561 \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 & 9.75281567270224 \tabularnewline
Sum Squared Residuals & 7514.27567011082 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4269&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.941724895594095[/C][/ROW]
[ROW][C]R-squared[/C][C]0.886845778981708[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.868225464130597[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]47.6278616163561[/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]9.75281567270224[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]7514.27567011082[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4269&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4269&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.941724895594095
R-squared0.886845778981708
Adjusted R-squared0.868225464130597
F-TEST (value)47.6278616163561
F-TEST (DF numerator)13
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation9.75281567270224
Sum Squared Residuals7514.27567011082







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1112.191.804874213836420.2951257861636
2104.293.079874213836511.1201257861635
3102.492.69237421383659.70762578616353
4100.390.74237421383659.55762578616352
5102.690.404874213836512.1951257861635
6101.588.554874213836512.9451257861635
7103.489.692374213836513.7076257861635
899.488.579874213836510.8201257861635
997.989.56737421383658.33262578616353
109883.296013027852714.7039869721473
1190.285.01029874213845.18970125786163
1287.188.924584456424-1.82458445642409
1391.896.4667452830189-4.66674528301887
1494.897.7417452830189-2.94174528301886
1591.897.3542452830189-5.55424528301887
1689.395.4042452830189-6.10424528301887
1791.795.0667452830189-3.36674528301887
1886.293.2167452830189-7.01674528301887
1982.894.3542452830189-11.5542452830189
2082.393.2417452830189-10.9417452830189
2179.894.2292452830189-14.4292452830189
2279.487.957884097035-8.55788409703503
2385.389.6721698113208-4.37216981132076
2487.593.5864555256065-6.08645552560647
2588.3101.128616352201-12.8286163522013
2688.6102.403616352201-13.8036163522013
2794.9102.016116352201-7.11611635220125
2894.7100.066116352201-5.36611635220125
2992.699.7286163522013-7.12861635220126
3091.897.8786163522013-6.07861635220126
3196.499.0161163522013-2.61611635220125
3296.497.9036163522013-1.50361635220126
33107.198.89111635220138.20888364779874
34111.992.619755166217419.2802448337826
35107.894.334040880503213.4659591194969
36109.298.248326594788910.9516734052111
37115.3105.7904874213849.50951257861635
38119.2107.06548742138412.1345125786164
39107.8106.6779874213841.12201257861635
40106.8104.7279874213842.07201257861635
41104.2104.390487421384-0.190487421383643
4294.8102.540487421384-7.74048742138365
4397.5103.677987421384-6.17798742138365
4498.3102.565487421384-4.26548742138366
45100.6103.552987421384-2.95298742138365
4694.997.2816262353998-2.38162623539982
4793.698.9959119496855-5.39591194968554
4898102.910197663971-4.91019766397125
49104.3110.452358490566-6.15235849056604
50103.9111.727358490566-7.82735849056604
51105.3111.339858490566-6.03985849056604
52102.6109.389858490566-6.78985849056604
53103.3109.052358490566-5.75235849056604
54107.9107.2023584905660.697641509433967
55107.8108.339858490566-0.539858490566037
56109.8107.2273584905662.57264150943397
57110.6108.2148584905662.38514150943396
58110.8133.953036088649-23.1530360886493
59119.3135.667321802935-16.367321802935
60128.1139.581607517221-11.4816075172207
61127.6147.123768343816-19.5237683438155
62137.9148.398768343816-10.4987683438155
63151.4148.0112683438163.38873165618449
64143.6146.061268343816-2.46126834381552
65143.4145.723768343816-2.32376834381551
66141.9143.873768343816-1.97376834381551
67135.2145.011268343816-9.81126834381553
68133.1143.898768343816-10.7987683438155
69129.6144.886268343816-15.2862683438155
70134.1138.614907157832-4.51490715783169
71136.8140.329192872117-3.52919287211739
72143.5144.243478586403-0.74347858640312
73162.5151.78563941299810.7143605870021
74163.1153.06063941299810.0393605870021
75157.2152.6731394129984.52686058700209
76158.8150.7231394129988.07686058700211
77155.4150.3856394129985.0143605870021
78148.5148.535639412998-0.0356394129979061
79154.2149.6731394129984.52686058700209
80153.3148.5606394129984.73936058700211
81149.4149.548139412998-0.148139412997894
82147.9143.2767782270144.62322177298593
83156144.99106394130011.0089360587002
84163148.90534965558514.0946503444145
85159.1156.4475104821802.6524895178197
86159.5157.7225104821801.77748951781971
87157.3157.335010482180-0.0350104821802833
88156.4155.3850104821801.01498951781971
89156.6155.0475104821801.55248951781970
90162.4153.1975104821809.20248951781971
91166.8154.33501048218012.4649895178197
92162.6153.2225104821809.3774895178197
93168.1154.21001048218013.8899895178197

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 112.1 & 91.8048742138364 & 20.2951257861636 \tabularnewline
2 & 104.2 & 93.0798742138365 & 11.1201257861635 \tabularnewline
3 & 102.4 & 92.6923742138365 & 9.70762578616353 \tabularnewline
4 & 100.3 & 90.7423742138365 & 9.55762578616352 \tabularnewline
5 & 102.6 & 90.4048742138365 & 12.1951257861635 \tabularnewline
6 & 101.5 & 88.5548742138365 & 12.9451257861635 \tabularnewline
7 & 103.4 & 89.6923742138365 & 13.7076257861635 \tabularnewline
8 & 99.4 & 88.5798742138365 & 10.8201257861635 \tabularnewline
9 & 97.9 & 89.5673742138365 & 8.33262578616353 \tabularnewline
10 & 98 & 83.2960130278527 & 14.7039869721473 \tabularnewline
11 & 90.2 & 85.0102987421384 & 5.18970125786163 \tabularnewline
12 & 87.1 & 88.924584456424 & -1.82458445642409 \tabularnewline
13 & 91.8 & 96.4667452830189 & -4.66674528301887 \tabularnewline
14 & 94.8 & 97.7417452830189 & -2.94174528301886 \tabularnewline
15 & 91.8 & 97.3542452830189 & -5.55424528301887 \tabularnewline
16 & 89.3 & 95.4042452830189 & -6.10424528301887 \tabularnewline
17 & 91.7 & 95.0667452830189 & -3.36674528301887 \tabularnewline
18 & 86.2 & 93.2167452830189 & -7.01674528301887 \tabularnewline
19 & 82.8 & 94.3542452830189 & -11.5542452830189 \tabularnewline
20 & 82.3 & 93.2417452830189 & -10.9417452830189 \tabularnewline
21 & 79.8 & 94.2292452830189 & -14.4292452830189 \tabularnewline
22 & 79.4 & 87.957884097035 & -8.55788409703503 \tabularnewline
23 & 85.3 & 89.6721698113208 & -4.37216981132076 \tabularnewline
24 & 87.5 & 93.5864555256065 & -6.08645552560647 \tabularnewline
25 & 88.3 & 101.128616352201 & -12.8286163522013 \tabularnewline
26 & 88.6 & 102.403616352201 & -13.8036163522013 \tabularnewline
27 & 94.9 & 102.016116352201 & -7.11611635220125 \tabularnewline
28 & 94.7 & 100.066116352201 & -5.36611635220125 \tabularnewline
29 & 92.6 & 99.7286163522013 & -7.12861635220126 \tabularnewline
30 & 91.8 & 97.8786163522013 & -6.07861635220126 \tabularnewline
31 & 96.4 & 99.0161163522013 & -2.61611635220125 \tabularnewline
32 & 96.4 & 97.9036163522013 & -1.50361635220126 \tabularnewline
33 & 107.1 & 98.8911163522013 & 8.20888364779874 \tabularnewline
34 & 111.9 & 92.6197551662174 & 19.2802448337826 \tabularnewline
35 & 107.8 & 94.3340408805032 & 13.4659591194969 \tabularnewline
36 & 109.2 & 98.2483265947889 & 10.9516734052111 \tabularnewline
37 & 115.3 & 105.790487421384 & 9.50951257861635 \tabularnewline
38 & 119.2 & 107.065487421384 & 12.1345125786164 \tabularnewline
39 & 107.8 & 106.677987421384 & 1.12201257861635 \tabularnewline
40 & 106.8 & 104.727987421384 & 2.07201257861635 \tabularnewline
41 & 104.2 & 104.390487421384 & -0.190487421383643 \tabularnewline
42 & 94.8 & 102.540487421384 & -7.74048742138365 \tabularnewline
43 & 97.5 & 103.677987421384 & -6.17798742138365 \tabularnewline
44 & 98.3 & 102.565487421384 & -4.26548742138366 \tabularnewline
45 & 100.6 & 103.552987421384 & -2.95298742138365 \tabularnewline
46 & 94.9 & 97.2816262353998 & -2.38162623539982 \tabularnewline
47 & 93.6 & 98.9959119496855 & -5.39591194968554 \tabularnewline
48 & 98 & 102.910197663971 & -4.91019766397125 \tabularnewline
49 & 104.3 & 110.452358490566 & -6.15235849056604 \tabularnewline
50 & 103.9 & 111.727358490566 & -7.82735849056604 \tabularnewline
51 & 105.3 & 111.339858490566 & -6.03985849056604 \tabularnewline
52 & 102.6 & 109.389858490566 & -6.78985849056604 \tabularnewline
53 & 103.3 & 109.052358490566 & -5.75235849056604 \tabularnewline
54 & 107.9 & 107.202358490566 & 0.697641509433967 \tabularnewline
55 & 107.8 & 108.339858490566 & -0.539858490566037 \tabularnewline
56 & 109.8 & 107.227358490566 & 2.57264150943397 \tabularnewline
57 & 110.6 & 108.214858490566 & 2.38514150943396 \tabularnewline
58 & 110.8 & 133.953036088649 & -23.1530360886493 \tabularnewline
59 & 119.3 & 135.667321802935 & -16.367321802935 \tabularnewline
60 & 128.1 & 139.581607517221 & -11.4816075172207 \tabularnewline
61 & 127.6 & 147.123768343816 & -19.5237683438155 \tabularnewline
62 & 137.9 & 148.398768343816 & -10.4987683438155 \tabularnewline
63 & 151.4 & 148.011268343816 & 3.38873165618449 \tabularnewline
64 & 143.6 & 146.061268343816 & -2.46126834381552 \tabularnewline
65 & 143.4 & 145.723768343816 & -2.32376834381551 \tabularnewline
66 & 141.9 & 143.873768343816 & -1.97376834381551 \tabularnewline
67 & 135.2 & 145.011268343816 & -9.81126834381553 \tabularnewline
68 & 133.1 & 143.898768343816 & -10.7987683438155 \tabularnewline
69 & 129.6 & 144.886268343816 & -15.2862683438155 \tabularnewline
70 & 134.1 & 138.614907157832 & -4.51490715783169 \tabularnewline
71 & 136.8 & 140.329192872117 & -3.52919287211739 \tabularnewline
72 & 143.5 & 144.243478586403 & -0.74347858640312 \tabularnewline
73 & 162.5 & 151.785639412998 & 10.7143605870021 \tabularnewline
74 & 163.1 & 153.060639412998 & 10.0393605870021 \tabularnewline
75 & 157.2 & 152.673139412998 & 4.52686058700209 \tabularnewline
76 & 158.8 & 150.723139412998 & 8.07686058700211 \tabularnewline
77 & 155.4 & 150.385639412998 & 5.0143605870021 \tabularnewline
78 & 148.5 & 148.535639412998 & -0.0356394129979061 \tabularnewline
79 & 154.2 & 149.673139412998 & 4.52686058700209 \tabularnewline
80 & 153.3 & 148.560639412998 & 4.73936058700211 \tabularnewline
81 & 149.4 & 149.548139412998 & -0.148139412997894 \tabularnewline
82 & 147.9 & 143.276778227014 & 4.62322177298593 \tabularnewline
83 & 156 & 144.991063941300 & 11.0089360587002 \tabularnewline
84 & 163 & 148.905349655585 & 14.0946503444145 \tabularnewline
85 & 159.1 & 156.447510482180 & 2.6524895178197 \tabularnewline
86 & 159.5 & 157.722510482180 & 1.77748951781971 \tabularnewline
87 & 157.3 & 157.335010482180 & -0.0350104821802833 \tabularnewline
88 & 156.4 & 155.385010482180 & 1.01498951781971 \tabularnewline
89 & 156.6 & 155.047510482180 & 1.55248951781970 \tabularnewline
90 & 162.4 & 153.197510482180 & 9.20248951781971 \tabularnewline
91 & 166.8 & 154.335010482180 & 12.4649895178197 \tabularnewline
92 & 162.6 & 153.222510482180 & 9.3774895178197 \tabularnewline
93 & 168.1 & 154.210010482180 & 13.8899895178197 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4269&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]112.1[/C][C]91.8048742138364[/C][C]20.2951257861636[/C][/ROW]
[ROW][C]2[/C][C]104.2[/C][C]93.0798742138365[/C][C]11.1201257861635[/C][/ROW]
[ROW][C]3[/C][C]102.4[/C][C]92.6923742138365[/C][C]9.70762578616353[/C][/ROW]
[ROW][C]4[/C][C]100.3[/C][C]90.7423742138365[/C][C]9.55762578616352[/C][/ROW]
[ROW][C]5[/C][C]102.6[/C][C]90.4048742138365[/C][C]12.1951257861635[/C][/ROW]
[ROW][C]6[/C][C]101.5[/C][C]88.5548742138365[/C][C]12.9451257861635[/C][/ROW]
[ROW][C]7[/C][C]103.4[/C][C]89.6923742138365[/C][C]13.7076257861635[/C][/ROW]
[ROW][C]8[/C][C]99.4[/C][C]88.5798742138365[/C][C]10.8201257861635[/C][/ROW]
[ROW][C]9[/C][C]97.9[/C][C]89.5673742138365[/C][C]8.33262578616353[/C][/ROW]
[ROW][C]10[/C][C]98[/C][C]83.2960130278527[/C][C]14.7039869721473[/C][/ROW]
[ROW][C]11[/C][C]90.2[/C][C]85.0102987421384[/C][C]5.18970125786163[/C][/ROW]
[ROW][C]12[/C][C]87.1[/C][C]88.924584456424[/C][C]-1.82458445642409[/C][/ROW]
[ROW][C]13[/C][C]91.8[/C][C]96.4667452830189[/C][C]-4.66674528301887[/C][/ROW]
[ROW][C]14[/C][C]94.8[/C][C]97.7417452830189[/C][C]-2.94174528301886[/C][/ROW]
[ROW][C]15[/C][C]91.8[/C][C]97.3542452830189[/C][C]-5.55424528301887[/C][/ROW]
[ROW][C]16[/C][C]89.3[/C][C]95.4042452830189[/C][C]-6.10424528301887[/C][/ROW]
[ROW][C]17[/C][C]91.7[/C][C]95.0667452830189[/C][C]-3.36674528301887[/C][/ROW]
[ROW][C]18[/C][C]86.2[/C][C]93.2167452830189[/C][C]-7.01674528301887[/C][/ROW]
[ROW][C]19[/C][C]82.8[/C][C]94.3542452830189[/C][C]-11.5542452830189[/C][/ROW]
[ROW][C]20[/C][C]82.3[/C][C]93.2417452830189[/C][C]-10.9417452830189[/C][/ROW]
[ROW][C]21[/C][C]79.8[/C][C]94.2292452830189[/C][C]-14.4292452830189[/C][/ROW]
[ROW][C]22[/C][C]79.4[/C][C]87.957884097035[/C][C]-8.55788409703503[/C][/ROW]
[ROW][C]23[/C][C]85.3[/C][C]89.6721698113208[/C][C]-4.37216981132076[/C][/ROW]
[ROW][C]24[/C][C]87.5[/C][C]93.5864555256065[/C][C]-6.08645552560647[/C][/ROW]
[ROW][C]25[/C][C]88.3[/C][C]101.128616352201[/C][C]-12.8286163522013[/C][/ROW]
[ROW][C]26[/C][C]88.6[/C][C]102.403616352201[/C][C]-13.8036163522013[/C][/ROW]
[ROW][C]27[/C][C]94.9[/C][C]102.016116352201[/C][C]-7.11611635220125[/C][/ROW]
[ROW][C]28[/C][C]94.7[/C][C]100.066116352201[/C][C]-5.36611635220125[/C][/ROW]
[ROW][C]29[/C][C]92.6[/C][C]99.7286163522013[/C][C]-7.12861635220126[/C][/ROW]
[ROW][C]30[/C][C]91.8[/C][C]97.8786163522013[/C][C]-6.07861635220126[/C][/ROW]
[ROW][C]31[/C][C]96.4[/C][C]99.0161163522013[/C][C]-2.61611635220125[/C][/ROW]
[ROW][C]32[/C][C]96.4[/C][C]97.9036163522013[/C][C]-1.50361635220126[/C][/ROW]
[ROW][C]33[/C][C]107.1[/C][C]98.8911163522013[/C][C]8.20888364779874[/C][/ROW]
[ROW][C]34[/C][C]111.9[/C][C]92.6197551662174[/C][C]19.2802448337826[/C][/ROW]
[ROW][C]35[/C][C]107.8[/C][C]94.3340408805032[/C][C]13.4659591194969[/C][/ROW]
[ROW][C]36[/C][C]109.2[/C][C]98.2483265947889[/C][C]10.9516734052111[/C][/ROW]
[ROW][C]37[/C][C]115.3[/C][C]105.790487421384[/C][C]9.50951257861635[/C][/ROW]
[ROW][C]38[/C][C]119.2[/C][C]107.065487421384[/C][C]12.1345125786164[/C][/ROW]
[ROW][C]39[/C][C]107.8[/C][C]106.677987421384[/C][C]1.12201257861635[/C][/ROW]
[ROW][C]40[/C][C]106.8[/C][C]104.727987421384[/C][C]2.07201257861635[/C][/ROW]
[ROW][C]41[/C][C]104.2[/C][C]104.390487421384[/C][C]-0.190487421383643[/C][/ROW]
[ROW][C]42[/C][C]94.8[/C][C]102.540487421384[/C][C]-7.74048742138365[/C][/ROW]
[ROW][C]43[/C][C]97.5[/C][C]103.677987421384[/C][C]-6.17798742138365[/C][/ROW]
[ROW][C]44[/C][C]98.3[/C][C]102.565487421384[/C][C]-4.26548742138366[/C][/ROW]
[ROW][C]45[/C][C]100.6[/C][C]103.552987421384[/C][C]-2.95298742138365[/C][/ROW]
[ROW][C]46[/C][C]94.9[/C][C]97.2816262353998[/C][C]-2.38162623539982[/C][/ROW]
[ROW][C]47[/C][C]93.6[/C][C]98.9959119496855[/C][C]-5.39591194968554[/C][/ROW]
[ROW][C]48[/C][C]98[/C][C]102.910197663971[/C][C]-4.91019766397125[/C][/ROW]
[ROW][C]49[/C][C]104.3[/C][C]110.452358490566[/C][C]-6.15235849056604[/C][/ROW]
[ROW][C]50[/C][C]103.9[/C][C]111.727358490566[/C][C]-7.82735849056604[/C][/ROW]
[ROW][C]51[/C][C]105.3[/C][C]111.339858490566[/C][C]-6.03985849056604[/C][/ROW]
[ROW][C]52[/C][C]102.6[/C][C]109.389858490566[/C][C]-6.78985849056604[/C][/ROW]
[ROW][C]53[/C][C]103.3[/C][C]109.052358490566[/C][C]-5.75235849056604[/C][/ROW]
[ROW][C]54[/C][C]107.9[/C][C]107.202358490566[/C][C]0.697641509433967[/C][/ROW]
[ROW][C]55[/C][C]107.8[/C][C]108.339858490566[/C][C]-0.539858490566037[/C][/ROW]
[ROW][C]56[/C][C]109.8[/C][C]107.227358490566[/C][C]2.57264150943397[/C][/ROW]
[ROW][C]57[/C][C]110.6[/C][C]108.214858490566[/C][C]2.38514150943396[/C][/ROW]
[ROW][C]58[/C][C]110.8[/C][C]133.953036088649[/C][C]-23.1530360886493[/C][/ROW]
[ROW][C]59[/C][C]119.3[/C][C]135.667321802935[/C][C]-16.367321802935[/C][/ROW]
[ROW][C]60[/C][C]128.1[/C][C]139.581607517221[/C][C]-11.4816075172207[/C][/ROW]
[ROW][C]61[/C][C]127.6[/C][C]147.123768343816[/C][C]-19.5237683438155[/C][/ROW]
[ROW][C]62[/C][C]137.9[/C][C]148.398768343816[/C][C]-10.4987683438155[/C][/ROW]
[ROW][C]63[/C][C]151.4[/C][C]148.011268343816[/C][C]3.38873165618449[/C][/ROW]
[ROW][C]64[/C][C]143.6[/C][C]146.061268343816[/C][C]-2.46126834381552[/C][/ROW]
[ROW][C]65[/C][C]143.4[/C][C]145.723768343816[/C][C]-2.32376834381551[/C][/ROW]
[ROW][C]66[/C][C]141.9[/C][C]143.873768343816[/C][C]-1.97376834381551[/C][/ROW]
[ROW][C]67[/C][C]135.2[/C][C]145.011268343816[/C][C]-9.81126834381553[/C][/ROW]
[ROW][C]68[/C][C]133.1[/C][C]143.898768343816[/C][C]-10.7987683438155[/C][/ROW]
[ROW][C]69[/C][C]129.6[/C][C]144.886268343816[/C][C]-15.2862683438155[/C][/ROW]
[ROW][C]70[/C][C]134.1[/C][C]138.614907157832[/C][C]-4.51490715783169[/C][/ROW]
[ROW][C]71[/C][C]136.8[/C][C]140.329192872117[/C][C]-3.52919287211739[/C][/ROW]
[ROW][C]72[/C][C]143.5[/C][C]144.243478586403[/C][C]-0.74347858640312[/C][/ROW]
[ROW][C]73[/C][C]162.5[/C][C]151.785639412998[/C][C]10.7143605870021[/C][/ROW]
[ROW][C]74[/C][C]163.1[/C][C]153.060639412998[/C][C]10.0393605870021[/C][/ROW]
[ROW][C]75[/C][C]157.2[/C][C]152.673139412998[/C][C]4.52686058700209[/C][/ROW]
[ROW][C]76[/C][C]158.8[/C][C]150.723139412998[/C][C]8.07686058700211[/C][/ROW]
[ROW][C]77[/C][C]155.4[/C][C]150.385639412998[/C][C]5.0143605870021[/C][/ROW]
[ROW][C]78[/C][C]148.5[/C][C]148.535639412998[/C][C]-0.0356394129979061[/C][/ROW]
[ROW][C]79[/C][C]154.2[/C][C]149.673139412998[/C][C]4.52686058700209[/C][/ROW]
[ROW][C]80[/C][C]153.3[/C][C]148.560639412998[/C][C]4.73936058700211[/C][/ROW]
[ROW][C]81[/C][C]149.4[/C][C]149.548139412998[/C][C]-0.148139412997894[/C][/ROW]
[ROW][C]82[/C][C]147.9[/C][C]143.276778227014[/C][C]4.62322177298593[/C][/ROW]
[ROW][C]83[/C][C]156[/C][C]144.991063941300[/C][C]11.0089360587002[/C][/ROW]
[ROW][C]84[/C][C]163[/C][C]148.905349655585[/C][C]14.0946503444145[/C][/ROW]
[ROW][C]85[/C][C]159.1[/C][C]156.447510482180[/C][C]2.6524895178197[/C][/ROW]
[ROW][C]86[/C][C]159.5[/C][C]157.722510482180[/C][C]1.77748951781971[/C][/ROW]
[ROW][C]87[/C][C]157.3[/C][C]157.335010482180[/C][C]-0.0350104821802833[/C][/ROW]
[ROW][C]88[/C][C]156.4[/C][C]155.385010482180[/C][C]1.01498951781971[/C][/ROW]
[ROW][C]89[/C][C]156.6[/C][C]155.047510482180[/C][C]1.55248951781970[/C][/ROW]
[ROW][C]90[/C][C]162.4[/C][C]153.197510482180[/C][C]9.20248951781971[/C][/ROW]
[ROW][C]91[/C][C]166.8[/C][C]154.335010482180[/C][C]12.4649895178197[/C][/ROW]
[ROW][C]92[/C][C]162.6[/C][C]153.222510482180[/C][C]9.3774895178197[/C][/ROW]
[ROW][C]93[/C][C]168.1[/C][C]154.210010482180[/C][C]13.8899895178197[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4269&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4269&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
1112.191.804874213836420.2951257861636
2104.293.079874213836511.1201257861635
3102.492.69237421383659.70762578616353
4100.390.74237421383659.55762578616352
5102.690.404874213836512.1951257861635
6101.588.554874213836512.9451257861635
7103.489.692374213836513.7076257861635
899.488.579874213836510.8201257861635
997.989.56737421383658.33262578616353
109883.296013027852714.7039869721473
1190.285.01029874213845.18970125786163
1287.188.924584456424-1.82458445642409
1391.896.4667452830189-4.66674528301887
1494.897.7417452830189-2.94174528301886
1591.897.3542452830189-5.55424528301887
1689.395.4042452830189-6.10424528301887
1791.795.0667452830189-3.36674528301887
1886.293.2167452830189-7.01674528301887
1982.894.3542452830189-11.5542452830189
2082.393.2417452830189-10.9417452830189
2179.894.2292452830189-14.4292452830189
2279.487.957884097035-8.55788409703503
2385.389.6721698113208-4.37216981132076
2487.593.5864555256065-6.08645552560647
2588.3101.128616352201-12.8286163522013
2688.6102.403616352201-13.8036163522013
2794.9102.016116352201-7.11611635220125
2894.7100.066116352201-5.36611635220125
2992.699.7286163522013-7.12861635220126
3091.897.8786163522013-6.07861635220126
3196.499.0161163522013-2.61611635220125
3296.497.9036163522013-1.50361635220126
33107.198.89111635220138.20888364779874
34111.992.619755166217419.2802448337826
35107.894.334040880503213.4659591194969
36109.298.248326594788910.9516734052111
37115.3105.7904874213849.50951257861635
38119.2107.06548742138412.1345125786164
39107.8106.6779874213841.12201257861635
40106.8104.7279874213842.07201257861635
41104.2104.390487421384-0.190487421383643
4294.8102.540487421384-7.74048742138365
4397.5103.677987421384-6.17798742138365
4498.3102.565487421384-4.26548742138366
45100.6103.552987421384-2.95298742138365
4694.997.2816262353998-2.38162623539982
4793.698.9959119496855-5.39591194968554
4898102.910197663971-4.91019766397125
49104.3110.452358490566-6.15235849056604
50103.9111.727358490566-7.82735849056604
51105.3111.339858490566-6.03985849056604
52102.6109.389858490566-6.78985849056604
53103.3109.052358490566-5.75235849056604
54107.9107.2023584905660.697641509433967
55107.8108.339858490566-0.539858490566037
56109.8107.2273584905662.57264150943397
57110.6108.2148584905662.38514150943396
58110.8133.953036088649-23.1530360886493
59119.3135.667321802935-16.367321802935
60128.1139.581607517221-11.4816075172207
61127.6147.123768343816-19.5237683438155
62137.9148.398768343816-10.4987683438155
63151.4148.0112683438163.38873165618449
64143.6146.061268343816-2.46126834381552
65143.4145.723768343816-2.32376834381551
66141.9143.873768343816-1.97376834381551
67135.2145.011268343816-9.81126834381553
68133.1143.898768343816-10.7987683438155
69129.6144.886268343816-15.2862683438155
70134.1138.614907157832-4.51490715783169
71136.8140.329192872117-3.52919287211739
72143.5144.243478586403-0.74347858640312
73162.5151.78563941299810.7143605870021
74163.1153.06063941299810.0393605870021
75157.2152.6731394129984.52686058700209
76158.8150.7231394129988.07686058700211
77155.4150.3856394129985.0143605870021
78148.5148.535639412998-0.0356394129979061
79154.2149.6731394129984.52686058700209
80153.3148.5606394129984.73936058700211
81149.4149.548139412998-0.148139412997894
82147.9143.2767782270144.62322177298593
83156144.99106394130011.0089360587002
84163148.90534965558514.0946503444145
85159.1156.4475104821802.6524895178197
86159.5157.7225104821801.77748951781971
87157.3157.335010482180-0.0350104821802833
88156.4155.3850104821801.01498951781971
89156.6155.0475104821801.55248951781970
90162.4153.1975104821809.20248951781971
91166.8154.33501048218012.4649895178197
92162.6153.2225104821809.3774895178197
93168.1154.21001048218013.8899895178197



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