Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSat, 05 Jan 2008 02:28:46 -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/2008/Jan/05/t1199525372rjk3507xmad6gkc.htm/, Retrieved Tue, 14 May 2024 07:34:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=7777, Retrieved Tue, 14 May 2024 07:34:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact285
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Paper_MRM_output1] [2008-01-05 09:28:46] [1ea0754dc57274996703e6220e342fe8] [Current]
Feedback Forum

Post a new message
Dataseries X:
36409	0	99,25
33163	0	99,36
34122	0	99,34
35225	0	99,36
28249	0	100,85
30374	0	100,86
26311	0	100,93
22069	0	101,25
23651	0	101,72
28628	0	101,54
23187	0	101,35
14727	0	101,42
43080	0	101,57
32519	0	101,76
39657	0	102,05
33614	0	102,05
28671	0	101,89
34243	0	102,06
27336	0	102
22916	0	102,14
24537	0	102,2
26128	0	102,3
22602	0	102,7
15744	0	102,77
41086	0	103,1
39690	0	103,13
43129	0	103,31
37863	0	103,52
35953	0	103,34
29133	0	103,53
24693	0	103,8
22205	0	103,9
21725	0	103,91
27192	0	104,21
21790	0	104,58
13253	0	104,89
37702	0	105,15
30364	0	105,24
32609	0	105,57
30212	0	105,62
29965	0	106,17
28352	0	106,27
25814	0	106,41
22414	0	106,94
20506	0	107,16
28806	0	107,32
22228	0	107,32
13971	0	107,35
36845	0	107,55
35338	0	107,87
35022	0	108,37
34777	0	108,38
26887	0	107,92
23970	0	108,03
22780	0	108,14
17351	0	108,3
21382	0	108,64
24561	0	108,66
17409	0	109,04
11514	0	109,03
31514	0	109,03
27071	0	109,54
29462	0	109,75
26105	0	109,83
22397	0	109,65
23843	0	109,82
21705	0	109,95
18089	0	110,12
20764	0	110,15
25316	0	110,21
17704	0	109,99
15548	0	110,14
28029	0	110,14
29383	0	110,81
36438	0	110,97
32034	0	110,99
22679	0	109,73
24319	0	109,81
18004	0	110,02
17537	0	110,18
20366	0	110,21
22782	0	110,25
19169	0	110,36
13807	0	110,51
29743	0	110,6
25591	0	110,95
29096	1	111,18
26482	1	111,19
22405	1	111,69
27044	1	111,7
17970	1	111,83
18730	1	111,77
19684	1	111,73
19785	1	112,01
18479	1	111,86
10698	1	112,04




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 28380.8213502977 + 146.756467981392X1[t] -99.076491194395X2[t] + 20927.9956352595M1[t] + 17121.1614515615M2[t] + 20504.2777304202M3[t] + 17682.5344169056M4[t] + 12874.1776472511M5[t] + 13469.7585407522M6[t] + 8975.19596407716M7[t] + 6157.44835932977M8[t] + 7660.49693002267M9[t] + 11569.2097498398M10[t] + 6575.30680474498M11[t] -76.1778619256771t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  28380.8213502977 +  146.756467981392X1[t] -99.076491194395X2[t] +  20927.9956352595M1[t] +  17121.1614515615M2[t] +  20504.2777304202M3[t] +  17682.5344169056M4[t] +  12874.1776472511M5[t] +  13469.7585407522M6[t] +  8975.19596407716M7[t] +  6157.44835932977M8[t] +  7660.49693002267M9[t] +  11569.2097498398M10[t] +  6575.30680474498M11[t] -76.1778619256771t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=7777&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  28380.8213502977 +  146.756467981392X1[t] -99.076491194395X2[t] +  20927.9956352595M1[t] +  17121.1614515615M2[t] +  20504.2777304202M3[t] +  17682.5344169056M4[t] +  12874.1776472511M5[t] +  13469.7585407522M6[t] +  8975.19596407716M7[t] +  6157.44835932977M8[t] +  7660.49693002267M9[t] +  11569.2097498398M10[t] +  6575.30680474498M11[t] -76.1778619256771t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=7777&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7777&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] = + 28380.8213502977 + 146.756467981392X1[t] -99.076491194395X2[t] + 20927.9956352595M1[t] + 17121.1614515615M2[t] + 20504.2777304202M3[t] + 17682.5344169056M4[t] + 12874.1776472511M5[t] + 13469.7585407522M6[t] + 8975.19596407716M7[t] + 6157.44835932977M8[t] + 7660.49693002267M9[t] + 11569.2097498398M10[t] + 6575.30680474498M11[t] -76.1778619256771t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)28380.821350297743551.7703410.65170.5164670.258234
X1146.7564679813921202.4380810.1220.9031620.451581
X2-99.076491194395436.907474-0.22680.8211760.410588
M120927.99563525951351.0587815.490100
M217121.16145156151351.13121812.671700
M320504.27773042021357.39174415.105600
M417682.53441690561352.58213213.073200
M512874.17764725111348.8424329.544600
M613469.75854075221347.4878199.996200
M78975.195964077161346.6663416.664800
M86157.448359329771346.9175364.57151.7e-059e-06
M97660.496930022671346.4848685.689300
M1011569.20974983981345.5359248.598200
M116575.306804744981344.9529984.88895e-063e-06
t-76.177861925677164.004436-1.19020.2374460.118723

\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) & 28380.8213502977 & 43551.770341 & 0.6517 & 0.516467 & 0.258234 \tabularnewline
X1 & 146.756467981392 & 1202.438081 & 0.122 & 0.903162 & 0.451581 \tabularnewline
X2 & -99.076491194395 & 436.907474 & -0.2268 & 0.821176 & 0.410588 \tabularnewline
M1 & 20927.9956352595 & 1351.05878 & 15.4901 & 0 & 0 \tabularnewline
M2 & 17121.1614515615 & 1351.131218 & 12.6717 & 0 & 0 \tabularnewline
M3 & 20504.2777304202 & 1357.391744 & 15.1056 & 0 & 0 \tabularnewline
M4 & 17682.5344169056 & 1352.582132 & 13.0732 & 0 & 0 \tabularnewline
M5 & 12874.1776472511 & 1348.842432 & 9.5446 & 0 & 0 \tabularnewline
M6 & 13469.7585407522 & 1347.487819 & 9.9962 & 0 & 0 \tabularnewline
M7 & 8975.19596407716 & 1346.666341 & 6.6648 & 0 & 0 \tabularnewline
M8 & 6157.44835932977 & 1346.917536 & 4.5715 & 1.7e-05 & 9e-06 \tabularnewline
M9 & 7660.49693002267 & 1346.484868 & 5.6893 & 0 & 0 \tabularnewline
M10 & 11569.2097498398 & 1345.535924 & 8.5982 & 0 & 0 \tabularnewline
M11 & 6575.30680474498 & 1344.952998 & 4.8889 & 5e-06 & 3e-06 \tabularnewline
t & -76.1778619256771 & 64.004436 & -1.1902 & 0.237446 & 0.118723 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=7777&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]28380.8213502977[/C][C]43551.770341[/C][C]0.6517[/C][C]0.516467[/C][C]0.258234[/C][/ROW]
[ROW][C]X1[/C][C]146.756467981392[/C][C]1202.438081[/C][C]0.122[/C][C]0.903162[/C][C]0.451581[/C][/ROW]
[ROW][C]X2[/C][C]-99.076491194395[/C][C]436.907474[/C][C]-0.2268[/C][C]0.821176[/C][C]0.410588[/C][/ROW]
[ROW][C]M1[/C][C]20927.9956352595[/C][C]1351.05878[/C][C]15.4901[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]17121.1614515615[/C][C]1351.131218[/C][C]12.6717[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]20504.2777304202[/C][C]1357.391744[/C][C]15.1056[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]17682.5344169056[/C][C]1352.582132[/C][C]13.0732[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]12874.1776472511[/C][C]1348.842432[/C][C]9.5446[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]13469.7585407522[/C][C]1347.487819[/C][C]9.9962[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]8975.19596407716[/C][C]1346.666341[/C][C]6.6648[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]6157.44835932977[/C][C]1346.917536[/C][C]4.5715[/C][C]1.7e-05[/C][C]9e-06[/C][/ROW]
[ROW][C]M9[/C][C]7660.49693002267[/C][C]1346.484868[/C][C]5.6893[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]11569.2097498398[/C][C]1345.535924[/C][C]8.5982[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]6575.30680474498[/C][C]1344.952998[/C][C]4.8889[/C][C]5e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]t[/C][C]-76.1778619256771[/C][C]64.004436[/C][C]-1.1902[/C][C]0.237446[/C][C]0.118723[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=7777&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7777&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)28380.821350297743551.7703410.65170.5164670.258234
X1146.7564679813921202.4380810.1220.9031620.451581
X2-99.076491194395436.907474-0.22680.8211760.410588
M120927.99563525951351.0587815.490100
M217121.16145156151351.13121812.671700
M320504.27773042021357.39174415.105600
M417682.53441690561352.58213213.073200
M512874.17764725111348.8424329.544600
M613469.75854075221347.4878199.996200
M78975.195964077161346.6663416.664800
M86157.448359329771346.9175364.57151.7e-059e-06
M97660.496930022671346.4848685.689300
M1011569.20974983981345.5359248.598200
M116575.306804744981344.9529984.88895e-063e-06
t-76.177861925677164.004436-1.19020.2374460.118723







Multiple Linear Regression - Regression Statistics
Multiple R0.940608885111395
R-squared0.8847450747505
Adjusted R-squared0.86482447038639
F-TEST (value)44.413565902873
F-TEST (DF numerator)14
F-TEST (DF denominator)81
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2689.71283989143
Sum Squared Residuals585998968.047221

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.940608885111395 \tabularnewline
R-squared & 0.8847450747505 \tabularnewline
Adjusted R-squared & 0.86482447038639 \tabularnewline
F-TEST (value) & 44.413565902873 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 81 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 2689.71283989143 \tabularnewline
Sum Squared Residuals & 585998968.047221 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=7777&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.940608885111395[/C][/ROW]
[ROW][C]R-squared[/C][C]0.8847450747505[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.86482447038639[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]44.413565902873[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]81[/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]2689.71283989143[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]585998968.047221[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=7777&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7777&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.940608885111395
R-squared0.8847450747505
Adjusted R-squared0.86482447038639
F-TEST (value)44.413565902873
F-TEST (DF numerator)14
F-TEST (DF denominator)81
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2689.71283989143
Sum Squared Residuals585998968.047221







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
13640939399.2973725877-2990.29737258767
23316335505.3869129328-2342.38691293282
33412238814.3068596897-4692.30685968966
43522535914.4041544255-689.404154425486
52824930882.2455509656-2633.24555096565
63037431400.6578176291-1026.65781762910
72631126822.9820246448-511.982024644789
82206923897.3520807895-1828.35208078953
92365125277.6568386954-1626.65683869537
102862829128.0255650018-500.025565001811
112318724076.7692913083-889.769291308256
121472717418.349270254-2691.34927025399
134308038255.30556990864824.69443009139
143251934353.4689909581-1834.46899095808
153965737631.67522544472025.32477455528
163361434733.7540500044-1119.75405000444
172867129865.0716570153-1194.07165701533
183424330367.63168508773875.3683149123
192733625802.83583595871533.16416404134
202291622895.039660518420.9603394816165
212453724315.9657798139221.034220186065
222612828138.5930885859-2010.59308858595
232260223028.8816850877-426.881685087702
241574416370.4616640334-626.461664033433
254108637189.58419527313896.41580472693
263969033303.59985491366386.40014508637
274312936592.70450343176536.29549656834
283786333673.97726484064189.02273515944
293595328807.27640167537145.72359832466
302913329307.8548999238-174.854899923814
312469324710.3638087006-17.3638087006296
322220521806.5306929081398.469307091878
332172523232.4106367634-1507.41063676339
342719227035.2226472965156.777352703471
352179021928.4835385341-138.483538534114
361325315246.2851595932-1993.28515959319
373770236072.34304521641629.65695478356
383036432180.4141153853-1816.41411538533
393260935454.6572902242-2845.65729022420
403021232551.7822902242-2339.78229022420
412996527612.75558848712352.24441151293
422835228122.2509709430229.749029056954
432581423537.63982357512276.36017642487
442241420591.20381656901822.79618343096
452050621996.2776972735-1490.27769727348
462880625812.96041657382993.03958342617
472222820742.87960955331485.12039044666
481397114088.4226481468-117.422648146849
493684534920.42512324181924.57487675824
503533831005.70860043594332.29139956405
513502234263.1087717718758.891228228228
523477731364.19683141953412.80316858045
532688726525.2373857888361.762614211246
542397027033.7420033328-3063.74200333279
552278022452.1031507007327.8968492993
561735119542.3254454365-2191.32544543653
572138220935.5101471977446.489852802344
582456124766.0635752652-205.063575265221
591740919658.3337015909-2249.33370159086
601151413007.8397998321-1493.83979983214
613151433859.6575731659-2345.65757316594
622707129926.1165170332-2855.11651703318
632946233212.2488708154-3750.24887081538
642610530306.4015760796-4201.40157607955
652239725439.7007129143-3042.70071291433
662384325942.2607409867-2099.26074098669
672170521358.6403585307346.35964146928
681808918447.8718883546-358.871888354608
692076419871.770302386892.22969761401
702531623698.36067080581617.63932919422
711770418650.0766918481-946.07669184806
721554811983.73055149823564.26944850176
732802932835.548324832-4806.54832483203
742938328886.1550301082496.844969891825
753643832177.24120845014260.7587915499
763203429277.33850318592756.66149681407
772267924517.6402505106-1838.64025051065
782431925029.1171627905-710.117162790511
791800420437.570661039-2433.57066103899
801753717527.79295577489.20704422518298
812036618951.69136980621414.30863019380
822278222780.26326804991.73673195011929
831916917699.28404699801469.71595300199
841380711032.93790664822774.06209335182
852974331875.8387957745-2132.83879577449
862559127958.1499782328-2367.14997823284
872909631389.0572701725-2293.05727017251
882648228490.1453298203-2008.14532982029
892240523556.0724526429-1151.07245264288
902704424074.48471930632969.51528069365
911797019490.8643368504-1520.86433685038
921873016602.88345964902127.11654035103
931968418033.71722806401650.28277193603
941978521838.510768421-2053.51076842099
951847916783.29143507971695.70856492034
961069810113.972999994584.027000005995

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 36409 & 39399.2973725877 & -2990.29737258767 \tabularnewline
2 & 33163 & 35505.3869129328 & -2342.38691293282 \tabularnewline
3 & 34122 & 38814.3068596897 & -4692.30685968966 \tabularnewline
4 & 35225 & 35914.4041544255 & -689.404154425486 \tabularnewline
5 & 28249 & 30882.2455509656 & -2633.24555096565 \tabularnewline
6 & 30374 & 31400.6578176291 & -1026.65781762910 \tabularnewline
7 & 26311 & 26822.9820246448 & -511.982024644789 \tabularnewline
8 & 22069 & 23897.3520807895 & -1828.35208078953 \tabularnewline
9 & 23651 & 25277.6568386954 & -1626.65683869537 \tabularnewline
10 & 28628 & 29128.0255650018 & -500.025565001811 \tabularnewline
11 & 23187 & 24076.7692913083 & -889.769291308256 \tabularnewline
12 & 14727 & 17418.349270254 & -2691.34927025399 \tabularnewline
13 & 43080 & 38255.3055699086 & 4824.69443009139 \tabularnewline
14 & 32519 & 34353.4689909581 & -1834.46899095808 \tabularnewline
15 & 39657 & 37631.6752254447 & 2025.32477455528 \tabularnewline
16 & 33614 & 34733.7540500044 & -1119.75405000444 \tabularnewline
17 & 28671 & 29865.0716570153 & -1194.07165701533 \tabularnewline
18 & 34243 & 30367.6316850877 & 3875.3683149123 \tabularnewline
19 & 27336 & 25802.8358359587 & 1533.16416404134 \tabularnewline
20 & 22916 & 22895.0396605184 & 20.9603394816165 \tabularnewline
21 & 24537 & 24315.9657798139 & 221.034220186065 \tabularnewline
22 & 26128 & 28138.5930885859 & -2010.59308858595 \tabularnewline
23 & 22602 & 23028.8816850877 & -426.881685087702 \tabularnewline
24 & 15744 & 16370.4616640334 & -626.461664033433 \tabularnewline
25 & 41086 & 37189.5841952731 & 3896.41580472693 \tabularnewline
26 & 39690 & 33303.5998549136 & 6386.40014508637 \tabularnewline
27 & 43129 & 36592.7045034317 & 6536.29549656834 \tabularnewline
28 & 37863 & 33673.9772648406 & 4189.02273515944 \tabularnewline
29 & 35953 & 28807.2764016753 & 7145.72359832466 \tabularnewline
30 & 29133 & 29307.8548999238 & -174.854899923814 \tabularnewline
31 & 24693 & 24710.3638087006 & -17.3638087006296 \tabularnewline
32 & 22205 & 21806.5306929081 & 398.469307091878 \tabularnewline
33 & 21725 & 23232.4106367634 & -1507.41063676339 \tabularnewline
34 & 27192 & 27035.2226472965 & 156.777352703471 \tabularnewline
35 & 21790 & 21928.4835385341 & -138.483538534114 \tabularnewline
36 & 13253 & 15246.2851595932 & -1993.28515959319 \tabularnewline
37 & 37702 & 36072.3430452164 & 1629.65695478356 \tabularnewline
38 & 30364 & 32180.4141153853 & -1816.41411538533 \tabularnewline
39 & 32609 & 35454.6572902242 & -2845.65729022420 \tabularnewline
40 & 30212 & 32551.7822902242 & -2339.78229022420 \tabularnewline
41 & 29965 & 27612.7555884871 & 2352.24441151293 \tabularnewline
42 & 28352 & 28122.2509709430 & 229.749029056954 \tabularnewline
43 & 25814 & 23537.6398235751 & 2276.36017642487 \tabularnewline
44 & 22414 & 20591.2038165690 & 1822.79618343096 \tabularnewline
45 & 20506 & 21996.2776972735 & -1490.27769727348 \tabularnewline
46 & 28806 & 25812.9604165738 & 2993.03958342617 \tabularnewline
47 & 22228 & 20742.8796095533 & 1485.12039044666 \tabularnewline
48 & 13971 & 14088.4226481468 & -117.422648146849 \tabularnewline
49 & 36845 & 34920.4251232418 & 1924.57487675824 \tabularnewline
50 & 35338 & 31005.7086004359 & 4332.29139956405 \tabularnewline
51 & 35022 & 34263.1087717718 & 758.891228228228 \tabularnewline
52 & 34777 & 31364.1968314195 & 3412.80316858045 \tabularnewline
53 & 26887 & 26525.2373857888 & 361.762614211246 \tabularnewline
54 & 23970 & 27033.7420033328 & -3063.74200333279 \tabularnewline
55 & 22780 & 22452.1031507007 & 327.8968492993 \tabularnewline
56 & 17351 & 19542.3254454365 & -2191.32544543653 \tabularnewline
57 & 21382 & 20935.5101471977 & 446.489852802344 \tabularnewline
58 & 24561 & 24766.0635752652 & -205.063575265221 \tabularnewline
59 & 17409 & 19658.3337015909 & -2249.33370159086 \tabularnewline
60 & 11514 & 13007.8397998321 & -1493.83979983214 \tabularnewline
61 & 31514 & 33859.6575731659 & -2345.65757316594 \tabularnewline
62 & 27071 & 29926.1165170332 & -2855.11651703318 \tabularnewline
63 & 29462 & 33212.2488708154 & -3750.24887081538 \tabularnewline
64 & 26105 & 30306.4015760796 & -4201.40157607955 \tabularnewline
65 & 22397 & 25439.7007129143 & -3042.70071291433 \tabularnewline
66 & 23843 & 25942.2607409867 & -2099.26074098669 \tabularnewline
67 & 21705 & 21358.6403585307 & 346.35964146928 \tabularnewline
68 & 18089 & 18447.8718883546 & -358.871888354608 \tabularnewline
69 & 20764 & 19871.770302386 & 892.22969761401 \tabularnewline
70 & 25316 & 23698.3606708058 & 1617.63932919422 \tabularnewline
71 & 17704 & 18650.0766918481 & -946.07669184806 \tabularnewline
72 & 15548 & 11983.7305514982 & 3564.26944850176 \tabularnewline
73 & 28029 & 32835.548324832 & -4806.54832483203 \tabularnewline
74 & 29383 & 28886.1550301082 & 496.844969891825 \tabularnewline
75 & 36438 & 32177.2412084501 & 4260.7587915499 \tabularnewline
76 & 32034 & 29277.3385031859 & 2756.66149681407 \tabularnewline
77 & 22679 & 24517.6402505106 & -1838.64025051065 \tabularnewline
78 & 24319 & 25029.1171627905 & -710.117162790511 \tabularnewline
79 & 18004 & 20437.570661039 & -2433.57066103899 \tabularnewline
80 & 17537 & 17527.7929557748 & 9.20704422518298 \tabularnewline
81 & 20366 & 18951.6913698062 & 1414.30863019380 \tabularnewline
82 & 22782 & 22780.2632680499 & 1.73673195011929 \tabularnewline
83 & 19169 & 17699.2840469980 & 1469.71595300199 \tabularnewline
84 & 13807 & 11032.9379066482 & 2774.06209335182 \tabularnewline
85 & 29743 & 31875.8387957745 & -2132.83879577449 \tabularnewline
86 & 25591 & 27958.1499782328 & -2367.14997823284 \tabularnewline
87 & 29096 & 31389.0572701725 & -2293.05727017251 \tabularnewline
88 & 26482 & 28490.1453298203 & -2008.14532982029 \tabularnewline
89 & 22405 & 23556.0724526429 & -1151.07245264288 \tabularnewline
90 & 27044 & 24074.4847193063 & 2969.51528069365 \tabularnewline
91 & 17970 & 19490.8643368504 & -1520.86433685038 \tabularnewline
92 & 18730 & 16602.8834596490 & 2127.11654035103 \tabularnewline
93 & 19684 & 18033.7172280640 & 1650.28277193603 \tabularnewline
94 & 19785 & 21838.510768421 & -2053.51076842099 \tabularnewline
95 & 18479 & 16783.2914350797 & 1695.70856492034 \tabularnewline
96 & 10698 & 10113.972999994 & 584.027000005995 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=7777&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]36409[/C][C]39399.2973725877[/C][C]-2990.29737258767[/C][/ROW]
[ROW][C]2[/C][C]33163[/C][C]35505.3869129328[/C][C]-2342.38691293282[/C][/ROW]
[ROW][C]3[/C][C]34122[/C][C]38814.3068596897[/C][C]-4692.30685968966[/C][/ROW]
[ROW][C]4[/C][C]35225[/C][C]35914.4041544255[/C][C]-689.404154425486[/C][/ROW]
[ROW][C]5[/C][C]28249[/C][C]30882.2455509656[/C][C]-2633.24555096565[/C][/ROW]
[ROW][C]6[/C][C]30374[/C][C]31400.6578176291[/C][C]-1026.65781762910[/C][/ROW]
[ROW][C]7[/C][C]26311[/C][C]26822.9820246448[/C][C]-511.982024644789[/C][/ROW]
[ROW][C]8[/C][C]22069[/C][C]23897.3520807895[/C][C]-1828.35208078953[/C][/ROW]
[ROW][C]9[/C][C]23651[/C][C]25277.6568386954[/C][C]-1626.65683869537[/C][/ROW]
[ROW][C]10[/C][C]28628[/C][C]29128.0255650018[/C][C]-500.025565001811[/C][/ROW]
[ROW][C]11[/C][C]23187[/C][C]24076.7692913083[/C][C]-889.769291308256[/C][/ROW]
[ROW][C]12[/C][C]14727[/C][C]17418.349270254[/C][C]-2691.34927025399[/C][/ROW]
[ROW][C]13[/C][C]43080[/C][C]38255.3055699086[/C][C]4824.69443009139[/C][/ROW]
[ROW][C]14[/C][C]32519[/C][C]34353.4689909581[/C][C]-1834.46899095808[/C][/ROW]
[ROW][C]15[/C][C]39657[/C][C]37631.6752254447[/C][C]2025.32477455528[/C][/ROW]
[ROW][C]16[/C][C]33614[/C][C]34733.7540500044[/C][C]-1119.75405000444[/C][/ROW]
[ROW][C]17[/C][C]28671[/C][C]29865.0716570153[/C][C]-1194.07165701533[/C][/ROW]
[ROW][C]18[/C][C]34243[/C][C]30367.6316850877[/C][C]3875.3683149123[/C][/ROW]
[ROW][C]19[/C][C]27336[/C][C]25802.8358359587[/C][C]1533.16416404134[/C][/ROW]
[ROW][C]20[/C][C]22916[/C][C]22895.0396605184[/C][C]20.9603394816165[/C][/ROW]
[ROW][C]21[/C][C]24537[/C][C]24315.9657798139[/C][C]221.034220186065[/C][/ROW]
[ROW][C]22[/C][C]26128[/C][C]28138.5930885859[/C][C]-2010.59308858595[/C][/ROW]
[ROW][C]23[/C][C]22602[/C][C]23028.8816850877[/C][C]-426.881685087702[/C][/ROW]
[ROW][C]24[/C][C]15744[/C][C]16370.4616640334[/C][C]-626.461664033433[/C][/ROW]
[ROW][C]25[/C][C]41086[/C][C]37189.5841952731[/C][C]3896.41580472693[/C][/ROW]
[ROW][C]26[/C][C]39690[/C][C]33303.5998549136[/C][C]6386.40014508637[/C][/ROW]
[ROW][C]27[/C][C]43129[/C][C]36592.7045034317[/C][C]6536.29549656834[/C][/ROW]
[ROW][C]28[/C][C]37863[/C][C]33673.9772648406[/C][C]4189.02273515944[/C][/ROW]
[ROW][C]29[/C][C]35953[/C][C]28807.2764016753[/C][C]7145.72359832466[/C][/ROW]
[ROW][C]30[/C][C]29133[/C][C]29307.8548999238[/C][C]-174.854899923814[/C][/ROW]
[ROW][C]31[/C][C]24693[/C][C]24710.3638087006[/C][C]-17.3638087006296[/C][/ROW]
[ROW][C]32[/C][C]22205[/C][C]21806.5306929081[/C][C]398.469307091878[/C][/ROW]
[ROW][C]33[/C][C]21725[/C][C]23232.4106367634[/C][C]-1507.41063676339[/C][/ROW]
[ROW][C]34[/C][C]27192[/C][C]27035.2226472965[/C][C]156.777352703471[/C][/ROW]
[ROW][C]35[/C][C]21790[/C][C]21928.4835385341[/C][C]-138.483538534114[/C][/ROW]
[ROW][C]36[/C][C]13253[/C][C]15246.2851595932[/C][C]-1993.28515959319[/C][/ROW]
[ROW][C]37[/C][C]37702[/C][C]36072.3430452164[/C][C]1629.65695478356[/C][/ROW]
[ROW][C]38[/C][C]30364[/C][C]32180.4141153853[/C][C]-1816.41411538533[/C][/ROW]
[ROW][C]39[/C][C]32609[/C][C]35454.6572902242[/C][C]-2845.65729022420[/C][/ROW]
[ROW][C]40[/C][C]30212[/C][C]32551.7822902242[/C][C]-2339.78229022420[/C][/ROW]
[ROW][C]41[/C][C]29965[/C][C]27612.7555884871[/C][C]2352.24441151293[/C][/ROW]
[ROW][C]42[/C][C]28352[/C][C]28122.2509709430[/C][C]229.749029056954[/C][/ROW]
[ROW][C]43[/C][C]25814[/C][C]23537.6398235751[/C][C]2276.36017642487[/C][/ROW]
[ROW][C]44[/C][C]22414[/C][C]20591.2038165690[/C][C]1822.79618343096[/C][/ROW]
[ROW][C]45[/C][C]20506[/C][C]21996.2776972735[/C][C]-1490.27769727348[/C][/ROW]
[ROW][C]46[/C][C]28806[/C][C]25812.9604165738[/C][C]2993.03958342617[/C][/ROW]
[ROW][C]47[/C][C]22228[/C][C]20742.8796095533[/C][C]1485.12039044666[/C][/ROW]
[ROW][C]48[/C][C]13971[/C][C]14088.4226481468[/C][C]-117.422648146849[/C][/ROW]
[ROW][C]49[/C][C]36845[/C][C]34920.4251232418[/C][C]1924.57487675824[/C][/ROW]
[ROW][C]50[/C][C]35338[/C][C]31005.7086004359[/C][C]4332.29139956405[/C][/ROW]
[ROW][C]51[/C][C]35022[/C][C]34263.1087717718[/C][C]758.891228228228[/C][/ROW]
[ROW][C]52[/C][C]34777[/C][C]31364.1968314195[/C][C]3412.80316858045[/C][/ROW]
[ROW][C]53[/C][C]26887[/C][C]26525.2373857888[/C][C]361.762614211246[/C][/ROW]
[ROW][C]54[/C][C]23970[/C][C]27033.7420033328[/C][C]-3063.74200333279[/C][/ROW]
[ROW][C]55[/C][C]22780[/C][C]22452.1031507007[/C][C]327.8968492993[/C][/ROW]
[ROW][C]56[/C][C]17351[/C][C]19542.3254454365[/C][C]-2191.32544543653[/C][/ROW]
[ROW][C]57[/C][C]21382[/C][C]20935.5101471977[/C][C]446.489852802344[/C][/ROW]
[ROW][C]58[/C][C]24561[/C][C]24766.0635752652[/C][C]-205.063575265221[/C][/ROW]
[ROW][C]59[/C][C]17409[/C][C]19658.3337015909[/C][C]-2249.33370159086[/C][/ROW]
[ROW][C]60[/C][C]11514[/C][C]13007.8397998321[/C][C]-1493.83979983214[/C][/ROW]
[ROW][C]61[/C][C]31514[/C][C]33859.6575731659[/C][C]-2345.65757316594[/C][/ROW]
[ROW][C]62[/C][C]27071[/C][C]29926.1165170332[/C][C]-2855.11651703318[/C][/ROW]
[ROW][C]63[/C][C]29462[/C][C]33212.2488708154[/C][C]-3750.24887081538[/C][/ROW]
[ROW][C]64[/C][C]26105[/C][C]30306.4015760796[/C][C]-4201.40157607955[/C][/ROW]
[ROW][C]65[/C][C]22397[/C][C]25439.7007129143[/C][C]-3042.70071291433[/C][/ROW]
[ROW][C]66[/C][C]23843[/C][C]25942.2607409867[/C][C]-2099.26074098669[/C][/ROW]
[ROW][C]67[/C][C]21705[/C][C]21358.6403585307[/C][C]346.35964146928[/C][/ROW]
[ROW][C]68[/C][C]18089[/C][C]18447.8718883546[/C][C]-358.871888354608[/C][/ROW]
[ROW][C]69[/C][C]20764[/C][C]19871.770302386[/C][C]892.22969761401[/C][/ROW]
[ROW][C]70[/C][C]25316[/C][C]23698.3606708058[/C][C]1617.63932919422[/C][/ROW]
[ROW][C]71[/C][C]17704[/C][C]18650.0766918481[/C][C]-946.07669184806[/C][/ROW]
[ROW][C]72[/C][C]15548[/C][C]11983.7305514982[/C][C]3564.26944850176[/C][/ROW]
[ROW][C]73[/C][C]28029[/C][C]32835.548324832[/C][C]-4806.54832483203[/C][/ROW]
[ROW][C]74[/C][C]29383[/C][C]28886.1550301082[/C][C]496.844969891825[/C][/ROW]
[ROW][C]75[/C][C]36438[/C][C]32177.2412084501[/C][C]4260.7587915499[/C][/ROW]
[ROW][C]76[/C][C]32034[/C][C]29277.3385031859[/C][C]2756.66149681407[/C][/ROW]
[ROW][C]77[/C][C]22679[/C][C]24517.6402505106[/C][C]-1838.64025051065[/C][/ROW]
[ROW][C]78[/C][C]24319[/C][C]25029.1171627905[/C][C]-710.117162790511[/C][/ROW]
[ROW][C]79[/C][C]18004[/C][C]20437.570661039[/C][C]-2433.57066103899[/C][/ROW]
[ROW][C]80[/C][C]17537[/C][C]17527.7929557748[/C][C]9.20704422518298[/C][/ROW]
[ROW][C]81[/C][C]20366[/C][C]18951.6913698062[/C][C]1414.30863019380[/C][/ROW]
[ROW][C]82[/C][C]22782[/C][C]22780.2632680499[/C][C]1.73673195011929[/C][/ROW]
[ROW][C]83[/C][C]19169[/C][C]17699.2840469980[/C][C]1469.71595300199[/C][/ROW]
[ROW][C]84[/C][C]13807[/C][C]11032.9379066482[/C][C]2774.06209335182[/C][/ROW]
[ROW][C]85[/C][C]29743[/C][C]31875.8387957745[/C][C]-2132.83879577449[/C][/ROW]
[ROW][C]86[/C][C]25591[/C][C]27958.1499782328[/C][C]-2367.14997823284[/C][/ROW]
[ROW][C]87[/C][C]29096[/C][C]31389.0572701725[/C][C]-2293.05727017251[/C][/ROW]
[ROW][C]88[/C][C]26482[/C][C]28490.1453298203[/C][C]-2008.14532982029[/C][/ROW]
[ROW][C]89[/C][C]22405[/C][C]23556.0724526429[/C][C]-1151.07245264288[/C][/ROW]
[ROW][C]90[/C][C]27044[/C][C]24074.4847193063[/C][C]2969.51528069365[/C][/ROW]
[ROW][C]91[/C][C]17970[/C][C]19490.8643368504[/C][C]-1520.86433685038[/C][/ROW]
[ROW][C]92[/C][C]18730[/C][C]16602.8834596490[/C][C]2127.11654035103[/C][/ROW]
[ROW][C]93[/C][C]19684[/C][C]18033.7172280640[/C][C]1650.28277193603[/C][/ROW]
[ROW][C]94[/C][C]19785[/C][C]21838.510768421[/C][C]-2053.51076842099[/C][/ROW]
[ROW][C]95[/C][C]18479[/C][C]16783.2914350797[/C][C]1695.70856492034[/C][/ROW]
[ROW][C]96[/C][C]10698[/C][C]10113.972999994[/C][C]584.027000005995[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=7777&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7777&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
13640939399.2973725877-2990.29737258767
23316335505.3869129328-2342.38691293282
33412238814.3068596897-4692.30685968966
43522535914.4041544255-689.404154425486
52824930882.2455509656-2633.24555096565
63037431400.6578176291-1026.65781762910
72631126822.9820246448-511.982024644789
82206923897.3520807895-1828.35208078953
92365125277.6568386954-1626.65683869537
102862829128.0255650018-500.025565001811
112318724076.7692913083-889.769291308256
121472717418.349270254-2691.34927025399
134308038255.30556990864824.69443009139
143251934353.4689909581-1834.46899095808
153965737631.67522544472025.32477455528
163361434733.7540500044-1119.75405000444
172867129865.0716570153-1194.07165701533
183424330367.63168508773875.3683149123
192733625802.83583595871533.16416404134
202291622895.039660518420.9603394816165
212453724315.9657798139221.034220186065
222612828138.5930885859-2010.59308858595
232260223028.8816850877-426.881685087702
241574416370.4616640334-626.461664033433
254108637189.58419527313896.41580472693
263969033303.59985491366386.40014508637
274312936592.70450343176536.29549656834
283786333673.97726484064189.02273515944
293595328807.27640167537145.72359832466
302913329307.8548999238-174.854899923814
312469324710.3638087006-17.3638087006296
322220521806.5306929081398.469307091878
332172523232.4106367634-1507.41063676339
342719227035.2226472965156.777352703471
352179021928.4835385341-138.483538534114
361325315246.2851595932-1993.28515959319
373770236072.34304521641629.65695478356
383036432180.4141153853-1816.41411538533
393260935454.6572902242-2845.65729022420
403021232551.7822902242-2339.78229022420
412996527612.75558848712352.24441151293
422835228122.2509709430229.749029056954
432581423537.63982357512276.36017642487
442241420591.20381656901822.79618343096
452050621996.2776972735-1490.27769727348
462880625812.96041657382993.03958342617
472222820742.87960955331485.12039044666
481397114088.4226481468-117.422648146849
493684534920.42512324181924.57487675824
503533831005.70860043594332.29139956405
513502234263.1087717718758.891228228228
523477731364.19683141953412.80316858045
532688726525.2373857888361.762614211246
542397027033.7420033328-3063.74200333279
552278022452.1031507007327.8968492993
561735119542.3254454365-2191.32544543653
572138220935.5101471977446.489852802344
582456124766.0635752652-205.063575265221
591740919658.3337015909-2249.33370159086
601151413007.8397998321-1493.83979983214
613151433859.6575731659-2345.65757316594
622707129926.1165170332-2855.11651703318
632946233212.2488708154-3750.24887081538
642610530306.4015760796-4201.40157607955
652239725439.7007129143-3042.70071291433
662384325942.2607409867-2099.26074098669
672170521358.6403585307346.35964146928
681808918447.8718883546-358.871888354608
692076419871.770302386892.22969761401
702531623698.36067080581617.63932919422
711770418650.0766918481-946.07669184806
721554811983.73055149823564.26944850176
732802932835.548324832-4806.54832483203
742938328886.1550301082496.844969891825
753643832177.24120845014260.7587915499
763203429277.33850318592756.66149681407
772267924517.6402505106-1838.64025051065
782431925029.1171627905-710.117162790511
791800420437.570661039-2433.57066103899
801753717527.79295577489.20704422518298
812036618951.69136980621414.30863019380
822278222780.26326804991.73673195011929
831916917699.28404699801469.71595300199
841380711032.93790664822774.06209335182
852974331875.8387957745-2132.83879577449
862559127958.1499782328-2367.14997823284
872909631389.0572701725-2293.05727017251
882648228490.1453298203-2008.14532982029
892240523556.0724526429-1151.07245264288
902704424074.48471930632969.51528069365
911797019490.8643368504-1520.86433685038
921873016602.88345964902127.11654035103
931968418033.71722806401650.28277193603
941978521838.510768421-2053.51076842099
951847916783.29143507971695.70856492034
961069810113.972999994584.027000005995



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