Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSun, 07 Dec 2008 05:43:57 -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/Dec/07/t1228653901fji8tbjjyfwzqky.htm/, Retrieved Sun, 19 May 2024 08:49:07 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=29904, Retrieved Sun, 19 May 2024 08:49:07 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact218
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Multiple Regression] [] [2007-11-19 20:22:41] [3a1956effdcb54c39e5044435310d6c8]
-    D  [Multiple Regression] [seatbelt_3.2.] [2008-11-23 14:44:53] [922d8ae7bd2fd460a62d9020ccd4931a]
F   PD    [Multiple Regression] [seatbelt3CG2] [2008-11-23 15:00:12] [922d8ae7bd2fd460a62d9020ccd4931a]
-   PD        [Multiple Regression] [dummy2] [2008-12-07 12:43:57] [89a49ebb3ece8e9a225c7f9f53a14c57] [Current]
Feedback Forum

Post a new message
Dataseries X:
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	0
561	0
555	0
544	0
537	0
543	0
594	0
611	0
613	0
611	0
594	0
595	0
591	0
589	0
584	0
573	0
567	0
569	0
621	0
629	0
628	0
612	0
595	0
597	0
593	0
590	0
580	0
574	0
573	0
573	0
620	0
626	0
620	0
588	0
566	0
557	0
561	0
549	0
532	0
526	0
511	0
499	0
555	1
565	1
542	1
527	1
510	1
514	1
517	1
508	1
493	1
490	1
469	1
478	1
528	1
534	1
518	1
506	1
502	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 72.249.76.132

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29904&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29904&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29904&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 computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 457.194308186739 -115.178788903924`Wel(1)_geen(0)_financiële_crisis`[t] + 5.09270574913525M1[t] -2.01522092542481M2[t] -14.3453698222073M3[t] -22.3421853856563M4[t] -33.5612231713276M5[t] -34.780260956999M6[t] + 29.7983444688769M7[t] + 42.0237511276500M8[t] + 33.1380466753120M9[t] + 18.1412311118628M10[t] -1.07780667380851M11[t] + 1.66348223011577t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Werkloosheid[t] =  +  457.194308186739 -115.178788903924`Wel(1)_geen(0)_financiële_crisis`[t] +  5.09270574913525M1[t] -2.01522092542481M2[t] -14.3453698222073M3[t] -22.3421853856563M4[t] -33.5612231713276M5[t] -34.780260956999M6[t] +  29.7983444688769M7[t] +  42.0237511276500M8[t] +  33.1380466753120M9[t] +  18.1412311118628M10[t] -1.07780667380851M11[t] +  1.66348223011577t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29904&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Werkloosheid[t] =  +  457.194308186739 -115.178788903924`Wel(1)_geen(0)_financiële_crisis`[t] +  5.09270574913525M1[t] -2.01522092542481M2[t] -14.3453698222073M3[t] -22.3421853856563M4[t] -33.5612231713276M5[t] -34.780260956999M6[t] +  29.7983444688769M7[t] +  42.0237511276500M8[t] +  33.1380466753120M9[t] +  18.1412311118628M10[t] -1.07780667380851M11[t] +  1.66348223011577t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29904&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29904&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
Werkloosheid[t] = + 457.194308186739 -115.178788903924`Wel(1)_geen(0)_financiële_crisis`[t] + 5.09270574913525M1[t] -2.01522092542481M2[t] -14.3453698222073M3[t] -22.3421853856563M4[t] -33.5612231713276M5[t] -34.780260956999M6[t] + 29.7983444688769M7[t] + 42.0237511276500M8[t] + 33.1380466753120M9[t] + 18.1412311118628M10[t] -1.07780667380851M11[t] + 1.66348223011577t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)457.19430818673910.40720443.930600
`Wel(1)_geen(0)_financiële_crisis`-115.1787889039248.886232-12.961500
M15.0927057491352512.5389330.40620.6855640.342782
M2-2.0152209254248112.535661-0.16080.8726320.436316
M3-14.345369822207312.53326-1.14460.2553190.127659
M4-22.342185385656312.531729-1.78280.0778740.038937
M5-33.561223171327612.531071-2.67820.0087510.004375
M6-34.78026095699912.531284-2.77550.0066640.003332
M729.798344468876912.5563232.37320.0196940.009847
M842.023751127650012.5530923.34770.0011780.000589
M933.138046675312012.550732.64030.0097140.004857
M1018.141231111862812.5492381.44560.151650.075825
M11-1.0778066738085112.548617-0.08590.9317380.465869
t1.663482230115770.10452415.914800

\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) & 457.194308186739 & 10.407204 & 43.9306 & 0 & 0 \tabularnewline
`Wel(1)_geen(0)_financiële_crisis` & -115.178788903924 & 8.886232 & -12.9615 & 0 & 0 \tabularnewline
M1 & 5.09270574913525 & 12.538933 & 0.4062 & 0.685564 & 0.342782 \tabularnewline
M2 & -2.01522092542481 & 12.535661 & -0.1608 & 0.872632 & 0.436316 \tabularnewline
M3 & -14.3453698222073 & 12.53326 & -1.1446 & 0.255319 & 0.127659 \tabularnewline
M4 & -22.3421853856563 & 12.531729 & -1.7828 & 0.077874 & 0.038937 \tabularnewline
M5 & -33.5612231713276 & 12.531071 & -2.6782 & 0.008751 & 0.004375 \tabularnewline
M6 & -34.780260956999 & 12.531284 & -2.7755 & 0.006664 & 0.003332 \tabularnewline
M7 & 29.7983444688769 & 12.556323 & 2.3732 & 0.019694 & 0.009847 \tabularnewline
M8 & 42.0237511276500 & 12.553092 & 3.3477 & 0.001178 & 0.000589 \tabularnewline
M9 & 33.1380466753120 & 12.55073 & 2.6403 & 0.009714 & 0.004857 \tabularnewline
M10 & 18.1412311118628 & 12.549238 & 1.4456 & 0.15165 & 0.075825 \tabularnewline
M11 & -1.07780667380851 & 12.548617 & -0.0859 & 0.931738 & 0.465869 \tabularnewline
t & 1.66348223011577 & 0.104524 & 15.9148 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29904&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]457.194308186739[/C][C]10.407204[/C][C]43.9306[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]`Wel(1)_geen(0)_financiële_crisis`[/C][C]-115.178788903924[/C][C]8.886232[/C][C]-12.9615[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]5.09270574913525[/C][C]12.538933[/C][C]0.4062[/C][C]0.685564[/C][C]0.342782[/C][/ROW]
[ROW][C]M2[/C][C]-2.01522092542481[/C][C]12.535661[/C][C]-0.1608[/C][C]0.872632[/C][C]0.436316[/C][/ROW]
[ROW][C]M3[/C][C]-14.3453698222073[/C][C]12.53326[/C][C]-1.1446[/C][C]0.255319[/C][C]0.127659[/C][/ROW]
[ROW][C]M4[/C][C]-22.3421853856563[/C][C]12.531729[/C][C]-1.7828[/C][C]0.077874[/C][C]0.038937[/C][/ROW]
[ROW][C]M5[/C][C]-33.5612231713276[/C][C]12.531071[/C][C]-2.6782[/C][C]0.008751[/C][C]0.004375[/C][/ROW]
[ROW][C]M6[/C][C]-34.780260956999[/C][C]12.531284[/C][C]-2.7755[/C][C]0.006664[/C][C]0.003332[/C][/ROW]
[ROW][C]M7[/C][C]29.7983444688769[/C][C]12.556323[/C][C]2.3732[/C][C]0.019694[/C][C]0.009847[/C][/ROW]
[ROW][C]M8[/C][C]42.0237511276500[/C][C]12.553092[/C][C]3.3477[/C][C]0.001178[/C][C]0.000589[/C][/ROW]
[ROW][C]M9[/C][C]33.1380466753120[/C][C]12.55073[/C][C]2.6403[/C][C]0.009714[/C][C]0.004857[/C][/ROW]
[ROW][C]M10[/C][C]18.1412311118628[/C][C]12.549238[/C][C]1.4456[/C][C]0.15165[/C][C]0.075825[/C][/ROW]
[ROW][C]M11[/C][C]-1.07780667380851[/C][C]12.548617[/C][C]-0.0859[/C][C]0.931738[/C][C]0.465869[/C][/ROW]
[ROW][C]t[/C][C]1.66348223011577[/C][C]0.104524[/C][C]15.9148[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29904&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29904&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)457.19430818673910.40720443.930600
`Wel(1)_geen(0)_financiële_crisis`-115.1787889039248.886232-12.961500
M15.0927057491352512.5389330.40620.6855640.342782
M2-2.0152209254248112.535661-0.16080.8726320.436316
M3-14.345369822207312.53326-1.14460.2553190.127659
M4-22.342185385656312.531729-1.78280.0778740.038937
M5-33.561223171327612.531071-2.67820.0087510.004375
M6-34.78026095699912.531284-2.77550.0066640.003332
M729.798344468876912.5563232.37320.0196940.009847
M842.023751127650012.5530923.34770.0011780.000589
M933.138046675312012.550732.64030.0097140.004857
M1018.141231111862812.5492381.44560.151650.075825
M11-1.0778066738085112.548617-0.08590.9317380.465869
t1.663482230115770.10452415.914800







Multiple Linear Regression - Regression Statistics
Multiple R0.88711550745224
R-squared0.786973923562245
Adjusted R-squared0.757196084920408
F-TEST (value)26.4281747586803
F-TEST (DF numerator)13
F-TEST (DF denominator)93
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation25.7879197163756
Sum Squared Residuals61846.5627067357

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.88711550745224 \tabularnewline
R-squared & 0.786973923562245 \tabularnewline
Adjusted R-squared & 0.757196084920408 \tabularnewline
F-TEST (value) & 26.4281747586803 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 93 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 25.7879197163756 \tabularnewline
Sum Squared Residuals & 61846.5627067357 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29904&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.88711550745224[/C][/ROW]
[ROW][C]R-squared[/C][C]0.786973923562245[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.757196084920408[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]26.4281747586803[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]93[/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.7879197163756[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]61846.5627067357[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29904&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29904&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.88711550745224
R-squared0.786973923562245
Adjusted R-squared0.757196084920408
F-TEST (value)26.4281747586803
F-TEST (DF numerator)13
F-TEST (DF denominator)93
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation25.7879197163756
Sum Squared Residuals61846.5627067357







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1493463.95049616599229.0495038340082
2481458.50605172154622.4939482784543
3462447.83938505487914.160614945121
4457441.50605172154615.4939482784545
5442431.9504961659910.0495038340102
6439432.3949406104356.60505938956552
7488498.637028266426-10.6370282664261
8521512.5259171553158.47408284468521
9501505.303694933093-4.30369493309283
10485491.970361599759-6.9703615997594
11464474.414806044204-10.4148060442039
12460477.156094948128-17.1560949481280
13467483.912282927379-16.9122829273792
14460478.467838482935-18.4678384829347
15448467.801171816268-19.8011718162682
16443461.467838482935-18.4678384829349
17436451.912282927379-15.9122829273793
18431452.356727371824-21.3567273718237
19484518.598815027815-34.5988150278153
20510532.487703916704-22.4877039167042
21513525.265481694482-12.2654816944820
22503511.932148361149-8.93214836114865
23471494.376592805593-23.3765928055931
24471497.117881709517-26.1178817095174
25476503.874069688768-27.8740696887683
26475498.429625244324-23.4296252443241
27470487.762958577657-17.7629585776575
28461481.429625244324-20.4296252443241
29455471.874069688769-16.8740696887686
30456472.318514133213-16.318514133213
31517538.560601789205-21.5606017892046
32525552.449490678094-27.4494906780935
33523545.227268455871-22.2272684558713
34519531.893935122538-12.8939351225379
35509514.338379566982-5.33837956698239
36512517.079668470907-5.07966847090663
37519523.835856450158-4.83585645015764
38517518.391412005713-1.39141200571341
39510507.7247453390472.27525466095327
40509501.3914120057137.60858799428657
41501491.8358564501589.16414354984212
42507492.28030089460214.7196991053977
43569558.52238855059410.4776114494061
44580572.4112774394837.5887225605172
45578565.18905521726112.8109447827394
46565551.85572188392713.1442781160728
47547534.30016632837212.6998336716283
48555537.04145523229617.9585447677041
49562543.79764321154718.2023567884531
50561538.35319876710322.6468012328973
51555527.68653210043627.313467899564
52544521.35319876710322.6468012328973
53537511.79764321154725.2023567884528
54543512.24208765599230.7579123440084
55594578.48417531198315.5158246880168
56611592.37306420087218.6269357991279
57613585.1508419786527.8491580213502
58611571.81750864531639.1824913546835
59594554.26195308976139.7380469102390
60595557.00324199368537.9967580063148
61591563.75942997293627.2405700270638
62589558.31498552849230.6850144715080
63584547.64831886182536.3516811381747
64573541.31498552849231.685014471508
65567531.75942997293635.2405700270635
66569532.20387441738136.7961255826191
67621598.44596207337222.5540379266276
68629612.33485096226116.6651490377387
69628605.11262874003922.8873712599609
70612591.77929540670620.2207045932942
71595574.2237398511520.7762601488498
72597576.96502875507420.0349712449255
73593583.7212167343259.27878326567454
74590578.27677228988111.7232277101187
75580567.61010562321512.3898943767854
76574561.27677228988112.7232277101187
77573551.72121673432621.2787832656742
78573552.1656611787720.8343388212299
79620618.4077488347621.59225116523827
80626632.296637723651-6.29663772365065
81620625.074415501428-5.07441550142837
82588611.741082168095-23.7410821680951
83566594.18552661254-28.1855266125395
84557596.926815516464-39.9268155164638
85561603.683003495715-42.6830034957148
86549598.23855905127-49.2385590512705
87532587.571892384604-55.5718923846039
88526581.238559051271-55.2385590512706
89511571.683003495715-60.683003495715
90499572.12744794016-73.1274479401594
91555523.19074669222731.8092533077733
92565537.07963558111627.9203644188843
93542529.85741335889312.1425866411066
94527516.5240800255610.4759199744399
95510498.96852447000511.0314755299955
96514501.70981337392912.2901866260712
97517508.466001353188.53399864682025
98508503.0215569087364.97844309126448
99493492.3548902420690.645109757931141
100490486.0215569087363.97844309126445
101469476.46600135318-7.46600135318
102478476.9104457976241.08955420237556
103528543.152533453616-15.1525334536160
104534557.041422342505-23.0414223425049
105518549.819200120283-31.8192001202827
106506536.485866786949-30.4858667869493
107502518.930311231394-16.9303112313938

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 493 & 463.950496165992 & 29.0495038340082 \tabularnewline
2 & 481 & 458.506051721546 & 22.4939482784543 \tabularnewline
3 & 462 & 447.839385054879 & 14.160614945121 \tabularnewline
4 & 457 & 441.506051721546 & 15.4939482784545 \tabularnewline
5 & 442 & 431.95049616599 & 10.0495038340102 \tabularnewline
6 & 439 & 432.394940610435 & 6.60505938956552 \tabularnewline
7 & 488 & 498.637028266426 & -10.6370282664261 \tabularnewline
8 & 521 & 512.525917155315 & 8.47408284468521 \tabularnewline
9 & 501 & 505.303694933093 & -4.30369493309283 \tabularnewline
10 & 485 & 491.970361599759 & -6.9703615997594 \tabularnewline
11 & 464 & 474.414806044204 & -10.4148060442039 \tabularnewline
12 & 460 & 477.156094948128 & -17.1560949481280 \tabularnewline
13 & 467 & 483.912282927379 & -16.9122829273792 \tabularnewline
14 & 460 & 478.467838482935 & -18.4678384829347 \tabularnewline
15 & 448 & 467.801171816268 & -19.8011718162682 \tabularnewline
16 & 443 & 461.467838482935 & -18.4678384829349 \tabularnewline
17 & 436 & 451.912282927379 & -15.9122829273793 \tabularnewline
18 & 431 & 452.356727371824 & -21.3567273718237 \tabularnewline
19 & 484 & 518.598815027815 & -34.5988150278153 \tabularnewline
20 & 510 & 532.487703916704 & -22.4877039167042 \tabularnewline
21 & 513 & 525.265481694482 & -12.2654816944820 \tabularnewline
22 & 503 & 511.932148361149 & -8.93214836114865 \tabularnewline
23 & 471 & 494.376592805593 & -23.3765928055931 \tabularnewline
24 & 471 & 497.117881709517 & -26.1178817095174 \tabularnewline
25 & 476 & 503.874069688768 & -27.8740696887683 \tabularnewline
26 & 475 & 498.429625244324 & -23.4296252443241 \tabularnewline
27 & 470 & 487.762958577657 & -17.7629585776575 \tabularnewline
28 & 461 & 481.429625244324 & -20.4296252443241 \tabularnewline
29 & 455 & 471.874069688769 & -16.8740696887686 \tabularnewline
30 & 456 & 472.318514133213 & -16.318514133213 \tabularnewline
31 & 517 & 538.560601789205 & -21.5606017892046 \tabularnewline
32 & 525 & 552.449490678094 & -27.4494906780935 \tabularnewline
33 & 523 & 545.227268455871 & -22.2272684558713 \tabularnewline
34 & 519 & 531.893935122538 & -12.8939351225379 \tabularnewline
35 & 509 & 514.338379566982 & -5.33837956698239 \tabularnewline
36 & 512 & 517.079668470907 & -5.07966847090663 \tabularnewline
37 & 519 & 523.835856450158 & -4.83585645015764 \tabularnewline
38 & 517 & 518.391412005713 & -1.39141200571341 \tabularnewline
39 & 510 & 507.724745339047 & 2.27525466095327 \tabularnewline
40 & 509 & 501.391412005713 & 7.60858799428657 \tabularnewline
41 & 501 & 491.835856450158 & 9.16414354984212 \tabularnewline
42 & 507 & 492.280300894602 & 14.7196991053977 \tabularnewline
43 & 569 & 558.522388550594 & 10.4776114494061 \tabularnewline
44 & 580 & 572.411277439483 & 7.5887225605172 \tabularnewline
45 & 578 & 565.189055217261 & 12.8109447827394 \tabularnewline
46 & 565 & 551.855721883927 & 13.1442781160728 \tabularnewline
47 & 547 & 534.300166328372 & 12.6998336716283 \tabularnewline
48 & 555 & 537.041455232296 & 17.9585447677041 \tabularnewline
49 & 562 & 543.797643211547 & 18.2023567884531 \tabularnewline
50 & 561 & 538.353198767103 & 22.6468012328973 \tabularnewline
51 & 555 & 527.686532100436 & 27.313467899564 \tabularnewline
52 & 544 & 521.353198767103 & 22.6468012328973 \tabularnewline
53 & 537 & 511.797643211547 & 25.2023567884528 \tabularnewline
54 & 543 & 512.242087655992 & 30.7579123440084 \tabularnewline
55 & 594 & 578.484175311983 & 15.5158246880168 \tabularnewline
56 & 611 & 592.373064200872 & 18.6269357991279 \tabularnewline
57 & 613 & 585.15084197865 & 27.8491580213502 \tabularnewline
58 & 611 & 571.817508645316 & 39.1824913546835 \tabularnewline
59 & 594 & 554.261953089761 & 39.7380469102390 \tabularnewline
60 & 595 & 557.003241993685 & 37.9967580063148 \tabularnewline
61 & 591 & 563.759429972936 & 27.2405700270638 \tabularnewline
62 & 589 & 558.314985528492 & 30.6850144715080 \tabularnewline
63 & 584 & 547.648318861825 & 36.3516811381747 \tabularnewline
64 & 573 & 541.314985528492 & 31.685014471508 \tabularnewline
65 & 567 & 531.759429972936 & 35.2405700270635 \tabularnewline
66 & 569 & 532.203874417381 & 36.7961255826191 \tabularnewline
67 & 621 & 598.445962073372 & 22.5540379266276 \tabularnewline
68 & 629 & 612.334850962261 & 16.6651490377387 \tabularnewline
69 & 628 & 605.112628740039 & 22.8873712599609 \tabularnewline
70 & 612 & 591.779295406706 & 20.2207045932942 \tabularnewline
71 & 595 & 574.22373985115 & 20.7762601488498 \tabularnewline
72 & 597 & 576.965028755074 & 20.0349712449255 \tabularnewline
73 & 593 & 583.721216734325 & 9.27878326567454 \tabularnewline
74 & 590 & 578.276772289881 & 11.7232277101187 \tabularnewline
75 & 580 & 567.610105623215 & 12.3898943767854 \tabularnewline
76 & 574 & 561.276772289881 & 12.7232277101187 \tabularnewline
77 & 573 & 551.721216734326 & 21.2787832656742 \tabularnewline
78 & 573 & 552.16566117877 & 20.8343388212299 \tabularnewline
79 & 620 & 618.407748834762 & 1.59225116523827 \tabularnewline
80 & 626 & 632.296637723651 & -6.29663772365065 \tabularnewline
81 & 620 & 625.074415501428 & -5.07441550142837 \tabularnewline
82 & 588 & 611.741082168095 & -23.7410821680951 \tabularnewline
83 & 566 & 594.18552661254 & -28.1855266125395 \tabularnewline
84 & 557 & 596.926815516464 & -39.9268155164638 \tabularnewline
85 & 561 & 603.683003495715 & -42.6830034957148 \tabularnewline
86 & 549 & 598.23855905127 & -49.2385590512705 \tabularnewline
87 & 532 & 587.571892384604 & -55.5718923846039 \tabularnewline
88 & 526 & 581.238559051271 & -55.2385590512706 \tabularnewline
89 & 511 & 571.683003495715 & -60.683003495715 \tabularnewline
90 & 499 & 572.12744794016 & -73.1274479401594 \tabularnewline
91 & 555 & 523.190746692227 & 31.8092533077733 \tabularnewline
92 & 565 & 537.079635581116 & 27.9203644188843 \tabularnewline
93 & 542 & 529.857413358893 & 12.1425866411066 \tabularnewline
94 & 527 & 516.52408002556 & 10.4759199744399 \tabularnewline
95 & 510 & 498.968524470005 & 11.0314755299955 \tabularnewline
96 & 514 & 501.709813373929 & 12.2901866260712 \tabularnewline
97 & 517 & 508.46600135318 & 8.53399864682025 \tabularnewline
98 & 508 & 503.021556908736 & 4.97844309126448 \tabularnewline
99 & 493 & 492.354890242069 & 0.645109757931141 \tabularnewline
100 & 490 & 486.021556908736 & 3.97844309126445 \tabularnewline
101 & 469 & 476.46600135318 & -7.46600135318 \tabularnewline
102 & 478 & 476.910445797624 & 1.08955420237556 \tabularnewline
103 & 528 & 543.152533453616 & -15.1525334536160 \tabularnewline
104 & 534 & 557.041422342505 & -23.0414223425049 \tabularnewline
105 & 518 & 549.819200120283 & -31.8192001202827 \tabularnewline
106 & 506 & 536.485866786949 & -30.4858667869493 \tabularnewline
107 & 502 & 518.930311231394 & -16.9303112313938 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29904&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]493[/C][C]463.950496165992[/C][C]29.0495038340082[/C][/ROW]
[ROW][C]2[/C][C]481[/C][C]458.506051721546[/C][C]22.4939482784543[/C][/ROW]
[ROW][C]3[/C][C]462[/C][C]447.839385054879[/C][C]14.160614945121[/C][/ROW]
[ROW][C]4[/C][C]457[/C][C]441.506051721546[/C][C]15.4939482784545[/C][/ROW]
[ROW][C]5[/C][C]442[/C][C]431.95049616599[/C][C]10.0495038340102[/C][/ROW]
[ROW][C]6[/C][C]439[/C][C]432.394940610435[/C][C]6.60505938956552[/C][/ROW]
[ROW][C]7[/C][C]488[/C][C]498.637028266426[/C][C]-10.6370282664261[/C][/ROW]
[ROW][C]8[/C][C]521[/C][C]512.525917155315[/C][C]8.47408284468521[/C][/ROW]
[ROW][C]9[/C][C]501[/C][C]505.303694933093[/C][C]-4.30369493309283[/C][/ROW]
[ROW][C]10[/C][C]485[/C][C]491.970361599759[/C][C]-6.9703615997594[/C][/ROW]
[ROW][C]11[/C][C]464[/C][C]474.414806044204[/C][C]-10.4148060442039[/C][/ROW]
[ROW][C]12[/C][C]460[/C][C]477.156094948128[/C][C]-17.1560949481280[/C][/ROW]
[ROW][C]13[/C][C]467[/C][C]483.912282927379[/C][C]-16.9122829273792[/C][/ROW]
[ROW][C]14[/C][C]460[/C][C]478.467838482935[/C][C]-18.4678384829347[/C][/ROW]
[ROW][C]15[/C][C]448[/C][C]467.801171816268[/C][C]-19.8011718162682[/C][/ROW]
[ROW][C]16[/C][C]443[/C][C]461.467838482935[/C][C]-18.4678384829349[/C][/ROW]
[ROW][C]17[/C][C]436[/C][C]451.912282927379[/C][C]-15.9122829273793[/C][/ROW]
[ROW][C]18[/C][C]431[/C][C]452.356727371824[/C][C]-21.3567273718237[/C][/ROW]
[ROW][C]19[/C][C]484[/C][C]518.598815027815[/C][C]-34.5988150278153[/C][/ROW]
[ROW][C]20[/C][C]510[/C][C]532.487703916704[/C][C]-22.4877039167042[/C][/ROW]
[ROW][C]21[/C][C]513[/C][C]525.265481694482[/C][C]-12.2654816944820[/C][/ROW]
[ROW][C]22[/C][C]503[/C][C]511.932148361149[/C][C]-8.93214836114865[/C][/ROW]
[ROW][C]23[/C][C]471[/C][C]494.376592805593[/C][C]-23.3765928055931[/C][/ROW]
[ROW][C]24[/C][C]471[/C][C]497.117881709517[/C][C]-26.1178817095174[/C][/ROW]
[ROW][C]25[/C][C]476[/C][C]503.874069688768[/C][C]-27.8740696887683[/C][/ROW]
[ROW][C]26[/C][C]475[/C][C]498.429625244324[/C][C]-23.4296252443241[/C][/ROW]
[ROW][C]27[/C][C]470[/C][C]487.762958577657[/C][C]-17.7629585776575[/C][/ROW]
[ROW][C]28[/C][C]461[/C][C]481.429625244324[/C][C]-20.4296252443241[/C][/ROW]
[ROW][C]29[/C][C]455[/C][C]471.874069688769[/C][C]-16.8740696887686[/C][/ROW]
[ROW][C]30[/C][C]456[/C][C]472.318514133213[/C][C]-16.318514133213[/C][/ROW]
[ROW][C]31[/C][C]517[/C][C]538.560601789205[/C][C]-21.5606017892046[/C][/ROW]
[ROW][C]32[/C][C]525[/C][C]552.449490678094[/C][C]-27.4494906780935[/C][/ROW]
[ROW][C]33[/C][C]523[/C][C]545.227268455871[/C][C]-22.2272684558713[/C][/ROW]
[ROW][C]34[/C][C]519[/C][C]531.893935122538[/C][C]-12.8939351225379[/C][/ROW]
[ROW][C]35[/C][C]509[/C][C]514.338379566982[/C][C]-5.33837956698239[/C][/ROW]
[ROW][C]36[/C][C]512[/C][C]517.079668470907[/C][C]-5.07966847090663[/C][/ROW]
[ROW][C]37[/C][C]519[/C][C]523.835856450158[/C][C]-4.83585645015764[/C][/ROW]
[ROW][C]38[/C][C]517[/C][C]518.391412005713[/C][C]-1.39141200571341[/C][/ROW]
[ROW][C]39[/C][C]510[/C][C]507.724745339047[/C][C]2.27525466095327[/C][/ROW]
[ROW][C]40[/C][C]509[/C][C]501.391412005713[/C][C]7.60858799428657[/C][/ROW]
[ROW][C]41[/C][C]501[/C][C]491.835856450158[/C][C]9.16414354984212[/C][/ROW]
[ROW][C]42[/C][C]507[/C][C]492.280300894602[/C][C]14.7196991053977[/C][/ROW]
[ROW][C]43[/C][C]569[/C][C]558.522388550594[/C][C]10.4776114494061[/C][/ROW]
[ROW][C]44[/C][C]580[/C][C]572.411277439483[/C][C]7.5887225605172[/C][/ROW]
[ROW][C]45[/C][C]578[/C][C]565.189055217261[/C][C]12.8109447827394[/C][/ROW]
[ROW][C]46[/C][C]565[/C][C]551.855721883927[/C][C]13.1442781160728[/C][/ROW]
[ROW][C]47[/C][C]547[/C][C]534.300166328372[/C][C]12.6998336716283[/C][/ROW]
[ROW][C]48[/C][C]555[/C][C]537.041455232296[/C][C]17.9585447677041[/C][/ROW]
[ROW][C]49[/C][C]562[/C][C]543.797643211547[/C][C]18.2023567884531[/C][/ROW]
[ROW][C]50[/C][C]561[/C][C]538.353198767103[/C][C]22.6468012328973[/C][/ROW]
[ROW][C]51[/C][C]555[/C][C]527.686532100436[/C][C]27.313467899564[/C][/ROW]
[ROW][C]52[/C][C]544[/C][C]521.353198767103[/C][C]22.6468012328973[/C][/ROW]
[ROW][C]53[/C][C]537[/C][C]511.797643211547[/C][C]25.2023567884528[/C][/ROW]
[ROW][C]54[/C][C]543[/C][C]512.242087655992[/C][C]30.7579123440084[/C][/ROW]
[ROW][C]55[/C][C]594[/C][C]578.484175311983[/C][C]15.5158246880168[/C][/ROW]
[ROW][C]56[/C][C]611[/C][C]592.373064200872[/C][C]18.6269357991279[/C][/ROW]
[ROW][C]57[/C][C]613[/C][C]585.15084197865[/C][C]27.8491580213502[/C][/ROW]
[ROW][C]58[/C][C]611[/C][C]571.817508645316[/C][C]39.1824913546835[/C][/ROW]
[ROW][C]59[/C][C]594[/C][C]554.261953089761[/C][C]39.7380469102390[/C][/ROW]
[ROW][C]60[/C][C]595[/C][C]557.003241993685[/C][C]37.9967580063148[/C][/ROW]
[ROW][C]61[/C][C]591[/C][C]563.759429972936[/C][C]27.2405700270638[/C][/ROW]
[ROW][C]62[/C][C]589[/C][C]558.314985528492[/C][C]30.6850144715080[/C][/ROW]
[ROW][C]63[/C][C]584[/C][C]547.648318861825[/C][C]36.3516811381747[/C][/ROW]
[ROW][C]64[/C][C]573[/C][C]541.314985528492[/C][C]31.685014471508[/C][/ROW]
[ROW][C]65[/C][C]567[/C][C]531.759429972936[/C][C]35.2405700270635[/C][/ROW]
[ROW][C]66[/C][C]569[/C][C]532.203874417381[/C][C]36.7961255826191[/C][/ROW]
[ROW][C]67[/C][C]621[/C][C]598.445962073372[/C][C]22.5540379266276[/C][/ROW]
[ROW][C]68[/C][C]629[/C][C]612.334850962261[/C][C]16.6651490377387[/C][/ROW]
[ROW][C]69[/C][C]628[/C][C]605.112628740039[/C][C]22.8873712599609[/C][/ROW]
[ROW][C]70[/C][C]612[/C][C]591.779295406706[/C][C]20.2207045932942[/C][/ROW]
[ROW][C]71[/C][C]595[/C][C]574.22373985115[/C][C]20.7762601488498[/C][/ROW]
[ROW][C]72[/C][C]597[/C][C]576.965028755074[/C][C]20.0349712449255[/C][/ROW]
[ROW][C]73[/C][C]593[/C][C]583.721216734325[/C][C]9.27878326567454[/C][/ROW]
[ROW][C]74[/C][C]590[/C][C]578.276772289881[/C][C]11.7232277101187[/C][/ROW]
[ROW][C]75[/C][C]580[/C][C]567.610105623215[/C][C]12.3898943767854[/C][/ROW]
[ROW][C]76[/C][C]574[/C][C]561.276772289881[/C][C]12.7232277101187[/C][/ROW]
[ROW][C]77[/C][C]573[/C][C]551.721216734326[/C][C]21.2787832656742[/C][/ROW]
[ROW][C]78[/C][C]573[/C][C]552.16566117877[/C][C]20.8343388212299[/C][/ROW]
[ROW][C]79[/C][C]620[/C][C]618.407748834762[/C][C]1.59225116523827[/C][/ROW]
[ROW][C]80[/C][C]626[/C][C]632.296637723651[/C][C]-6.29663772365065[/C][/ROW]
[ROW][C]81[/C][C]620[/C][C]625.074415501428[/C][C]-5.07441550142837[/C][/ROW]
[ROW][C]82[/C][C]588[/C][C]611.741082168095[/C][C]-23.7410821680951[/C][/ROW]
[ROW][C]83[/C][C]566[/C][C]594.18552661254[/C][C]-28.1855266125395[/C][/ROW]
[ROW][C]84[/C][C]557[/C][C]596.926815516464[/C][C]-39.9268155164638[/C][/ROW]
[ROW][C]85[/C][C]561[/C][C]603.683003495715[/C][C]-42.6830034957148[/C][/ROW]
[ROW][C]86[/C][C]549[/C][C]598.23855905127[/C][C]-49.2385590512705[/C][/ROW]
[ROW][C]87[/C][C]532[/C][C]587.571892384604[/C][C]-55.5718923846039[/C][/ROW]
[ROW][C]88[/C][C]526[/C][C]581.238559051271[/C][C]-55.2385590512706[/C][/ROW]
[ROW][C]89[/C][C]511[/C][C]571.683003495715[/C][C]-60.683003495715[/C][/ROW]
[ROW][C]90[/C][C]499[/C][C]572.12744794016[/C][C]-73.1274479401594[/C][/ROW]
[ROW][C]91[/C][C]555[/C][C]523.190746692227[/C][C]31.8092533077733[/C][/ROW]
[ROW][C]92[/C][C]565[/C][C]537.079635581116[/C][C]27.9203644188843[/C][/ROW]
[ROW][C]93[/C][C]542[/C][C]529.857413358893[/C][C]12.1425866411066[/C][/ROW]
[ROW][C]94[/C][C]527[/C][C]516.52408002556[/C][C]10.4759199744399[/C][/ROW]
[ROW][C]95[/C][C]510[/C][C]498.968524470005[/C][C]11.0314755299955[/C][/ROW]
[ROW][C]96[/C][C]514[/C][C]501.709813373929[/C][C]12.2901866260712[/C][/ROW]
[ROW][C]97[/C][C]517[/C][C]508.46600135318[/C][C]8.53399864682025[/C][/ROW]
[ROW][C]98[/C][C]508[/C][C]503.021556908736[/C][C]4.97844309126448[/C][/ROW]
[ROW][C]99[/C][C]493[/C][C]492.354890242069[/C][C]0.645109757931141[/C][/ROW]
[ROW][C]100[/C][C]490[/C][C]486.021556908736[/C][C]3.97844309126445[/C][/ROW]
[ROW][C]101[/C][C]469[/C][C]476.46600135318[/C][C]-7.46600135318[/C][/ROW]
[ROW][C]102[/C][C]478[/C][C]476.910445797624[/C][C]1.08955420237556[/C][/ROW]
[ROW][C]103[/C][C]528[/C][C]543.152533453616[/C][C]-15.1525334536160[/C][/ROW]
[ROW][C]104[/C][C]534[/C][C]557.041422342505[/C][C]-23.0414223425049[/C][/ROW]
[ROW][C]105[/C][C]518[/C][C]549.819200120283[/C][C]-31.8192001202827[/C][/ROW]
[ROW][C]106[/C][C]506[/C][C]536.485866786949[/C][C]-30.4858667869493[/C][/ROW]
[ROW][C]107[/C][C]502[/C][C]518.930311231394[/C][C]-16.9303112313938[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29904&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29904&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
1493463.95049616599229.0495038340082
2481458.50605172154622.4939482784543
3462447.83938505487914.160614945121
4457441.50605172154615.4939482784545
5442431.9504961659910.0495038340102
6439432.3949406104356.60505938956552
7488498.637028266426-10.6370282664261
8521512.5259171553158.47408284468521
9501505.303694933093-4.30369493309283
10485491.970361599759-6.9703615997594
11464474.414806044204-10.4148060442039
12460477.156094948128-17.1560949481280
13467483.912282927379-16.9122829273792
14460478.467838482935-18.4678384829347
15448467.801171816268-19.8011718162682
16443461.467838482935-18.4678384829349
17436451.912282927379-15.9122829273793
18431452.356727371824-21.3567273718237
19484518.598815027815-34.5988150278153
20510532.487703916704-22.4877039167042
21513525.265481694482-12.2654816944820
22503511.932148361149-8.93214836114865
23471494.376592805593-23.3765928055931
24471497.117881709517-26.1178817095174
25476503.874069688768-27.8740696887683
26475498.429625244324-23.4296252443241
27470487.762958577657-17.7629585776575
28461481.429625244324-20.4296252443241
29455471.874069688769-16.8740696887686
30456472.318514133213-16.318514133213
31517538.560601789205-21.5606017892046
32525552.449490678094-27.4494906780935
33523545.227268455871-22.2272684558713
34519531.893935122538-12.8939351225379
35509514.338379566982-5.33837956698239
36512517.079668470907-5.07966847090663
37519523.835856450158-4.83585645015764
38517518.391412005713-1.39141200571341
39510507.7247453390472.27525466095327
40509501.3914120057137.60858799428657
41501491.8358564501589.16414354984212
42507492.28030089460214.7196991053977
43569558.52238855059410.4776114494061
44580572.4112774394837.5887225605172
45578565.18905521726112.8109447827394
46565551.85572188392713.1442781160728
47547534.30016632837212.6998336716283
48555537.04145523229617.9585447677041
49562543.79764321154718.2023567884531
50561538.35319876710322.6468012328973
51555527.68653210043627.313467899564
52544521.35319876710322.6468012328973
53537511.79764321154725.2023567884528
54543512.24208765599230.7579123440084
55594578.48417531198315.5158246880168
56611592.37306420087218.6269357991279
57613585.1508419786527.8491580213502
58611571.81750864531639.1824913546835
59594554.26195308976139.7380469102390
60595557.00324199368537.9967580063148
61591563.75942997293627.2405700270638
62589558.31498552849230.6850144715080
63584547.64831886182536.3516811381747
64573541.31498552849231.685014471508
65567531.75942997293635.2405700270635
66569532.20387441738136.7961255826191
67621598.44596207337222.5540379266276
68629612.33485096226116.6651490377387
69628605.11262874003922.8873712599609
70612591.77929540670620.2207045932942
71595574.2237398511520.7762601488498
72597576.96502875507420.0349712449255
73593583.7212167343259.27878326567454
74590578.27677228988111.7232277101187
75580567.61010562321512.3898943767854
76574561.27677228988112.7232277101187
77573551.72121673432621.2787832656742
78573552.1656611787720.8343388212299
79620618.4077488347621.59225116523827
80626632.296637723651-6.29663772365065
81620625.074415501428-5.07441550142837
82588611.741082168095-23.7410821680951
83566594.18552661254-28.1855266125395
84557596.926815516464-39.9268155164638
85561603.683003495715-42.6830034957148
86549598.23855905127-49.2385590512705
87532587.571892384604-55.5718923846039
88526581.238559051271-55.2385590512706
89511571.683003495715-60.683003495715
90499572.12744794016-73.1274479401594
91555523.19074669222731.8092533077733
92565537.07963558111627.9203644188843
93542529.85741335889312.1425866411066
94527516.5240800255610.4759199744399
95510498.96852447000511.0314755299955
96514501.70981337392912.2901866260712
97517508.466001353188.53399864682025
98508503.0215569087364.97844309126448
99493492.3548902420690.645109757931141
100490486.0215569087363.97844309126445
101469476.46600135318-7.46600135318
102478476.9104457976241.08955420237556
103528543.152533453616-15.1525334536160
104534557.041422342505-23.0414223425049
105518549.819200120283-31.8192001202827
106506536.485866786949-30.4858667869493
107502518.930311231394-16.9303112313938



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