Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 21 Nov 2007 07:06:58 -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/21/t1195653615grrqft0cnqrpw1d.htm/, Retrieved Tue, 07 May 2024 10:04:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=5862, Retrieved Tue, 07 May 2024 10:04:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact293
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Stat Opdr3 Q3-3] [2007-11-21 14:06:58] [67794d83edd3193bd9ea9816803ddb96] [Current]
Feedback Forum

Post a new message
Dataseries X:
3804	0
3491	0
4151	0
4254	1
4717	1
4866	1
4001	1
3758	1
4780	1
5016	1
4296	0
4467	0
3891	0
3872	0
3867	0
3973	1
4640	1
4538	1
3836	1
3770	1
4374	1
4497	1
3945	0
3862	0
3608	0
3301	0
3882	0
3605	0
4305	1
4216	1
3971	1
3988	1
4317	1
4484	1
4247	0
3520	0
3686	0
3403	0
3990	0
4053	0
4548	1
4559	1
3922	1
4209	1
4517	1
4386	1
3221	0
3127	0
3777	0
3322	0
3899	0
4033	1
4463	1
4819	1
4246	1
4255	1
4760	1
4581	0
4309	0
4016	0
3601	0
3257	0
3823	0
3940	1
4534	1
4575	1
3953	1
4206	1
4649	1
4353	1
3835	0
3944	0
	
	
	
	
	
	









Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 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 & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5862&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]3 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=5862&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Ong[t] = + 3822.66666666667 + 122.999999999999d[t] -94.8333333333303M1[t] -381.666666666666M2[t] + 112.666666666667M3[t] + 71.666666666667M4[t] + 588.833333333334M5[t] + 649.833333333333M6[t] + 42.5M7[t] + 85.333333333334M8[t] + 620.5M9[t] + 627.666666666666M10[t] + 152.833333333333M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Ong[t] =  +  3822.66666666667 +  122.999999999999d[t] -94.8333333333303M1[t] -381.666666666666M2[t] +  112.666666666667M3[t] +  71.666666666667M4[t] +  588.833333333334M5[t] +  649.833333333333M6[t] +  42.5M7[t] +  85.333333333334M8[t] +  620.5M9[t] +  627.666666666666M10[t] +  152.833333333333M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5862&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Ong[t] =  +  3822.66666666667 +  122.999999999999d[t] -94.8333333333303M1[t] -381.666666666666M2[t] +  112.666666666667M3[t] +  71.666666666667M4[t] +  588.833333333334M5[t] +  649.833333333333M6[t] +  42.5M7[t] +  85.333333333334M8[t] +  620.5M9[t] +  627.666666666666M10[t] +  152.833333333333M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5862&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5862&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
Ong[t] = + 3822.66666666667 + 122.999999999999d[t] -94.8333333333303M1[t] -381.666666666666M2[t] + 112.666666666667M3[t] + 71.666666666667M4[t] + 588.833333333334M5[t] + 649.833333333333M6[t] + 42.5M7[t] + 85.333333333334M8[t] + 620.5M9[t] + 627.666666666666M10[t] + 152.833333333333M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3822.66666666667102.50710837.291700
d122.999999999999170.5821380.72110.473720.23686
M1-94.8333333333303144.966942-0.65420.5155430.257771
M2-381.666666666666144.966942-2.63280.0107940.005397
M3112.666666666667144.9669420.77720.4401530.220076
M471.666666666667184.2497680.3890.6987020.349351
M5588.833333333334223.860852.63040.0108630.005432
M6649.833333333333223.860852.90280.0051930.002597
M742.5223.860850.18990.8500780.425039
M885.333333333334223.860850.38120.7044320.352216
M9620.5223.860852.77180.0074470.003723
M10627.666666666666203.0333563.09140.0030390.00152
M11152.833333333333144.9669421.05430.2960610.14803

\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) & 3822.66666666667 & 102.507108 & 37.2917 & 0 & 0 \tabularnewline
d & 122.999999999999 & 170.582138 & 0.7211 & 0.47372 & 0.23686 \tabularnewline
M1 & -94.8333333333303 & 144.966942 & -0.6542 & 0.515543 & 0.257771 \tabularnewline
M2 & -381.666666666666 & 144.966942 & -2.6328 & 0.010794 & 0.005397 \tabularnewline
M3 & 112.666666666667 & 144.966942 & 0.7772 & 0.440153 & 0.220076 \tabularnewline
M4 & 71.666666666667 & 184.249768 & 0.389 & 0.698702 & 0.349351 \tabularnewline
M5 & 588.833333333334 & 223.86085 & 2.6304 & 0.010863 & 0.005432 \tabularnewline
M6 & 649.833333333333 & 223.86085 & 2.9028 & 0.005193 & 0.002597 \tabularnewline
M7 & 42.5 & 223.86085 & 0.1899 & 0.850078 & 0.425039 \tabularnewline
M8 & 85.333333333334 & 223.86085 & 0.3812 & 0.704432 & 0.352216 \tabularnewline
M9 & 620.5 & 223.86085 & 2.7718 & 0.007447 & 0.003723 \tabularnewline
M10 & 627.666666666666 & 203.033356 & 3.0914 & 0.003039 & 0.00152 \tabularnewline
M11 & 152.833333333333 & 144.966942 & 1.0543 & 0.296061 & 0.14803 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5862&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]3822.66666666667[/C][C]102.507108[/C][C]37.2917[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]d[/C][C]122.999999999999[/C][C]170.582138[/C][C]0.7211[/C][C]0.47372[/C][C]0.23686[/C][/ROW]
[ROW][C]M1[/C][C]-94.8333333333303[/C][C]144.966942[/C][C]-0.6542[/C][C]0.515543[/C][C]0.257771[/C][/ROW]
[ROW][C]M2[/C][C]-381.666666666666[/C][C]144.966942[/C][C]-2.6328[/C][C]0.010794[/C][C]0.005397[/C][/ROW]
[ROW][C]M3[/C][C]112.666666666667[/C][C]144.966942[/C][C]0.7772[/C][C]0.440153[/C][C]0.220076[/C][/ROW]
[ROW][C]M4[/C][C]71.666666666667[/C][C]184.249768[/C][C]0.389[/C][C]0.698702[/C][C]0.349351[/C][/ROW]
[ROW][C]M5[/C][C]588.833333333334[/C][C]223.86085[/C][C]2.6304[/C][C]0.010863[/C][C]0.005432[/C][/ROW]
[ROW][C]M6[/C][C]649.833333333333[/C][C]223.86085[/C][C]2.9028[/C][C]0.005193[/C][C]0.002597[/C][/ROW]
[ROW][C]M7[/C][C]42.5[/C][C]223.86085[/C][C]0.1899[/C][C]0.850078[/C][C]0.425039[/C][/ROW]
[ROW][C]M8[/C][C]85.333333333334[/C][C]223.86085[/C][C]0.3812[/C][C]0.704432[/C][C]0.352216[/C][/ROW]
[ROW][C]M9[/C][C]620.5[/C][C]223.86085[/C][C]2.7718[/C][C]0.007447[/C][C]0.003723[/C][/ROW]
[ROW][C]M10[/C][C]627.666666666666[/C][C]203.033356[/C][C]3.0914[/C][C]0.003039[/C][C]0.00152[/C][/ROW]
[ROW][C]M11[/C][C]152.833333333333[/C][C]144.966942[/C][C]1.0543[/C][C]0.296061[/C][C]0.14803[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5862&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5862&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)3822.66666666667102.50710837.291700
d122.999999999999170.5821380.72110.473720.23686
M1-94.8333333333303144.966942-0.65420.5155430.257771
M2-381.666666666666144.966942-2.63280.0107940.005397
M3112.666666666667144.9669420.77720.4401530.220076
M471.666666666667184.2497680.3890.6987020.349351
M5588.833333333334223.860852.63040.0108630.005432
M6649.833333333333223.860852.90280.0051930.002597
M742.5223.860850.18990.8500780.425039
M885.333333333334223.860850.38120.7044320.352216
M9620.5223.860852.77180.0074470.003723
M10627.666666666666203.0333563.09140.0030390.00152
M11152.833333333333144.9669421.05430.2960610.14803







Multiple Linear Regression - Regression Statistics
Multiple R0.847975997504784
R-squared0.719063292344233
Adjusted R-squared0.661923622990517
F-TEST (value)12.584309648223
F-TEST (DF numerator)12
F-TEST (DF denominator)59
p-value3.34399175017097e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation251.090109199572
Sum Squared Residuals3719728.33333334

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.847975997504784 \tabularnewline
R-squared & 0.719063292344233 \tabularnewline
Adjusted R-squared & 0.661923622990517 \tabularnewline
F-TEST (value) & 12.584309648223 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 59 \tabularnewline
p-value & 3.34399175017097e-12 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 251.090109199572 \tabularnewline
Sum Squared Residuals & 3719728.33333334 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5862&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.847975997504784[/C][/ROW]
[ROW][C]R-squared[/C][C]0.719063292344233[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.661923622990517[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]12.584309648223[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]59[/C][/ROW]
[ROW][C]p-value[/C][C]3.34399175017097e-12[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]251.090109199572[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3719728.33333334[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5862&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5862&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.847975997504784
R-squared0.719063292344233
Adjusted R-squared0.661923622990517
F-TEST (value)12.584309648223
F-TEST (DF numerator)12
F-TEST (DF denominator)59
p-value3.34399175017097e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation251.090109199572
Sum Squared Residuals3719728.33333334







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
138043727.8333333333276.1666666666828
23491344150.000000000001
341513935.33333333333215.666666666667
442544017.33333333333236.666666666667
547174534.5182.5
648664595.5270.499999999999
740013988.1666666666712.8333333333327
837584031-273
947804566.16666666667213.833333333334
1050164573.33333333333442.666666666666
1142963975.5320.5
1244673822.66666666667644.333333333333
1338913727.83333333334163.166666666663
1438723441431
1538673935.33333333333-68.3333333333333
1639734017.33333333333-44.3333333333332
1746404534.5105.5
1845384595.5-57.5
1938363988.16666666667-152.166666666666
2037704031-261
2143744566.16666666667-192.166666666667
2244974573.33333333333-76.3333333333332
2339453975.5-30.5
2438623822.6666666666739.3333333333333
2536083727.83333333334-119.833333333336
2633013441-140.0
2738823935.33333333333-53.3333333333333
2836053894.33333333333-289.333333333333
2943054534.5-229.5
3042164595.5-379.5
3139713988.16666666667-17.1666666666666
3239884031-43.0000000000001
3343174566.16666666667-249.166666666667
3444844573.33333333333-89.3333333333331
3542473975.5271.5
3635203822.66666666667-302.666666666667
3736863727.83333333334-41.8333333333365
3834033441-38.0000000000001
3939903935.3333333333354.6666666666667
4040533894.33333333333158.666666666667
4145484534.513.5000000000000
4245594595.5-36.5
4339223988.16666666667-66.1666666666666
4442094031178
4545174566.16666666667-49.1666666666667
4643864573.33333333333-187.333333333333
4732213975.5-754.5
4831273822.66666666667-695.666666666667
4937773727.8333333333449.1666666666635
5033223441-119
5138993935.33333333333-36.3333333333333
5240334017.3333333333315.6666666666668
5344634534.5-71.5
5448194595.5223.5
5542463988.16666666667257.833333333333
5642554031224
5747604566.16666666667193.833333333333
5845814450.33333333333130.666666666666
5943093975.5333.5
6040163822.66666666667193.333333333333
6136013727.83333333334-126.833333333336
6232573441-184
6338233935.33333333333-112.333333333333
6439404017.33333333333-77.3333333333332
6545344534.5-0.499999999999959
6645754595.5-20.5000000000000
6739533988.16666666667-35.1666666666666
6842064031175
6946494566.1666666666782.8333333333334
7043534573.33333333333-220.333333333333
7138353975.5-140.5
7239443822.66666666667121.333333333333

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 3804 & 3727.83333333332 & 76.1666666666828 \tabularnewline
2 & 3491 & 3441 & 50.000000000001 \tabularnewline
3 & 4151 & 3935.33333333333 & 215.666666666667 \tabularnewline
4 & 4254 & 4017.33333333333 & 236.666666666667 \tabularnewline
5 & 4717 & 4534.5 & 182.5 \tabularnewline
6 & 4866 & 4595.5 & 270.499999999999 \tabularnewline
7 & 4001 & 3988.16666666667 & 12.8333333333327 \tabularnewline
8 & 3758 & 4031 & -273 \tabularnewline
9 & 4780 & 4566.16666666667 & 213.833333333334 \tabularnewline
10 & 5016 & 4573.33333333333 & 442.666666666666 \tabularnewline
11 & 4296 & 3975.5 & 320.5 \tabularnewline
12 & 4467 & 3822.66666666667 & 644.333333333333 \tabularnewline
13 & 3891 & 3727.83333333334 & 163.166666666663 \tabularnewline
14 & 3872 & 3441 & 431 \tabularnewline
15 & 3867 & 3935.33333333333 & -68.3333333333333 \tabularnewline
16 & 3973 & 4017.33333333333 & -44.3333333333332 \tabularnewline
17 & 4640 & 4534.5 & 105.5 \tabularnewline
18 & 4538 & 4595.5 & -57.5 \tabularnewline
19 & 3836 & 3988.16666666667 & -152.166666666666 \tabularnewline
20 & 3770 & 4031 & -261 \tabularnewline
21 & 4374 & 4566.16666666667 & -192.166666666667 \tabularnewline
22 & 4497 & 4573.33333333333 & -76.3333333333332 \tabularnewline
23 & 3945 & 3975.5 & -30.5 \tabularnewline
24 & 3862 & 3822.66666666667 & 39.3333333333333 \tabularnewline
25 & 3608 & 3727.83333333334 & -119.833333333336 \tabularnewline
26 & 3301 & 3441 & -140.0 \tabularnewline
27 & 3882 & 3935.33333333333 & -53.3333333333333 \tabularnewline
28 & 3605 & 3894.33333333333 & -289.333333333333 \tabularnewline
29 & 4305 & 4534.5 & -229.5 \tabularnewline
30 & 4216 & 4595.5 & -379.5 \tabularnewline
31 & 3971 & 3988.16666666667 & -17.1666666666666 \tabularnewline
32 & 3988 & 4031 & -43.0000000000001 \tabularnewline
33 & 4317 & 4566.16666666667 & -249.166666666667 \tabularnewline
34 & 4484 & 4573.33333333333 & -89.3333333333331 \tabularnewline
35 & 4247 & 3975.5 & 271.5 \tabularnewline
36 & 3520 & 3822.66666666667 & -302.666666666667 \tabularnewline
37 & 3686 & 3727.83333333334 & -41.8333333333365 \tabularnewline
38 & 3403 & 3441 & -38.0000000000001 \tabularnewline
39 & 3990 & 3935.33333333333 & 54.6666666666667 \tabularnewline
40 & 4053 & 3894.33333333333 & 158.666666666667 \tabularnewline
41 & 4548 & 4534.5 & 13.5000000000000 \tabularnewline
42 & 4559 & 4595.5 & -36.5 \tabularnewline
43 & 3922 & 3988.16666666667 & -66.1666666666666 \tabularnewline
44 & 4209 & 4031 & 178 \tabularnewline
45 & 4517 & 4566.16666666667 & -49.1666666666667 \tabularnewline
46 & 4386 & 4573.33333333333 & -187.333333333333 \tabularnewline
47 & 3221 & 3975.5 & -754.5 \tabularnewline
48 & 3127 & 3822.66666666667 & -695.666666666667 \tabularnewline
49 & 3777 & 3727.83333333334 & 49.1666666666635 \tabularnewline
50 & 3322 & 3441 & -119 \tabularnewline
51 & 3899 & 3935.33333333333 & -36.3333333333333 \tabularnewline
52 & 4033 & 4017.33333333333 & 15.6666666666668 \tabularnewline
53 & 4463 & 4534.5 & -71.5 \tabularnewline
54 & 4819 & 4595.5 & 223.5 \tabularnewline
55 & 4246 & 3988.16666666667 & 257.833333333333 \tabularnewline
56 & 4255 & 4031 & 224 \tabularnewline
57 & 4760 & 4566.16666666667 & 193.833333333333 \tabularnewline
58 & 4581 & 4450.33333333333 & 130.666666666666 \tabularnewline
59 & 4309 & 3975.5 & 333.5 \tabularnewline
60 & 4016 & 3822.66666666667 & 193.333333333333 \tabularnewline
61 & 3601 & 3727.83333333334 & -126.833333333336 \tabularnewline
62 & 3257 & 3441 & -184 \tabularnewline
63 & 3823 & 3935.33333333333 & -112.333333333333 \tabularnewline
64 & 3940 & 4017.33333333333 & -77.3333333333332 \tabularnewline
65 & 4534 & 4534.5 & -0.499999999999959 \tabularnewline
66 & 4575 & 4595.5 & -20.5000000000000 \tabularnewline
67 & 3953 & 3988.16666666667 & -35.1666666666666 \tabularnewline
68 & 4206 & 4031 & 175 \tabularnewline
69 & 4649 & 4566.16666666667 & 82.8333333333334 \tabularnewline
70 & 4353 & 4573.33333333333 & -220.333333333333 \tabularnewline
71 & 3835 & 3975.5 & -140.5 \tabularnewline
72 & 3944 & 3822.66666666667 & 121.333333333333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5862&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]3804[/C][C]3727.83333333332[/C][C]76.1666666666828[/C][/ROW]
[ROW][C]2[/C][C]3491[/C][C]3441[/C][C]50.000000000001[/C][/ROW]
[ROW][C]3[/C][C]4151[/C][C]3935.33333333333[/C][C]215.666666666667[/C][/ROW]
[ROW][C]4[/C][C]4254[/C][C]4017.33333333333[/C][C]236.666666666667[/C][/ROW]
[ROW][C]5[/C][C]4717[/C][C]4534.5[/C][C]182.5[/C][/ROW]
[ROW][C]6[/C][C]4866[/C][C]4595.5[/C][C]270.499999999999[/C][/ROW]
[ROW][C]7[/C][C]4001[/C][C]3988.16666666667[/C][C]12.8333333333327[/C][/ROW]
[ROW][C]8[/C][C]3758[/C][C]4031[/C][C]-273[/C][/ROW]
[ROW][C]9[/C][C]4780[/C][C]4566.16666666667[/C][C]213.833333333334[/C][/ROW]
[ROW][C]10[/C][C]5016[/C][C]4573.33333333333[/C][C]442.666666666666[/C][/ROW]
[ROW][C]11[/C][C]4296[/C][C]3975.5[/C][C]320.5[/C][/ROW]
[ROW][C]12[/C][C]4467[/C][C]3822.66666666667[/C][C]644.333333333333[/C][/ROW]
[ROW][C]13[/C][C]3891[/C][C]3727.83333333334[/C][C]163.166666666663[/C][/ROW]
[ROW][C]14[/C][C]3872[/C][C]3441[/C][C]431[/C][/ROW]
[ROW][C]15[/C][C]3867[/C][C]3935.33333333333[/C][C]-68.3333333333333[/C][/ROW]
[ROW][C]16[/C][C]3973[/C][C]4017.33333333333[/C][C]-44.3333333333332[/C][/ROW]
[ROW][C]17[/C][C]4640[/C][C]4534.5[/C][C]105.5[/C][/ROW]
[ROW][C]18[/C][C]4538[/C][C]4595.5[/C][C]-57.5[/C][/ROW]
[ROW][C]19[/C][C]3836[/C][C]3988.16666666667[/C][C]-152.166666666666[/C][/ROW]
[ROW][C]20[/C][C]3770[/C][C]4031[/C][C]-261[/C][/ROW]
[ROW][C]21[/C][C]4374[/C][C]4566.16666666667[/C][C]-192.166666666667[/C][/ROW]
[ROW][C]22[/C][C]4497[/C][C]4573.33333333333[/C][C]-76.3333333333332[/C][/ROW]
[ROW][C]23[/C][C]3945[/C][C]3975.5[/C][C]-30.5[/C][/ROW]
[ROW][C]24[/C][C]3862[/C][C]3822.66666666667[/C][C]39.3333333333333[/C][/ROW]
[ROW][C]25[/C][C]3608[/C][C]3727.83333333334[/C][C]-119.833333333336[/C][/ROW]
[ROW][C]26[/C][C]3301[/C][C]3441[/C][C]-140.0[/C][/ROW]
[ROW][C]27[/C][C]3882[/C][C]3935.33333333333[/C][C]-53.3333333333333[/C][/ROW]
[ROW][C]28[/C][C]3605[/C][C]3894.33333333333[/C][C]-289.333333333333[/C][/ROW]
[ROW][C]29[/C][C]4305[/C][C]4534.5[/C][C]-229.5[/C][/ROW]
[ROW][C]30[/C][C]4216[/C][C]4595.5[/C][C]-379.5[/C][/ROW]
[ROW][C]31[/C][C]3971[/C][C]3988.16666666667[/C][C]-17.1666666666666[/C][/ROW]
[ROW][C]32[/C][C]3988[/C][C]4031[/C][C]-43.0000000000001[/C][/ROW]
[ROW][C]33[/C][C]4317[/C][C]4566.16666666667[/C][C]-249.166666666667[/C][/ROW]
[ROW][C]34[/C][C]4484[/C][C]4573.33333333333[/C][C]-89.3333333333331[/C][/ROW]
[ROW][C]35[/C][C]4247[/C][C]3975.5[/C][C]271.5[/C][/ROW]
[ROW][C]36[/C][C]3520[/C][C]3822.66666666667[/C][C]-302.666666666667[/C][/ROW]
[ROW][C]37[/C][C]3686[/C][C]3727.83333333334[/C][C]-41.8333333333365[/C][/ROW]
[ROW][C]38[/C][C]3403[/C][C]3441[/C][C]-38.0000000000001[/C][/ROW]
[ROW][C]39[/C][C]3990[/C][C]3935.33333333333[/C][C]54.6666666666667[/C][/ROW]
[ROW][C]40[/C][C]4053[/C][C]3894.33333333333[/C][C]158.666666666667[/C][/ROW]
[ROW][C]41[/C][C]4548[/C][C]4534.5[/C][C]13.5000000000000[/C][/ROW]
[ROW][C]42[/C][C]4559[/C][C]4595.5[/C][C]-36.5[/C][/ROW]
[ROW][C]43[/C][C]3922[/C][C]3988.16666666667[/C][C]-66.1666666666666[/C][/ROW]
[ROW][C]44[/C][C]4209[/C][C]4031[/C][C]178[/C][/ROW]
[ROW][C]45[/C][C]4517[/C][C]4566.16666666667[/C][C]-49.1666666666667[/C][/ROW]
[ROW][C]46[/C][C]4386[/C][C]4573.33333333333[/C][C]-187.333333333333[/C][/ROW]
[ROW][C]47[/C][C]3221[/C][C]3975.5[/C][C]-754.5[/C][/ROW]
[ROW][C]48[/C][C]3127[/C][C]3822.66666666667[/C][C]-695.666666666667[/C][/ROW]
[ROW][C]49[/C][C]3777[/C][C]3727.83333333334[/C][C]49.1666666666635[/C][/ROW]
[ROW][C]50[/C][C]3322[/C][C]3441[/C][C]-119[/C][/ROW]
[ROW][C]51[/C][C]3899[/C][C]3935.33333333333[/C][C]-36.3333333333333[/C][/ROW]
[ROW][C]52[/C][C]4033[/C][C]4017.33333333333[/C][C]15.6666666666668[/C][/ROW]
[ROW][C]53[/C][C]4463[/C][C]4534.5[/C][C]-71.5[/C][/ROW]
[ROW][C]54[/C][C]4819[/C][C]4595.5[/C][C]223.5[/C][/ROW]
[ROW][C]55[/C][C]4246[/C][C]3988.16666666667[/C][C]257.833333333333[/C][/ROW]
[ROW][C]56[/C][C]4255[/C][C]4031[/C][C]224[/C][/ROW]
[ROW][C]57[/C][C]4760[/C][C]4566.16666666667[/C][C]193.833333333333[/C][/ROW]
[ROW][C]58[/C][C]4581[/C][C]4450.33333333333[/C][C]130.666666666666[/C][/ROW]
[ROW][C]59[/C][C]4309[/C][C]3975.5[/C][C]333.5[/C][/ROW]
[ROW][C]60[/C][C]4016[/C][C]3822.66666666667[/C][C]193.333333333333[/C][/ROW]
[ROW][C]61[/C][C]3601[/C][C]3727.83333333334[/C][C]-126.833333333336[/C][/ROW]
[ROW][C]62[/C][C]3257[/C][C]3441[/C][C]-184[/C][/ROW]
[ROW][C]63[/C][C]3823[/C][C]3935.33333333333[/C][C]-112.333333333333[/C][/ROW]
[ROW][C]64[/C][C]3940[/C][C]4017.33333333333[/C][C]-77.3333333333332[/C][/ROW]
[ROW][C]65[/C][C]4534[/C][C]4534.5[/C][C]-0.499999999999959[/C][/ROW]
[ROW][C]66[/C][C]4575[/C][C]4595.5[/C][C]-20.5000000000000[/C][/ROW]
[ROW][C]67[/C][C]3953[/C][C]3988.16666666667[/C][C]-35.1666666666666[/C][/ROW]
[ROW][C]68[/C][C]4206[/C][C]4031[/C][C]175[/C][/ROW]
[ROW][C]69[/C][C]4649[/C][C]4566.16666666667[/C][C]82.8333333333334[/C][/ROW]
[ROW][C]70[/C][C]4353[/C][C]4573.33333333333[/C][C]-220.333333333333[/C][/ROW]
[ROW][C]71[/C][C]3835[/C][C]3975.5[/C][C]-140.5[/C][/ROW]
[ROW][C]72[/C][C]3944[/C][C]3822.66666666667[/C][C]121.333333333333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5862&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5862&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
138043727.8333333333276.1666666666828
23491344150.000000000001
341513935.33333333333215.666666666667
442544017.33333333333236.666666666667
547174534.5182.5
648664595.5270.499999999999
740013988.1666666666712.8333333333327
837584031-273
947804566.16666666667213.833333333334
1050164573.33333333333442.666666666666
1142963975.5320.5
1244673822.66666666667644.333333333333
1338913727.83333333334163.166666666663
1438723441431
1538673935.33333333333-68.3333333333333
1639734017.33333333333-44.3333333333332
1746404534.5105.5
1845384595.5-57.5
1938363988.16666666667-152.166666666666
2037704031-261
2143744566.16666666667-192.166666666667
2244974573.33333333333-76.3333333333332
2339453975.5-30.5
2438623822.6666666666739.3333333333333
2536083727.83333333334-119.833333333336
2633013441-140.0
2738823935.33333333333-53.3333333333333
2836053894.33333333333-289.333333333333
2943054534.5-229.5
3042164595.5-379.5
3139713988.16666666667-17.1666666666666
3239884031-43.0000000000001
3343174566.16666666667-249.166666666667
3444844573.33333333333-89.3333333333331
3542473975.5271.5
3635203822.66666666667-302.666666666667
3736863727.83333333334-41.8333333333365
3834033441-38.0000000000001
3939903935.3333333333354.6666666666667
4040533894.33333333333158.666666666667
4145484534.513.5000000000000
4245594595.5-36.5
4339223988.16666666667-66.1666666666666
4442094031178
4545174566.16666666667-49.1666666666667
4643864573.33333333333-187.333333333333
4732213975.5-754.5
4831273822.66666666667-695.666666666667
4937773727.8333333333449.1666666666635
5033223441-119
5138993935.33333333333-36.3333333333333
5240334017.3333333333315.6666666666668
5344634534.5-71.5
5448194595.5223.5
5542463988.16666666667257.833333333333
5642554031224
5747604566.16666666667193.833333333333
5845814450.33333333333130.666666666666
5943093975.5333.5
6040163822.66666666667193.333333333333
6136013727.83333333334-126.833333333336
6232573441-184
6338233935.33333333333-112.333333333333
6439404017.33333333333-77.3333333333332
6545344534.5-0.499999999999959
6645754595.5-20.5000000000000
6739533988.16666666667-35.1666666666666
6842064031175
6946494566.1666666666782.8333333333334
7043534573.33333333333-220.333333333333
7138353975.5-140.5
7239443822.66666666667121.333333333333



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')