Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSun, 18 Nov 2007 07:20:30 -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/18/t1195395354qz1l6mnqojidngq.htm/, Retrieved Sun, 05 May 2024 04:47:54 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=5575, Retrieved Sun, 05 May 2024 04:47:54 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordss0650062 s0650550
Estimated Impact199
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [seatbelt law Q3] [2007-11-18 14:20:30] [85ebbca709d200023cfec93009cd575f] [Current]
Feedback Forum

Post a new message
Dataseries X:
8,2	0
8	0
8,1	0
8,3	0
8,2	0
8,1	0
7,7	0
7,6	0
7,7	0
8,2	0
8,4	0
8,4	0
8,6	0
8,4	0
8,5	0
8,7	0
8,7	0
8,6	0
7,4	0
7,3	0
7,4	0
9	0
9,2	0
9,2	0
8,5	0
8,3	0
8,3	0
8,6	0
8,6	0
8,5	0
8,1	0
8,1	0
8	0
8,6	0
8,7	0
8,7	0
8,6	0
8,4	0
8,4	0
8,7	0
8,7	0
8,5	0
8,3	0
8,3	0
8,3	0
8,1	0
8,2	0
8,1	0
8,1	0
7,9	0
7,7	0
8,1	1
8	1
7,7	1
7,8	1
7,6	1
7,4	1
7,7	1
7,8	1
7,5	1
7,2	1




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of compuational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5575&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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5575&T=0

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







Multiple Linear Regression - Estimated Regression Equation
y[t] = + 8.42344370860927 -0.729470198675496x[t] -0.190086460632817M1[t] -0.297435614422368M2[t] -0.300281456953642M3[t] + 0.122766740250184M4[t] + 0.079920897718911M5[t] -0.0829249448123618M6[t] -0.505770787343634M7[t] -0.588616629874908M8[t] -0.61146247240618M9[t] -0.0543083149374538M10[t] + 0.0828458425312732M11[t] + 0.00284584253127298t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  8.42344370860927 -0.729470198675496x[t] -0.190086460632817M1[t] -0.297435614422368M2[t] -0.300281456953642M3[t] +  0.122766740250184M4[t] +  0.079920897718911M5[t] -0.0829249448123618M6[t] -0.505770787343634M7[t] -0.588616629874908M8[t] -0.61146247240618M9[t] -0.0543083149374538M10[t] +  0.0828458425312732M11[t] +  0.00284584253127298t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5575&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  8.42344370860927 -0.729470198675496x[t] -0.190086460632817M1[t] -0.297435614422368M2[t] -0.300281456953642M3[t] +  0.122766740250184M4[t] +  0.079920897718911M5[t] -0.0829249448123618M6[t] -0.505770787343634M7[t] -0.588616629874908M8[t] -0.61146247240618M9[t] -0.0543083149374538M10[t] +  0.0828458425312732M11[t] +  0.00284584253127298t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5575&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5575&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] = + 8.42344370860927 -0.729470198675496x[t] -0.190086460632817M1[t] -0.297435614422368M2[t] -0.300281456953642M3[t] + 0.122766740250184M4[t] + 0.079920897718911M5[t] -0.0829249448123618M6[t] -0.505770787343634M7[t] -0.588616629874908M8[t] -0.61146247240618M9[t] -0.0543083149374538M10[t] + 0.0828458425312732M11[t] + 0.00284584253127298t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.423443708609270.1818246.328400
x-0.7294701986754960.15582-4.68152.4e-051.2e-05
M1-0.1900864606328170.205811-0.92360.3604130.180206
M2-0.2974356144223680.216195-1.37580.1754120.087706
M3-0.3002814569536420.216029-1.390.1710750.085538
M40.1227667402501840.2160740.56820.5726230.286312
M50.0799208977189110.2157040.37050.7126660.356333
M6-0.08292494481236180.215384-0.3850.7019670.350984
M7-0.5057707873436340.215113-2.35120.0229590.011479
M8-0.5886166298749080.21489-2.73910.0086760.004338
M9-0.611462472406180.214717-2.84780.006510.003255
M10-0.05430831493745380.214593-0.25310.8013140.400657
M110.08284584253127320.2145190.38620.7010960.350548
t0.002845842531272980.0032590.87310.3870340.193517

\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) & 8.42344370860927 & 0.18182 & 46.3284 & 0 & 0 \tabularnewline
x & -0.729470198675496 & 0.15582 & -4.6815 & 2.4e-05 & 1.2e-05 \tabularnewline
M1 & -0.190086460632817 & 0.205811 & -0.9236 & 0.360413 & 0.180206 \tabularnewline
M2 & -0.297435614422368 & 0.216195 & -1.3758 & 0.175412 & 0.087706 \tabularnewline
M3 & -0.300281456953642 & 0.216029 & -1.39 & 0.171075 & 0.085538 \tabularnewline
M4 & 0.122766740250184 & 0.216074 & 0.5682 & 0.572623 & 0.286312 \tabularnewline
M5 & 0.079920897718911 & 0.215704 & 0.3705 & 0.712666 & 0.356333 \tabularnewline
M6 & -0.0829249448123618 & 0.215384 & -0.385 & 0.701967 & 0.350984 \tabularnewline
M7 & -0.505770787343634 & 0.215113 & -2.3512 & 0.022959 & 0.011479 \tabularnewline
M8 & -0.588616629874908 & 0.21489 & -2.7391 & 0.008676 & 0.004338 \tabularnewline
M9 & -0.61146247240618 & 0.214717 & -2.8478 & 0.00651 & 0.003255 \tabularnewline
M10 & -0.0543083149374538 & 0.214593 & -0.2531 & 0.801314 & 0.400657 \tabularnewline
M11 & 0.0828458425312732 & 0.214519 & 0.3862 & 0.701096 & 0.350548 \tabularnewline
t & 0.00284584253127298 & 0.003259 & 0.8731 & 0.387034 & 0.193517 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5575&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]8.42344370860927[/C][C]0.18182[/C][C]46.3284[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]-0.729470198675496[/C][C]0.15582[/C][C]-4.6815[/C][C]2.4e-05[/C][C]1.2e-05[/C][/ROW]
[ROW][C]M1[/C][C]-0.190086460632817[/C][C]0.205811[/C][C]-0.9236[/C][C]0.360413[/C][C]0.180206[/C][/ROW]
[ROW][C]M2[/C][C]-0.297435614422368[/C][C]0.216195[/C][C]-1.3758[/C][C]0.175412[/C][C]0.087706[/C][/ROW]
[ROW][C]M3[/C][C]-0.300281456953642[/C][C]0.216029[/C][C]-1.39[/C][C]0.171075[/C][C]0.085538[/C][/ROW]
[ROW][C]M4[/C][C]0.122766740250184[/C][C]0.216074[/C][C]0.5682[/C][C]0.572623[/C][C]0.286312[/C][/ROW]
[ROW][C]M5[/C][C]0.079920897718911[/C][C]0.215704[/C][C]0.3705[/C][C]0.712666[/C][C]0.356333[/C][/ROW]
[ROW][C]M6[/C][C]-0.0829249448123618[/C][C]0.215384[/C][C]-0.385[/C][C]0.701967[/C][C]0.350984[/C][/ROW]
[ROW][C]M7[/C][C]-0.505770787343634[/C][C]0.215113[/C][C]-2.3512[/C][C]0.022959[/C][C]0.011479[/C][/ROW]
[ROW][C]M8[/C][C]-0.588616629874908[/C][C]0.21489[/C][C]-2.7391[/C][C]0.008676[/C][C]0.004338[/C][/ROW]
[ROW][C]M9[/C][C]-0.61146247240618[/C][C]0.214717[/C][C]-2.8478[/C][C]0.00651[/C][C]0.003255[/C][/ROW]
[ROW][C]M10[/C][C]-0.0543083149374538[/C][C]0.214593[/C][C]-0.2531[/C][C]0.801314[/C][C]0.400657[/C][/ROW]
[ROW][C]M11[/C][C]0.0828458425312732[/C][C]0.214519[/C][C]0.3862[/C][C]0.701096[/C][C]0.350548[/C][/ROW]
[ROW][C]t[/C][C]0.00284584253127298[/C][C]0.003259[/C][C]0.8731[/C][C]0.387034[/C][C]0.193517[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5575&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5575&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)8.423443708609270.1818246.328400
x-0.7294701986754960.15582-4.68152.4e-051.2e-05
M1-0.1900864606328170.205811-0.92360.3604130.180206
M2-0.2974356144223680.216195-1.37580.1754120.087706
M3-0.3002814569536420.216029-1.390.1710750.085538
M40.1227667402501840.2160740.56820.5726230.286312
M50.0799208977189110.2157040.37050.7126660.356333
M6-0.08292494481236180.215384-0.3850.7019670.350984
M7-0.5057707873436340.215113-2.35120.0229590.011479
M8-0.5886166298749080.21489-2.73910.0086760.004338
M9-0.611462472406180.214717-2.84780.006510.003255
M10-0.05430831493745380.214593-0.25310.8013140.400657
M110.08284584253127320.2145190.38620.7010960.350548
t0.002845842531272980.0032590.87310.3870340.193517







Multiple Linear Regression - Regression Statistics
Multiple R0.753786602111772
R-squared0.568194241523211
Adjusted R-squared0.448758606199844
F-TEST (value)4.75732590181187
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value3.49705896813823e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.339145514015531
Sum Squared Residuals5.40592494481236

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.753786602111772 \tabularnewline
R-squared & 0.568194241523211 \tabularnewline
Adjusted R-squared & 0.448758606199844 \tabularnewline
F-TEST (value) & 4.75732590181187 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 3.49705896813823e-05 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.339145514015531 \tabularnewline
Sum Squared Residuals & 5.40592494481236 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5575&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.753786602111772[/C][/ROW]
[ROW][C]R-squared[/C][C]0.568194241523211[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.448758606199844[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.75732590181187[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]3.49705896813823e-05[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.339145514015531[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]5.40592494481236[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5575&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5575&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.753786602111772
R-squared0.568194241523211
Adjusted R-squared0.448758606199844
F-TEST (value)4.75732590181187
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value3.49705896813823e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.339145514015531
Sum Squared Residuals5.40592494481236







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.28.23620309050772-0.0362030905077201
288.13169977924945-0.131699779249448
38.18.13169977924945-0.0316997792494489
48.38.55759381898455-0.257593818984547
58.28.51759381898455-0.317593818984548
68.18.35759381898455-0.257593818984548
77.77.93759381898455-0.237593818984548
87.67.85759381898455-0.257593818984548
97.77.83759381898455-0.137593818984548
108.28.39759381898455-0.197593818984548
118.48.53759381898455-0.137593818984547
128.48.45759381898455-0.0575938189845468
138.68.2703532008830.329646799116996
148.48.165849889624730.234150110375276
158.58.165849889624720.334150110375276
168.78.591743929359820.108256070640176
178.78.551743929359820.148256070640176
188.68.391743929359820.208256070640176
197.47.97174392935982-0.571743929359823
207.37.89174392935982-0.591743929359824
217.47.87174392935982-0.471743929359823
2298.431743929359820.568256070640177
239.28.571743929359820.628256070640176
249.28.491743929359820.708256070640176
258.58.304503311258280.195496688741721
268.38.20.1
278.38.20.100000000000000
288.68.6258940397351-0.0258940397350993
298.68.58589403973510.0141059602649008
308.58.42589403973510.0741059602649007
318.18.00589403973510.0941059602649003
328.17.92589403973510.174105960264901
3387.90589403973510.0941059602649005
348.68.46589403973510.134105960264901
358.78.60589403973510.0941059602649003
368.78.52589403973510.174105960264901
378.68.338653421633560.261346578366445
388.48.234150110375280.165849889624724
398.48.234150110375280.165849889624724
408.78.660044150110370.0399558498896246
418.78.620044150110370.0799558498896248
428.58.460044150110380.039955849889625
438.38.040044150110380.259955849889626
448.37.960044150110370.339955849889626
458.37.940044150110380.359955849889626
468.18.50004415011037-0.400044150110375
478.28.64004415011038-0.440044150110375
488.18.56004415011037-0.460044150110375
498.18.37280353200883-0.272803532008831
507.98.26830022075055-0.368300220750552
517.78.26830022075055-0.568300220750552
528.17.964724061810150.135275938189845
5387.924724061810150.0752759381898459
547.77.76472406181015-0.0647240618101543
557.87.344724061810150.455275938189845
567.67.264724061810150.335275938189845
577.47.244724061810150.155275938189846
587.77.80472406181015-0.104724061810154
597.87.94472406181015-0.144724061810154
607.57.86472406181015-0.364724061810154
617.27.67748344370861-0.47748344370861

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.2 & 8.23620309050772 & -0.0362030905077201 \tabularnewline
2 & 8 & 8.13169977924945 & -0.131699779249448 \tabularnewline
3 & 8.1 & 8.13169977924945 & -0.0316997792494489 \tabularnewline
4 & 8.3 & 8.55759381898455 & -0.257593818984547 \tabularnewline
5 & 8.2 & 8.51759381898455 & -0.317593818984548 \tabularnewline
6 & 8.1 & 8.35759381898455 & -0.257593818984548 \tabularnewline
7 & 7.7 & 7.93759381898455 & -0.237593818984548 \tabularnewline
8 & 7.6 & 7.85759381898455 & -0.257593818984548 \tabularnewline
9 & 7.7 & 7.83759381898455 & -0.137593818984548 \tabularnewline
10 & 8.2 & 8.39759381898455 & -0.197593818984548 \tabularnewline
11 & 8.4 & 8.53759381898455 & -0.137593818984547 \tabularnewline
12 & 8.4 & 8.45759381898455 & -0.0575938189845468 \tabularnewline
13 & 8.6 & 8.270353200883 & 0.329646799116996 \tabularnewline
14 & 8.4 & 8.16584988962473 & 0.234150110375276 \tabularnewline
15 & 8.5 & 8.16584988962472 & 0.334150110375276 \tabularnewline
16 & 8.7 & 8.59174392935982 & 0.108256070640176 \tabularnewline
17 & 8.7 & 8.55174392935982 & 0.148256070640176 \tabularnewline
18 & 8.6 & 8.39174392935982 & 0.208256070640176 \tabularnewline
19 & 7.4 & 7.97174392935982 & -0.571743929359823 \tabularnewline
20 & 7.3 & 7.89174392935982 & -0.591743929359824 \tabularnewline
21 & 7.4 & 7.87174392935982 & -0.471743929359823 \tabularnewline
22 & 9 & 8.43174392935982 & 0.568256070640177 \tabularnewline
23 & 9.2 & 8.57174392935982 & 0.628256070640176 \tabularnewline
24 & 9.2 & 8.49174392935982 & 0.708256070640176 \tabularnewline
25 & 8.5 & 8.30450331125828 & 0.195496688741721 \tabularnewline
26 & 8.3 & 8.2 & 0.1 \tabularnewline
27 & 8.3 & 8.2 & 0.100000000000000 \tabularnewline
28 & 8.6 & 8.6258940397351 & -0.0258940397350993 \tabularnewline
29 & 8.6 & 8.5858940397351 & 0.0141059602649008 \tabularnewline
30 & 8.5 & 8.4258940397351 & 0.0741059602649007 \tabularnewline
31 & 8.1 & 8.0058940397351 & 0.0941059602649003 \tabularnewline
32 & 8.1 & 7.9258940397351 & 0.174105960264901 \tabularnewline
33 & 8 & 7.9058940397351 & 0.0941059602649005 \tabularnewline
34 & 8.6 & 8.4658940397351 & 0.134105960264901 \tabularnewline
35 & 8.7 & 8.6058940397351 & 0.0941059602649003 \tabularnewline
36 & 8.7 & 8.5258940397351 & 0.174105960264901 \tabularnewline
37 & 8.6 & 8.33865342163356 & 0.261346578366445 \tabularnewline
38 & 8.4 & 8.23415011037528 & 0.165849889624724 \tabularnewline
39 & 8.4 & 8.23415011037528 & 0.165849889624724 \tabularnewline
40 & 8.7 & 8.66004415011037 & 0.0399558498896246 \tabularnewline
41 & 8.7 & 8.62004415011037 & 0.0799558498896248 \tabularnewline
42 & 8.5 & 8.46004415011038 & 0.039955849889625 \tabularnewline
43 & 8.3 & 8.04004415011038 & 0.259955849889626 \tabularnewline
44 & 8.3 & 7.96004415011037 & 0.339955849889626 \tabularnewline
45 & 8.3 & 7.94004415011038 & 0.359955849889626 \tabularnewline
46 & 8.1 & 8.50004415011037 & -0.400044150110375 \tabularnewline
47 & 8.2 & 8.64004415011038 & -0.440044150110375 \tabularnewline
48 & 8.1 & 8.56004415011037 & -0.460044150110375 \tabularnewline
49 & 8.1 & 8.37280353200883 & -0.272803532008831 \tabularnewline
50 & 7.9 & 8.26830022075055 & -0.368300220750552 \tabularnewline
51 & 7.7 & 8.26830022075055 & -0.568300220750552 \tabularnewline
52 & 8.1 & 7.96472406181015 & 0.135275938189845 \tabularnewline
53 & 8 & 7.92472406181015 & 0.0752759381898459 \tabularnewline
54 & 7.7 & 7.76472406181015 & -0.0647240618101543 \tabularnewline
55 & 7.8 & 7.34472406181015 & 0.455275938189845 \tabularnewline
56 & 7.6 & 7.26472406181015 & 0.335275938189845 \tabularnewline
57 & 7.4 & 7.24472406181015 & 0.155275938189846 \tabularnewline
58 & 7.7 & 7.80472406181015 & -0.104724061810154 \tabularnewline
59 & 7.8 & 7.94472406181015 & -0.144724061810154 \tabularnewline
60 & 7.5 & 7.86472406181015 & -0.364724061810154 \tabularnewline
61 & 7.2 & 7.67748344370861 & -0.47748344370861 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5575&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]8.2[/C][C]8.23620309050772[/C][C]-0.0362030905077201[/C][/ROW]
[ROW][C]2[/C][C]8[/C][C]8.13169977924945[/C][C]-0.131699779249448[/C][/ROW]
[ROW][C]3[/C][C]8.1[/C][C]8.13169977924945[/C][C]-0.0316997792494489[/C][/ROW]
[ROW][C]4[/C][C]8.3[/C][C]8.55759381898455[/C][C]-0.257593818984547[/C][/ROW]
[ROW][C]5[/C][C]8.2[/C][C]8.51759381898455[/C][C]-0.317593818984548[/C][/ROW]
[ROW][C]6[/C][C]8.1[/C][C]8.35759381898455[/C][C]-0.257593818984548[/C][/ROW]
[ROW][C]7[/C][C]7.7[/C][C]7.93759381898455[/C][C]-0.237593818984548[/C][/ROW]
[ROW][C]8[/C][C]7.6[/C][C]7.85759381898455[/C][C]-0.257593818984548[/C][/ROW]
[ROW][C]9[/C][C]7.7[/C][C]7.83759381898455[/C][C]-0.137593818984548[/C][/ROW]
[ROW][C]10[/C][C]8.2[/C][C]8.39759381898455[/C][C]-0.197593818984548[/C][/ROW]
[ROW][C]11[/C][C]8.4[/C][C]8.53759381898455[/C][C]-0.137593818984547[/C][/ROW]
[ROW][C]12[/C][C]8.4[/C][C]8.45759381898455[/C][C]-0.0575938189845468[/C][/ROW]
[ROW][C]13[/C][C]8.6[/C][C]8.270353200883[/C][C]0.329646799116996[/C][/ROW]
[ROW][C]14[/C][C]8.4[/C][C]8.16584988962473[/C][C]0.234150110375276[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.16584988962472[/C][C]0.334150110375276[/C][/ROW]
[ROW][C]16[/C][C]8.7[/C][C]8.59174392935982[/C][C]0.108256070640176[/C][/ROW]
[ROW][C]17[/C][C]8.7[/C][C]8.55174392935982[/C][C]0.148256070640176[/C][/ROW]
[ROW][C]18[/C][C]8.6[/C][C]8.39174392935982[/C][C]0.208256070640176[/C][/ROW]
[ROW][C]19[/C][C]7.4[/C][C]7.97174392935982[/C][C]-0.571743929359823[/C][/ROW]
[ROW][C]20[/C][C]7.3[/C][C]7.89174392935982[/C][C]-0.591743929359824[/C][/ROW]
[ROW][C]21[/C][C]7.4[/C][C]7.87174392935982[/C][C]-0.471743929359823[/C][/ROW]
[ROW][C]22[/C][C]9[/C][C]8.43174392935982[/C][C]0.568256070640177[/C][/ROW]
[ROW][C]23[/C][C]9.2[/C][C]8.57174392935982[/C][C]0.628256070640176[/C][/ROW]
[ROW][C]24[/C][C]9.2[/C][C]8.49174392935982[/C][C]0.708256070640176[/C][/ROW]
[ROW][C]25[/C][C]8.5[/C][C]8.30450331125828[/C][C]0.195496688741721[/C][/ROW]
[ROW][C]26[/C][C]8.3[/C][C]8.2[/C][C]0.1[/C][/ROW]
[ROW][C]27[/C][C]8.3[/C][C]8.2[/C][C]0.100000000000000[/C][/ROW]
[ROW][C]28[/C][C]8.6[/C][C]8.6258940397351[/C][C]-0.0258940397350993[/C][/ROW]
[ROW][C]29[/C][C]8.6[/C][C]8.5858940397351[/C][C]0.0141059602649008[/C][/ROW]
[ROW][C]30[/C][C]8.5[/C][C]8.4258940397351[/C][C]0.0741059602649007[/C][/ROW]
[ROW][C]31[/C][C]8.1[/C][C]8.0058940397351[/C][C]0.0941059602649003[/C][/ROW]
[ROW][C]32[/C][C]8.1[/C][C]7.9258940397351[/C][C]0.174105960264901[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]7.9058940397351[/C][C]0.0941059602649005[/C][/ROW]
[ROW][C]34[/C][C]8.6[/C][C]8.4658940397351[/C][C]0.134105960264901[/C][/ROW]
[ROW][C]35[/C][C]8.7[/C][C]8.6058940397351[/C][C]0.0941059602649003[/C][/ROW]
[ROW][C]36[/C][C]8.7[/C][C]8.5258940397351[/C][C]0.174105960264901[/C][/ROW]
[ROW][C]37[/C][C]8.6[/C][C]8.33865342163356[/C][C]0.261346578366445[/C][/ROW]
[ROW][C]38[/C][C]8.4[/C][C]8.23415011037528[/C][C]0.165849889624724[/C][/ROW]
[ROW][C]39[/C][C]8.4[/C][C]8.23415011037528[/C][C]0.165849889624724[/C][/ROW]
[ROW][C]40[/C][C]8.7[/C][C]8.66004415011037[/C][C]0.0399558498896246[/C][/ROW]
[ROW][C]41[/C][C]8.7[/C][C]8.62004415011037[/C][C]0.0799558498896248[/C][/ROW]
[ROW][C]42[/C][C]8.5[/C][C]8.46004415011038[/C][C]0.039955849889625[/C][/ROW]
[ROW][C]43[/C][C]8.3[/C][C]8.04004415011038[/C][C]0.259955849889626[/C][/ROW]
[ROW][C]44[/C][C]8.3[/C][C]7.96004415011037[/C][C]0.339955849889626[/C][/ROW]
[ROW][C]45[/C][C]8.3[/C][C]7.94004415011038[/C][C]0.359955849889626[/C][/ROW]
[ROW][C]46[/C][C]8.1[/C][C]8.50004415011037[/C][C]-0.400044150110375[/C][/ROW]
[ROW][C]47[/C][C]8.2[/C][C]8.64004415011038[/C][C]-0.440044150110375[/C][/ROW]
[ROW][C]48[/C][C]8.1[/C][C]8.56004415011037[/C][C]-0.460044150110375[/C][/ROW]
[ROW][C]49[/C][C]8.1[/C][C]8.37280353200883[/C][C]-0.272803532008831[/C][/ROW]
[ROW][C]50[/C][C]7.9[/C][C]8.26830022075055[/C][C]-0.368300220750552[/C][/ROW]
[ROW][C]51[/C][C]7.7[/C][C]8.26830022075055[/C][C]-0.568300220750552[/C][/ROW]
[ROW][C]52[/C][C]8.1[/C][C]7.96472406181015[/C][C]0.135275938189845[/C][/ROW]
[ROW][C]53[/C][C]8[/C][C]7.92472406181015[/C][C]0.0752759381898459[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]7.76472406181015[/C][C]-0.0647240618101543[/C][/ROW]
[ROW][C]55[/C][C]7.8[/C][C]7.34472406181015[/C][C]0.455275938189845[/C][/ROW]
[ROW][C]56[/C][C]7.6[/C][C]7.26472406181015[/C][C]0.335275938189845[/C][/ROW]
[ROW][C]57[/C][C]7.4[/C][C]7.24472406181015[/C][C]0.155275938189846[/C][/ROW]
[ROW][C]58[/C][C]7.7[/C][C]7.80472406181015[/C][C]-0.104724061810154[/C][/ROW]
[ROW][C]59[/C][C]7.8[/C][C]7.94472406181015[/C][C]-0.144724061810154[/C][/ROW]
[ROW][C]60[/C][C]7.5[/C][C]7.86472406181015[/C][C]-0.364724061810154[/C][/ROW]
[ROW][C]61[/C][C]7.2[/C][C]7.67748344370861[/C][C]-0.47748344370861[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5575&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5575&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
18.28.23620309050772-0.0362030905077201
288.13169977924945-0.131699779249448
38.18.13169977924945-0.0316997792494489
48.38.55759381898455-0.257593818984547
58.28.51759381898455-0.317593818984548
68.18.35759381898455-0.257593818984548
77.77.93759381898455-0.237593818984548
87.67.85759381898455-0.257593818984548
97.77.83759381898455-0.137593818984548
108.28.39759381898455-0.197593818984548
118.48.53759381898455-0.137593818984547
128.48.45759381898455-0.0575938189845468
138.68.2703532008830.329646799116996
148.48.165849889624730.234150110375276
158.58.165849889624720.334150110375276
168.78.591743929359820.108256070640176
178.78.551743929359820.148256070640176
188.68.391743929359820.208256070640176
197.47.97174392935982-0.571743929359823
207.37.89174392935982-0.591743929359824
217.47.87174392935982-0.471743929359823
2298.431743929359820.568256070640177
239.28.571743929359820.628256070640176
249.28.491743929359820.708256070640176
258.58.304503311258280.195496688741721
268.38.20.1
278.38.20.100000000000000
288.68.6258940397351-0.0258940397350993
298.68.58589403973510.0141059602649008
308.58.42589403973510.0741059602649007
318.18.00589403973510.0941059602649003
328.17.92589403973510.174105960264901
3387.90589403973510.0941059602649005
348.68.46589403973510.134105960264901
358.78.60589403973510.0941059602649003
368.78.52589403973510.174105960264901
378.68.338653421633560.261346578366445
388.48.234150110375280.165849889624724
398.48.234150110375280.165849889624724
408.78.660044150110370.0399558498896246
418.78.620044150110370.0799558498896248
428.58.460044150110380.039955849889625
438.38.040044150110380.259955849889626
448.37.960044150110370.339955849889626
458.37.940044150110380.359955849889626
468.18.50004415011037-0.400044150110375
478.28.64004415011038-0.440044150110375
488.18.56004415011037-0.460044150110375
498.18.37280353200883-0.272803532008831
507.98.26830022075055-0.368300220750552
517.78.26830022075055-0.568300220750552
528.17.964724061810150.135275938189845
5387.924724061810150.0752759381898459
547.77.76472406181015-0.0647240618101543
557.87.344724061810150.455275938189845
567.67.264724061810150.335275938189845
577.47.244724061810150.155275938189846
587.77.80472406181015-0.104724061810154
597.87.94472406181015-0.144724061810154
607.57.86472406181015-0.364724061810154
617.27.67748344370861-0.47748344370861



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