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 computationThu, 19 Nov 2009 01:28:14 -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/2009/Nov/19/t1258620048qke0co73idelqno.htm/, Retrieved Thu, 25 Apr 2024 15:51:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57652, Retrieved Thu, 25 Apr 2024 15:51:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact167
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [M4] [2009-11-19 08:28:14] [2ecea65fec1cd5f6b1ab182881aa2a91] [Current]
Feedback Forum

Post a new message
Dataseries X:
23	2497,84	21	25	19	21
23	2645,64	23	21	25	19
19	2756,76	23	23	21	25
18	2849,27	19	23	23	21
19	2921,44	18	19	23	23
19	2981,85	19	18	19	23
22	3080,58	19	19	18	19
23	3106,22	22	19	19	18
20	3119,31	23	22	19	19
14	3061,26	20	23	22	19
14	3097,31	14	20	23	22
14	3161,69	14	14	20	23
15	3257,16	14	14	14	20
11	3277,01	15	14	14	14
17	3295,32	11	15	14	14
16	3363,99	17	11	15	14
20	3494,17	16	17	11	15
24	3667,03	20	16	17	11
23	3813,06	24	20	16	17
20	3917,96	23	24	20	16
21	3895,51	20	23	24	20
19	3801,06	21	20	23	24
23	3570,12	19	21	20	23
23	3701,61	23	19	21	20
23	3862,27	23	23	19	21
23	3970,1	23	23	23	19
27	4138,52	23	23	23	23
26	4199,75	27	23	23	23
17	4290,89	26	27	23	23
24	4443,91	17	26	27	23
26	4502,64	24	17	26	27
24	4356,98	26	24	17	26
27	4591,27	24	26	24	17
27	4696,96	27	24	26	24
26	4621,4	27	27	24	26
24	4562,84	26	27	27	24
23	4202,52	24	26	27	27
23	4296,49	23	24	26	27
24	4435,23	23	23	24	26
17	4105,18	24	23	23	24
21	4116,68	17	24	23	23
19	3844,49	21	17	24	23
22	3720,98	19	21	17	24
22	3674,4	22	19	21	17
18	3857,62	22	22	19	21
16	3801,06	18	22	22	19
14	3504,37	16	18	22	22
12	3032,6	14	16	18	22
14	3047,03	12	14	16	18
16	2962,34	14	12	14	16
8	2197,82	16	14	12	14
3	2014,45	8	16	14	12
0	1862,83	3	8	16	14
5	1905,41	0	3	8	16
1	1810,99	5	0	3	8
1	1670,07	1	5	0	3
3	1864,44	1	1	5	0




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

\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 & 5 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57652&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]5 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=57652&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Consvertr[t] = -2.30802815173133 + 0.0038777162416759Aand[t] + 0.405105033674106Y1[t] + 0.0408529815879891Y2[t] + 0.108240589410743Y3[t] -0.0693297363740693Y4[t] + 2.15292212174366M1[t] + 1.04935628306701M2[t] + 1.59721168826427M3[t] -1.18333001580422M4[t] -0.48610405600735M5[t] + 2.64584732173502M6[t] + 2.47449066262075M7[t] + 1.4250603170624M8[t] + 0.806606050478028M9[t] -1.59756470173195M10[t] + 0.569132549626265M11[t] -0.0939253055905727t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Consvertr[t] =  -2.30802815173133 +  0.0038777162416759Aand[t] +  0.405105033674106Y1[t] +  0.0408529815879891Y2[t] +  0.108240589410743Y3[t] -0.0693297363740693Y4[t] +  2.15292212174366M1[t] +  1.04935628306701M2[t] +  1.59721168826427M3[t] -1.18333001580422M4[t] -0.48610405600735M5[t] +  2.64584732173502M6[t] +  2.47449066262075M7[t] +  1.4250603170624M8[t] +  0.806606050478028M9[t] -1.59756470173195M10[t] +  0.569132549626265M11[t] -0.0939253055905727t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57652&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Consvertr[t] =  -2.30802815173133 +  0.0038777162416759Aand[t] +  0.405105033674106Y1[t] +  0.0408529815879891Y2[t] +  0.108240589410743Y3[t] -0.0693297363740693Y4[t] +  2.15292212174366M1[t] +  1.04935628306701M2[t] +  1.59721168826427M3[t] -1.18333001580422M4[t] -0.48610405600735M5[t] +  2.64584732173502M6[t] +  2.47449066262075M7[t] +  1.4250603170624M8[t] +  0.806606050478028M9[t] -1.59756470173195M10[t] +  0.569132549626265M11[t] -0.0939253055905727t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57652&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57652&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
Consvertr[t] = -2.30802815173133 + 0.0038777162416759Aand[t] + 0.405105033674106Y1[t] + 0.0408529815879891Y2[t] + 0.108240589410743Y3[t] -0.0693297363740693Y4[t] + 2.15292212174366M1[t] + 1.04935628306701M2[t] + 1.59721168826427M3[t] -1.18333001580422M4[t] -0.48610405600735M5[t] + 2.64584732173502M6[t] + 2.47449066262075M7[t] + 1.4250603170624M8[t] + 0.806606050478028M9[t] -1.59756470173195M10[t] + 0.569132549626265M11[t] -0.0939253055905727t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-2.308028151731332.604447-0.88620.3809480.190474
Aand0.00387771624167590.0009733.9850.0002860.000143
Y10.4051050336741060.1557592.60080.0130710.006536
Y20.04085298158798910.1614860.2530.8016110.400805
Y30.1082405894107430.164710.65720.5149380.257469
Y4-0.06932973637406930.144338-0.48030.6336770.316839
M12.152922121743661.9789551.08790.2833130.141657
M21.049356283067011.9517730.53760.5938790.296939
M31.597211688264271.9597350.8150.4200140.210007
M4-1.183330015804221.964064-0.60250.5503350.275167
M5-0.486104056007351.968148-0.2470.8062150.403108
M62.645847321735021.9312761.370.1785230.089262
M72.474490662620751.9955881.240.2223920.111196
M81.42506031706242.1026860.67770.5019420.250971
M90.8066060504780282.0770540.38830.6998750.349938
M10-1.597564701731952.050219-0.77920.4405550.220278
M110.5691325496262652.0440530.27840.7821510.391075
t-0.09392530559057270.028977-3.24130.0024380.001219

\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) & -2.30802815173133 & 2.604447 & -0.8862 & 0.380948 & 0.190474 \tabularnewline
Aand & 0.0038777162416759 & 0.000973 & 3.985 & 0.000286 & 0.000143 \tabularnewline
Y1 & 0.405105033674106 & 0.155759 & 2.6008 & 0.013071 & 0.006536 \tabularnewline
Y2 & 0.0408529815879891 & 0.161486 & 0.253 & 0.801611 & 0.400805 \tabularnewline
Y3 & 0.108240589410743 & 0.16471 & 0.6572 & 0.514938 & 0.257469 \tabularnewline
Y4 & -0.0693297363740693 & 0.144338 & -0.4803 & 0.633677 & 0.316839 \tabularnewline
M1 & 2.15292212174366 & 1.978955 & 1.0879 & 0.283313 & 0.141657 \tabularnewline
M2 & 1.04935628306701 & 1.951773 & 0.5376 & 0.593879 & 0.296939 \tabularnewline
M3 & 1.59721168826427 & 1.959735 & 0.815 & 0.420014 & 0.210007 \tabularnewline
M4 & -1.18333001580422 & 1.964064 & -0.6025 & 0.550335 & 0.275167 \tabularnewline
M5 & -0.48610405600735 & 1.968148 & -0.247 & 0.806215 & 0.403108 \tabularnewline
M6 & 2.64584732173502 & 1.931276 & 1.37 & 0.178523 & 0.089262 \tabularnewline
M7 & 2.47449066262075 & 1.995588 & 1.24 & 0.222392 & 0.111196 \tabularnewline
M8 & 1.4250603170624 & 2.102686 & 0.6777 & 0.501942 & 0.250971 \tabularnewline
M9 & 0.806606050478028 & 2.077054 & 0.3883 & 0.699875 & 0.349938 \tabularnewline
M10 & -1.59756470173195 & 2.050219 & -0.7792 & 0.440555 & 0.220278 \tabularnewline
M11 & 0.569132549626265 & 2.044053 & 0.2784 & 0.782151 & 0.391075 \tabularnewline
t & -0.0939253055905727 & 0.028977 & -3.2413 & 0.002438 & 0.001219 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57652&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]-2.30802815173133[/C][C]2.604447[/C][C]-0.8862[/C][C]0.380948[/C][C]0.190474[/C][/ROW]
[ROW][C]Aand[/C][C]0.0038777162416759[/C][C]0.000973[/C][C]3.985[/C][C]0.000286[/C][C]0.000143[/C][/ROW]
[ROW][C]Y1[/C][C]0.405105033674106[/C][C]0.155759[/C][C]2.6008[/C][C]0.013071[/C][C]0.006536[/C][/ROW]
[ROW][C]Y2[/C][C]0.0408529815879891[/C][C]0.161486[/C][C]0.253[/C][C]0.801611[/C][C]0.400805[/C][/ROW]
[ROW][C]Y3[/C][C]0.108240589410743[/C][C]0.16471[/C][C]0.6572[/C][C]0.514938[/C][C]0.257469[/C][/ROW]
[ROW][C]Y4[/C][C]-0.0693297363740693[/C][C]0.144338[/C][C]-0.4803[/C][C]0.633677[/C][C]0.316839[/C][/ROW]
[ROW][C]M1[/C][C]2.15292212174366[/C][C]1.978955[/C][C]1.0879[/C][C]0.283313[/C][C]0.141657[/C][/ROW]
[ROW][C]M2[/C][C]1.04935628306701[/C][C]1.951773[/C][C]0.5376[/C][C]0.593879[/C][C]0.296939[/C][/ROW]
[ROW][C]M3[/C][C]1.59721168826427[/C][C]1.959735[/C][C]0.815[/C][C]0.420014[/C][C]0.210007[/C][/ROW]
[ROW][C]M4[/C][C]-1.18333001580422[/C][C]1.964064[/C][C]-0.6025[/C][C]0.550335[/C][C]0.275167[/C][/ROW]
[ROW][C]M5[/C][C]-0.48610405600735[/C][C]1.968148[/C][C]-0.247[/C][C]0.806215[/C][C]0.403108[/C][/ROW]
[ROW][C]M6[/C][C]2.64584732173502[/C][C]1.931276[/C][C]1.37[/C][C]0.178523[/C][C]0.089262[/C][/ROW]
[ROW][C]M7[/C][C]2.47449066262075[/C][C]1.995588[/C][C]1.24[/C][C]0.222392[/C][C]0.111196[/C][/ROW]
[ROW][C]M8[/C][C]1.4250603170624[/C][C]2.102686[/C][C]0.6777[/C][C]0.501942[/C][C]0.250971[/C][/ROW]
[ROW][C]M9[/C][C]0.806606050478028[/C][C]2.077054[/C][C]0.3883[/C][C]0.699875[/C][C]0.349938[/C][/ROW]
[ROW][C]M10[/C][C]-1.59756470173195[/C][C]2.050219[/C][C]-0.7792[/C][C]0.440555[/C][C]0.220278[/C][/ROW]
[ROW][C]M11[/C][C]0.569132549626265[/C][C]2.044053[/C][C]0.2784[/C][C]0.782151[/C][C]0.391075[/C][/ROW]
[ROW][C]t[/C][C]-0.0939253055905727[/C][C]0.028977[/C][C]-3.2413[/C][C]0.002438[/C][C]0.001219[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57652&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57652&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)-2.308028151731332.604447-0.88620.3809480.190474
Aand0.00387771624167590.0009733.9850.0002860.000143
Y10.4051050336741060.1557592.60080.0130710.006536
Y20.04085298158798910.1614860.2530.8016110.400805
Y30.1082405894107430.164710.65720.5149380.257469
Y4-0.06932973637406930.144338-0.48030.6336770.316839
M12.152922121743661.9789551.08790.2833130.141657
M21.049356283067011.9517730.53760.5938790.296939
M31.597211688264271.9597350.8150.4200140.210007
M4-1.183330015804221.964064-0.60250.5503350.275167
M5-0.486104056007351.968148-0.2470.8062150.403108
M62.645847321735021.9312761.370.1785230.089262
M72.474490662620751.9955881.240.2223920.111196
M81.42506031706242.1026860.67770.5019420.250971
M90.8066060504780282.0770540.38830.6998750.349938
M10-1.597564701731952.050219-0.77920.4405550.220278
M110.5691325496262652.0440530.27840.7821510.391075
t-0.09392530559057270.028977-3.24130.0024380.001219







Multiple Linear Regression - Regression Statistics
Multiple R0.94131041838606
R-squared0.886065303762138
Adjusted R-squared0.8364014618123
F-TEST (value)17.8412557098805
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value2.44582132324922e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.83762272655424
Sum Squared Residuals314.032006792028

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.94131041838606 \tabularnewline
R-squared & 0.886065303762138 \tabularnewline
Adjusted R-squared & 0.8364014618123 \tabularnewline
F-TEST (value) & 17.8412557098805 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 2.44582132324922e-13 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 2.83762272655424 \tabularnewline
Sum Squared Residuals & 314.032006792028 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57652&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.94131041838606[/C][/ROW]
[ROW][C]R-squared[/C][C]0.886065303762138[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.8364014618123[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]17.8412557098805[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]39[/C][/ROW]
[ROW][C]p-value[/C][C]2.44582132324922e-13[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]2.83762272655424[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]314.032006792028[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57652&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57652&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.94131041838606
R-squared0.886065303762138
Adjusted R-squared0.8364014618123
F-TEST (value)17.8412557098805
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value2.44582132324922e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.83762272655424
Sum Squared Residuals314.032006792028







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12319.56606038333413.43393961666588
22320.37659684979542.62340315020458
31920.4941839654657-1.49418396546573
41816.85182447494541.14817552505456
51917.02780347753931.97219652246071
61920.2313720822939-1.23137208229387
72220.55886837980321.44113162019679
82320.9078227998982.09217720010201
92020.7045367753906-0.704536775390588
101417.1315989385587-3.13159893855866
111416.6912247883186-2.69122478831864
121415.6386449106067-1.63864491060667
131517.6263929690103-2.62639296901030
141117.3269579440589-6.32695794405887
151716.27232187494220.727678125057794
161616.0395965047024-0.0395965047024457
172016.48541902108693.5145809789131
182422.70007675784401.29992324215603
192324.2606707493043-1.26067074930427
202023.7846865186020-3.78468651860205
212121.8847275463379-0.884727546337865
221918.91736774351410.0826322564858539
232319.06987078281083.93012921718923
242320.77163780626532.22836219373470
252323.3312295249624-0.331229524962437
262323.1234943534262-0.123494353426229
272723.95319047695973.0468095230403
282622.93657616747493.06342383252513
291723.6515987726254-6.65159877262536
302424.0291570570664-0.0291570570664328
312626.0741122337550-0.0741122337550348
322424.5572738049851-0.557273804985117
332725.4065520201421.59344797985799
342724.18307395397352.81692604602647
352625.73026395371450.269736046285519
362424.8984032426914-0.898403242691367
372324.5011290845854-1.50112908458539
382323.0729753492876-0.0729753492876153
392423.8768953762290.123104623770986
401720.1581120380163-3.15811203801632
412118.08045391124522.91954608875479
421921.5056942525665-2.50569425256649
432219.28766355160672.71233644839328
442220.01556352802831.98443647197166
451819.6424179460995-1.64241794609946
461615.76795936395370.232040636046336
471415.5086404751561-1.50864047515611
481211.69131404043670.308685959563333
491412.97518803810771.02481196189226
501612.09997550343193.90002449656813
51810.4034083064033-2.40340830640335
5234.01389081486092-1.01389081486092
5301.75472481750323-1.75472481750323
5452.533699850229242.46630014977076
5513.81868508553076-2.81868508553076
5610.7346533484865060.265346651513494
5731.361765712030081.63823428796992

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 23 & 19.5660603833341 & 3.43393961666588 \tabularnewline
2 & 23 & 20.3765968497954 & 2.62340315020458 \tabularnewline
3 & 19 & 20.4941839654657 & -1.49418396546573 \tabularnewline
4 & 18 & 16.8518244749454 & 1.14817552505456 \tabularnewline
5 & 19 & 17.0278034775393 & 1.97219652246071 \tabularnewline
6 & 19 & 20.2313720822939 & -1.23137208229387 \tabularnewline
7 & 22 & 20.5588683798032 & 1.44113162019679 \tabularnewline
8 & 23 & 20.907822799898 & 2.09217720010201 \tabularnewline
9 & 20 & 20.7045367753906 & -0.704536775390588 \tabularnewline
10 & 14 & 17.1315989385587 & -3.13159893855866 \tabularnewline
11 & 14 & 16.6912247883186 & -2.69122478831864 \tabularnewline
12 & 14 & 15.6386449106067 & -1.63864491060667 \tabularnewline
13 & 15 & 17.6263929690103 & -2.62639296901030 \tabularnewline
14 & 11 & 17.3269579440589 & -6.32695794405887 \tabularnewline
15 & 17 & 16.2723218749422 & 0.727678125057794 \tabularnewline
16 & 16 & 16.0395965047024 & -0.0395965047024457 \tabularnewline
17 & 20 & 16.4854190210869 & 3.5145809789131 \tabularnewline
18 & 24 & 22.7000767578440 & 1.29992324215603 \tabularnewline
19 & 23 & 24.2606707493043 & -1.26067074930427 \tabularnewline
20 & 20 & 23.7846865186020 & -3.78468651860205 \tabularnewline
21 & 21 & 21.8847275463379 & -0.884727546337865 \tabularnewline
22 & 19 & 18.9173677435141 & 0.0826322564858539 \tabularnewline
23 & 23 & 19.0698707828108 & 3.93012921718923 \tabularnewline
24 & 23 & 20.7716378062653 & 2.22836219373470 \tabularnewline
25 & 23 & 23.3312295249624 & -0.331229524962437 \tabularnewline
26 & 23 & 23.1234943534262 & -0.123494353426229 \tabularnewline
27 & 27 & 23.9531904769597 & 3.0468095230403 \tabularnewline
28 & 26 & 22.9365761674749 & 3.06342383252513 \tabularnewline
29 & 17 & 23.6515987726254 & -6.65159877262536 \tabularnewline
30 & 24 & 24.0291570570664 & -0.0291570570664328 \tabularnewline
31 & 26 & 26.0741122337550 & -0.0741122337550348 \tabularnewline
32 & 24 & 24.5572738049851 & -0.557273804985117 \tabularnewline
33 & 27 & 25.406552020142 & 1.59344797985799 \tabularnewline
34 & 27 & 24.1830739539735 & 2.81692604602647 \tabularnewline
35 & 26 & 25.7302639537145 & 0.269736046285519 \tabularnewline
36 & 24 & 24.8984032426914 & -0.898403242691367 \tabularnewline
37 & 23 & 24.5011290845854 & -1.50112908458539 \tabularnewline
38 & 23 & 23.0729753492876 & -0.0729753492876153 \tabularnewline
39 & 24 & 23.876895376229 & 0.123104623770986 \tabularnewline
40 & 17 & 20.1581120380163 & -3.15811203801632 \tabularnewline
41 & 21 & 18.0804539112452 & 2.91954608875479 \tabularnewline
42 & 19 & 21.5056942525665 & -2.50569425256649 \tabularnewline
43 & 22 & 19.2876635516067 & 2.71233644839328 \tabularnewline
44 & 22 & 20.0155635280283 & 1.98443647197166 \tabularnewline
45 & 18 & 19.6424179460995 & -1.64241794609946 \tabularnewline
46 & 16 & 15.7679593639537 & 0.232040636046336 \tabularnewline
47 & 14 & 15.5086404751561 & -1.50864047515611 \tabularnewline
48 & 12 & 11.6913140404367 & 0.308685959563333 \tabularnewline
49 & 14 & 12.9751880381077 & 1.02481196189226 \tabularnewline
50 & 16 & 12.0999755034319 & 3.90002449656813 \tabularnewline
51 & 8 & 10.4034083064033 & -2.40340830640335 \tabularnewline
52 & 3 & 4.01389081486092 & -1.01389081486092 \tabularnewline
53 & 0 & 1.75472481750323 & -1.75472481750323 \tabularnewline
54 & 5 & 2.53369985022924 & 2.46630014977076 \tabularnewline
55 & 1 & 3.81868508553076 & -2.81868508553076 \tabularnewline
56 & 1 & 0.734653348486506 & 0.265346651513494 \tabularnewline
57 & 3 & 1.36176571203008 & 1.63823428796992 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57652&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]23[/C][C]19.5660603833341[/C][C]3.43393961666588[/C][/ROW]
[ROW][C]2[/C][C]23[/C][C]20.3765968497954[/C][C]2.62340315020458[/C][/ROW]
[ROW][C]3[/C][C]19[/C][C]20.4941839654657[/C][C]-1.49418396546573[/C][/ROW]
[ROW][C]4[/C][C]18[/C][C]16.8518244749454[/C][C]1.14817552505456[/C][/ROW]
[ROW][C]5[/C][C]19[/C][C]17.0278034775393[/C][C]1.97219652246071[/C][/ROW]
[ROW][C]6[/C][C]19[/C][C]20.2313720822939[/C][C]-1.23137208229387[/C][/ROW]
[ROW][C]7[/C][C]22[/C][C]20.5588683798032[/C][C]1.44113162019679[/C][/ROW]
[ROW][C]8[/C][C]23[/C][C]20.907822799898[/C][C]2.09217720010201[/C][/ROW]
[ROW][C]9[/C][C]20[/C][C]20.7045367753906[/C][C]-0.704536775390588[/C][/ROW]
[ROW][C]10[/C][C]14[/C][C]17.1315989385587[/C][C]-3.13159893855866[/C][/ROW]
[ROW][C]11[/C][C]14[/C][C]16.6912247883186[/C][C]-2.69122478831864[/C][/ROW]
[ROW][C]12[/C][C]14[/C][C]15.6386449106067[/C][C]-1.63864491060667[/C][/ROW]
[ROW][C]13[/C][C]15[/C][C]17.6263929690103[/C][C]-2.62639296901030[/C][/ROW]
[ROW][C]14[/C][C]11[/C][C]17.3269579440589[/C][C]-6.32695794405887[/C][/ROW]
[ROW][C]15[/C][C]17[/C][C]16.2723218749422[/C][C]0.727678125057794[/C][/ROW]
[ROW][C]16[/C][C]16[/C][C]16.0395965047024[/C][C]-0.0395965047024457[/C][/ROW]
[ROW][C]17[/C][C]20[/C][C]16.4854190210869[/C][C]3.5145809789131[/C][/ROW]
[ROW][C]18[/C][C]24[/C][C]22.7000767578440[/C][C]1.29992324215603[/C][/ROW]
[ROW][C]19[/C][C]23[/C][C]24.2606707493043[/C][C]-1.26067074930427[/C][/ROW]
[ROW][C]20[/C][C]20[/C][C]23.7846865186020[/C][C]-3.78468651860205[/C][/ROW]
[ROW][C]21[/C][C]21[/C][C]21.8847275463379[/C][C]-0.884727546337865[/C][/ROW]
[ROW][C]22[/C][C]19[/C][C]18.9173677435141[/C][C]0.0826322564858539[/C][/ROW]
[ROW][C]23[/C][C]23[/C][C]19.0698707828108[/C][C]3.93012921718923[/C][/ROW]
[ROW][C]24[/C][C]23[/C][C]20.7716378062653[/C][C]2.22836219373470[/C][/ROW]
[ROW][C]25[/C][C]23[/C][C]23.3312295249624[/C][C]-0.331229524962437[/C][/ROW]
[ROW][C]26[/C][C]23[/C][C]23.1234943534262[/C][C]-0.123494353426229[/C][/ROW]
[ROW][C]27[/C][C]27[/C][C]23.9531904769597[/C][C]3.0468095230403[/C][/ROW]
[ROW][C]28[/C][C]26[/C][C]22.9365761674749[/C][C]3.06342383252513[/C][/ROW]
[ROW][C]29[/C][C]17[/C][C]23.6515987726254[/C][C]-6.65159877262536[/C][/ROW]
[ROW][C]30[/C][C]24[/C][C]24.0291570570664[/C][C]-0.0291570570664328[/C][/ROW]
[ROW][C]31[/C][C]26[/C][C]26.0741122337550[/C][C]-0.0741122337550348[/C][/ROW]
[ROW][C]32[/C][C]24[/C][C]24.5572738049851[/C][C]-0.557273804985117[/C][/ROW]
[ROW][C]33[/C][C]27[/C][C]25.406552020142[/C][C]1.59344797985799[/C][/ROW]
[ROW][C]34[/C][C]27[/C][C]24.1830739539735[/C][C]2.81692604602647[/C][/ROW]
[ROW][C]35[/C][C]26[/C][C]25.7302639537145[/C][C]0.269736046285519[/C][/ROW]
[ROW][C]36[/C][C]24[/C][C]24.8984032426914[/C][C]-0.898403242691367[/C][/ROW]
[ROW][C]37[/C][C]23[/C][C]24.5011290845854[/C][C]-1.50112908458539[/C][/ROW]
[ROW][C]38[/C][C]23[/C][C]23.0729753492876[/C][C]-0.0729753492876153[/C][/ROW]
[ROW][C]39[/C][C]24[/C][C]23.876895376229[/C][C]0.123104623770986[/C][/ROW]
[ROW][C]40[/C][C]17[/C][C]20.1581120380163[/C][C]-3.15811203801632[/C][/ROW]
[ROW][C]41[/C][C]21[/C][C]18.0804539112452[/C][C]2.91954608875479[/C][/ROW]
[ROW][C]42[/C][C]19[/C][C]21.5056942525665[/C][C]-2.50569425256649[/C][/ROW]
[ROW][C]43[/C][C]22[/C][C]19.2876635516067[/C][C]2.71233644839328[/C][/ROW]
[ROW][C]44[/C][C]22[/C][C]20.0155635280283[/C][C]1.98443647197166[/C][/ROW]
[ROW][C]45[/C][C]18[/C][C]19.6424179460995[/C][C]-1.64241794609946[/C][/ROW]
[ROW][C]46[/C][C]16[/C][C]15.7679593639537[/C][C]0.232040636046336[/C][/ROW]
[ROW][C]47[/C][C]14[/C][C]15.5086404751561[/C][C]-1.50864047515611[/C][/ROW]
[ROW][C]48[/C][C]12[/C][C]11.6913140404367[/C][C]0.308685959563333[/C][/ROW]
[ROW][C]49[/C][C]14[/C][C]12.9751880381077[/C][C]1.02481196189226[/C][/ROW]
[ROW][C]50[/C][C]16[/C][C]12.0999755034319[/C][C]3.90002449656813[/C][/ROW]
[ROW][C]51[/C][C]8[/C][C]10.4034083064033[/C][C]-2.40340830640335[/C][/ROW]
[ROW][C]52[/C][C]3[/C][C]4.01389081486092[/C][C]-1.01389081486092[/C][/ROW]
[ROW][C]53[/C][C]0[/C][C]1.75472481750323[/C][C]-1.75472481750323[/C][/ROW]
[ROW][C]54[/C][C]5[/C][C]2.53369985022924[/C][C]2.46630014977076[/C][/ROW]
[ROW][C]55[/C][C]1[/C][C]3.81868508553076[/C][C]-2.81868508553076[/C][/ROW]
[ROW][C]56[/C][C]1[/C][C]0.734653348486506[/C][C]0.265346651513494[/C][/ROW]
[ROW][C]57[/C][C]3[/C][C]1.36176571203008[/C][C]1.63823428796992[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57652&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57652&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
12319.56606038333413.43393961666588
22320.37659684979542.62340315020458
31920.4941839654657-1.49418396546573
41816.85182447494541.14817552505456
51917.02780347753931.97219652246071
61920.2313720822939-1.23137208229387
72220.55886837980321.44113162019679
82320.9078227998982.09217720010201
92020.7045367753906-0.704536775390588
101417.1315989385587-3.13159893855866
111416.6912247883186-2.69122478831864
121415.6386449106067-1.63864491060667
131517.6263929690103-2.62639296901030
141117.3269579440589-6.32695794405887
151716.27232187494220.727678125057794
161616.0395965047024-0.0395965047024457
172016.48541902108693.5145809789131
182422.70007675784401.29992324215603
192324.2606707493043-1.26067074930427
202023.7846865186020-3.78468651860205
212121.8847275463379-0.884727546337865
221918.91736774351410.0826322564858539
232319.06987078281083.93012921718923
242320.77163780626532.22836219373470
252323.3312295249624-0.331229524962437
262323.1234943534262-0.123494353426229
272723.95319047695973.0468095230403
282622.93657616747493.06342383252513
291723.6515987726254-6.65159877262536
302424.0291570570664-0.0291570570664328
312626.0741122337550-0.0741122337550348
322424.5572738049851-0.557273804985117
332725.4065520201421.59344797985799
342724.18307395397352.81692604602647
352625.73026395371450.269736046285519
362424.8984032426914-0.898403242691367
372324.5011290845854-1.50112908458539
382323.0729753492876-0.0729753492876153
392423.8768953762290.123104623770986
401720.1581120380163-3.15811203801632
412118.08045391124522.91954608875479
421921.5056942525665-2.50569425256649
432219.28766355160672.71233644839328
442220.01556352802831.98443647197166
451819.6424179460995-1.64241794609946
461615.76795936395370.232040636046336
471415.5086404751561-1.50864047515611
481211.69131404043670.308685959563333
491412.97518803810771.02481196189226
501612.09997550343193.90002449656813
51810.4034083064033-2.40340830640335
5234.01389081486092-1.01389081486092
5301.75472481750323-1.75472481750323
5452.533699850229242.46630014977076
5513.81868508553076-2.81868508553076
5610.7346533484865060.265346651513494
5731.361765712030081.63823428796992







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.5864798186404230.8270403627191540.413520181359577
220.7037315283759870.5925369432480250.296268471624013
230.5936127225883030.8127745548233940.406387277411697
240.5596457686045050.880708462790990.440354231395495
250.5177667233613450.964466553277310.482233276638655
260.3933472832087450.7866945664174890.606652716791255
270.3722195295020660.7444390590041330.627780470497934
280.4962645743569490.9925291487138980.503735425643051
290.8778053564516220.2443892870967550.122194643548378
300.8259605380411270.3480789239177470.174039461958873
310.747089344237220.5058213115255610.252910655762780
320.6480549073548570.7038901852902870.351945092645143
330.5411702154552340.9176595690895330.458829784544766
340.6603729128260280.6792541743479450.339627087173972
350.6985733972863250.6028532054273490.301426602713675
360.523291160599550.95341767880090.47670883940045

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.586479818640423 & 0.827040362719154 & 0.413520181359577 \tabularnewline
22 & 0.703731528375987 & 0.592536943248025 & 0.296268471624013 \tabularnewline
23 & 0.593612722588303 & 0.812774554823394 & 0.406387277411697 \tabularnewline
24 & 0.559645768604505 & 0.88070846279099 & 0.440354231395495 \tabularnewline
25 & 0.517766723361345 & 0.96446655327731 & 0.482233276638655 \tabularnewline
26 & 0.393347283208745 & 0.786694566417489 & 0.606652716791255 \tabularnewline
27 & 0.372219529502066 & 0.744439059004133 & 0.627780470497934 \tabularnewline
28 & 0.496264574356949 & 0.992529148713898 & 0.503735425643051 \tabularnewline
29 & 0.877805356451622 & 0.244389287096755 & 0.122194643548378 \tabularnewline
30 & 0.825960538041127 & 0.348078923917747 & 0.174039461958873 \tabularnewline
31 & 0.74708934423722 & 0.505821311525561 & 0.252910655762780 \tabularnewline
32 & 0.648054907354857 & 0.703890185290287 & 0.351945092645143 \tabularnewline
33 & 0.541170215455234 & 0.917659569089533 & 0.458829784544766 \tabularnewline
34 & 0.660372912826028 & 0.679254174347945 & 0.339627087173972 \tabularnewline
35 & 0.698573397286325 & 0.602853205427349 & 0.301426602713675 \tabularnewline
36 & 0.52329116059955 & 0.9534176788009 & 0.47670883940045 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57652&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]21[/C][C]0.586479818640423[/C][C]0.827040362719154[/C][C]0.413520181359577[/C][/ROW]
[ROW][C]22[/C][C]0.703731528375987[/C][C]0.592536943248025[/C][C]0.296268471624013[/C][/ROW]
[ROW][C]23[/C][C]0.593612722588303[/C][C]0.812774554823394[/C][C]0.406387277411697[/C][/ROW]
[ROW][C]24[/C][C]0.559645768604505[/C][C]0.88070846279099[/C][C]0.440354231395495[/C][/ROW]
[ROW][C]25[/C][C]0.517766723361345[/C][C]0.96446655327731[/C][C]0.482233276638655[/C][/ROW]
[ROW][C]26[/C][C]0.393347283208745[/C][C]0.786694566417489[/C][C]0.606652716791255[/C][/ROW]
[ROW][C]27[/C][C]0.372219529502066[/C][C]0.744439059004133[/C][C]0.627780470497934[/C][/ROW]
[ROW][C]28[/C][C]0.496264574356949[/C][C]0.992529148713898[/C][C]0.503735425643051[/C][/ROW]
[ROW][C]29[/C][C]0.877805356451622[/C][C]0.244389287096755[/C][C]0.122194643548378[/C][/ROW]
[ROW][C]30[/C][C]0.825960538041127[/C][C]0.348078923917747[/C][C]0.174039461958873[/C][/ROW]
[ROW][C]31[/C][C]0.74708934423722[/C][C]0.505821311525561[/C][C]0.252910655762780[/C][/ROW]
[ROW][C]32[/C][C]0.648054907354857[/C][C]0.703890185290287[/C][C]0.351945092645143[/C][/ROW]
[ROW][C]33[/C][C]0.541170215455234[/C][C]0.917659569089533[/C][C]0.458829784544766[/C][/ROW]
[ROW][C]34[/C][C]0.660372912826028[/C][C]0.679254174347945[/C][C]0.339627087173972[/C][/ROW]
[ROW][C]35[/C][C]0.698573397286325[/C][C]0.602853205427349[/C][C]0.301426602713675[/C][/ROW]
[ROW][C]36[/C][C]0.52329116059955[/C][C]0.9534176788009[/C][C]0.47670883940045[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57652&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57652&T=5

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.5864798186404230.8270403627191540.413520181359577
220.7037315283759870.5925369432480250.296268471624013
230.5936127225883030.8127745548233940.406387277411697
240.5596457686045050.880708462790990.440354231395495
250.5177667233613450.964466553277310.482233276638655
260.3933472832087450.7866945664174890.606652716791255
270.3722195295020660.7444390590041330.627780470497934
280.4962645743569490.9925291487138980.503735425643051
290.8778053564516220.2443892870967550.122194643548378
300.8259605380411270.3480789239177470.174039461958873
310.747089344237220.5058213115255610.252910655762780
320.6480549073548570.7038901852902870.351945092645143
330.5411702154552340.9176595690895330.458829784544766
340.6603729128260280.6792541743479450.339627087173972
350.6985733972863250.6028532054273490.301426602713675
360.523291160599550.95341767880090.47670883940045







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 0 & 0 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57652&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57652&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57652&T=6

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK



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)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
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))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
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')
qqline(mysum$resid)
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()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
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')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}