Free Statistics

of Irreproducible Research!

Author's title

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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact196
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Seatbelt law paper] [2007-12-14 11:53:28] [c5caf8a1e3802eaf41184f28719e74c9] [Current]
Feedback Forum

Post a new message
Dataseries X:
36845	0
35338	0
35022	0
34777	0
26887	0
23970	0
22780	0
17351	0
21382	0
24561	0
17409	0
11514	0
31514	0
27071	0
29462	1
26105	1
22397	1
23843	1
21705	1
18089	1
20764	1
25316	1
17704	1
15548	1
28029	1
29383	1
36438	1
32034	1
22679	1
24319	1
18004	1
17537	1
20366	1
22782	1
19169	1
13807	1
29743	1
25591	1
29096	1
26482	1
22405	1
27044	1
17970	1
18730	1
19684	1
19785	1
18479	1
10698	1
31956	1
29506	1
34506	1
27165	1
26736	1
23691	1
18157	1
17328	1
18205	1
20995	1
17382	1
9367	1




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\begin{tabular}{lllllllll}
\hline
Summary of compuational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 6 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3849&T=0

[TABLE]
[ROW][C]Summary of compuational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3849&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3849&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Multiple Linear Regression - Estimated Regression Equation
auto[t] = + 14352.9629370629 -1191.91958041958irak[t] + 18821.6910839161M1[t] + 16615.7751748252M2[t] + 20414.8431818182M3[t] + 16856.3272727273M4[t] + 11798.2113636364M5[t] + 12184.4954545455M6[t] + 7367.97954545454M7[t] + 5485.46363636364M8[t] + 7792.34772727273M9[t] + 10433.6318181818M10[t] + 5808.11590909091M11[t] -33.6840909090909t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
auto[t] =  +  14352.9629370629 -1191.91958041958irak[t] +  18821.6910839161M1[t] +  16615.7751748252M2[t] +  20414.8431818182M3[t] +  16856.3272727273M4[t] +  11798.2113636364M5[t] +  12184.4954545455M6[t] +  7367.97954545454M7[t] +  5485.46363636364M8[t] +  7792.34772727273M9[t] +  10433.6318181818M10[t] +  5808.11590909091M11[t] -33.6840909090909t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3849&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]auto[t] =  +  14352.9629370629 -1191.91958041958irak[t] +  18821.6910839161M1[t] +  16615.7751748252M2[t] +  20414.8431818182M3[t] +  16856.3272727273M4[t] +  11798.2113636364M5[t] +  12184.4954545455M6[t] +  7367.97954545454M7[t] +  5485.46363636364M8[t] +  7792.34772727273M9[t] +  10433.6318181818M10[t] +  5808.11590909091M11[t] -33.6840909090909t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3849&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3849&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
auto[t] = + 14352.9629370629 -1191.91958041958irak[t] + 18821.6910839161M1[t] + 16615.7751748252M2[t] + 20414.8431818182M3[t] + 16856.3272727273M4[t] + 11798.2113636364M5[t] + 12184.4954545455M6[t] + 7367.97954545454M7[t] + 5485.46363636364M8[t] + 7792.34772727273M9[t] + 10433.6318181818M10[t] + 5808.11590909091M11[t] -33.6840909090909t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)14352.96293706291242.16814311.554800
irak-1191.919580419581075.749168-1.1080.2736260.136813
M118821.69108391611498.36308812.561500
M216615.77517482521496.26988911.104800
M320414.84318181821504.28690513.571100
M416856.32727272731500.34624411.23500
M511798.21136363641496.8605757.88200
M612184.49545454551493.8330828.156500
M77367.979545454541491.2665584.94081.1e-055e-06
M85485.463636363641489.1633833.68360.0006040.000302
M97792.347727272731487.5255255.23854e-062e-06
M1010433.63181818181486.3545227.019600
M115808.115909090911485.6514773.90950.0003020.000151
t-33.684090909090926.390998-1.27630.2082390.10412

\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) & 14352.9629370629 & 1242.168143 & 11.5548 & 0 & 0 \tabularnewline
irak & -1191.91958041958 & 1075.749168 & -1.108 & 0.273626 & 0.136813 \tabularnewline
M1 & 18821.6910839161 & 1498.363088 & 12.5615 & 0 & 0 \tabularnewline
M2 & 16615.7751748252 & 1496.269889 & 11.1048 & 0 & 0 \tabularnewline
M3 & 20414.8431818182 & 1504.286905 & 13.5711 & 0 & 0 \tabularnewline
M4 & 16856.3272727273 & 1500.346244 & 11.235 & 0 & 0 \tabularnewline
M5 & 11798.2113636364 & 1496.860575 & 7.882 & 0 & 0 \tabularnewline
M6 & 12184.4954545455 & 1493.833082 & 8.1565 & 0 & 0 \tabularnewline
M7 & 7367.97954545454 & 1491.266558 & 4.9408 & 1.1e-05 & 5e-06 \tabularnewline
M8 & 5485.46363636364 & 1489.163383 & 3.6836 & 0.000604 & 0.000302 \tabularnewline
M9 & 7792.34772727273 & 1487.525525 & 5.2385 & 4e-06 & 2e-06 \tabularnewline
M10 & 10433.6318181818 & 1486.354522 & 7.0196 & 0 & 0 \tabularnewline
M11 & 5808.11590909091 & 1485.651477 & 3.9095 & 0.000302 & 0.000151 \tabularnewline
t & -33.6840909090909 & 26.390998 & -1.2763 & 0.208239 & 0.10412 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3849&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]14352.9629370629[/C][C]1242.168143[/C][C]11.5548[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]irak[/C][C]-1191.91958041958[/C][C]1075.749168[/C][C]-1.108[/C][C]0.273626[/C][C]0.136813[/C][/ROW]
[ROW][C]M1[/C][C]18821.6910839161[/C][C]1498.363088[/C][C]12.5615[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]16615.7751748252[/C][C]1496.269889[/C][C]11.1048[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]20414.8431818182[/C][C]1504.286905[/C][C]13.5711[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]16856.3272727273[/C][C]1500.346244[/C][C]11.235[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]11798.2113636364[/C][C]1496.860575[/C][C]7.882[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]12184.4954545455[/C][C]1493.833082[/C][C]8.1565[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]7367.97954545454[/C][C]1491.266558[/C][C]4.9408[/C][C]1.1e-05[/C][C]5e-06[/C][/ROW]
[ROW][C]M8[/C][C]5485.46363636364[/C][C]1489.163383[/C][C]3.6836[/C][C]0.000604[/C][C]0.000302[/C][/ROW]
[ROW][C]M9[/C][C]7792.34772727273[/C][C]1487.525525[/C][C]5.2385[/C][C]4e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M10[/C][C]10433.6318181818[/C][C]1486.354522[/C][C]7.0196[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]5808.11590909091[/C][C]1485.651477[/C][C]3.9095[/C][C]0.000302[/C][C]0.000151[/C][/ROW]
[ROW][C]t[/C][C]-33.6840909090909[/C][C]26.390998[/C][C]-1.2763[/C][C]0.208239[/C][C]0.10412[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3849&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3849&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)14352.96293706291242.16814311.554800
irak-1191.919580419581075.749168-1.1080.2736260.136813
M118821.69108391611498.36308812.561500
M216615.77517482521496.26988911.104800
M320414.84318181821504.28690513.571100
M416856.32727272731500.34624411.23500
M511798.21136363641496.8605757.88200
M612184.49545454551493.8330828.156500
M77367.979545454541491.2665584.94081.1e-055e-06
M85485.463636363641489.1633833.68360.0006040.000302
M97792.347727272731487.5255255.23854e-062e-06
M1010433.63181818181486.3545227.019600
M115808.115909090911485.6514773.90950.0003020.000151
t-33.684090909090926.390998-1.27630.2082390.10412







Multiple Linear Regression - Regression Statistics
Multiple R0.94830974746031
R-squared0.899291377128238
Adjusted R-squared0.870830244577523
F-TEST (value)31.5971746916879
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2348.65058371101
Sum Squared Residuals253743339.960839

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.94830974746031 \tabularnewline
R-squared & 0.899291377128238 \tabularnewline
Adjusted R-squared & 0.870830244577523 \tabularnewline
F-TEST (value) & 31.5971746916879 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 2348.65058371101 \tabularnewline
Sum Squared Residuals & 253743339.960839 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3849&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.94830974746031[/C][/ROW]
[ROW][C]R-squared[/C][C]0.899291377128238[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.870830244577523[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]31.5971746916879[/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]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]2348.65058371101[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]253743339.960839[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3849&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3849&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.94830974746031
R-squared0.899291377128238
Adjusted R-squared0.870830244577523
F-TEST (value)31.5971746916879
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2348.65058371101
Sum Squared Residuals253743339.960839







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
13684533140.96993007003704.03006993005
23533830901.36993006994436.63006993007
33502234666.7538461538355.246153846153
43477731074.55384615383702.44615384615
52688725982.7538461538904.246153846162
62397026335.3538461538-2365.35384615385
72278021485.15384615381294.84615384616
81735119568.9538461538-2217.95384615385
92138221842.1538461538-460.153846153844
102456124449.7538461538111.246153846153
111740919790.5538461538-2381.55384615385
121151413948.7538461538-2434.75384615384
133151432736.7608391608-1222.76083916084
142707130497.1608391608-3426.16083916084
152946233070.6251748252-3608.62517482517
162610529478.4251748252-3373.42517482517
172239724386.6251748252-1989.62517482518
182384324739.2251748252-896.225174825174
192170519889.02517482521815.97482517483
201808917972.8251748252116.174825174826
212076420246.0251748252517.974825174825
222531622853.62517482522462.37482517483
231770418194.4251748252-490.425174825174
241554812352.62517482523195.37482517482
252802931140.6321678322-3111.63216783216
262938328901.0321678322481.967832167833
273643832666.41608391613771.58391608392
283203429074.21608391612959.78391608392
292267923982.4160839161-1303.41608391609
302431924335.0160839161-16.0160839160838
311800419484.8160839161-1480.81608391608
321753717568.6160839161-31.6160839160839
332036619841.8160839161524.183916083916
342278222449.4160839161332.583916083916
351916917790.21608391611378.78391608392
361380711948.41608391611858.58391608392
372974330736.4230769231-993.423076923071
382559128496.8230769231-2905.82307692308
392909632262.206993007-3166.20699300699
402648228670.006993007-2188.00699300699
412240523578.206993007-1173.20699300700
422704423930.8069930073113.19300699301
431797019080.606993007-1110.60699300699
441873017164.4069930071565.59300699301
451968419437.606993007246.393006993007
461978522045.206993007-2260.20699300699
471847917386.0069930071092.99300699301
481069811544.206993007-846.206993006994
493195630332.2139860141623.78601398602
502950628092.6139860141413.38601398601
513450631857.99790209792648.0020979021
522716528265.7979020979-1100.79790209790
532673623173.99790209793562.00209790210
542369123526.5979020979164.402097902097
551815718676.3979020979-519.397902097904
561732816760.1979020979567.802097902097
571820519033.3979020979-828.397902097903
582099521640.9979020979-645.997902097904
591738216981.7979020979400.202097902097
60936711139.9979020979-1772.99790209790

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 36845 & 33140.9699300700 & 3704.03006993005 \tabularnewline
2 & 35338 & 30901.3699300699 & 4436.63006993007 \tabularnewline
3 & 35022 & 34666.7538461538 & 355.246153846153 \tabularnewline
4 & 34777 & 31074.5538461538 & 3702.44615384615 \tabularnewline
5 & 26887 & 25982.7538461538 & 904.246153846162 \tabularnewline
6 & 23970 & 26335.3538461538 & -2365.35384615385 \tabularnewline
7 & 22780 & 21485.1538461538 & 1294.84615384616 \tabularnewline
8 & 17351 & 19568.9538461538 & -2217.95384615385 \tabularnewline
9 & 21382 & 21842.1538461538 & -460.153846153844 \tabularnewline
10 & 24561 & 24449.7538461538 & 111.246153846153 \tabularnewline
11 & 17409 & 19790.5538461538 & -2381.55384615385 \tabularnewline
12 & 11514 & 13948.7538461538 & -2434.75384615384 \tabularnewline
13 & 31514 & 32736.7608391608 & -1222.76083916084 \tabularnewline
14 & 27071 & 30497.1608391608 & -3426.16083916084 \tabularnewline
15 & 29462 & 33070.6251748252 & -3608.62517482517 \tabularnewline
16 & 26105 & 29478.4251748252 & -3373.42517482517 \tabularnewline
17 & 22397 & 24386.6251748252 & -1989.62517482518 \tabularnewline
18 & 23843 & 24739.2251748252 & -896.225174825174 \tabularnewline
19 & 21705 & 19889.0251748252 & 1815.97482517483 \tabularnewline
20 & 18089 & 17972.8251748252 & 116.174825174826 \tabularnewline
21 & 20764 & 20246.0251748252 & 517.974825174825 \tabularnewline
22 & 25316 & 22853.6251748252 & 2462.37482517483 \tabularnewline
23 & 17704 & 18194.4251748252 & -490.425174825174 \tabularnewline
24 & 15548 & 12352.6251748252 & 3195.37482517482 \tabularnewline
25 & 28029 & 31140.6321678322 & -3111.63216783216 \tabularnewline
26 & 29383 & 28901.0321678322 & 481.967832167833 \tabularnewline
27 & 36438 & 32666.4160839161 & 3771.58391608392 \tabularnewline
28 & 32034 & 29074.2160839161 & 2959.78391608392 \tabularnewline
29 & 22679 & 23982.4160839161 & -1303.41608391609 \tabularnewline
30 & 24319 & 24335.0160839161 & -16.0160839160838 \tabularnewline
31 & 18004 & 19484.8160839161 & -1480.81608391608 \tabularnewline
32 & 17537 & 17568.6160839161 & -31.6160839160839 \tabularnewline
33 & 20366 & 19841.8160839161 & 524.183916083916 \tabularnewline
34 & 22782 & 22449.4160839161 & 332.583916083916 \tabularnewline
35 & 19169 & 17790.2160839161 & 1378.78391608392 \tabularnewline
36 & 13807 & 11948.4160839161 & 1858.58391608392 \tabularnewline
37 & 29743 & 30736.4230769231 & -993.423076923071 \tabularnewline
38 & 25591 & 28496.8230769231 & -2905.82307692308 \tabularnewline
39 & 29096 & 32262.206993007 & -3166.20699300699 \tabularnewline
40 & 26482 & 28670.006993007 & -2188.00699300699 \tabularnewline
41 & 22405 & 23578.206993007 & -1173.20699300700 \tabularnewline
42 & 27044 & 23930.806993007 & 3113.19300699301 \tabularnewline
43 & 17970 & 19080.606993007 & -1110.60699300699 \tabularnewline
44 & 18730 & 17164.406993007 & 1565.59300699301 \tabularnewline
45 & 19684 & 19437.606993007 & 246.393006993007 \tabularnewline
46 & 19785 & 22045.206993007 & -2260.20699300699 \tabularnewline
47 & 18479 & 17386.006993007 & 1092.99300699301 \tabularnewline
48 & 10698 & 11544.206993007 & -846.206993006994 \tabularnewline
49 & 31956 & 30332.213986014 & 1623.78601398602 \tabularnewline
50 & 29506 & 28092.613986014 & 1413.38601398601 \tabularnewline
51 & 34506 & 31857.9979020979 & 2648.0020979021 \tabularnewline
52 & 27165 & 28265.7979020979 & -1100.79790209790 \tabularnewline
53 & 26736 & 23173.9979020979 & 3562.00209790210 \tabularnewline
54 & 23691 & 23526.5979020979 & 164.402097902097 \tabularnewline
55 & 18157 & 18676.3979020979 & -519.397902097904 \tabularnewline
56 & 17328 & 16760.1979020979 & 567.802097902097 \tabularnewline
57 & 18205 & 19033.3979020979 & -828.397902097903 \tabularnewline
58 & 20995 & 21640.9979020979 & -645.997902097904 \tabularnewline
59 & 17382 & 16981.7979020979 & 400.202097902097 \tabularnewline
60 & 9367 & 11139.9979020979 & -1772.99790209790 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3849&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]36845[/C][C]33140.9699300700[/C][C]3704.03006993005[/C][/ROW]
[ROW][C]2[/C][C]35338[/C][C]30901.3699300699[/C][C]4436.63006993007[/C][/ROW]
[ROW][C]3[/C][C]35022[/C][C]34666.7538461538[/C][C]355.246153846153[/C][/ROW]
[ROW][C]4[/C][C]34777[/C][C]31074.5538461538[/C][C]3702.44615384615[/C][/ROW]
[ROW][C]5[/C][C]26887[/C][C]25982.7538461538[/C][C]904.246153846162[/C][/ROW]
[ROW][C]6[/C][C]23970[/C][C]26335.3538461538[/C][C]-2365.35384615385[/C][/ROW]
[ROW][C]7[/C][C]22780[/C][C]21485.1538461538[/C][C]1294.84615384616[/C][/ROW]
[ROW][C]8[/C][C]17351[/C][C]19568.9538461538[/C][C]-2217.95384615385[/C][/ROW]
[ROW][C]9[/C][C]21382[/C][C]21842.1538461538[/C][C]-460.153846153844[/C][/ROW]
[ROW][C]10[/C][C]24561[/C][C]24449.7538461538[/C][C]111.246153846153[/C][/ROW]
[ROW][C]11[/C][C]17409[/C][C]19790.5538461538[/C][C]-2381.55384615385[/C][/ROW]
[ROW][C]12[/C][C]11514[/C][C]13948.7538461538[/C][C]-2434.75384615384[/C][/ROW]
[ROW][C]13[/C][C]31514[/C][C]32736.7608391608[/C][C]-1222.76083916084[/C][/ROW]
[ROW][C]14[/C][C]27071[/C][C]30497.1608391608[/C][C]-3426.16083916084[/C][/ROW]
[ROW][C]15[/C][C]29462[/C][C]33070.6251748252[/C][C]-3608.62517482517[/C][/ROW]
[ROW][C]16[/C][C]26105[/C][C]29478.4251748252[/C][C]-3373.42517482517[/C][/ROW]
[ROW][C]17[/C][C]22397[/C][C]24386.6251748252[/C][C]-1989.62517482518[/C][/ROW]
[ROW][C]18[/C][C]23843[/C][C]24739.2251748252[/C][C]-896.225174825174[/C][/ROW]
[ROW][C]19[/C][C]21705[/C][C]19889.0251748252[/C][C]1815.97482517483[/C][/ROW]
[ROW][C]20[/C][C]18089[/C][C]17972.8251748252[/C][C]116.174825174826[/C][/ROW]
[ROW][C]21[/C][C]20764[/C][C]20246.0251748252[/C][C]517.974825174825[/C][/ROW]
[ROW][C]22[/C][C]25316[/C][C]22853.6251748252[/C][C]2462.37482517483[/C][/ROW]
[ROW][C]23[/C][C]17704[/C][C]18194.4251748252[/C][C]-490.425174825174[/C][/ROW]
[ROW][C]24[/C][C]15548[/C][C]12352.6251748252[/C][C]3195.37482517482[/C][/ROW]
[ROW][C]25[/C][C]28029[/C][C]31140.6321678322[/C][C]-3111.63216783216[/C][/ROW]
[ROW][C]26[/C][C]29383[/C][C]28901.0321678322[/C][C]481.967832167833[/C][/ROW]
[ROW][C]27[/C][C]36438[/C][C]32666.4160839161[/C][C]3771.58391608392[/C][/ROW]
[ROW][C]28[/C][C]32034[/C][C]29074.2160839161[/C][C]2959.78391608392[/C][/ROW]
[ROW][C]29[/C][C]22679[/C][C]23982.4160839161[/C][C]-1303.41608391609[/C][/ROW]
[ROW][C]30[/C][C]24319[/C][C]24335.0160839161[/C][C]-16.0160839160838[/C][/ROW]
[ROW][C]31[/C][C]18004[/C][C]19484.8160839161[/C][C]-1480.81608391608[/C][/ROW]
[ROW][C]32[/C][C]17537[/C][C]17568.6160839161[/C][C]-31.6160839160839[/C][/ROW]
[ROW][C]33[/C][C]20366[/C][C]19841.8160839161[/C][C]524.183916083916[/C][/ROW]
[ROW][C]34[/C][C]22782[/C][C]22449.4160839161[/C][C]332.583916083916[/C][/ROW]
[ROW][C]35[/C][C]19169[/C][C]17790.2160839161[/C][C]1378.78391608392[/C][/ROW]
[ROW][C]36[/C][C]13807[/C][C]11948.4160839161[/C][C]1858.58391608392[/C][/ROW]
[ROW][C]37[/C][C]29743[/C][C]30736.4230769231[/C][C]-993.423076923071[/C][/ROW]
[ROW][C]38[/C][C]25591[/C][C]28496.8230769231[/C][C]-2905.82307692308[/C][/ROW]
[ROW][C]39[/C][C]29096[/C][C]32262.206993007[/C][C]-3166.20699300699[/C][/ROW]
[ROW][C]40[/C][C]26482[/C][C]28670.006993007[/C][C]-2188.00699300699[/C][/ROW]
[ROW][C]41[/C][C]22405[/C][C]23578.206993007[/C][C]-1173.20699300700[/C][/ROW]
[ROW][C]42[/C][C]27044[/C][C]23930.806993007[/C][C]3113.19300699301[/C][/ROW]
[ROW][C]43[/C][C]17970[/C][C]19080.606993007[/C][C]-1110.60699300699[/C][/ROW]
[ROW][C]44[/C][C]18730[/C][C]17164.406993007[/C][C]1565.59300699301[/C][/ROW]
[ROW][C]45[/C][C]19684[/C][C]19437.606993007[/C][C]246.393006993007[/C][/ROW]
[ROW][C]46[/C][C]19785[/C][C]22045.206993007[/C][C]-2260.20699300699[/C][/ROW]
[ROW][C]47[/C][C]18479[/C][C]17386.006993007[/C][C]1092.99300699301[/C][/ROW]
[ROW][C]48[/C][C]10698[/C][C]11544.206993007[/C][C]-846.206993006994[/C][/ROW]
[ROW][C]49[/C][C]31956[/C][C]30332.213986014[/C][C]1623.78601398602[/C][/ROW]
[ROW][C]50[/C][C]29506[/C][C]28092.613986014[/C][C]1413.38601398601[/C][/ROW]
[ROW][C]51[/C][C]34506[/C][C]31857.9979020979[/C][C]2648.0020979021[/C][/ROW]
[ROW][C]52[/C][C]27165[/C][C]28265.7979020979[/C][C]-1100.79790209790[/C][/ROW]
[ROW][C]53[/C][C]26736[/C][C]23173.9979020979[/C][C]3562.00209790210[/C][/ROW]
[ROW][C]54[/C][C]23691[/C][C]23526.5979020979[/C][C]164.402097902097[/C][/ROW]
[ROW][C]55[/C][C]18157[/C][C]18676.3979020979[/C][C]-519.397902097904[/C][/ROW]
[ROW][C]56[/C][C]17328[/C][C]16760.1979020979[/C][C]567.802097902097[/C][/ROW]
[ROW][C]57[/C][C]18205[/C][C]19033.3979020979[/C][C]-828.397902097903[/C][/ROW]
[ROW][C]58[/C][C]20995[/C][C]21640.9979020979[/C][C]-645.997902097904[/C][/ROW]
[ROW][C]59[/C][C]17382[/C][C]16981.7979020979[/C][C]400.202097902097[/C][/ROW]
[ROW][C]60[/C][C]9367[/C][C]11139.9979020979[/C][C]-1772.99790209790[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3849&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3849&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
13684533140.96993007003704.03006993005
23533830901.36993006994436.63006993007
33502234666.7538461538355.246153846153
43477731074.55384615383702.44615384615
52688725982.7538461538904.246153846162
62397026335.3538461538-2365.35384615385
72278021485.15384615381294.84615384616
81735119568.9538461538-2217.95384615385
92138221842.1538461538-460.153846153844
102456124449.7538461538111.246153846153
111740919790.5538461538-2381.55384615385
121151413948.7538461538-2434.75384615384
133151432736.7608391608-1222.76083916084
142707130497.1608391608-3426.16083916084
152946233070.6251748252-3608.62517482517
162610529478.4251748252-3373.42517482517
172239724386.6251748252-1989.62517482518
182384324739.2251748252-896.225174825174
192170519889.02517482521815.97482517483
201808917972.8251748252116.174825174826
212076420246.0251748252517.974825174825
222531622853.62517482522462.37482517483
231770418194.4251748252-490.425174825174
241554812352.62517482523195.37482517482
252802931140.6321678322-3111.63216783216
262938328901.0321678322481.967832167833
273643832666.41608391613771.58391608392
283203429074.21608391612959.78391608392
292267923982.4160839161-1303.41608391609
302431924335.0160839161-16.0160839160838
311800419484.8160839161-1480.81608391608
321753717568.6160839161-31.6160839160839
332036619841.8160839161524.183916083916
342278222449.4160839161332.583916083916
351916917790.21608391611378.78391608392
361380711948.41608391611858.58391608392
372974330736.4230769231-993.423076923071
382559128496.8230769231-2905.82307692308
392909632262.206993007-3166.20699300699
402648228670.006993007-2188.00699300699
412240523578.206993007-1173.20699300700
422704423930.8069930073113.19300699301
431797019080.606993007-1110.60699300699
441873017164.4069930071565.59300699301
451968419437.606993007246.393006993007
461978522045.206993007-2260.20699300699
471847917386.0069930071092.99300699301
481069811544.206993007-846.206993006994
493195630332.2139860141623.78601398602
502950628092.6139860141413.38601398601
513450631857.99790209792648.0020979021
522716528265.7979020979-1100.79790209790
532673623173.99790209793562.00209790210
542369123526.5979020979164.402097902097
551815718676.3979020979-519.397902097904
561732816760.1979020979567.802097902097
571820519033.3979020979-828.397902097903
582099521640.9979020979-645.997902097904
591738216981.7979020979400.202097902097
60936711139.9979020979-1772.99790209790



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')