Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 13 Dec 2007 02:11:20 -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/13/t11975362015k4of08fba2bghj.htm/, Retrieved Sun, 05 May 2024 16:15:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=3324, Retrieved Sun, 05 May 2024 16:15:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsbridome
Estimated Impact217
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [paper w1] [2007-12-13 09:11:20] [9cd804c1ac16035a4cb2da1c6dfdb61e] [Current]
Feedback Forum

Post a new message
Dataseries X:
540	0
522	0
526	0
527	0
516	0
503	0
489	0
479	0
475	0
524	0
552	0
532	0
511	0
492	0
492	0
493	0
481	0
462	0
457	0
442	0
439	0
488	0
521	0
501	0
485	0
464	0
460	0
467	0
460	0
448	0
443	0
436	0
431	0
484	0
510	0
513	0
503	0
471	0
471	0
476	0
475	0
470	0
461	0
455	0
456	0
517	0
525	0
523	0
519	0
509	0
512	0
519	0
517	0
510	0
509	0
501	0
507	0
569	0
580	0
578	0
565	0
547	0
555	0
562	1
561	1
555	1
544	1
537	1
543	1
594	1
611	1
613	1
611	1
594	1
595	1
591	1
589	1
584	1
573	1
567	1
569	1
621	1
629	1
628	1
612	1
595	1
597	1
593	1
590	1
580	1
574	1
573	1
573	1
620	1
626	1
620	1
588	1
566	1
557	1
561	1
549	1
532	1
526	1
511	1
499	1
555	1




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 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 & 7 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=3324&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]7 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=3324&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3324&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 time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Multiple Linear Regression - Estimated Regression Equation
y[t] = + 525.754197271773 + 73.3752360965372x[t] -11.2732457930125M1[t] -30.7960252224943M2[t] -30.4299157630873M3[t] -36.1054992032956M4[t] -41.9616119661109M5[t] -52.595502506704M6[t] -60.3405041584082M7[t] -68.8632835878901M8[t] -70.0527296840387M9[t] -16.908842446854M10[t] + 5.93944609614861M11[t] + 0.189446096148616t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  525.754197271773 +  73.3752360965372x[t] -11.2732457930125M1[t] -30.7960252224943M2[t] -30.4299157630873M3[t] -36.1054992032956M4[t] -41.9616119661109M5[t] -52.595502506704M6[t] -60.3405041584082M7[t] -68.8632835878901M8[t] -70.0527296840387M9[t] -16.908842446854M10[t] +  5.93944609614861M11[t] +  0.189446096148616t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3324&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  525.754197271773 +  73.3752360965372x[t] -11.2732457930125M1[t] -30.7960252224943M2[t] -30.4299157630873M3[t] -36.1054992032956M4[t] -41.9616119661109M5[t] -52.595502506704M6[t] -60.3405041584082M7[t] -68.8632835878901M8[t] -70.0527296840387M9[t] -16.908842446854M10[t] +  5.93944609614861M11[t] +  0.189446096148616t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3324&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3324&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] = + 525.754197271773 + 73.3752360965372x[t] -11.2732457930125M1[t] -30.7960252224943M2[t] -30.4299157630873M3[t] -36.1054992032956M4[t] -41.9616119661109M5[t] -52.595502506704M6[t] -60.3405041584082M7[t] -68.8632835878901M8[t] -70.0527296840387M9[t] -16.908842446854M10[t] + 5.93944609614861M11[t] + 0.189446096148616t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)525.75419727177310.65391249.348500
x73.37523609653729.6935187.569500
M1-11.273245793012512.441403-0.90610.3672460.183623
M2-30.796025222494312.436965-2.47620.0151090.007554
M3-30.429915763087312.434466-2.44720.0162950.008147
M4-36.105499203295612.468438-2.89580.0047250.002363
M5-41.961611966110912.458389-3.36810.0011070.000553
M6-52.59550250670412.45027-4.22445.6e-052.8e-05
M7-60.340504158408212.444087-4.84895e-063e-06
M8-68.863283587890112.439841-5.535700
M9-70.052729684038712.437535-5.632400
M10-16.90884244685412.437169-1.35950.1772980.088649
M115.9394460961486112.7934260.46430.643560.32178
t0.1894460961486160.1553751.21930.2258530.112926

\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) & 525.754197271773 & 10.653912 & 49.3485 & 0 & 0 \tabularnewline
x & 73.3752360965372 & 9.693518 & 7.5695 & 0 & 0 \tabularnewline
M1 & -11.2732457930125 & 12.441403 & -0.9061 & 0.367246 & 0.183623 \tabularnewline
M2 & -30.7960252224943 & 12.436965 & -2.4762 & 0.015109 & 0.007554 \tabularnewline
M3 & -30.4299157630873 & 12.434466 & -2.4472 & 0.016295 & 0.008147 \tabularnewline
M4 & -36.1054992032956 & 12.468438 & -2.8958 & 0.004725 & 0.002363 \tabularnewline
M5 & -41.9616119661109 & 12.458389 & -3.3681 & 0.001107 & 0.000553 \tabularnewline
M6 & -52.595502506704 & 12.45027 & -4.2244 & 5.6e-05 & 2.8e-05 \tabularnewline
M7 & -60.3405041584082 & 12.444087 & -4.8489 & 5e-06 & 3e-06 \tabularnewline
M8 & -68.8632835878901 & 12.439841 & -5.5357 & 0 & 0 \tabularnewline
M9 & -70.0527296840387 & 12.437535 & -5.6324 & 0 & 0 \tabularnewline
M10 & -16.908842446854 & 12.437169 & -1.3595 & 0.177298 & 0.088649 \tabularnewline
M11 & 5.93944609614861 & 12.793426 & 0.4643 & 0.64356 & 0.32178 \tabularnewline
t & 0.189446096148616 & 0.155375 & 1.2193 & 0.225853 & 0.112926 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3324&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]525.754197271773[/C][C]10.653912[/C][C]49.3485[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]73.3752360965372[/C][C]9.693518[/C][C]7.5695[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-11.2732457930125[/C][C]12.441403[/C][C]-0.9061[/C][C]0.367246[/C][C]0.183623[/C][/ROW]
[ROW][C]M2[/C][C]-30.7960252224943[/C][C]12.436965[/C][C]-2.4762[/C][C]0.015109[/C][C]0.007554[/C][/ROW]
[ROW][C]M3[/C][C]-30.4299157630873[/C][C]12.434466[/C][C]-2.4472[/C][C]0.016295[/C][C]0.008147[/C][/ROW]
[ROW][C]M4[/C][C]-36.1054992032956[/C][C]12.468438[/C][C]-2.8958[/C][C]0.004725[/C][C]0.002363[/C][/ROW]
[ROW][C]M5[/C][C]-41.9616119661109[/C][C]12.458389[/C][C]-3.3681[/C][C]0.001107[/C][C]0.000553[/C][/ROW]
[ROW][C]M6[/C][C]-52.595502506704[/C][C]12.45027[/C][C]-4.2244[/C][C]5.6e-05[/C][C]2.8e-05[/C][/ROW]
[ROW][C]M7[/C][C]-60.3405041584082[/C][C]12.444087[/C][C]-4.8489[/C][C]5e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M8[/C][C]-68.8632835878901[/C][C]12.439841[/C][C]-5.5357[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-70.0527296840387[/C][C]12.437535[/C][C]-5.6324[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-16.908842446854[/C][C]12.437169[/C][C]-1.3595[/C][C]0.177298[/C][C]0.088649[/C][/ROW]
[ROW][C]M11[/C][C]5.93944609614861[/C][C]12.793426[/C][C]0.4643[/C][C]0.64356[/C][C]0.32178[/C][/ROW]
[ROW][C]t[/C][C]0.189446096148616[/C][C]0.155375[/C][C]1.2193[/C][C]0.225853[/C][C]0.112926[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3324&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3324&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)525.75419727177310.65391249.348500
x73.37523609653729.6935187.569500
M1-11.273245793012512.441403-0.90610.3672460.183623
M2-30.796025222494312.436965-2.47620.0151090.007554
M3-30.429915763087312.434466-2.44720.0162950.008147
M4-36.105499203295612.468438-2.89580.0047250.002363
M5-41.961611966110912.458389-3.36810.0011070.000553
M6-52.59550250670412.45027-4.22445.6e-052.8e-05
M7-60.340504158408212.444087-4.84895e-063e-06
M8-68.863283587890112.439841-5.535700
M9-70.052729684038712.437535-5.632400
M10-16.90884244685412.437169-1.35950.1772980.088649
M115.9394460961486112.7934260.46430.643560.32178
t0.1894460961486160.1553751.21930.2258530.112926







Multiple Linear Regression - Regression Statistics
Multiple R0.889690607068077
R-squared0.791549376305164
Adjusted R-squared0.762094396870024
F-TEST (value)26.8731939890898
F-TEST (DF numerator)13
F-TEST (DF denominator)92
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation25.5849656968537
Sum Squared Residuals60222.3232132447

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.889690607068077 \tabularnewline
R-squared & 0.791549376305164 \tabularnewline
Adjusted R-squared & 0.762094396870024 \tabularnewline
F-TEST (value) & 26.8731939890898 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 92 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 25.5849656968537 \tabularnewline
Sum Squared Residuals & 60222.3232132447 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3324&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.889690607068077[/C][/ROW]
[ROW][C]R-squared[/C][C]0.791549376305164[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.762094396870024[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]26.8731939890898[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]92[/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]25.5849656968537[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]60222.3232132447[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3324&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3324&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.889690607068077
R-squared0.791549376305164
Adjusted R-squared0.762094396870024
F-TEST (value)26.8731939890898
F-TEST (DF numerator)13
F-TEST (DF denominator)92
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation25.5849656968537
Sum Squared Residuals60222.3232132447







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1540514.67039757491125.3296024250892
2522495.33706424157626.6629357584237
3526495.89261979713230.1073802028682
4527490.40648245307236.5935175469279
5516484.73981578640531.2601842135945
6503474.29537134196128.7046286580390
7489466.73981578640522.2601842135946
8479458.40648245307220.5935175469279
9475457.40648245307217.5935175469279
10524510.73981578640513.2601842135945
11552533.77755042555718.2224495744433
12532528.0275504255573.97244957444331
13511516.943750728693-5.94375072869284
14492497.61041739536-5.61041739535965
15492498.165972950915-6.16597295091521
16493492.6798356068560.320164393144487
17481487.013168940189-6.01316894018885
18462476.568724495744-14.5687244957444
19457469.013168940189-12.0131689401889
20442460.679835606856-18.6798356068555
21439459.679835606856-20.6798356068555
22488513.013168940189-25.0131689401889
23521536.05090357934-15.0509035793401
24501530.30090357934-29.3009035793401
25485519.217103882476-34.2171038824762
26464499.883770549143-35.8837705491431
27460500.439326104699-40.4393261046986
28467494.953188760639-27.9531887606389
29460489.286522093972-29.2865220939723
30448478.842077649528-30.8420776495278
31443471.286522093972-28.2865220939723
32436462.953188760639-26.9531887606389
33431461.953188760639-30.9531887606389
34484515.286522093972-31.2865220939722
35510538.324256733123-28.3242567331235
36513532.574256733123-19.5742567331235
37503521.49045703626-18.4904570362596
38471502.157123702926-31.1571237029264
39471502.712679258482-31.712679258482
40476497.226541914422-21.2265419144223
41475491.559875247756-16.5598752477556
42470481.115430803311-11.1154308033112
43461473.559875247756-12.5598752477556
44455465.226541914422-10.2265419144223
45456464.226541914422-8.22654191442231
46517517.559875247756-0.559875247755636
47525540.597609886907-15.5976098869069
48523534.847609886907-11.8476098869069
49519523.763810190043-4.76381019004302
50509504.430476856714.56952314329018
51512504.9860324122657.01396758773461
52519499.49989506820619.5001049317943
53517493.83322840153923.1667715984610
54510483.38878395709526.6112160429054
55509475.83322840153933.166771598461
56501467.49989506820633.5001049317943
57507466.49989506820640.5001049317943
58569519.83322840153949.166771598461
59580542.8709630406937.1290369593098
60578537.1209630406940.8790369593098
61565526.03716334382638.9628366561736
62547506.70383001049340.2961699895068
63555507.25938556604947.7406144339512
64562575.148484318526-13.1484843185263
65561569.48181765186-8.4818176518596
66555559.037373207415-4.03737320741516
67544551.48181765186-7.48181765185962
68537543.148484318526-6.14848431852629
69543542.1484843185260.851515681473718
70594595.48181765186-1.48181765185961
71611618.519552291011-7.51955229101084
72613612.7695522910110.230447708989156
73611601.6857525941479.31424740585302
74594582.35241926081411.6475807391862
75595582.90797481636912.0920251836306
76591577.4218374723113.5781625276903
77589571.75517080564317.244829194357
78584561.31072636119922.6892736388014
79573553.75517080564319.244829194357
80567545.4218374723121.5781625276903
81569544.4218374723124.5781625276903
82621597.75517080564323.244829194357
83629620.7929054447948.20709455520577
84628615.04290544479412.9570945552058
85612603.959105747938.04089425206963
86595584.62577241459710.3742275854028
87597585.18132797015311.8186720298473
88593579.69519062609313.3048093739069
89590574.02852395942615.9714760405736
90580563.58407951498216.4159204850181
91574556.02852395942617.9714760405736
92573547.69519062609325.3048093739069
93573546.69519062609326.3048093739069
94620600.02852395942619.9714760405736
95626623.0662585985782.93374140142238
96620617.3162585985782.68374140142237
97588606.232458901714-18.2324589017138
98566586.89912556838-20.8991255683806
99557587.454681123936-30.4546811239361
100561581.968543779876-20.9685437798764
101549576.30187711321-27.3018771132098
102532565.857432668765-33.8574326687653
103526558.30187711321-32.3018771132098
104511549.968543779876-38.9685437798764
105499548.968543779876-49.9685437798764
106555602.30187711321-47.3018771132098

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 540 & 514.670397574911 & 25.3296024250892 \tabularnewline
2 & 522 & 495.337064241576 & 26.6629357584237 \tabularnewline
3 & 526 & 495.892619797132 & 30.1073802028682 \tabularnewline
4 & 527 & 490.406482453072 & 36.5935175469279 \tabularnewline
5 & 516 & 484.739815786405 & 31.2601842135945 \tabularnewline
6 & 503 & 474.295371341961 & 28.7046286580390 \tabularnewline
7 & 489 & 466.739815786405 & 22.2601842135946 \tabularnewline
8 & 479 & 458.406482453072 & 20.5935175469279 \tabularnewline
9 & 475 & 457.406482453072 & 17.5935175469279 \tabularnewline
10 & 524 & 510.739815786405 & 13.2601842135945 \tabularnewline
11 & 552 & 533.777550425557 & 18.2224495744433 \tabularnewline
12 & 532 & 528.027550425557 & 3.97244957444331 \tabularnewline
13 & 511 & 516.943750728693 & -5.94375072869284 \tabularnewline
14 & 492 & 497.61041739536 & -5.61041739535965 \tabularnewline
15 & 492 & 498.165972950915 & -6.16597295091521 \tabularnewline
16 & 493 & 492.679835606856 & 0.320164393144487 \tabularnewline
17 & 481 & 487.013168940189 & -6.01316894018885 \tabularnewline
18 & 462 & 476.568724495744 & -14.5687244957444 \tabularnewline
19 & 457 & 469.013168940189 & -12.0131689401889 \tabularnewline
20 & 442 & 460.679835606856 & -18.6798356068555 \tabularnewline
21 & 439 & 459.679835606856 & -20.6798356068555 \tabularnewline
22 & 488 & 513.013168940189 & -25.0131689401889 \tabularnewline
23 & 521 & 536.05090357934 & -15.0509035793401 \tabularnewline
24 & 501 & 530.30090357934 & -29.3009035793401 \tabularnewline
25 & 485 & 519.217103882476 & -34.2171038824762 \tabularnewline
26 & 464 & 499.883770549143 & -35.8837705491431 \tabularnewline
27 & 460 & 500.439326104699 & -40.4393261046986 \tabularnewline
28 & 467 & 494.953188760639 & -27.9531887606389 \tabularnewline
29 & 460 & 489.286522093972 & -29.2865220939723 \tabularnewline
30 & 448 & 478.842077649528 & -30.8420776495278 \tabularnewline
31 & 443 & 471.286522093972 & -28.2865220939723 \tabularnewline
32 & 436 & 462.953188760639 & -26.9531887606389 \tabularnewline
33 & 431 & 461.953188760639 & -30.9531887606389 \tabularnewline
34 & 484 & 515.286522093972 & -31.2865220939722 \tabularnewline
35 & 510 & 538.324256733123 & -28.3242567331235 \tabularnewline
36 & 513 & 532.574256733123 & -19.5742567331235 \tabularnewline
37 & 503 & 521.49045703626 & -18.4904570362596 \tabularnewline
38 & 471 & 502.157123702926 & -31.1571237029264 \tabularnewline
39 & 471 & 502.712679258482 & -31.712679258482 \tabularnewline
40 & 476 & 497.226541914422 & -21.2265419144223 \tabularnewline
41 & 475 & 491.559875247756 & -16.5598752477556 \tabularnewline
42 & 470 & 481.115430803311 & -11.1154308033112 \tabularnewline
43 & 461 & 473.559875247756 & -12.5598752477556 \tabularnewline
44 & 455 & 465.226541914422 & -10.2265419144223 \tabularnewline
45 & 456 & 464.226541914422 & -8.22654191442231 \tabularnewline
46 & 517 & 517.559875247756 & -0.559875247755636 \tabularnewline
47 & 525 & 540.597609886907 & -15.5976098869069 \tabularnewline
48 & 523 & 534.847609886907 & -11.8476098869069 \tabularnewline
49 & 519 & 523.763810190043 & -4.76381019004302 \tabularnewline
50 & 509 & 504.43047685671 & 4.56952314329018 \tabularnewline
51 & 512 & 504.986032412265 & 7.01396758773461 \tabularnewline
52 & 519 & 499.499895068206 & 19.5001049317943 \tabularnewline
53 & 517 & 493.833228401539 & 23.1667715984610 \tabularnewline
54 & 510 & 483.388783957095 & 26.6112160429054 \tabularnewline
55 & 509 & 475.833228401539 & 33.166771598461 \tabularnewline
56 & 501 & 467.499895068206 & 33.5001049317943 \tabularnewline
57 & 507 & 466.499895068206 & 40.5001049317943 \tabularnewline
58 & 569 & 519.833228401539 & 49.166771598461 \tabularnewline
59 & 580 & 542.87096304069 & 37.1290369593098 \tabularnewline
60 & 578 & 537.12096304069 & 40.8790369593098 \tabularnewline
61 & 565 & 526.037163343826 & 38.9628366561736 \tabularnewline
62 & 547 & 506.703830010493 & 40.2961699895068 \tabularnewline
63 & 555 & 507.259385566049 & 47.7406144339512 \tabularnewline
64 & 562 & 575.148484318526 & -13.1484843185263 \tabularnewline
65 & 561 & 569.48181765186 & -8.4818176518596 \tabularnewline
66 & 555 & 559.037373207415 & -4.03737320741516 \tabularnewline
67 & 544 & 551.48181765186 & -7.48181765185962 \tabularnewline
68 & 537 & 543.148484318526 & -6.14848431852629 \tabularnewline
69 & 543 & 542.148484318526 & 0.851515681473718 \tabularnewline
70 & 594 & 595.48181765186 & -1.48181765185961 \tabularnewline
71 & 611 & 618.519552291011 & -7.51955229101084 \tabularnewline
72 & 613 & 612.769552291011 & 0.230447708989156 \tabularnewline
73 & 611 & 601.685752594147 & 9.31424740585302 \tabularnewline
74 & 594 & 582.352419260814 & 11.6475807391862 \tabularnewline
75 & 595 & 582.907974816369 & 12.0920251836306 \tabularnewline
76 & 591 & 577.42183747231 & 13.5781625276903 \tabularnewline
77 & 589 & 571.755170805643 & 17.244829194357 \tabularnewline
78 & 584 & 561.310726361199 & 22.6892736388014 \tabularnewline
79 & 573 & 553.755170805643 & 19.244829194357 \tabularnewline
80 & 567 & 545.42183747231 & 21.5781625276903 \tabularnewline
81 & 569 & 544.42183747231 & 24.5781625276903 \tabularnewline
82 & 621 & 597.755170805643 & 23.244829194357 \tabularnewline
83 & 629 & 620.792905444794 & 8.20709455520577 \tabularnewline
84 & 628 & 615.042905444794 & 12.9570945552058 \tabularnewline
85 & 612 & 603.95910574793 & 8.04089425206963 \tabularnewline
86 & 595 & 584.625772414597 & 10.3742275854028 \tabularnewline
87 & 597 & 585.181327970153 & 11.8186720298473 \tabularnewline
88 & 593 & 579.695190626093 & 13.3048093739069 \tabularnewline
89 & 590 & 574.028523959426 & 15.9714760405736 \tabularnewline
90 & 580 & 563.584079514982 & 16.4159204850181 \tabularnewline
91 & 574 & 556.028523959426 & 17.9714760405736 \tabularnewline
92 & 573 & 547.695190626093 & 25.3048093739069 \tabularnewline
93 & 573 & 546.695190626093 & 26.3048093739069 \tabularnewline
94 & 620 & 600.028523959426 & 19.9714760405736 \tabularnewline
95 & 626 & 623.066258598578 & 2.93374140142238 \tabularnewline
96 & 620 & 617.316258598578 & 2.68374140142237 \tabularnewline
97 & 588 & 606.232458901714 & -18.2324589017138 \tabularnewline
98 & 566 & 586.89912556838 & -20.8991255683806 \tabularnewline
99 & 557 & 587.454681123936 & -30.4546811239361 \tabularnewline
100 & 561 & 581.968543779876 & -20.9685437798764 \tabularnewline
101 & 549 & 576.30187711321 & -27.3018771132098 \tabularnewline
102 & 532 & 565.857432668765 & -33.8574326687653 \tabularnewline
103 & 526 & 558.30187711321 & -32.3018771132098 \tabularnewline
104 & 511 & 549.968543779876 & -38.9685437798764 \tabularnewline
105 & 499 & 548.968543779876 & -49.9685437798764 \tabularnewline
106 & 555 & 602.30187711321 & -47.3018771132098 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3324&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]540[/C][C]514.670397574911[/C][C]25.3296024250892[/C][/ROW]
[ROW][C]2[/C][C]522[/C][C]495.337064241576[/C][C]26.6629357584237[/C][/ROW]
[ROW][C]3[/C][C]526[/C][C]495.892619797132[/C][C]30.1073802028682[/C][/ROW]
[ROW][C]4[/C][C]527[/C][C]490.406482453072[/C][C]36.5935175469279[/C][/ROW]
[ROW][C]5[/C][C]516[/C][C]484.739815786405[/C][C]31.2601842135945[/C][/ROW]
[ROW][C]6[/C][C]503[/C][C]474.295371341961[/C][C]28.7046286580390[/C][/ROW]
[ROW][C]7[/C][C]489[/C][C]466.739815786405[/C][C]22.2601842135946[/C][/ROW]
[ROW][C]8[/C][C]479[/C][C]458.406482453072[/C][C]20.5935175469279[/C][/ROW]
[ROW][C]9[/C][C]475[/C][C]457.406482453072[/C][C]17.5935175469279[/C][/ROW]
[ROW][C]10[/C][C]524[/C][C]510.739815786405[/C][C]13.2601842135945[/C][/ROW]
[ROW][C]11[/C][C]552[/C][C]533.777550425557[/C][C]18.2224495744433[/C][/ROW]
[ROW][C]12[/C][C]532[/C][C]528.027550425557[/C][C]3.97244957444331[/C][/ROW]
[ROW][C]13[/C][C]511[/C][C]516.943750728693[/C][C]-5.94375072869284[/C][/ROW]
[ROW][C]14[/C][C]492[/C][C]497.61041739536[/C][C]-5.61041739535965[/C][/ROW]
[ROW][C]15[/C][C]492[/C][C]498.165972950915[/C][C]-6.16597295091521[/C][/ROW]
[ROW][C]16[/C][C]493[/C][C]492.679835606856[/C][C]0.320164393144487[/C][/ROW]
[ROW][C]17[/C][C]481[/C][C]487.013168940189[/C][C]-6.01316894018885[/C][/ROW]
[ROW][C]18[/C][C]462[/C][C]476.568724495744[/C][C]-14.5687244957444[/C][/ROW]
[ROW][C]19[/C][C]457[/C][C]469.013168940189[/C][C]-12.0131689401889[/C][/ROW]
[ROW][C]20[/C][C]442[/C][C]460.679835606856[/C][C]-18.6798356068555[/C][/ROW]
[ROW][C]21[/C][C]439[/C][C]459.679835606856[/C][C]-20.6798356068555[/C][/ROW]
[ROW][C]22[/C][C]488[/C][C]513.013168940189[/C][C]-25.0131689401889[/C][/ROW]
[ROW][C]23[/C][C]521[/C][C]536.05090357934[/C][C]-15.0509035793401[/C][/ROW]
[ROW][C]24[/C][C]501[/C][C]530.30090357934[/C][C]-29.3009035793401[/C][/ROW]
[ROW][C]25[/C][C]485[/C][C]519.217103882476[/C][C]-34.2171038824762[/C][/ROW]
[ROW][C]26[/C][C]464[/C][C]499.883770549143[/C][C]-35.8837705491431[/C][/ROW]
[ROW][C]27[/C][C]460[/C][C]500.439326104699[/C][C]-40.4393261046986[/C][/ROW]
[ROW][C]28[/C][C]467[/C][C]494.953188760639[/C][C]-27.9531887606389[/C][/ROW]
[ROW][C]29[/C][C]460[/C][C]489.286522093972[/C][C]-29.2865220939723[/C][/ROW]
[ROW][C]30[/C][C]448[/C][C]478.842077649528[/C][C]-30.8420776495278[/C][/ROW]
[ROW][C]31[/C][C]443[/C][C]471.286522093972[/C][C]-28.2865220939723[/C][/ROW]
[ROW][C]32[/C][C]436[/C][C]462.953188760639[/C][C]-26.9531887606389[/C][/ROW]
[ROW][C]33[/C][C]431[/C][C]461.953188760639[/C][C]-30.9531887606389[/C][/ROW]
[ROW][C]34[/C][C]484[/C][C]515.286522093972[/C][C]-31.2865220939722[/C][/ROW]
[ROW][C]35[/C][C]510[/C][C]538.324256733123[/C][C]-28.3242567331235[/C][/ROW]
[ROW][C]36[/C][C]513[/C][C]532.574256733123[/C][C]-19.5742567331235[/C][/ROW]
[ROW][C]37[/C][C]503[/C][C]521.49045703626[/C][C]-18.4904570362596[/C][/ROW]
[ROW][C]38[/C][C]471[/C][C]502.157123702926[/C][C]-31.1571237029264[/C][/ROW]
[ROW][C]39[/C][C]471[/C][C]502.712679258482[/C][C]-31.712679258482[/C][/ROW]
[ROW][C]40[/C][C]476[/C][C]497.226541914422[/C][C]-21.2265419144223[/C][/ROW]
[ROW][C]41[/C][C]475[/C][C]491.559875247756[/C][C]-16.5598752477556[/C][/ROW]
[ROW][C]42[/C][C]470[/C][C]481.115430803311[/C][C]-11.1154308033112[/C][/ROW]
[ROW][C]43[/C][C]461[/C][C]473.559875247756[/C][C]-12.5598752477556[/C][/ROW]
[ROW][C]44[/C][C]455[/C][C]465.226541914422[/C][C]-10.2265419144223[/C][/ROW]
[ROW][C]45[/C][C]456[/C][C]464.226541914422[/C][C]-8.22654191442231[/C][/ROW]
[ROW][C]46[/C][C]517[/C][C]517.559875247756[/C][C]-0.559875247755636[/C][/ROW]
[ROW][C]47[/C][C]525[/C][C]540.597609886907[/C][C]-15.5976098869069[/C][/ROW]
[ROW][C]48[/C][C]523[/C][C]534.847609886907[/C][C]-11.8476098869069[/C][/ROW]
[ROW][C]49[/C][C]519[/C][C]523.763810190043[/C][C]-4.76381019004302[/C][/ROW]
[ROW][C]50[/C][C]509[/C][C]504.43047685671[/C][C]4.56952314329018[/C][/ROW]
[ROW][C]51[/C][C]512[/C][C]504.986032412265[/C][C]7.01396758773461[/C][/ROW]
[ROW][C]52[/C][C]519[/C][C]499.499895068206[/C][C]19.5001049317943[/C][/ROW]
[ROW][C]53[/C][C]517[/C][C]493.833228401539[/C][C]23.1667715984610[/C][/ROW]
[ROW][C]54[/C][C]510[/C][C]483.388783957095[/C][C]26.6112160429054[/C][/ROW]
[ROW][C]55[/C][C]509[/C][C]475.833228401539[/C][C]33.166771598461[/C][/ROW]
[ROW][C]56[/C][C]501[/C][C]467.499895068206[/C][C]33.5001049317943[/C][/ROW]
[ROW][C]57[/C][C]507[/C][C]466.499895068206[/C][C]40.5001049317943[/C][/ROW]
[ROW][C]58[/C][C]569[/C][C]519.833228401539[/C][C]49.166771598461[/C][/ROW]
[ROW][C]59[/C][C]580[/C][C]542.87096304069[/C][C]37.1290369593098[/C][/ROW]
[ROW][C]60[/C][C]578[/C][C]537.12096304069[/C][C]40.8790369593098[/C][/ROW]
[ROW][C]61[/C][C]565[/C][C]526.037163343826[/C][C]38.9628366561736[/C][/ROW]
[ROW][C]62[/C][C]547[/C][C]506.703830010493[/C][C]40.2961699895068[/C][/ROW]
[ROW][C]63[/C][C]555[/C][C]507.259385566049[/C][C]47.7406144339512[/C][/ROW]
[ROW][C]64[/C][C]562[/C][C]575.148484318526[/C][C]-13.1484843185263[/C][/ROW]
[ROW][C]65[/C][C]561[/C][C]569.48181765186[/C][C]-8.4818176518596[/C][/ROW]
[ROW][C]66[/C][C]555[/C][C]559.037373207415[/C][C]-4.03737320741516[/C][/ROW]
[ROW][C]67[/C][C]544[/C][C]551.48181765186[/C][C]-7.48181765185962[/C][/ROW]
[ROW][C]68[/C][C]537[/C][C]543.148484318526[/C][C]-6.14848431852629[/C][/ROW]
[ROW][C]69[/C][C]543[/C][C]542.148484318526[/C][C]0.851515681473718[/C][/ROW]
[ROW][C]70[/C][C]594[/C][C]595.48181765186[/C][C]-1.48181765185961[/C][/ROW]
[ROW][C]71[/C][C]611[/C][C]618.519552291011[/C][C]-7.51955229101084[/C][/ROW]
[ROW][C]72[/C][C]613[/C][C]612.769552291011[/C][C]0.230447708989156[/C][/ROW]
[ROW][C]73[/C][C]611[/C][C]601.685752594147[/C][C]9.31424740585302[/C][/ROW]
[ROW][C]74[/C][C]594[/C][C]582.352419260814[/C][C]11.6475807391862[/C][/ROW]
[ROW][C]75[/C][C]595[/C][C]582.907974816369[/C][C]12.0920251836306[/C][/ROW]
[ROW][C]76[/C][C]591[/C][C]577.42183747231[/C][C]13.5781625276903[/C][/ROW]
[ROW][C]77[/C][C]589[/C][C]571.755170805643[/C][C]17.244829194357[/C][/ROW]
[ROW][C]78[/C][C]584[/C][C]561.310726361199[/C][C]22.6892736388014[/C][/ROW]
[ROW][C]79[/C][C]573[/C][C]553.755170805643[/C][C]19.244829194357[/C][/ROW]
[ROW][C]80[/C][C]567[/C][C]545.42183747231[/C][C]21.5781625276903[/C][/ROW]
[ROW][C]81[/C][C]569[/C][C]544.42183747231[/C][C]24.5781625276903[/C][/ROW]
[ROW][C]82[/C][C]621[/C][C]597.755170805643[/C][C]23.244829194357[/C][/ROW]
[ROW][C]83[/C][C]629[/C][C]620.792905444794[/C][C]8.20709455520577[/C][/ROW]
[ROW][C]84[/C][C]628[/C][C]615.042905444794[/C][C]12.9570945552058[/C][/ROW]
[ROW][C]85[/C][C]612[/C][C]603.95910574793[/C][C]8.04089425206963[/C][/ROW]
[ROW][C]86[/C][C]595[/C][C]584.625772414597[/C][C]10.3742275854028[/C][/ROW]
[ROW][C]87[/C][C]597[/C][C]585.181327970153[/C][C]11.8186720298473[/C][/ROW]
[ROW][C]88[/C][C]593[/C][C]579.695190626093[/C][C]13.3048093739069[/C][/ROW]
[ROW][C]89[/C][C]590[/C][C]574.028523959426[/C][C]15.9714760405736[/C][/ROW]
[ROW][C]90[/C][C]580[/C][C]563.584079514982[/C][C]16.4159204850181[/C][/ROW]
[ROW][C]91[/C][C]574[/C][C]556.028523959426[/C][C]17.9714760405736[/C][/ROW]
[ROW][C]92[/C][C]573[/C][C]547.695190626093[/C][C]25.3048093739069[/C][/ROW]
[ROW][C]93[/C][C]573[/C][C]546.695190626093[/C][C]26.3048093739069[/C][/ROW]
[ROW][C]94[/C][C]620[/C][C]600.028523959426[/C][C]19.9714760405736[/C][/ROW]
[ROW][C]95[/C][C]626[/C][C]623.066258598578[/C][C]2.93374140142238[/C][/ROW]
[ROW][C]96[/C][C]620[/C][C]617.316258598578[/C][C]2.68374140142237[/C][/ROW]
[ROW][C]97[/C][C]588[/C][C]606.232458901714[/C][C]-18.2324589017138[/C][/ROW]
[ROW][C]98[/C][C]566[/C][C]586.89912556838[/C][C]-20.8991255683806[/C][/ROW]
[ROW][C]99[/C][C]557[/C][C]587.454681123936[/C][C]-30.4546811239361[/C][/ROW]
[ROW][C]100[/C][C]561[/C][C]581.968543779876[/C][C]-20.9685437798764[/C][/ROW]
[ROW][C]101[/C][C]549[/C][C]576.30187711321[/C][C]-27.3018771132098[/C][/ROW]
[ROW][C]102[/C][C]532[/C][C]565.857432668765[/C][C]-33.8574326687653[/C][/ROW]
[ROW][C]103[/C][C]526[/C][C]558.30187711321[/C][C]-32.3018771132098[/C][/ROW]
[ROW][C]104[/C][C]511[/C][C]549.968543779876[/C][C]-38.9685437798764[/C][/ROW]
[ROW][C]105[/C][C]499[/C][C]548.968543779876[/C][C]-49.9685437798764[/C][/ROW]
[ROW][C]106[/C][C]555[/C][C]602.30187711321[/C][C]-47.3018771132098[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3324&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3324&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
1540514.67039757491125.3296024250892
2522495.33706424157626.6629357584237
3526495.89261979713230.1073802028682
4527490.40648245307236.5935175469279
5516484.73981578640531.2601842135945
6503474.29537134196128.7046286580390
7489466.73981578640522.2601842135946
8479458.40648245307220.5935175469279
9475457.40648245307217.5935175469279
10524510.73981578640513.2601842135945
11552533.77755042555718.2224495744433
12532528.0275504255573.97244957444331
13511516.943750728693-5.94375072869284
14492497.61041739536-5.61041739535965
15492498.165972950915-6.16597295091521
16493492.6798356068560.320164393144487
17481487.013168940189-6.01316894018885
18462476.568724495744-14.5687244957444
19457469.013168940189-12.0131689401889
20442460.679835606856-18.6798356068555
21439459.679835606856-20.6798356068555
22488513.013168940189-25.0131689401889
23521536.05090357934-15.0509035793401
24501530.30090357934-29.3009035793401
25485519.217103882476-34.2171038824762
26464499.883770549143-35.8837705491431
27460500.439326104699-40.4393261046986
28467494.953188760639-27.9531887606389
29460489.286522093972-29.2865220939723
30448478.842077649528-30.8420776495278
31443471.286522093972-28.2865220939723
32436462.953188760639-26.9531887606389
33431461.953188760639-30.9531887606389
34484515.286522093972-31.2865220939722
35510538.324256733123-28.3242567331235
36513532.574256733123-19.5742567331235
37503521.49045703626-18.4904570362596
38471502.157123702926-31.1571237029264
39471502.712679258482-31.712679258482
40476497.226541914422-21.2265419144223
41475491.559875247756-16.5598752477556
42470481.115430803311-11.1154308033112
43461473.559875247756-12.5598752477556
44455465.226541914422-10.2265419144223
45456464.226541914422-8.22654191442231
46517517.559875247756-0.559875247755636
47525540.597609886907-15.5976098869069
48523534.847609886907-11.8476098869069
49519523.763810190043-4.76381019004302
50509504.430476856714.56952314329018
51512504.9860324122657.01396758773461
52519499.49989506820619.5001049317943
53517493.83322840153923.1667715984610
54510483.38878395709526.6112160429054
55509475.83322840153933.166771598461
56501467.49989506820633.5001049317943
57507466.49989506820640.5001049317943
58569519.83322840153949.166771598461
59580542.8709630406937.1290369593098
60578537.1209630406940.8790369593098
61565526.03716334382638.9628366561736
62547506.70383001049340.2961699895068
63555507.25938556604947.7406144339512
64562575.148484318526-13.1484843185263
65561569.48181765186-8.4818176518596
66555559.037373207415-4.03737320741516
67544551.48181765186-7.48181765185962
68537543.148484318526-6.14848431852629
69543542.1484843185260.851515681473718
70594595.48181765186-1.48181765185961
71611618.519552291011-7.51955229101084
72613612.7695522910110.230447708989156
73611601.6857525941479.31424740585302
74594582.35241926081411.6475807391862
75595582.90797481636912.0920251836306
76591577.4218374723113.5781625276903
77589571.75517080564317.244829194357
78584561.31072636119922.6892736388014
79573553.75517080564319.244829194357
80567545.4218374723121.5781625276903
81569544.4218374723124.5781625276903
82621597.75517080564323.244829194357
83629620.7929054447948.20709455520577
84628615.04290544479412.9570945552058
85612603.959105747938.04089425206963
86595584.62577241459710.3742275854028
87597585.18132797015311.8186720298473
88593579.69519062609313.3048093739069
89590574.02852395942615.9714760405736
90580563.58407951498216.4159204850181
91574556.02852395942617.9714760405736
92573547.69519062609325.3048093739069
93573546.69519062609326.3048093739069
94620600.02852395942619.9714760405736
95626623.0662585985782.93374140142238
96620617.3162585985782.68374140142237
97588606.232458901714-18.2324589017138
98566586.89912556838-20.8991255683806
99557587.454681123936-30.4546811239361
100561581.968543779876-20.9685437798764
101549576.30187711321-27.3018771132098
102532565.857432668765-33.8574326687653
103526558.30187711321-32.3018771132098
104511549.968543779876-38.9685437798764
105499548.968543779876-49.9685437798764
106555602.30187711321-47.3018771132098



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