Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 15 Nov 2007 05:23:03 -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/15/t1195129263jk2q90bwoo1k0h4.htm/, Retrieved Sat, 04 May 2024 18:33:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=14451, Retrieved Sat, 04 May 2024 18:33:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWorkshop 6, question 3, Workshop 6, question 3, multiple lineair regression, seaonality, lineair trend, lineaire trend
Estimated Impact127
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Workshop 6, quest...] [2007-11-15 12:23:03] [7ed974668de91e1c5af8c06b343b508b] [Current]
-  MPD    [Multiple Regression] [] [2010-11-21 14:26:52] [74be16979710d4c4e7c6647856088456]
Feedback Forum

Post a new message
Dataseries X:
108.4	106.7
117	100.6
103.8	101.2
100.8	93.1
110.6	84.2
104	85.8
112.6	91.8
107.3	92.4
98.9	80.3
109.8	79.7
104.9	62.5
102.2	57.1
123.9	100.8
124.9	100.7
112.7	86.2
121.9	83.2
100.6	71.7
104.3	77.5
120.4	89.8
107.5	80.3
102.9	78.7
125.6	93.8
107.5	57.6
108.8	60.6
128.4	91
121.1	85.3
119.5	77.4
128.7	77.3
108.7	68.3
105.5	69.9
119.8	81.7
111.3	75.1
110.6	69.9
120.1	84
97.5	54.3
107.7	60
127.3	89.9
117.2	77
119.8	85.3
116.2	77.6
111	69.2
112.4	75.5
130.6	85.7
109.1	72.2
118.8	79.9
123.9	85.3
101.6	52.2
112.8	61.2
128	82.4
129.6	85.4
125.8	78.2
119.5	70.2
115.7	70.2
113.6	69.3
129.7	77.5
112	66.1
116.8	69
126.3	75.3
112.9	58.2
115.9	59.7




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=14451&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=14451&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14451&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
Y[t] = + 46.7786688827454 + 0.233342458448343X[t] + 27.3870133153562M1[t] + 23.6664968869897M2[t] + 21.1926872757958M3[t] + 15.9061494946601M4[t] + 10.5863623312492M5[t] + 14.1338469978965M6[t] + 20.7631854802013M7[t] + 16.1087780057079M8[t] + 14.7615821355137M9[t] + 20.4789490881773M10[t] -2.03676361429512M11[t] -0.350138923157501t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  46.7786688827454 +  0.233342458448343X[t] +  27.3870133153562M1[t] +  23.6664968869897M2[t] +  21.1926872757958M3[t] +  15.9061494946601M4[t] +  10.5863623312492M5[t] +  14.1338469978965M6[t] +  20.7631854802013M7[t] +  16.1087780057079M8[t] +  14.7615821355137M9[t] +  20.4789490881773M10[t] -2.03676361429512M11[t] -0.350138923157501t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14451&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  46.7786688827454 +  0.233342458448343X[t] +  27.3870133153562M1[t] +  23.6664968869897M2[t] +  21.1926872757958M3[t] +  15.9061494946601M4[t] +  10.5863623312492M5[t] +  14.1338469978965M6[t] +  20.7631854802013M7[t] +  16.1087780057079M8[t] +  14.7615821355137M9[t] +  20.4789490881773M10[t] -2.03676361429512M11[t] -0.350138923157501t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14451&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14451&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] = + 46.7786688827454 + 0.233342458448343X[t] + 27.3870133153562M1[t] + 23.6664968869897M2[t] + 21.1926872757958M3[t] + 15.9061494946601M4[t] + 10.5863623312492M5[t] + 14.1338469978965M6[t] + 20.7631854802013M7[t] + 16.1087780057079M8[t] + 14.7615821355137M9[t] + 20.4789490881773M10[t] -2.03676361429512M11[t] -0.350138923157501t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)46.778668882745415.4546163.02680.0040390.00202
X0.2333424584483430.1518511.53660.131230.065615
M127.38701331535624.1333816.625800
M223.66649688698973.9951675.923800
M321.19268727579583.5552555.960900
M415.90614949466013.6036094.4146.1e-053e-05
M510.58636233124923.2740763.23340.0022660.001133
M614.13384699789653.261524.33357.9e-053.9e-05
M720.76318548020133.9268555.28753e-062e-06
M816.10877800570793.2602864.94091.1e-055e-06
M914.76158213551373.2579934.53094.2e-052.1e-05
M1020.47894908817733.742525.4722e-061e-06
M11-2.036763614295123.319451-0.61360.5425120.271256
t-0.3501389231575010.055309-6.330500

\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) & 46.7786688827454 & 15.454616 & 3.0268 & 0.004039 & 0.00202 \tabularnewline
X & 0.233342458448343 & 0.151851 & 1.5366 & 0.13123 & 0.065615 \tabularnewline
M1 & 27.3870133153562 & 4.133381 & 6.6258 & 0 & 0 \tabularnewline
M2 & 23.6664968869897 & 3.995167 & 5.9238 & 0 & 0 \tabularnewline
M3 & 21.1926872757958 & 3.555255 & 5.9609 & 0 & 0 \tabularnewline
M4 & 15.9061494946601 & 3.603609 & 4.414 & 6.1e-05 & 3e-05 \tabularnewline
M5 & 10.5863623312492 & 3.274076 & 3.2334 & 0.002266 & 0.001133 \tabularnewline
M6 & 14.1338469978965 & 3.26152 & 4.3335 & 7.9e-05 & 3.9e-05 \tabularnewline
M7 & 20.7631854802013 & 3.926855 & 5.2875 & 3e-06 & 2e-06 \tabularnewline
M8 & 16.1087780057079 & 3.260286 & 4.9409 & 1.1e-05 & 5e-06 \tabularnewline
M9 & 14.7615821355137 & 3.257993 & 4.5309 & 4.2e-05 & 2.1e-05 \tabularnewline
M10 & 20.4789490881773 & 3.74252 & 5.472 & 2e-06 & 1e-06 \tabularnewline
M11 & -2.03676361429512 & 3.319451 & -0.6136 & 0.542512 & 0.271256 \tabularnewline
t & -0.350138923157501 & 0.055309 & -6.3305 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14451&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]46.7786688827454[/C][C]15.454616[/C][C]3.0268[/C][C]0.004039[/C][C]0.00202[/C][/ROW]
[ROW][C]X[/C][C]0.233342458448343[/C][C]0.151851[/C][C]1.5366[/C][C]0.13123[/C][C]0.065615[/C][/ROW]
[ROW][C]M1[/C][C]27.3870133153562[/C][C]4.133381[/C][C]6.6258[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]23.6664968869897[/C][C]3.995167[/C][C]5.9238[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]21.1926872757958[/C][C]3.555255[/C][C]5.9609[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]15.9061494946601[/C][C]3.603609[/C][C]4.414[/C][C]6.1e-05[/C][C]3e-05[/C][/ROW]
[ROW][C]M5[/C][C]10.5863623312492[/C][C]3.274076[/C][C]3.2334[/C][C]0.002266[/C][C]0.001133[/C][/ROW]
[ROW][C]M6[/C][C]14.1338469978965[/C][C]3.26152[/C][C]4.3335[/C][C]7.9e-05[/C][C]3.9e-05[/C][/ROW]
[ROW][C]M7[/C][C]20.7631854802013[/C][C]3.926855[/C][C]5.2875[/C][C]3e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M8[/C][C]16.1087780057079[/C][C]3.260286[/C][C]4.9409[/C][C]1.1e-05[/C][C]5e-06[/C][/ROW]
[ROW][C]M9[/C][C]14.7615821355137[/C][C]3.257993[/C][C]4.5309[/C][C]4.2e-05[/C][C]2.1e-05[/C][/ROW]
[ROW][C]M10[/C][C]20.4789490881773[/C][C]3.74252[/C][C]5.472[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M11[/C][C]-2.03676361429512[/C][C]3.319451[/C][C]-0.6136[/C][C]0.542512[/C][C]0.271256[/C][/ROW]
[ROW][C]t[/C][C]-0.350138923157501[/C][C]0.055309[/C][C]-6.3305[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14451&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14451&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)46.778668882745415.4546163.02680.0040390.00202
X0.2333424584483430.1518511.53660.131230.065615
M127.38701331535624.1333816.625800
M223.66649688698973.9951675.923800
M321.19268727579583.5552555.960900
M415.90614949466013.6036094.4146.1e-053e-05
M510.58636233124923.2740763.23340.0022660.001133
M614.13384699789653.261524.33357.9e-053.9e-05
M720.76318548020133.9268555.28753e-062e-06
M816.10877800570793.2602864.94091.1e-055e-06
M914.76158213551373.2579934.53094.2e-052.1e-05
M1020.47894908817733.742525.4722e-061e-06
M11-2.036763614295123.319451-0.61360.5425120.271256
t-0.3501389231575010.055309-6.330500







Multiple Linear Regression - Regression Statistics
Multiple R0.934214213782551
R-squared0.87275619723335
Adjusted R-squared0.836795992103645
F-TEST (value)24.2700561380391
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value2.22044604925031e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.14353483274104
Sum Squared Residuals1216.97372647854

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.934214213782551 \tabularnewline
R-squared & 0.87275619723335 \tabularnewline
Adjusted R-squared & 0.836795992103645 \tabularnewline
F-TEST (value) & 24.2700561380391 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 2.22044604925031e-16 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.14353483274104 \tabularnewline
Sum Squared Residuals & 1216.97372647854 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14451&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.934214213782551[/C][/ROW]
[ROW][C]R-squared[/C][C]0.87275619723335[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.836795992103645[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]24.2700561380391[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]2.22044604925031e-16[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.14353483274104[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1216.97372647854[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14451&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14451&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.934214213782551
R-squared0.87275619723335
Adjusted R-squared0.836795992103645
F-TEST (value)24.2700561380391
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value2.22044604925031e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.14353483274104
Sum Squared Residuals1216.97372647854







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1106.799.10986577074447.59013422925556
2100.697.04595556187623.55404443812376
3101.291.141886576006810.0581134239932
493.184.80518249636868.29481750363144
584.281.4220125025942.77798749740609
685.883.07929802032462.72070197967542
791.891.36524272212760.434757277872374
892.485.12398129470067.27601870529944
980.381.4665698503827-1.16656985038274
1079.789.3772306769758-9.67723067697578
1162.565.368001004949-2.86800100494898
1257.166.4246010582761-9.32460105827608
13100.898.52500679880392.27499320119612
14100.794.68769390572816.01230609427187
1586.289.016967378307-2.81696737830701
1683.285.5270412917386-2.32704129173858
1771.774.8869208402205-3.18692084022045
1877.578.947633679969-1.44763367996907
1989.888.98364682013470.816353179865309
2080.380.9689827085002-0.668982708500228
2178.778.19827260628610.501727393713884
2293.888.86237444256964.93762555743037
2357.661.7730243190247-4.17302431902467
2460.663.7629942061451-3.16299420614513
259195.3733807839314-4.37338078393141
2685.389.5993254857344-4.29932548573443
2777.486.4020290178657-9.00202901786573
2877.382.9121029312973-5.61210293129731
2968.372.575327675762-4.27532767576203
3069.975.025977552217-5.12597755221707
3181.784.6419742671757-2.94197426717567
3275.177.6540169727139-2.55401697271392
3369.975.7933424584484-5.89334245844834
348483.37732384321370.622676156786272
3554.355.2379326566512-0.937932656651237
366059.30465042396190.695349576038052
3789.990.9150370017482-1.01503700174822
387784.4876228198959-7.48762281989588
3985.382.27036467751023.02963532248977
4077.675.7936551228031.80634487719698
4169.268.91034825230320.289651747696798
4275.572.43437343762063.06562656237936
4385.782.96040574052782.73959425947224
4472.272.9389964862376-0.738996486237551
4579.973.50508353983486.39491646016525
4685.380.06235810742745.23764189257257
4752.251.99296965839940.207030341600577
4861.256.29302988415854.90697011584152
4982.486.876709644772-4.47670964477205
5085.483.17940222676532.22059777323468
5178.279.4687523503103-1.26875235031028
5270.272.3620181577925-2.16201815779253
5370.265.80539072912044.39460927087959
5469.368.51271730986860.787282690131359
5577.578.5487304500343-1.04873045003425
5666.169.4140225378478-3.31402253784776
576968.8367315450480.163268454951940
5875.376.4207129298134-1.12071292981344
5958.250.42807236097577.77192763902431
6059.752.81472442745846.88527557254165

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 106.7 & 99.1098657707444 & 7.59013422925556 \tabularnewline
2 & 100.6 & 97.0459555618762 & 3.55404443812376 \tabularnewline
3 & 101.2 & 91.1418865760068 & 10.0581134239932 \tabularnewline
4 & 93.1 & 84.8051824963686 & 8.29481750363144 \tabularnewline
5 & 84.2 & 81.422012502594 & 2.77798749740609 \tabularnewline
6 & 85.8 & 83.0792980203246 & 2.72070197967542 \tabularnewline
7 & 91.8 & 91.3652427221276 & 0.434757277872374 \tabularnewline
8 & 92.4 & 85.1239812947006 & 7.27601870529944 \tabularnewline
9 & 80.3 & 81.4665698503827 & -1.16656985038274 \tabularnewline
10 & 79.7 & 89.3772306769758 & -9.67723067697578 \tabularnewline
11 & 62.5 & 65.368001004949 & -2.86800100494898 \tabularnewline
12 & 57.1 & 66.4246010582761 & -9.32460105827608 \tabularnewline
13 & 100.8 & 98.5250067988039 & 2.27499320119612 \tabularnewline
14 & 100.7 & 94.6876939057281 & 6.01230609427187 \tabularnewline
15 & 86.2 & 89.016967378307 & -2.81696737830701 \tabularnewline
16 & 83.2 & 85.5270412917386 & -2.32704129173858 \tabularnewline
17 & 71.7 & 74.8869208402205 & -3.18692084022045 \tabularnewline
18 & 77.5 & 78.947633679969 & -1.44763367996907 \tabularnewline
19 & 89.8 & 88.9836468201347 & 0.816353179865309 \tabularnewline
20 & 80.3 & 80.9689827085002 & -0.668982708500228 \tabularnewline
21 & 78.7 & 78.1982726062861 & 0.501727393713884 \tabularnewline
22 & 93.8 & 88.8623744425696 & 4.93762555743037 \tabularnewline
23 & 57.6 & 61.7730243190247 & -4.17302431902467 \tabularnewline
24 & 60.6 & 63.7629942061451 & -3.16299420614513 \tabularnewline
25 & 91 & 95.3733807839314 & -4.37338078393141 \tabularnewline
26 & 85.3 & 89.5993254857344 & -4.29932548573443 \tabularnewline
27 & 77.4 & 86.4020290178657 & -9.00202901786573 \tabularnewline
28 & 77.3 & 82.9121029312973 & -5.61210293129731 \tabularnewline
29 & 68.3 & 72.575327675762 & -4.27532767576203 \tabularnewline
30 & 69.9 & 75.025977552217 & -5.12597755221707 \tabularnewline
31 & 81.7 & 84.6419742671757 & -2.94197426717567 \tabularnewline
32 & 75.1 & 77.6540169727139 & -2.55401697271392 \tabularnewline
33 & 69.9 & 75.7933424584484 & -5.89334245844834 \tabularnewline
34 & 84 & 83.3773238432137 & 0.622676156786272 \tabularnewline
35 & 54.3 & 55.2379326566512 & -0.937932656651237 \tabularnewline
36 & 60 & 59.3046504239619 & 0.695349576038052 \tabularnewline
37 & 89.9 & 90.9150370017482 & -1.01503700174822 \tabularnewline
38 & 77 & 84.4876228198959 & -7.48762281989588 \tabularnewline
39 & 85.3 & 82.2703646775102 & 3.02963532248977 \tabularnewline
40 & 77.6 & 75.793655122803 & 1.80634487719698 \tabularnewline
41 & 69.2 & 68.9103482523032 & 0.289651747696798 \tabularnewline
42 & 75.5 & 72.4343734376206 & 3.06562656237936 \tabularnewline
43 & 85.7 & 82.9604057405278 & 2.73959425947224 \tabularnewline
44 & 72.2 & 72.9389964862376 & -0.738996486237551 \tabularnewline
45 & 79.9 & 73.5050835398348 & 6.39491646016525 \tabularnewline
46 & 85.3 & 80.0623581074274 & 5.23764189257257 \tabularnewline
47 & 52.2 & 51.9929696583994 & 0.207030341600577 \tabularnewline
48 & 61.2 & 56.2930298841585 & 4.90697011584152 \tabularnewline
49 & 82.4 & 86.876709644772 & -4.47670964477205 \tabularnewline
50 & 85.4 & 83.1794022267653 & 2.22059777323468 \tabularnewline
51 & 78.2 & 79.4687523503103 & -1.26875235031028 \tabularnewline
52 & 70.2 & 72.3620181577925 & -2.16201815779253 \tabularnewline
53 & 70.2 & 65.8053907291204 & 4.39460927087959 \tabularnewline
54 & 69.3 & 68.5127173098686 & 0.787282690131359 \tabularnewline
55 & 77.5 & 78.5487304500343 & -1.04873045003425 \tabularnewline
56 & 66.1 & 69.4140225378478 & -3.31402253784776 \tabularnewline
57 & 69 & 68.836731545048 & 0.163268454951940 \tabularnewline
58 & 75.3 & 76.4207129298134 & -1.12071292981344 \tabularnewline
59 & 58.2 & 50.4280723609757 & 7.77192763902431 \tabularnewline
60 & 59.7 & 52.8147244274584 & 6.88527557254165 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14451&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]106.7[/C][C]99.1098657707444[/C][C]7.59013422925556[/C][/ROW]
[ROW][C]2[/C][C]100.6[/C][C]97.0459555618762[/C][C]3.55404443812376[/C][/ROW]
[ROW][C]3[/C][C]101.2[/C][C]91.1418865760068[/C][C]10.0581134239932[/C][/ROW]
[ROW][C]4[/C][C]93.1[/C][C]84.8051824963686[/C][C]8.29481750363144[/C][/ROW]
[ROW][C]5[/C][C]84.2[/C][C]81.422012502594[/C][C]2.77798749740609[/C][/ROW]
[ROW][C]6[/C][C]85.8[/C][C]83.0792980203246[/C][C]2.72070197967542[/C][/ROW]
[ROW][C]7[/C][C]91.8[/C][C]91.3652427221276[/C][C]0.434757277872374[/C][/ROW]
[ROW][C]8[/C][C]92.4[/C][C]85.1239812947006[/C][C]7.27601870529944[/C][/ROW]
[ROW][C]9[/C][C]80.3[/C][C]81.4665698503827[/C][C]-1.16656985038274[/C][/ROW]
[ROW][C]10[/C][C]79.7[/C][C]89.3772306769758[/C][C]-9.67723067697578[/C][/ROW]
[ROW][C]11[/C][C]62.5[/C][C]65.368001004949[/C][C]-2.86800100494898[/C][/ROW]
[ROW][C]12[/C][C]57.1[/C][C]66.4246010582761[/C][C]-9.32460105827608[/C][/ROW]
[ROW][C]13[/C][C]100.8[/C][C]98.5250067988039[/C][C]2.27499320119612[/C][/ROW]
[ROW][C]14[/C][C]100.7[/C][C]94.6876939057281[/C][C]6.01230609427187[/C][/ROW]
[ROW][C]15[/C][C]86.2[/C][C]89.016967378307[/C][C]-2.81696737830701[/C][/ROW]
[ROW][C]16[/C][C]83.2[/C][C]85.5270412917386[/C][C]-2.32704129173858[/C][/ROW]
[ROW][C]17[/C][C]71.7[/C][C]74.8869208402205[/C][C]-3.18692084022045[/C][/ROW]
[ROW][C]18[/C][C]77.5[/C][C]78.947633679969[/C][C]-1.44763367996907[/C][/ROW]
[ROW][C]19[/C][C]89.8[/C][C]88.9836468201347[/C][C]0.816353179865309[/C][/ROW]
[ROW][C]20[/C][C]80.3[/C][C]80.9689827085002[/C][C]-0.668982708500228[/C][/ROW]
[ROW][C]21[/C][C]78.7[/C][C]78.1982726062861[/C][C]0.501727393713884[/C][/ROW]
[ROW][C]22[/C][C]93.8[/C][C]88.8623744425696[/C][C]4.93762555743037[/C][/ROW]
[ROW][C]23[/C][C]57.6[/C][C]61.7730243190247[/C][C]-4.17302431902467[/C][/ROW]
[ROW][C]24[/C][C]60.6[/C][C]63.7629942061451[/C][C]-3.16299420614513[/C][/ROW]
[ROW][C]25[/C][C]91[/C][C]95.3733807839314[/C][C]-4.37338078393141[/C][/ROW]
[ROW][C]26[/C][C]85.3[/C][C]89.5993254857344[/C][C]-4.29932548573443[/C][/ROW]
[ROW][C]27[/C][C]77.4[/C][C]86.4020290178657[/C][C]-9.00202901786573[/C][/ROW]
[ROW][C]28[/C][C]77.3[/C][C]82.9121029312973[/C][C]-5.61210293129731[/C][/ROW]
[ROW][C]29[/C][C]68.3[/C][C]72.575327675762[/C][C]-4.27532767576203[/C][/ROW]
[ROW][C]30[/C][C]69.9[/C][C]75.025977552217[/C][C]-5.12597755221707[/C][/ROW]
[ROW][C]31[/C][C]81.7[/C][C]84.6419742671757[/C][C]-2.94197426717567[/C][/ROW]
[ROW][C]32[/C][C]75.1[/C][C]77.6540169727139[/C][C]-2.55401697271392[/C][/ROW]
[ROW][C]33[/C][C]69.9[/C][C]75.7933424584484[/C][C]-5.89334245844834[/C][/ROW]
[ROW][C]34[/C][C]84[/C][C]83.3773238432137[/C][C]0.622676156786272[/C][/ROW]
[ROW][C]35[/C][C]54.3[/C][C]55.2379326566512[/C][C]-0.937932656651237[/C][/ROW]
[ROW][C]36[/C][C]60[/C][C]59.3046504239619[/C][C]0.695349576038052[/C][/ROW]
[ROW][C]37[/C][C]89.9[/C][C]90.9150370017482[/C][C]-1.01503700174822[/C][/ROW]
[ROW][C]38[/C][C]77[/C][C]84.4876228198959[/C][C]-7.48762281989588[/C][/ROW]
[ROW][C]39[/C][C]85.3[/C][C]82.2703646775102[/C][C]3.02963532248977[/C][/ROW]
[ROW][C]40[/C][C]77.6[/C][C]75.793655122803[/C][C]1.80634487719698[/C][/ROW]
[ROW][C]41[/C][C]69.2[/C][C]68.9103482523032[/C][C]0.289651747696798[/C][/ROW]
[ROW][C]42[/C][C]75.5[/C][C]72.4343734376206[/C][C]3.06562656237936[/C][/ROW]
[ROW][C]43[/C][C]85.7[/C][C]82.9604057405278[/C][C]2.73959425947224[/C][/ROW]
[ROW][C]44[/C][C]72.2[/C][C]72.9389964862376[/C][C]-0.738996486237551[/C][/ROW]
[ROW][C]45[/C][C]79.9[/C][C]73.5050835398348[/C][C]6.39491646016525[/C][/ROW]
[ROW][C]46[/C][C]85.3[/C][C]80.0623581074274[/C][C]5.23764189257257[/C][/ROW]
[ROW][C]47[/C][C]52.2[/C][C]51.9929696583994[/C][C]0.207030341600577[/C][/ROW]
[ROW][C]48[/C][C]61.2[/C][C]56.2930298841585[/C][C]4.90697011584152[/C][/ROW]
[ROW][C]49[/C][C]82.4[/C][C]86.876709644772[/C][C]-4.47670964477205[/C][/ROW]
[ROW][C]50[/C][C]85.4[/C][C]83.1794022267653[/C][C]2.22059777323468[/C][/ROW]
[ROW][C]51[/C][C]78.2[/C][C]79.4687523503103[/C][C]-1.26875235031028[/C][/ROW]
[ROW][C]52[/C][C]70.2[/C][C]72.3620181577925[/C][C]-2.16201815779253[/C][/ROW]
[ROW][C]53[/C][C]70.2[/C][C]65.8053907291204[/C][C]4.39460927087959[/C][/ROW]
[ROW][C]54[/C][C]69.3[/C][C]68.5127173098686[/C][C]0.787282690131359[/C][/ROW]
[ROW][C]55[/C][C]77.5[/C][C]78.5487304500343[/C][C]-1.04873045003425[/C][/ROW]
[ROW][C]56[/C][C]66.1[/C][C]69.4140225378478[/C][C]-3.31402253784776[/C][/ROW]
[ROW][C]57[/C][C]69[/C][C]68.836731545048[/C][C]0.163268454951940[/C][/ROW]
[ROW][C]58[/C][C]75.3[/C][C]76.4207129298134[/C][C]-1.12071292981344[/C][/ROW]
[ROW][C]59[/C][C]58.2[/C][C]50.4280723609757[/C][C]7.77192763902431[/C][/ROW]
[ROW][C]60[/C][C]59.7[/C][C]52.8147244274584[/C][C]6.88527557254165[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14451&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14451&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
1106.799.10986577074447.59013422925556
2100.697.04595556187623.55404443812376
3101.291.141886576006810.0581134239932
493.184.80518249636868.29481750363144
584.281.4220125025942.77798749740609
685.883.07929802032462.72070197967542
791.891.36524272212760.434757277872374
892.485.12398129470067.27601870529944
980.381.4665698503827-1.16656985038274
1079.789.3772306769758-9.67723067697578
1162.565.368001004949-2.86800100494898
1257.166.4246010582761-9.32460105827608
13100.898.52500679880392.27499320119612
14100.794.68769390572816.01230609427187
1586.289.016967378307-2.81696737830701
1683.285.5270412917386-2.32704129173858
1771.774.8869208402205-3.18692084022045
1877.578.947633679969-1.44763367996907
1989.888.98364682013470.816353179865309
2080.380.9689827085002-0.668982708500228
2178.778.19827260628610.501727393713884
2293.888.86237444256964.93762555743037
2357.661.7730243190247-4.17302431902467
2460.663.7629942061451-3.16299420614513
259195.3733807839314-4.37338078393141
2685.389.5993254857344-4.29932548573443
2777.486.4020290178657-9.00202901786573
2877.382.9121029312973-5.61210293129731
2968.372.575327675762-4.27532767576203
3069.975.025977552217-5.12597755221707
3181.784.6419742671757-2.94197426717567
3275.177.6540169727139-2.55401697271392
3369.975.7933424584484-5.89334245844834
348483.37732384321370.622676156786272
3554.355.2379326566512-0.937932656651237
366059.30465042396190.695349576038052
3789.990.9150370017482-1.01503700174822
387784.4876228198959-7.48762281989588
3985.382.27036467751023.02963532248977
4077.675.7936551228031.80634487719698
4169.268.91034825230320.289651747696798
4275.572.43437343762063.06562656237936
4385.782.96040574052782.73959425947224
4472.272.9389964862376-0.738996486237551
4579.973.50508353983486.39491646016525
4685.380.06235810742745.23764189257257
4752.251.99296965839940.207030341600577
4861.256.29302988415854.90697011584152
4982.486.876709644772-4.47670964477205
5085.483.17940222676532.22059777323468
5178.279.4687523503103-1.26875235031028
5270.272.3620181577925-2.16201815779253
5370.265.80539072912044.39460927087959
5469.368.51271730986860.787282690131359
5577.578.5487304500343-1.04873045003425
5666.169.4140225378478-3.31402253784776
576968.8367315450480.163268454951940
5875.376.4207129298134-1.12071292981344
5958.250.42807236097577.77192763902431
6059.752.81472442745846.88527557254165



Parameters (Session):
par1 = 2 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 2 ; 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')