Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 16 Nov 2007 08:25:36 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2007/Nov/16/t119522640200pncxx6c3zu6yn.htm/, Retrieved Mon, 06 May 2024 04:21:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=5497, Retrieved Mon, 06 May 2024 04:21:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact257
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [TEST WS8] [2007-11-16 15:25:36] [188769849def0e10208c9145aa17361f] [Current]
Feedback Forum

Post a new message
Dataseries X:
4341	0
4136	0
4022	0
4117	0
3985	0
3709	0
4815	0
5082	0
4979	0
4796	0
3368	0
4860	0
5177	0
4693	0
5370	1
4559	1
4325	1
3841	1
4690	1
4916	1
5174	1
4453	1
3373	1
4892	1
4714	1
4696	1
4349	1
4169	1
3588	1
3129	1
3938	0
4154	0
4214	0
4280	0
3179	0
4687	0
4130	0
4489	0
4628	0
3973	0
3401	0
3217	0
3442	0
3833	0
5268	0
3577	0
2618	0
3870	1
3431	0
4024	0
4151	0
3181	0
2918	0
2640	0
2700	0
3603	0
4348	0
3322	0
2312	0
3472	0
3592	0
3481	0




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

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







Multiple Linear Regression - Estimated Regression Equation
y[t] = + 3917.4 + 441.894117647059x[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  3917.4 +  441.894117647059x[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5497&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  3917.4 +  441.894117647059x[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5497&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5497&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] = + 3917.4 + 441.894117647059x[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3917.4104.79034537.383200
x441.894117647059200.1209952.20810.0310680.015534

\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) & 3917.4 & 104.790345 & 37.3832 & 0 & 0 \tabularnewline
x & 441.894117647059 & 200.120995 & 2.2081 & 0.031068 & 0.015534 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5497&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]3917.4[/C][C]104.790345[/C][C]37.3832[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]441.894117647059[/C][C]200.120995[/C][C]2.2081[/C][C]0.031068[/C][C]0.015534[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5497&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5497&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)3917.4104.79034537.383200
x441.894117647059200.1209952.20810.0310680.015534







Multiple Linear Regression - Regression Statistics
Multiple R0.274147320535918
R-squared0.0751567533570231
Adjusted R-squared0.0597426992463068
F-TEST (value)4.87585892829921
F-TEST (DF numerator)1
F-TEST (DF denominator)60
p-value0.0310677694078217
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation702.955004835679
Sum Squared Residuals29648744.3294118

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.274147320535918 \tabularnewline
R-squared & 0.0751567533570231 \tabularnewline
Adjusted R-squared & 0.0597426992463068 \tabularnewline
F-TEST (value) & 4.87585892829921 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 60 \tabularnewline
p-value & 0.0310677694078217 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 702.955004835679 \tabularnewline
Sum Squared Residuals & 29648744.3294118 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5497&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.274147320535918[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0751567533570231[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0597426992463068[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.87585892829921[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]60[/C][/ROW]
[ROW][C]p-value[/C][C]0.0310677694078217[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]702.955004835679[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]29648744.3294118[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5497&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5497&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.274147320535918
R-squared0.0751567533570231
Adjusted R-squared0.0597426992463068
F-TEST (value)4.87585892829921
F-TEST (DF numerator)1
F-TEST (DF denominator)60
p-value0.0310677694078217
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation702.955004835679
Sum Squared Residuals29648744.3294118







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
143413917.4423.599999999999
241363917.4218.6
340223917.4104.6
441173917.4199.6
539853917.467.6
637093917.4-208.4
748153917.4897.6
850823917.41164.6
949793917.41061.6
1047963917.4878.6
1133683917.4-549.4
1248603917.4942.6
1351773917.41259.6
1446933917.4775.6
1553704359.294117647061010.70588235294
1645594359.29411764706199.705882352941
1743254359.29411764706-34.2941176470588
1838414359.29411764706-518.294117647059
1946904359.29411764706330.705882352941
2049164359.29411764706556.705882352941
2151744359.29411764706814.705882352941
2244534359.2941176470693.7058823529412
2333734359.29411764706-986.294117647059
2448924359.29411764706532.705882352941
2547144359.29411764706354.705882352941
2646964359.29411764706336.705882352941
2743494359.29411764706-10.2941176470588
2841694359.29411764706-190.294117647059
2935884359.29411764706-771.294117647059
3031294359.29411764706-1230.29411764706
3139383917.420.6000000000001
3241543917.4236.6
3342143917.4296.6
3442803917.4362.6
3531793917.4-738.4
3646873917.4769.6
3741303917.4212.6
3844893917.4571.6
3946283917.4710.6
4039733917.455.6
4134013917.4-516.4
4232173917.4-700.4
4334423917.4-475.4
4438333917.4-84.4
4552683917.41350.6
4635773917.4-340.4
4726183917.4-1299.4
4838704359.29411764706-489.294117647059
4934313917.4-486.4
5040243917.4106.6
5141513917.4233.6
5231813917.4-736.4
5329183917.4-999.4
5426403917.4-1277.4
5527003917.4-1217.4
5636033917.4-314.4
5743483917.4430.6
5833223917.4-595.4
5923123917.4-1605.4
6034723917.4-445.4
6135923917.4-325.4
6234813917.4-436.4

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 4341 & 3917.4 & 423.599999999999 \tabularnewline
2 & 4136 & 3917.4 & 218.6 \tabularnewline
3 & 4022 & 3917.4 & 104.6 \tabularnewline
4 & 4117 & 3917.4 & 199.6 \tabularnewline
5 & 3985 & 3917.4 & 67.6 \tabularnewline
6 & 3709 & 3917.4 & -208.4 \tabularnewline
7 & 4815 & 3917.4 & 897.6 \tabularnewline
8 & 5082 & 3917.4 & 1164.6 \tabularnewline
9 & 4979 & 3917.4 & 1061.6 \tabularnewline
10 & 4796 & 3917.4 & 878.6 \tabularnewline
11 & 3368 & 3917.4 & -549.4 \tabularnewline
12 & 4860 & 3917.4 & 942.6 \tabularnewline
13 & 5177 & 3917.4 & 1259.6 \tabularnewline
14 & 4693 & 3917.4 & 775.6 \tabularnewline
15 & 5370 & 4359.29411764706 & 1010.70588235294 \tabularnewline
16 & 4559 & 4359.29411764706 & 199.705882352941 \tabularnewline
17 & 4325 & 4359.29411764706 & -34.2941176470588 \tabularnewline
18 & 3841 & 4359.29411764706 & -518.294117647059 \tabularnewline
19 & 4690 & 4359.29411764706 & 330.705882352941 \tabularnewline
20 & 4916 & 4359.29411764706 & 556.705882352941 \tabularnewline
21 & 5174 & 4359.29411764706 & 814.705882352941 \tabularnewline
22 & 4453 & 4359.29411764706 & 93.7058823529412 \tabularnewline
23 & 3373 & 4359.29411764706 & -986.294117647059 \tabularnewline
24 & 4892 & 4359.29411764706 & 532.705882352941 \tabularnewline
25 & 4714 & 4359.29411764706 & 354.705882352941 \tabularnewline
26 & 4696 & 4359.29411764706 & 336.705882352941 \tabularnewline
27 & 4349 & 4359.29411764706 & -10.2941176470588 \tabularnewline
28 & 4169 & 4359.29411764706 & -190.294117647059 \tabularnewline
29 & 3588 & 4359.29411764706 & -771.294117647059 \tabularnewline
30 & 3129 & 4359.29411764706 & -1230.29411764706 \tabularnewline
31 & 3938 & 3917.4 & 20.6000000000001 \tabularnewline
32 & 4154 & 3917.4 & 236.6 \tabularnewline
33 & 4214 & 3917.4 & 296.6 \tabularnewline
34 & 4280 & 3917.4 & 362.6 \tabularnewline
35 & 3179 & 3917.4 & -738.4 \tabularnewline
36 & 4687 & 3917.4 & 769.6 \tabularnewline
37 & 4130 & 3917.4 & 212.6 \tabularnewline
38 & 4489 & 3917.4 & 571.6 \tabularnewline
39 & 4628 & 3917.4 & 710.6 \tabularnewline
40 & 3973 & 3917.4 & 55.6 \tabularnewline
41 & 3401 & 3917.4 & -516.4 \tabularnewline
42 & 3217 & 3917.4 & -700.4 \tabularnewline
43 & 3442 & 3917.4 & -475.4 \tabularnewline
44 & 3833 & 3917.4 & -84.4 \tabularnewline
45 & 5268 & 3917.4 & 1350.6 \tabularnewline
46 & 3577 & 3917.4 & -340.4 \tabularnewline
47 & 2618 & 3917.4 & -1299.4 \tabularnewline
48 & 3870 & 4359.29411764706 & -489.294117647059 \tabularnewline
49 & 3431 & 3917.4 & -486.4 \tabularnewline
50 & 4024 & 3917.4 & 106.6 \tabularnewline
51 & 4151 & 3917.4 & 233.6 \tabularnewline
52 & 3181 & 3917.4 & -736.4 \tabularnewline
53 & 2918 & 3917.4 & -999.4 \tabularnewline
54 & 2640 & 3917.4 & -1277.4 \tabularnewline
55 & 2700 & 3917.4 & -1217.4 \tabularnewline
56 & 3603 & 3917.4 & -314.4 \tabularnewline
57 & 4348 & 3917.4 & 430.6 \tabularnewline
58 & 3322 & 3917.4 & -595.4 \tabularnewline
59 & 2312 & 3917.4 & -1605.4 \tabularnewline
60 & 3472 & 3917.4 & -445.4 \tabularnewline
61 & 3592 & 3917.4 & -325.4 \tabularnewline
62 & 3481 & 3917.4 & -436.4 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5497&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]4341[/C][C]3917.4[/C][C]423.599999999999[/C][/ROW]
[ROW][C]2[/C][C]4136[/C][C]3917.4[/C][C]218.6[/C][/ROW]
[ROW][C]3[/C][C]4022[/C][C]3917.4[/C][C]104.6[/C][/ROW]
[ROW][C]4[/C][C]4117[/C][C]3917.4[/C][C]199.6[/C][/ROW]
[ROW][C]5[/C][C]3985[/C][C]3917.4[/C][C]67.6[/C][/ROW]
[ROW][C]6[/C][C]3709[/C][C]3917.4[/C][C]-208.4[/C][/ROW]
[ROW][C]7[/C][C]4815[/C][C]3917.4[/C][C]897.6[/C][/ROW]
[ROW][C]8[/C][C]5082[/C][C]3917.4[/C][C]1164.6[/C][/ROW]
[ROW][C]9[/C][C]4979[/C][C]3917.4[/C][C]1061.6[/C][/ROW]
[ROW][C]10[/C][C]4796[/C][C]3917.4[/C][C]878.6[/C][/ROW]
[ROW][C]11[/C][C]3368[/C][C]3917.4[/C][C]-549.4[/C][/ROW]
[ROW][C]12[/C][C]4860[/C][C]3917.4[/C][C]942.6[/C][/ROW]
[ROW][C]13[/C][C]5177[/C][C]3917.4[/C][C]1259.6[/C][/ROW]
[ROW][C]14[/C][C]4693[/C][C]3917.4[/C][C]775.6[/C][/ROW]
[ROW][C]15[/C][C]5370[/C][C]4359.29411764706[/C][C]1010.70588235294[/C][/ROW]
[ROW][C]16[/C][C]4559[/C][C]4359.29411764706[/C][C]199.705882352941[/C][/ROW]
[ROW][C]17[/C][C]4325[/C][C]4359.29411764706[/C][C]-34.2941176470588[/C][/ROW]
[ROW][C]18[/C][C]3841[/C][C]4359.29411764706[/C][C]-518.294117647059[/C][/ROW]
[ROW][C]19[/C][C]4690[/C][C]4359.29411764706[/C][C]330.705882352941[/C][/ROW]
[ROW][C]20[/C][C]4916[/C][C]4359.29411764706[/C][C]556.705882352941[/C][/ROW]
[ROW][C]21[/C][C]5174[/C][C]4359.29411764706[/C][C]814.705882352941[/C][/ROW]
[ROW][C]22[/C][C]4453[/C][C]4359.29411764706[/C][C]93.7058823529412[/C][/ROW]
[ROW][C]23[/C][C]3373[/C][C]4359.29411764706[/C][C]-986.294117647059[/C][/ROW]
[ROW][C]24[/C][C]4892[/C][C]4359.29411764706[/C][C]532.705882352941[/C][/ROW]
[ROW][C]25[/C][C]4714[/C][C]4359.29411764706[/C][C]354.705882352941[/C][/ROW]
[ROW][C]26[/C][C]4696[/C][C]4359.29411764706[/C][C]336.705882352941[/C][/ROW]
[ROW][C]27[/C][C]4349[/C][C]4359.29411764706[/C][C]-10.2941176470588[/C][/ROW]
[ROW][C]28[/C][C]4169[/C][C]4359.29411764706[/C][C]-190.294117647059[/C][/ROW]
[ROW][C]29[/C][C]3588[/C][C]4359.29411764706[/C][C]-771.294117647059[/C][/ROW]
[ROW][C]30[/C][C]3129[/C][C]4359.29411764706[/C][C]-1230.29411764706[/C][/ROW]
[ROW][C]31[/C][C]3938[/C][C]3917.4[/C][C]20.6000000000001[/C][/ROW]
[ROW][C]32[/C][C]4154[/C][C]3917.4[/C][C]236.6[/C][/ROW]
[ROW][C]33[/C][C]4214[/C][C]3917.4[/C][C]296.6[/C][/ROW]
[ROW][C]34[/C][C]4280[/C][C]3917.4[/C][C]362.6[/C][/ROW]
[ROW][C]35[/C][C]3179[/C][C]3917.4[/C][C]-738.4[/C][/ROW]
[ROW][C]36[/C][C]4687[/C][C]3917.4[/C][C]769.6[/C][/ROW]
[ROW][C]37[/C][C]4130[/C][C]3917.4[/C][C]212.6[/C][/ROW]
[ROW][C]38[/C][C]4489[/C][C]3917.4[/C][C]571.6[/C][/ROW]
[ROW][C]39[/C][C]4628[/C][C]3917.4[/C][C]710.6[/C][/ROW]
[ROW][C]40[/C][C]3973[/C][C]3917.4[/C][C]55.6[/C][/ROW]
[ROW][C]41[/C][C]3401[/C][C]3917.4[/C][C]-516.4[/C][/ROW]
[ROW][C]42[/C][C]3217[/C][C]3917.4[/C][C]-700.4[/C][/ROW]
[ROW][C]43[/C][C]3442[/C][C]3917.4[/C][C]-475.4[/C][/ROW]
[ROW][C]44[/C][C]3833[/C][C]3917.4[/C][C]-84.4[/C][/ROW]
[ROW][C]45[/C][C]5268[/C][C]3917.4[/C][C]1350.6[/C][/ROW]
[ROW][C]46[/C][C]3577[/C][C]3917.4[/C][C]-340.4[/C][/ROW]
[ROW][C]47[/C][C]2618[/C][C]3917.4[/C][C]-1299.4[/C][/ROW]
[ROW][C]48[/C][C]3870[/C][C]4359.29411764706[/C][C]-489.294117647059[/C][/ROW]
[ROW][C]49[/C][C]3431[/C][C]3917.4[/C][C]-486.4[/C][/ROW]
[ROW][C]50[/C][C]4024[/C][C]3917.4[/C][C]106.6[/C][/ROW]
[ROW][C]51[/C][C]4151[/C][C]3917.4[/C][C]233.6[/C][/ROW]
[ROW][C]52[/C][C]3181[/C][C]3917.4[/C][C]-736.4[/C][/ROW]
[ROW][C]53[/C][C]2918[/C][C]3917.4[/C][C]-999.4[/C][/ROW]
[ROW][C]54[/C][C]2640[/C][C]3917.4[/C][C]-1277.4[/C][/ROW]
[ROW][C]55[/C][C]2700[/C][C]3917.4[/C][C]-1217.4[/C][/ROW]
[ROW][C]56[/C][C]3603[/C][C]3917.4[/C][C]-314.4[/C][/ROW]
[ROW][C]57[/C][C]4348[/C][C]3917.4[/C][C]430.6[/C][/ROW]
[ROW][C]58[/C][C]3322[/C][C]3917.4[/C][C]-595.4[/C][/ROW]
[ROW][C]59[/C][C]2312[/C][C]3917.4[/C][C]-1605.4[/C][/ROW]
[ROW][C]60[/C][C]3472[/C][C]3917.4[/C][C]-445.4[/C][/ROW]
[ROW][C]61[/C][C]3592[/C][C]3917.4[/C][C]-325.4[/C][/ROW]
[ROW][C]62[/C][C]3481[/C][C]3917.4[/C][C]-436.4[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5497&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5497&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
143413917.4423.599999999999
241363917.4218.6
340223917.4104.6
441173917.4199.6
539853917.467.6
637093917.4-208.4
748153917.4897.6
850823917.41164.6
949793917.41061.6
1047963917.4878.6
1133683917.4-549.4
1248603917.4942.6
1351773917.41259.6
1446933917.4775.6
1553704359.294117647061010.70588235294
1645594359.29411764706199.705882352941
1743254359.29411764706-34.2941176470588
1838414359.29411764706-518.294117647059
1946904359.29411764706330.705882352941
2049164359.29411764706556.705882352941
2151744359.29411764706814.705882352941
2244534359.2941176470693.7058823529412
2333734359.29411764706-986.294117647059
2448924359.29411764706532.705882352941
2547144359.29411764706354.705882352941
2646964359.29411764706336.705882352941
2743494359.29411764706-10.2941176470588
2841694359.29411764706-190.294117647059
2935884359.29411764706-771.294117647059
3031294359.29411764706-1230.29411764706
3139383917.420.6000000000001
3241543917.4236.6
3342143917.4296.6
3442803917.4362.6
3531793917.4-738.4
3646873917.4769.6
3741303917.4212.6
3844893917.4571.6
3946283917.4710.6
4039733917.455.6
4134013917.4-516.4
4232173917.4-700.4
4334423917.4-475.4
4438333917.4-84.4
4552683917.41350.6
4635773917.4-340.4
4726183917.4-1299.4
4838704359.29411764706-489.294117647059
4934313917.4-486.4
5040243917.4106.6
5141513917.4233.6
5231813917.4-736.4
5329183917.4-999.4
5426403917.4-1277.4
5527003917.4-1217.4
5636033917.4-314.4
5743483917.4430.6
5833223917.4-595.4
5923123917.4-1605.4
6034723917.4-445.4
6135923917.4-325.4
6234813917.4-436.4



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