Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 12 Dec 2007 03:42:31 -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/12/t1197455377lpqbjxj6ziu9j79.htm/, Retrieved Thu, 02 May 2024 18:21:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=3197, Retrieved Thu, 02 May 2024 18:21:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsfredje
Estimated Impact222
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [dummy 2] [2007-12-12 10:42:31] [c40c597932a04e0e43159741c7e63e4c] [Current]
Feedback Forum

Post a new message
Dataseries X:
12398.4	0
13882.3	0
15861.5	0
13286.1	0
15634.9	0
14211	0
13646.8	0
12224.6	0
15916.4	0
16535.9	0
15796	0
14418.6	0
15044.5	0
14944.2	0
16754.8	0
14254	0
15454.9	0
15644.8	0
14568.3	0
12520.2	0
14803	0
15873.2	0
14755.3	0
12875.1	0
14291.1	1
14205.3	1
15859.4	1
15258.9	1
15498.6	1
14106.5	1
15023.6	1
12083	1
15761.3	1
16943	1
15070.3	1
13659.6	1
14768.9	1
14725.1	1
15998.1	1
15370.6	1
14956.9	1
15469.7	1
15101.8	1
11703.7	1
16283.6	1
16726.5	1
14968.9	1
14861	1
14583.3	1
15305.8	1
17903.9	1
16379.4	1
15420.3	1
17870.5	1
15912.8	1
13866.5	1
17823.2	1
17872	1
17420.4	1
16704.4	1
15991.2	1
16583.6	1
19123.5	1
17838.7	1
17209.4	1




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

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







Multiple Linear Regression - Estimated Regression Equation
y[t] = + 13897.1161061947 + 1011.03982300885x[t] -58.2426548672657M1[t] + 369.90734513274M2[t] + 2345.72401179940M3[t] + 826.80734513274M4[t] + 1124.69067846607M5[t] + 956.759999999998M6[t] + 346.919999999997M7[t] -2024.14000000000M8[t] + 1613.76000000000M9[t] + 2286.38000000000M10[t] + 1098.44000000000M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  13897.1161061947 +  1011.03982300885x[t] -58.2426548672657M1[t] +  369.90734513274M2[t] +  2345.72401179940M3[t] +  826.80734513274M4[t] +  1124.69067846607M5[t] +  956.759999999998M6[t] +  346.919999999997M7[t] -2024.14000000000M8[t] +  1613.76000000000M9[t] +  2286.38000000000M10[t] +  1098.44000000000M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3197&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  13897.1161061947 +  1011.03982300885x[t] -58.2426548672657M1[t] +  369.90734513274M2[t] +  2345.72401179940M3[t] +  826.80734513274M4[t] +  1124.69067846607M5[t] +  956.759999999998M6[t] +  346.919999999997M7[t] -2024.14000000000M8[t] +  1613.76000000000M9[t] +  2286.38000000000M10[t] +  1098.44000000000M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3197&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3197&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] = + 13897.1161061947 + 1011.03982300885x[t] -58.2426548672657M1[t] + 369.90734513274M2[t] + 2345.72401179940M3[t] + 826.80734513274M4[t] + 1124.69067846607M5[t] + 956.759999999998M6[t] + 346.919999999997M7[t] -2024.14000000000M8[t] + 1613.76000000000M9[t] + 2286.38000000000M10[t] + 1098.44000000000M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)13897.1161061947489.39056928.396800
x1011.03982300885266.4562843.79440.0003880.000194
M1-58.2426548672657626.534367-0.0930.9262930.463146
M2369.90734513274626.5343670.59040.5574780.278739
M32345.72401179940626.5343673.7440.0004540.000227
M4826.80734513274626.5343671.31970.1927320.096366
M51124.69067846607626.5343671.79510.0784510.039225
M6956.759999999998654.1307311.46260.1495830.074792
M7346.919999999997654.1307310.53040.5981250.299063
M8-2024.14000000000654.130731-3.09440.0031720.001586
M91613.76000000000654.1307312.4670.0169550.008477
M102286.38000000000654.1307313.49530.0009770.000489
M111098.44000000000654.1307311.67920.0991060.049553

\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) & 13897.1161061947 & 489.390569 & 28.3968 & 0 & 0 \tabularnewline
x & 1011.03982300885 & 266.456284 & 3.7944 & 0.000388 & 0.000194 \tabularnewline
M1 & -58.2426548672657 & 626.534367 & -0.093 & 0.926293 & 0.463146 \tabularnewline
M2 & 369.90734513274 & 626.534367 & 0.5904 & 0.557478 & 0.278739 \tabularnewline
M3 & 2345.72401179940 & 626.534367 & 3.744 & 0.000454 & 0.000227 \tabularnewline
M4 & 826.80734513274 & 626.534367 & 1.3197 & 0.192732 & 0.096366 \tabularnewline
M5 & 1124.69067846607 & 626.534367 & 1.7951 & 0.078451 & 0.039225 \tabularnewline
M6 & 956.759999999998 & 654.130731 & 1.4626 & 0.149583 & 0.074792 \tabularnewline
M7 & 346.919999999997 & 654.130731 & 0.5304 & 0.598125 & 0.299063 \tabularnewline
M8 & -2024.14000000000 & 654.130731 & -3.0944 & 0.003172 & 0.001586 \tabularnewline
M9 & 1613.76000000000 & 654.130731 & 2.467 & 0.016955 & 0.008477 \tabularnewline
M10 & 2286.38000000000 & 654.130731 & 3.4953 & 0.000977 & 0.000489 \tabularnewline
M11 & 1098.44000000000 & 654.130731 & 1.6792 & 0.099106 & 0.049553 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3197&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]13897.1161061947[/C][C]489.390569[/C][C]28.3968[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]1011.03982300885[/C][C]266.456284[/C][C]3.7944[/C][C]0.000388[/C][C]0.000194[/C][/ROW]
[ROW][C]M1[/C][C]-58.2426548672657[/C][C]626.534367[/C][C]-0.093[/C][C]0.926293[/C][C]0.463146[/C][/ROW]
[ROW][C]M2[/C][C]369.90734513274[/C][C]626.534367[/C][C]0.5904[/C][C]0.557478[/C][C]0.278739[/C][/ROW]
[ROW][C]M3[/C][C]2345.72401179940[/C][C]626.534367[/C][C]3.744[/C][C]0.000454[/C][C]0.000227[/C][/ROW]
[ROW][C]M4[/C][C]826.80734513274[/C][C]626.534367[/C][C]1.3197[/C][C]0.192732[/C][C]0.096366[/C][/ROW]
[ROW][C]M5[/C][C]1124.69067846607[/C][C]626.534367[/C][C]1.7951[/C][C]0.078451[/C][C]0.039225[/C][/ROW]
[ROW][C]M6[/C][C]956.759999999998[/C][C]654.130731[/C][C]1.4626[/C][C]0.149583[/C][C]0.074792[/C][/ROW]
[ROW][C]M7[/C][C]346.919999999997[/C][C]654.130731[/C][C]0.5304[/C][C]0.598125[/C][C]0.299063[/C][/ROW]
[ROW][C]M8[/C][C]-2024.14000000000[/C][C]654.130731[/C][C]-3.0944[/C][C]0.003172[/C][C]0.001586[/C][/ROW]
[ROW][C]M9[/C][C]1613.76000000000[/C][C]654.130731[/C][C]2.467[/C][C]0.016955[/C][C]0.008477[/C][/ROW]
[ROW][C]M10[/C][C]2286.38000000000[/C][C]654.130731[/C][C]3.4953[/C][C]0.000977[/C][C]0.000489[/C][/ROW]
[ROW][C]M11[/C][C]1098.44000000000[/C][C]654.130731[/C][C]1.6792[/C][C]0.099106[/C][C]0.049553[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3197&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3197&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)13897.1161061947489.39056928.396800
x1011.03982300885266.4562843.79440.0003880.000194
M1-58.2426548672657626.534367-0.0930.9262930.463146
M2369.90734513274626.5343670.59040.5574780.278739
M32345.72401179940626.5343673.7440.0004540.000227
M4826.80734513274626.5343671.31970.1927320.096366
M51124.69067846607626.5343671.79510.0784510.039225
M6956.759999999998654.1307311.46260.1495830.074792
M7346.919999999997654.1307310.53040.5981250.299063
M8-2024.14000000000654.130731-3.09440.0031720.001586
M91613.76000000000654.1307312.4670.0169550.008477
M102286.38000000000654.1307313.49530.0009770.000489
M111098.44000000000654.1307311.67920.0991060.049553







Multiple Linear Regression - Regression Statistics
Multiple R0.795013353019579
R-squared0.632046231479433
Adjusted R-squared0.547133823359302
F-TEST (value)7.44350849860763
F-TEST (DF numerator)12
F-TEST (DF denominator)52
p-value9.83498817941353e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1034.27149828694
Sum Squared Residuals55625311.672773

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.795013353019579 \tabularnewline
R-squared & 0.632046231479433 \tabularnewline
Adjusted R-squared & 0.547133823359302 \tabularnewline
F-TEST (value) & 7.44350849860763 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 52 \tabularnewline
p-value & 9.83498817941353e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1034.27149828694 \tabularnewline
Sum Squared Residuals & 55625311.672773 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3197&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.795013353019579[/C][/ROW]
[ROW][C]R-squared[/C][C]0.632046231479433[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.547133823359302[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]7.44350849860763[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]52[/C][/ROW]
[ROW][C]p-value[/C][C]9.83498817941353e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1034.27149828694[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]55625311.672773[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3197&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3197&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.795013353019579
R-squared0.632046231479433
Adjusted R-squared0.547133823359302
F-TEST (value)7.44350849860763
F-TEST (DF numerator)12
F-TEST (DF denominator)52
p-value9.83498817941353e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1034.27149828694
Sum Squared Residuals55625311.672773







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
112398.413838.8734513275-1440.47345132747
213882.314267.0234513274-384.723451327436
315861.516242.8401179941-381.340117994102
413286.114723.9234513274-1437.82345132743
515634.915021.8067846608613.093215339238
61421114853.8761061947-642.876106194688
713646.814244.0361061947-597.236106194688
812224.611872.9761061947351.623893805311
915916.415510.8761061947405.523893805312
1016535.916183.4961061947352.403893805314
111579614995.5561061947800.44389380531
1214418.613897.1161061947521.483893805311
1315044.513838.87345132741205.62654867258
1414944.214267.0234513274677.176548672571
1516754.816242.8401179941511.959882005902
161425414723.9234513274-469.923451327431
1715454.915021.8067846608433.093215339234
1815644.814853.8761061947790.92389380531
1914568.314244.0361061947324.263893805310
2012520.211872.9761061947647.223893805313
211480315510.8761061947-707.876106194689
2215873.216183.4961061947-310.296106194689
2314755.314995.5561061947-240.256106194690
2412875.113897.1161061947-1022.01610619469
2514291.114849.9132743363-558.813274336275
2614205.315278.0632743363-1072.76327433628
2715859.417253.8799410029-1394.47994100295
2815258.915734.9632743363-476.063274336284
2915498.616032.8466076696-534.246607669618
3014106.515864.9159292035-1758.41592920354
3115023.615255.0759292035-231.475929203541
321208312884.0159292035-801.015929203541
3315761.316521.9159292035-760.615929203542
341694317194.5359292035-251.535929203542
3515070.316006.5959292035-936.295929203542
3613659.614908.1559292035-1248.55592920354
3714768.914849.9132743363-81.013274336276
3814725.115278.0632743363-552.963274336282
3915998.117253.8799410029-1255.77994100295
4015370.615734.9632743363-364.363274336283
4114956.916032.8466076696-1075.94660766962
4215469.715864.9159292035-395.215929203541
4315101.815255.0759292035-153.275929203542
4411703.712884.0159292035-1180.31592920354
4516283.616521.9159292035-238.315929203540
4616726.517194.5359292035-468.035929203542
4714968.916006.5959292035-1037.69592920354
481486114908.1559292035-47.1559292035431
4914583.314849.9132743363-266.613274336276
5015305.815278.063274336327.7367256637172
5117903.917253.8799410029650.020058997052
5216379.415734.9632743363644.436725663716
5315420.316032.8466076696-612.546607669619
5417870.515864.91592920352005.58407079646
5515912.815255.0759292035657.724070796458
5613866.512884.0159292035982.48407079646
5717823.216521.91592920351301.28407079646
581787217194.5359292035677.464070796458
5917420.416006.59592920351413.80407079646
6016704.414908.15592920351796.24407079646
6115991.214849.91327433631141.28672566372
6216583.615278.06327433631305.53672566372
6319123.517253.87994100291869.62005899705
6417838.715734.96327433632103.73672566372
6517209.416032.84660766961176.55339233038

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 12398.4 & 13838.8734513275 & -1440.47345132747 \tabularnewline
2 & 13882.3 & 14267.0234513274 & -384.723451327436 \tabularnewline
3 & 15861.5 & 16242.8401179941 & -381.340117994102 \tabularnewline
4 & 13286.1 & 14723.9234513274 & -1437.82345132743 \tabularnewline
5 & 15634.9 & 15021.8067846608 & 613.093215339238 \tabularnewline
6 & 14211 & 14853.8761061947 & -642.876106194688 \tabularnewline
7 & 13646.8 & 14244.0361061947 & -597.236106194688 \tabularnewline
8 & 12224.6 & 11872.9761061947 & 351.623893805311 \tabularnewline
9 & 15916.4 & 15510.8761061947 & 405.523893805312 \tabularnewline
10 & 16535.9 & 16183.4961061947 & 352.403893805314 \tabularnewline
11 & 15796 & 14995.5561061947 & 800.44389380531 \tabularnewline
12 & 14418.6 & 13897.1161061947 & 521.483893805311 \tabularnewline
13 & 15044.5 & 13838.8734513274 & 1205.62654867258 \tabularnewline
14 & 14944.2 & 14267.0234513274 & 677.176548672571 \tabularnewline
15 & 16754.8 & 16242.8401179941 & 511.959882005902 \tabularnewline
16 & 14254 & 14723.9234513274 & -469.923451327431 \tabularnewline
17 & 15454.9 & 15021.8067846608 & 433.093215339234 \tabularnewline
18 & 15644.8 & 14853.8761061947 & 790.92389380531 \tabularnewline
19 & 14568.3 & 14244.0361061947 & 324.263893805310 \tabularnewline
20 & 12520.2 & 11872.9761061947 & 647.223893805313 \tabularnewline
21 & 14803 & 15510.8761061947 & -707.876106194689 \tabularnewline
22 & 15873.2 & 16183.4961061947 & -310.296106194689 \tabularnewline
23 & 14755.3 & 14995.5561061947 & -240.256106194690 \tabularnewline
24 & 12875.1 & 13897.1161061947 & -1022.01610619469 \tabularnewline
25 & 14291.1 & 14849.9132743363 & -558.813274336275 \tabularnewline
26 & 14205.3 & 15278.0632743363 & -1072.76327433628 \tabularnewline
27 & 15859.4 & 17253.8799410029 & -1394.47994100295 \tabularnewline
28 & 15258.9 & 15734.9632743363 & -476.063274336284 \tabularnewline
29 & 15498.6 & 16032.8466076696 & -534.246607669618 \tabularnewline
30 & 14106.5 & 15864.9159292035 & -1758.41592920354 \tabularnewline
31 & 15023.6 & 15255.0759292035 & -231.475929203541 \tabularnewline
32 & 12083 & 12884.0159292035 & -801.015929203541 \tabularnewline
33 & 15761.3 & 16521.9159292035 & -760.615929203542 \tabularnewline
34 & 16943 & 17194.5359292035 & -251.535929203542 \tabularnewline
35 & 15070.3 & 16006.5959292035 & -936.295929203542 \tabularnewline
36 & 13659.6 & 14908.1559292035 & -1248.55592920354 \tabularnewline
37 & 14768.9 & 14849.9132743363 & -81.013274336276 \tabularnewline
38 & 14725.1 & 15278.0632743363 & -552.963274336282 \tabularnewline
39 & 15998.1 & 17253.8799410029 & -1255.77994100295 \tabularnewline
40 & 15370.6 & 15734.9632743363 & -364.363274336283 \tabularnewline
41 & 14956.9 & 16032.8466076696 & -1075.94660766962 \tabularnewline
42 & 15469.7 & 15864.9159292035 & -395.215929203541 \tabularnewline
43 & 15101.8 & 15255.0759292035 & -153.275929203542 \tabularnewline
44 & 11703.7 & 12884.0159292035 & -1180.31592920354 \tabularnewline
45 & 16283.6 & 16521.9159292035 & -238.315929203540 \tabularnewline
46 & 16726.5 & 17194.5359292035 & -468.035929203542 \tabularnewline
47 & 14968.9 & 16006.5959292035 & -1037.69592920354 \tabularnewline
48 & 14861 & 14908.1559292035 & -47.1559292035431 \tabularnewline
49 & 14583.3 & 14849.9132743363 & -266.613274336276 \tabularnewline
50 & 15305.8 & 15278.0632743363 & 27.7367256637172 \tabularnewline
51 & 17903.9 & 17253.8799410029 & 650.020058997052 \tabularnewline
52 & 16379.4 & 15734.9632743363 & 644.436725663716 \tabularnewline
53 & 15420.3 & 16032.8466076696 & -612.546607669619 \tabularnewline
54 & 17870.5 & 15864.9159292035 & 2005.58407079646 \tabularnewline
55 & 15912.8 & 15255.0759292035 & 657.724070796458 \tabularnewline
56 & 13866.5 & 12884.0159292035 & 982.48407079646 \tabularnewline
57 & 17823.2 & 16521.9159292035 & 1301.28407079646 \tabularnewline
58 & 17872 & 17194.5359292035 & 677.464070796458 \tabularnewline
59 & 17420.4 & 16006.5959292035 & 1413.80407079646 \tabularnewline
60 & 16704.4 & 14908.1559292035 & 1796.24407079646 \tabularnewline
61 & 15991.2 & 14849.9132743363 & 1141.28672566372 \tabularnewline
62 & 16583.6 & 15278.0632743363 & 1305.53672566372 \tabularnewline
63 & 19123.5 & 17253.8799410029 & 1869.62005899705 \tabularnewline
64 & 17838.7 & 15734.9632743363 & 2103.73672566372 \tabularnewline
65 & 17209.4 & 16032.8466076696 & 1176.55339233038 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3197&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]12398.4[/C][C]13838.8734513275[/C][C]-1440.47345132747[/C][/ROW]
[ROW][C]2[/C][C]13882.3[/C][C]14267.0234513274[/C][C]-384.723451327436[/C][/ROW]
[ROW][C]3[/C][C]15861.5[/C][C]16242.8401179941[/C][C]-381.340117994102[/C][/ROW]
[ROW][C]4[/C][C]13286.1[/C][C]14723.9234513274[/C][C]-1437.82345132743[/C][/ROW]
[ROW][C]5[/C][C]15634.9[/C][C]15021.8067846608[/C][C]613.093215339238[/C][/ROW]
[ROW][C]6[/C][C]14211[/C][C]14853.8761061947[/C][C]-642.876106194688[/C][/ROW]
[ROW][C]7[/C][C]13646.8[/C][C]14244.0361061947[/C][C]-597.236106194688[/C][/ROW]
[ROW][C]8[/C][C]12224.6[/C][C]11872.9761061947[/C][C]351.623893805311[/C][/ROW]
[ROW][C]9[/C][C]15916.4[/C][C]15510.8761061947[/C][C]405.523893805312[/C][/ROW]
[ROW][C]10[/C][C]16535.9[/C][C]16183.4961061947[/C][C]352.403893805314[/C][/ROW]
[ROW][C]11[/C][C]15796[/C][C]14995.5561061947[/C][C]800.44389380531[/C][/ROW]
[ROW][C]12[/C][C]14418.6[/C][C]13897.1161061947[/C][C]521.483893805311[/C][/ROW]
[ROW][C]13[/C][C]15044.5[/C][C]13838.8734513274[/C][C]1205.62654867258[/C][/ROW]
[ROW][C]14[/C][C]14944.2[/C][C]14267.0234513274[/C][C]677.176548672571[/C][/ROW]
[ROW][C]15[/C][C]16754.8[/C][C]16242.8401179941[/C][C]511.959882005902[/C][/ROW]
[ROW][C]16[/C][C]14254[/C][C]14723.9234513274[/C][C]-469.923451327431[/C][/ROW]
[ROW][C]17[/C][C]15454.9[/C][C]15021.8067846608[/C][C]433.093215339234[/C][/ROW]
[ROW][C]18[/C][C]15644.8[/C][C]14853.8761061947[/C][C]790.92389380531[/C][/ROW]
[ROW][C]19[/C][C]14568.3[/C][C]14244.0361061947[/C][C]324.263893805310[/C][/ROW]
[ROW][C]20[/C][C]12520.2[/C][C]11872.9761061947[/C][C]647.223893805313[/C][/ROW]
[ROW][C]21[/C][C]14803[/C][C]15510.8761061947[/C][C]-707.876106194689[/C][/ROW]
[ROW][C]22[/C][C]15873.2[/C][C]16183.4961061947[/C][C]-310.296106194689[/C][/ROW]
[ROW][C]23[/C][C]14755.3[/C][C]14995.5561061947[/C][C]-240.256106194690[/C][/ROW]
[ROW][C]24[/C][C]12875.1[/C][C]13897.1161061947[/C][C]-1022.01610619469[/C][/ROW]
[ROW][C]25[/C][C]14291.1[/C][C]14849.9132743363[/C][C]-558.813274336275[/C][/ROW]
[ROW][C]26[/C][C]14205.3[/C][C]15278.0632743363[/C][C]-1072.76327433628[/C][/ROW]
[ROW][C]27[/C][C]15859.4[/C][C]17253.8799410029[/C][C]-1394.47994100295[/C][/ROW]
[ROW][C]28[/C][C]15258.9[/C][C]15734.9632743363[/C][C]-476.063274336284[/C][/ROW]
[ROW][C]29[/C][C]15498.6[/C][C]16032.8466076696[/C][C]-534.246607669618[/C][/ROW]
[ROW][C]30[/C][C]14106.5[/C][C]15864.9159292035[/C][C]-1758.41592920354[/C][/ROW]
[ROW][C]31[/C][C]15023.6[/C][C]15255.0759292035[/C][C]-231.475929203541[/C][/ROW]
[ROW][C]32[/C][C]12083[/C][C]12884.0159292035[/C][C]-801.015929203541[/C][/ROW]
[ROW][C]33[/C][C]15761.3[/C][C]16521.9159292035[/C][C]-760.615929203542[/C][/ROW]
[ROW][C]34[/C][C]16943[/C][C]17194.5359292035[/C][C]-251.535929203542[/C][/ROW]
[ROW][C]35[/C][C]15070.3[/C][C]16006.5959292035[/C][C]-936.295929203542[/C][/ROW]
[ROW][C]36[/C][C]13659.6[/C][C]14908.1559292035[/C][C]-1248.55592920354[/C][/ROW]
[ROW][C]37[/C][C]14768.9[/C][C]14849.9132743363[/C][C]-81.013274336276[/C][/ROW]
[ROW][C]38[/C][C]14725.1[/C][C]15278.0632743363[/C][C]-552.963274336282[/C][/ROW]
[ROW][C]39[/C][C]15998.1[/C][C]17253.8799410029[/C][C]-1255.77994100295[/C][/ROW]
[ROW][C]40[/C][C]15370.6[/C][C]15734.9632743363[/C][C]-364.363274336283[/C][/ROW]
[ROW][C]41[/C][C]14956.9[/C][C]16032.8466076696[/C][C]-1075.94660766962[/C][/ROW]
[ROW][C]42[/C][C]15469.7[/C][C]15864.9159292035[/C][C]-395.215929203541[/C][/ROW]
[ROW][C]43[/C][C]15101.8[/C][C]15255.0759292035[/C][C]-153.275929203542[/C][/ROW]
[ROW][C]44[/C][C]11703.7[/C][C]12884.0159292035[/C][C]-1180.31592920354[/C][/ROW]
[ROW][C]45[/C][C]16283.6[/C][C]16521.9159292035[/C][C]-238.315929203540[/C][/ROW]
[ROW][C]46[/C][C]16726.5[/C][C]17194.5359292035[/C][C]-468.035929203542[/C][/ROW]
[ROW][C]47[/C][C]14968.9[/C][C]16006.5959292035[/C][C]-1037.69592920354[/C][/ROW]
[ROW][C]48[/C][C]14861[/C][C]14908.1559292035[/C][C]-47.1559292035431[/C][/ROW]
[ROW][C]49[/C][C]14583.3[/C][C]14849.9132743363[/C][C]-266.613274336276[/C][/ROW]
[ROW][C]50[/C][C]15305.8[/C][C]15278.0632743363[/C][C]27.7367256637172[/C][/ROW]
[ROW][C]51[/C][C]17903.9[/C][C]17253.8799410029[/C][C]650.020058997052[/C][/ROW]
[ROW][C]52[/C][C]16379.4[/C][C]15734.9632743363[/C][C]644.436725663716[/C][/ROW]
[ROW][C]53[/C][C]15420.3[/C][C]16032.8466076696[/C][C]-612.546607669619[/C][/ROW]
[ROW][C]54[/C][C]17870.5[/C][C]15864.9159292035[/C][C]2005.58407079646[/C][/ROW]
[ROW][C]55[/C][C]15912.8[/C][C]15255.0759292035[/C][C]657.724070796458[/C][/ROW]
[ROW][C]56[/C][C]13866.5[/C][C]12884.0159292035[/C][C]982.48407079646[/C][/ROW]
[ROW][C]57[/C][C]17823.2[/C][C]16521.9159292035[/C][C]1301.28407079646[/C][/ROW]
[ROW][C]58[/C][C]17872[/C][C]17194.5359292035[/C][C]677.464070796458[/C][/ROW]
[ROW][C]59[/C][C]17420.4[/C][C]16006.5959292035[/C][C]1413.80407079646[/C][/ROW]
[ROW][C]60[/C][C]16704.4[/C][C]14908.1559292035[/C][C]1796.24407079646[/C][/ROW]
[ROW][C]61[/C][C]15991.2[/C][C]14849.9132743363[/C][C]1141.28672566372[/C][/ROW]
[ROW][C]62[/C][C]16583.6[/C][C]15278.0632743363[/C][C]1305.53672566372[/C][/ROW]
[ROW][C]63[/C][C]19123.5[/C][C]17253.8799410029[/C][C]1869.62005899705[/C][/ROW]
[ROW][C]64[/C][C]17838.7[/C][C]15734.9632743363[/C][C]2103.73672566372[/C][/ROW]
[ROW][C]65[/C][C]17209.4[/C][C]16032.8466076696[/C][C]1176.55339233038[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3197&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3197&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
112398.413838.8734513275-1440.47345132747
213882.314267.0234513274-384.723451327436
315861.516242.8401179941-381.340117994102
413286.114723.9234513274-1437.82345132743
515634.915021.8067846608613.093215339238
61421114853.8761061947-642.876106194688
713646.814244.0361061947-597.236106194688
812224.611872.9761061947351.623893805311
915916.415510.8761061947405.523893805312
1016535.916183.4961061947352.403893805314
111579614995.5561061947800.44389380531
1214418.613897.1161061947521.483893805311
1315044.513838.87345132741205.62654867258
1414944.214267.0234513274677.176548672571
1516754.816242.8401179941511.959882005902
161425414723.9234513274-469.923451327431
1715454.915021.8067846608433.093215339234
1815644.814853.8761061947790.92389380531
1914568.314244.0361061947324.263893805310
2012520.211872.9761061947647.223893805313
211480315510.8761061947-707.876106194689
2215873.216183.4961061947-310.296106194689
2314755.314995.5561061947-240.256106194690
2412875.113897.1161061947-1022.01610619469
2514291.114849.9132743363-558.813274336275
2614205.315278.0632743363-1072.76327433628
2715859.417253.8799410029-1394.47994100295
2815258.915734.9632743363-476.063274336284
2915498.616032.8466076696-534.246607669618
3014106.515864.9159292035-1758.41592920354
3115023.615255.0759292035-231.475929203541
321208312884.0159292035-801.015929203541
3315761.316521.9159292035-760.615929203542
341694317194.5359292035-251.535929203542
3515070.316006.5959292035-936.295929203542
3613659.614908.1559292035-1248.55592920354
3714768.914849.9132743363-81.013274336276
3814725.115278.0632743363-552.963274336282
3915998.117253.8799410029-1255.77994100295
4015370.615734.9632743363-364.363274336283
4114956.916032.8466076696-1075.94660766962
4215469.715864.9159292035-395.215929203541
4315101.815255.0759292035-153.275929203542
4411703.712884.0159292035-1180.31592920354
4516283.616521.9159292035-238.315929203540
4616726.517194.5359292035-468.035929203542
4714968.916006.5959292035-1037.69592920354
481486114908.1559292035-47.1559292035431
4914583.314849.9132743363-266.613274336276
5015305.815278.063274336327.7367256637172
5117903.917253.8799410029650.020058997052
5216379.415734.9632743363644.436725663716
5315420.316032.8466076696-612.546607669619
5417870.515864.91592920352005.58407079646
5515912.815255.0759292035657.724070796458
5613866.512884.0159292035982.48407079646
5717823.216521.91592920351301.28407079646
581787217194.5359292035677.464070796458
5917420.416006.59592920351413.80407079646
6016704.414908.15592920351796.24407079646
6115991.214849.91327433631141.28672566372
6216583.615278.06327433631305.53672566372
6319123.517253.87994100291869.62005899705
6417838.715734.96327433632103.73672566372
6517209.416032.84660766961176.55339233038



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