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:44:55 -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/t1258620646445xi8qzcapuk3p.htm/, Retrieved Thu, 18 Apr 2024 23:26:37 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57658, Retrieved Thu, 18 Apr 2024 23:26:37 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact202
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:14:11] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [M5] [2009-11-19 08:44:55] [2ecea65fec1cd5f6b1ab182881aa2a91] [Current]
Feedback Forum

Post a new message
Dataseries X:
19	2407.6	21
25	2454.62	19
21	2448.05	25
23	2497.84	21
23	2645.64	23
19	2756.76	23
18	2849.27	19
19	2921.44	18
19	2981.85	19
22	3080.58	19
23	3106.22	22
20	3119.31	23
14	3061.26	20
14	3097.31	14
14	3161.69	14
15	3257.16	14
11	3277.01	15
17	3295.32	11
16	3363.99	17
20	3494.17	16
24	3667.03	20
23	3813.06	24
20	3917.96	23
21	3895.51	20
19	3801.06	21
23	3570.12	19
23	3701.61	23
23	3862.27	23
23	3970.1	23
27	4138.52	23
26	4199.75	27
17	4290.89	26
24	4443.91	17
26	4502.64	24
24	4356.98	26
27	4591.27	24
27	4696.96	27
26	4621.4	27
24	4562.84	26
23	4202.52	24
23	4296.49	23
24	4435.23	23
17	4105.18	24
21	4116.68	17
19	3844.49	21
22	3720.98	19
22	3674.4	22
18	3857.62	22
16	3801.06	18
14	3504.37	16
12	3032.6	14
14	3047.03	12
16	2962.34	14
8	2197.82	16
3	2014.45	8
0	1862.83	3
5	1905.41	0
1	1810.99	5
1	1670.07	1
3	1864.44	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 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 & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57658&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]4 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=57658&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Consvertr[t] = + 0.74343004601014 + 0.00334799485690966Aand[t] + 0.512904370369499Y1[t] -1.99293616351209M1[t] + 1.09126781260913M2[t] -0.893483298458545M3[t] + 0.858889235258036M4[t] -0.0371475938890308M5[t] + 0.292557415183294M6[t] -2.3050400438417M7[t] -1.36406165673480M8[t] + 1.74372986889002M9[t] + 0.955268414103237M10[t] + 0.0881616057021931M11[t] -0.104961670239249t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Consvertr[t] =  +  0.74343004601014 +  0.00334799485690966Aand[t] +  0.512904370369499Y1[t] -1.99293616351209M1[t] +  1.09126781260913M2[t] -0.893483298458545M3[t] +  0.858889235258036M4[t] -0.0371475938890308M5[t] +  0.292557415183294M6[t] -2.3050400438417M7[t] -1.36406165673480M8[t] +  1.74372986889002M9[t] +  0.955268414103237M10[t] +  0.0881616057021931M11[t] -0.104961670239249t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57658&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Consvertr[t] =  +  0.74343004601014 +  0.00334799485690966Aand[t] +  0.512904370369499Y1[t] -1.99293616351209M1[t] +  1.09126781260913M2[t] -0.893483298458545M3[t] +  0.858889235258036M4[t] -0.0371475938890308M5[t] +  0.292557415183294M6[t] -2.3050400438417M7[t] -1.36406165673480M8[t] +  1.74372986889002M9[t] +  0.955268414103237M10[t] +  0.0881616057021931M11[t] -0.104961670239249t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57658&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57658&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] = + 0.74343004601014 + 0.00334799485690966Aand[t] + 0.512904370369499Y1[t] -1.99293616351209M1[t] + 1.09126781260913M2[t] -0.893483298458545M3[t] + 0.858889235258036M4[t] -0.0371475938890308M5[t] + 0.292557415183294M6[t] -2.3050400438417M7[t] -1.36406165673480M8[t] + 1.74372986889002M9[t] + 0.955268414103237M10[t] + 0.0881616057021931M11[t] -0.104961670239249t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.743430046010142.1976790.33830.7367260.368363
Aand0.003347994856909660.0008354.00970.0002260.000113
Y10.5129043703694990.1159514.42346.1e-053e-05
M1-1.992936163512091.829644-1.08920.2818440.140922
M21.091267812609131.8227760.59870.5523850.276193
M3-0.8934832984585451.827577-0.48890.6272940.313647
M40.8588892352580361.8175650.47250.6388190.319409
M5-0.03714759388903081.816997-0.02040.9837790.49189
M60.2925574151832941.8166530.1610.8727810.436391
M7-2.30504004384171.818369-1.26760.2114460.105723
M8-1.364061656734801.824681-0.74760.4586130.229307
M91.743729868890021.8334770.95110.3466590.173329
M100.9552684141032371.8101480.52770.600280.30014
M110.08816160570219311.8166560.04850.9615090.480754
t-0.1049616702392490.028622-3.66710.0006460.000323

\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) & 0.74343004601014 & 2.197679 & 0.3383 & 0.736726 & 0.368363 \tabularnewline
Aand & 0.00334799485690966 & 0.000835 & 4.0097 & 0.000226 & 0.000113 \tabularnewline
Y1 & 0.512904370369499 & 0.115951 & 4.4234 & 6.1e-05 & 3e-05 \tabularnewline
M1 & -1.99293616351209 & 1.829644 & -1.0892 & 0.281844 & 0.140922 \tabularnewline
M2 & 1.09126781260913 & 1.822776 & 0.5987 & 0.552385 & 0.276193 \tabularnewline
M3 & -0.893483298458545 & 1.827577 & -0.4889 & 0.627294 & 0.313647 \tabularnewline
M4 & 0.858889235258036 & 1.817565 & 0.4725 & 0.638819 & 0.319409 \tabularnewline
M5 & -0.0371475938890308 & 1.816997 & -0.0204 & 0.983779 & 0.49189 \tabularnewline
M6 & 0.292557415183294 & 1.816653 & 0.161 & 0.872781 & 0.436391 \tabularnewline
M7 & -2.3050400438417 & 1.818369 & -1.2676 & 0.211446 & 0.105723 \tabularnewline
M8 & -1.36406165673480 & 1.824681 & -0.7476 & 0.458613 & 0.229307 \tabularnewline
M9 & 1.74372986889002 & 1.833477 & 0.9511 & 0.346659 & 0.173329 \tabularnewline
M10 & 0.955268414103237 & 1.810148 & 0.5277 & 0.60028 & 0.30014 \tabularnewline
M11 & 0.0881616057021931 & 1.816656 & 0.0485 & 0.961509 & 0.480754 \tabularnewline
t & -0.104961670239249 & 0.028622 & -3.6671 & 0.000646 & 0.000323 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57658&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]0.74343004601014[/C][C]2.197679[/C][C]0.3383[/C][C]0.736726[/C][C]0.368363[/C][/ROW]
[ROW][C]Aand[/C][C]0.00334799485690966[/C][C]0.000835[/C][C]4.0097[/C][C]0.000226[/C][C]0.000113[/C][/ROW]
[ROW][C]Y1[/C][C]0.512904370369499[/C][C]0.115951[/C][C]4.4234[/C][C]6.1e-05[/C][C]3e-05[/C][/ROW]
[ROW][C]M1[/C][C]-1.99293616351209[/C][C]1.829644[/C][C]-1.0892[/C][C]0.281844[/C][C]0.140922[/C][/ROW]
[ROW][C]M2[/C][C]1.09126781260913[/C][C]1.822776[/C][C]0.5987[/C][C]0.552385[/C][C]0.276193[/C][/ROW]
[ROW][C]M3[/C][C]-0.893483298458545[/C][C]1.827577[/C][C]-0.4889[/C][C]0.627294[/C][C]0.313647[/C][/ROW]
[ROW][C]M4[/C][C]0.858889235258036[/C][C]1.817565[/C][C]0.4725[/C][C]0.638819[/C][C]0.319409[/C][/ROW]
[ROW][C]M5[/C][C]-0.0371475938890308[/C][C]1.816997[/C][C]-0.0204[/C][C]0.983779[/C][C]0.49189[/C][/ROW]
[ROW][C]M6[/C][C]0.292557415183294[/C][C]1.816653[/C][C]0.161[/C][C]0.872781[/C][C]0.436391[/C][/ROW]
[ROW][C]M7[/C][C]-2.3050400438417[/C][C]1.818369[/C][C]-1.2676[/C][C]0.211446[/C][C]0.105723[/C][/ROW]
[ROW][C]M8[/C][C]-1.36406165673480[/C][C]1.824681[/C][C]-0.7476[/C][C]0.458613[/C][C]0.229307[/C][/ROW]
[ROW][C]M9[/C][C]1.74372986889002[/C][C]1.833477[/C][C]0.9511[/C][C]0.346659[/C][C]0.173329[/C][/ROW]
[ROW][C]M10[/C][C]0.955268414103237[/C][C]1.810148[/C][C]0.5277[/C][C]0.60028[/C][C]0.30014[/C][/ROW]
[ROW][C]M11[/C][C]0.0881616057021931[/C][C]1.816656[/C][C]0.0485[/C][C]0.961509[/C][C]0.480754[/C][/ROW]
[ROW][C]t[/C][C]-0.104961670239249[/C][C]0.028622[/C][C]-3.6671[/C][C]0.000646[/C][C]0.000323[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57658&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57658&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)0.743430046010142.1976790.33830.7367260.368363
Aand0.003347994856909660.0008354.00970.0002260.000113
Y10.5129043703694990.1159514.42346.1e-053e-05
M1-1.992936163512091.829644-1.08920.2818440.140922
M21.091267812609131.8227760.59870.5523850.276193
M3-0.8934832984585451.827577-0.48890.6272940.313647
M40.8588892352580361.8175650.47250.6388190.319409
M5-0.03714759388903081.816997-0.02040.9837790.49189
M60.2925574151832941.8166530.1610.8727810.436391
M7-2.30504004384171.818369-1.26760.2114460.105723
M8-1.364061656734801.824681-0.74760.4586130.229307
M91.743729868890021.8334770.95110.3466590.173329
M100.9552684141032371.8101480.52770.600280.30014
M110.08816160570219311.8166560.04850.9615090.480754
t-0.1049616702392490.028622-3.66710.0006460.000323







Multiple Linear Regression - Regression Statistics
Multiple R0.932200781887413
R-squared0.868998297751504
Adjusted R-squared0.828242212607527
F-TEST (value)21.3219276258170
F-TEST (DF numerator)14
F-TEST (DF denominator)45
p-value2.66453525910038e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.85994923312552
Sum Squared Residuals368.068932722487

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.932200781887413 \tabularnewline
R-squared & 0.868998297751504 \tabularnewline
Adjusted R-squared & 0.828242212607527 \tabularnewline
F-TEST (value) & 21.3219276258170 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 45 \tabularnewline
p-value & 2.66453525910038e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 2.85994923312552 \tabularnewline
Sum Squared Residuals & 368.068932722487 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57658&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.932200781887413[/C][/ROW]
[ROW][C]R-squared[/C][C]0.868998297751504[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.828242212607527[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]21.3219276258170[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]45[/C][/ROW]
[ROW][C]p-value[/C][C]2.66453525910038e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]2.85994923312552[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]368.068932722487[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57658&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57658&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.932200781887413
R-squared0.868998297751504
Adjusted R-squared0.828242212607527
F-TEST (value)21.3219276258170
F-TEST (DF numerator)14
F-TEST (DF denominator)45
p-value2.66453525910038e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.85994923312552
Sum Squared Residuals368.068932722487







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11917.47715640751401.52284359248602
22519.58801269082885.41198730917116
32120.55372980552900.446270194470978
42320.31621985145392.68378014854611
52320.83586373265782.16413626734218
61921.4326362599907-2.43263625999069
71816.98818265346121.01181734653883
81917.55291978878251.44708021121751
91921.2709063838435-2.27090638384348
102220.70803079104011.29196920895987
112321.36051801163951.6394819883605
122021.7241243587445-1.72412435874450
131417.8931623124411-3.89316231244106
141417.9156736106976-3.91567361069763
151416.0415047382786-2.04150473827856
161518.0085486707451-3.00854867074506
171117.5869122396379-6.5869122396379
181715.8213398828231.17866011717701
191616.4261137825997-0.426113782599727
202017.18506809957042.81493190042962
212422.81824982739941.18175017260064
222324.4653518728058-1.46535187280583
232023.3315836842859-3.33158368428587
242121.5245848126983-0.524584812698307
251919.6233732350813-0.623373235081348
262320.80362086796962.19637913203040
272321.20575341187571.79424658812427
282323.3910531290642-0.391053129064169
292322.75106891509840.248931084901579
302723.53968154773223.46031845226778
312623.09373762503452.90626237496545
321723.7219862227915-6.72198622279145
332422.62098691785591.37901308214414
342625.51452212336260.485477876637384
352425.0805934546039-1.08059345460386
362724.64606315294882.35393684705121
372724.44072800673272.55927199326728
382627.1669958212266-1.16699582122660
392424.3683200907296-0.368320090729552
402323.7835727066262-0.7835727066262
412322.58428091357420.415719086425817
422423.27352505885490.726474941145096
431719.9788645974371-2.97886459743713
442117.26305266257273.73694733742725
451921.4062092793341-2.40620927933408
462219.07346656879212.92653343120787
472219.48416160082552.51583839917451
481819.9044579425670-1.90445794256703
491615.56558003823090.434419961769114
501416.5256970092773-2.52569700927733
511211.83069195358710.169308046412859
521412.50060564211071.49939435788932
531612.24187419903173.75812580096831
54810.9328172505992-2.93281725059918
5533.51310134146743-0.513101341467427
5601.27697322628293-1.27697322628293
5752.883647591567232.11635240843277
5814.23862864399928-3.23862864399928
5910.7431432486452860.256856751354713
6031.200769733041371.79923026695863

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 19 & 17.4771564075140 & 1.52284359248602 \tabularnewline
2 & 25 & 19.5880126908288 & 5.41198730917116 \tabularnewline
3 & 21 & 20.5537298055290 & 0.446270194470978 \tabularnewline
4 & 23 & 20.3162198514539 & 2.68378014854611 \tabularnewline
5 & 23 & 20.8358637326578 & 2.16413626734218 \tabularnewline
6 & 19 & 21.4326362599907 & -2.43263625999069 \tabularnewline
7 & 18 & 16.9881826534612 & 1.01181734653883 \tabularnewline
8 & 19 & 17.5529197887825 & 1.44708021121751 \tabularnewline
9 & 19 & 21.2709063838435 & -2.27090638384348 \tabularnewline
10 & 22 & 20.7080307910401 & 1.29196920895987 \tabularnewline
11 & 23 & 21.3605180116395 & 1.6394819883605 \tabularnewline
12 & 20 & 21.7241243587445 & -1.72412435874450 \tabularnewline
13 & 14 & 17.8931623124411 & -3.89316231244106 \tabularnewline
14 & 14 & 17.9156736106976 & -3.91567361069763 \tabularnewline
15 & 14 & 16.0415047382786 & -2.04150473827856 \tabularnewline
16 & 15 & 18.0085486707451 & -3.00854867074506 \tabularnewline
17 & 11 & 17.5869122396379 & -6.5869122396379 \tabularnewline
18 & 17 & 15.821339882823 & 1.17866011717701 \tabularnewline
19 & 16 & 16.4261137825997 & -0.426113782599727 \tabularnewline
20 & 20 & 17.1850680995704 & 2.81493190042962 \tabularnewline
21 & 24 & 22.8182498273994 & 1.18175017260064 \tabularnewline
22 & 23 & 24.4653518728058 & -1.46535187280583 \tabularnewline
23 & 20 & 23.3315836842859 & -3.33158368428587 \tabularnewline
24 & 21 & 21.5245848126983 & -0.524584812698307 \tabularnewline
25 & 19 & 19.6233732350813 & -0.623373235081348 \tabularnewline
26 & 23 & 20.8036208679696 & 2.19637913203040 \tabularnewline
27 & 23 & 21.2057534118757 & 1.79424658812427 \tabularnewline
28 & 23 & 23.3910531290642 & -0.391053129064169 \tabularnewline
29 & 23 & 22.7510689150984 & 0.248931084901579 \tabularnewline
30 & 27 & 23.5396815477322 & 3.46031845226778 \tabularnewline
31 & 26 & 23.0937376250345 & 2.90626237496545 \tabularnewline
32 & 17 & 23.7219862227915 & -6.72198622279145 \tabularnewline
33 & 24 & 22.6209869178559 & 1.37901308214414 \tabularnewline
34 & 26 & 25.5145221233626 & 0.485477876637384 \tabularnewline
35 & 24 & 25.0805934546039 & -1.08059345460386 \tabularnewline
36 & 27 & 24.6460631529488 & 2.35393684705121 \tabularnewline
37 & 27 & 24.4407280067327 & 2.55927199326728 \tabularnewline
38 & 26 & 27.1669958212266 & -1.16699582122660 \tabularnewline
39 & 24 & 24.3683200907296 & -0.368320090729552 \tabularnewline
40 & 23 & 23.7835727066262 & -0.7835727066262 \tabularnewline
41 & 23 & 22.5842809135742 & 0.415719086425817 \tabularnewline
42 & 24 & 23.2735250588549 & 0.726474941145096 \tabularnewline
43 & 17 & 19.9788645974371 & -2.97886459743713 \tabularnewline
44 & 21 & 17.2630526625727 & 3.73694733742725 \tabularnewline
45 & 19 & 21.4062092793341 & -2.40620927933408 \tabularnewline
46 & 22 & 19.0734665687921 & 2.92653343120787 \tabularnewline
47 & 22 & 19.4841616008255 & 2.51583839917451 \tabularnewline
48 & 18 & 19.9044579425670 & -1.90445794256703 \tabularnewline
49 & 16 & 15.5655800382309 & 0.434419961769114 \tabularnewline
50 & 14 & 16.5256970092773 & -2.52569700927733 \tabularnewline
51 & 12 & 11.8306919535871 & 0.169308046412859 \tabularnewline
52 & 14 & 12.5006056421107 & 1.49939435788932 \tabularnewline
53 & 16 & 12.2418741990317 & 3.75812580096831 \tabularnewline
54 & 8 & 10.9328172505992 & -2.93281725059918 \tabularnewline
55 & 3 & 3.51310134146743 & -0.513101341467427 \tabularnewline
56 & 0 & 1.27697322628293 & -1.27697322628293 \tabularnewline
57 & 5 & 2.88364759156723 & 2.11635240843277 \tabularnewline
58 & 1 & 4.23862864399928 & -3.23862864399928 \tabularnewline
59 & 1 & 0.743143248645286 & 0.256856751354713 \tabularnewline
60 & 3 & 1.20076973304137 & 1.79923026695863 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57658&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]19[/C][C]17.4771564075140[/C][C]1.52284359248602[/C][/ROW]
[ROW][C]2[/C][C]25[/C][C]19.5880126908288[/C][C]5.41198730917116[/C][/ROW]
[ROW][C]3[/C][C]21[/C][C]20.5537298055290[/C][C]0.446270194470978[/C][/ROW]
[ROW][C]4[/C][C]23[/C][C]20.3162198514539[/C][C]2.68378014854611[/C][/ROW]
[ROW][C]5[/C][C]23[/C][C]20.8358637326578[/C][C]2.16413626734218[/C][/ROW]
[ROW][C]6[/C][C]19[/C][C]21.4326362599907[/C][C]-2.43263625999069[/C][/ROW]
[ROW][C]7[/C][C]18[/C][C]16.9881826534612[/C][C]1.01181734653883[/C][/ROW]
[ROW][C]8[/C][C]19[/C][C]17.5529197887825[/C][C]1.44708021121751[/C][/ROW]
[ROW][C]9[/C][C]19[/C][C]21.2709063838435[/C][C]-2.27090638384348[/C][/ROW]
[ROW][C]10[/C][C]22[/C][C]20.7080307910401[/C][C]1.29196920895987[/C][/ROW]
[ROW][C]11[/C][C]23[/C][C]21.3605180116395[/C][C]1.6394819883605[/C][/ROW]
[ROW][C]12[/C][C]20[/C][C]21.7241243587445[/C][C]-1.72412435874450[/C][/ROW]
[ROW][C]13[/C][C]14[/C][C]17.8931623124411[/C][C]-3.89316231244106[/C][/ROW]
[ROW][C]14[/C][C]14[/C][C]17.9156736106976[/C][C]-3.91567361069763[/C][/ROW]
[ROW][C]15[/C][C]14[/C][C]16.0415047382786[/C][C]-2.04150473827856[/C][/ROW]
[ROW][C]16[/C][C]15[/C][C]18.0085486707451[/C][C]-3.00854867074506[/C][/ROW]
[ROW][C]17[/C][C]11[/C][C]17.5869122396379[/C][C]-6.5869122396379[/C][/ROW]
[ROW][C]18[/C][C]17[/C][C]15.821339882823[/C][C]1.17866011717701[/C][/ROW]
[ROW][C]19[/C][C]16[/C][C]16.4261137825997[/C][C]-0.426113782599727[/C][/ROW]
[ROW][C]20[/C][C]20[/C][C]17.1850680995704[/C][C]2.81493190042962[/C][/ROW]
[ROW][C]21[/C][C]24[/C][C]22.8182498273994[/C][C]1.18175017260064[/C][/ROW]
[ROW][C]22[/C][C]23[/C][C]24.4653518728058[/C][C]-1.46535187280583[/C][/ROW]
[ROW][C]23[/C][C]20[/C][C]23.3315836842859[/C][C]-3.33158368428587[/C][/ROW]
[ROW][C]24[/C][C]21[/C][C]21.5245848126983[/C][C]-0.524584812698307[/C][/ROW]
[ROW][C]25[/C][C]19[/C][C]19.6233732350813[/C][C]-0.623373235081348[/C][/ROW]
[ROW][C]26[/C][C]23[/C][C]20.8036208679696[/C][C]2.19637913203040[/C][/ROW]
[ROW][C]27[/C][C]23[/C][C]21.2057534118757[/C][C]1.79424658812427[/C][/ROW]
[ROW][C]28[/C][C]23[/C][C]23.3910531290642[/C][C]-0.391053129064169[/C][/ROW]
[ROW][C]29[/C][C]23[/C][C]22.7510689150984[/C][C]0.248931084901579[/C][/ROW]
[ROW][C]30[/C][C]27[/C][C]23.5396815477322[/C][C]3.46031845226778[/C][/ROW]
[ROW][C]31[/C][C]26[/C][C]23.0937376250345[/C][C]2.90626237496545[/C][/ROW]
[ROW][C]32[/C][C]17[/C][C]23.7219862227915[/C][C]-6.72198622279145[/C][/ROW]
[ROW][C]33[/C][C]24[/C][C]22.6209869178559[/C][C]1.37901308214414[/C][/ROW]
[ROW][C]34[/C][C]26[/C][C]25.5145221233626[/C][C]0.485477876637384[/C][/ROW]
[ROW][C]35[/C][C]24[/C][C]25.0805934546039[/C][C]-1.08059345460386[/C][/ROW]
[ROW][C]36[/C][C]27[/C][C]24.6460631529488[/C][C]2.35393684705121[/C][/ROW]
[ROW][C]37[/C][C]27[/C][C]24.4407280067327[/C][C]2.55927199326728[/C][/ROW]
[ROW][C]38[/C][C]26[/C][C]27.1669958212266[/C][C]-1.16699582122660[/C][/ROW]
[ROW][C]39[/C][C]24[/C][C]24.3683200907296[/C][C]-0.368320090729552[/C][/ROW]
[ROW][C]40[/C][C]23[/C][C]23.7835727066262[/C][C]-0.7835727066262[/C][/ROW]
[ROW][C]41[/C][C]23[/C][C]22.5842809135742[/C][C]0.415719086425817[/C][/ROW]
[ROW][C]42[/C][C]24[/C][C]23.2735250588549[/C][C]0.726474941145096[/C][/ROW]
[ROW][C]43[/C][C]17[/C][C]19.9788645974371[/C][C]-2.97886459743713[/C][/ROW]
[ROW][C]44[/C][C]21[/C][C]17.2630526625727[/C][C]3.73694733742725[/C][/ROW]
[ROW][C]45[/C][C]19[/C][C]21.4062092793341[/C][C]-2.40620927933408[/C][/ROW]
[ROW][C]46[/C][C]22[/C][C]19.0734665687921[/C][C]2.92653343120787[/C][/ROW]
[ROW][C]47[/C][C]22[/C][C]19.4841616008255[/C][C]2.51583839917451[/C][/ROW]
[ROW][C]48[/C][C]18[/C][C]19.9044579425670[/C][C]-1.90445794256703[/C][/ROW]
[ROW][C]49[/C][C]16[/C][C]15.5655800382309[/C][C]0.434419961769114[/C][/ROW]
[ROW][C]50[/C][C]14[/C][C]16.5256970092773[/C][C]-2.52569700927733[/C][/ROW]
[ROW][C]51[/C][C]12[/C][C]11.8306919535871[/C][C]0.169308046412859[/C][/ROW]
[ROW][C]52[/C][C]14[/C][C]12.5006056421107[/C][C]1.49939435788932[/C][/ROW]
[ROW][C]53[/C][C]16[/C][C]12.2418741990317[/C][C]3.75812580096831[/C][/ROW]
[ROW][C]54[/C][C]8[/C][C]10.9328172505992[/C][C]-2.93281725059918[/C][/ROW]
[ROW][C]55[/C][C]3[/C][C]3.51310134146743[/C][C]-0.513101341467427[/C][/ROW]
[ROW][C]56[/C][C]0[/C][C]1.27697322628293[/C][C]-1.27697322628293[/C][/ROW]
[ROW][C]57[/C][C]5[/C][C]2.88364759156723[/C][C]2.11635240843277[/C][/ROW]
[ROW][C]58[/C][C]1[/C][C]4.23862864399928[/C][C]-3.23862864399928[/C][/ROW]
[ROW][C]59[/C][C]1[/C][C]0.743143248645286[/C][C]0.256856751354713[/C][/ROW]
[ROW][C]60[/C][C]3[/C][C]1.20076973304137[/C][C]1.79923026695863[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57658&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57658&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
11917.47715640751401.52284359248602
22519.58801269082885.41198730917116
32120.55372980552900.446270194470978
42320.31621985145392.68378014854611
52320.83586373265782.16413626734218
61921.4326362599907-2.43263625999069
71816.98818265346121.01181734653883
81917.55291978878251.44708021121751
91921.2709063838435-2.27090638384348
102220.70803079104011.29196920895987
112321.36051801163951.6394819883605
122021.7241243587445-1.72412435874450
131417.8931623124411-3.89316231244106
141417.9156736106976-3.91567361069763
151416.0415047382786-2.04150473827856
161518.0085486707451-3.00854867074506
171117.5869122396379-6.5869122396379
181715.8213398828231.17866011717701
191616.4261137825997-0.426113782599727
202017.18506809957042.81493190042962
212422.81824982739941.18175017260064
222324.4653518728058-1.46535187280583
232023.3315836842859-3.33158368428587
242121.5245848126983-0.524584812698307
251919.6233732350813-0.623373235081348
262320.80362086796962.19637913203040
272321.20575341187571.79424658812427
282323.3910531290642-0.391053129064169
292322.75106891509840.248931084901579
302723.53968154773223.46031845226778
312623.09373762503452.90626237496545
321723.7219862227915-6.72198622279145
332422.62098691785591.37901308214414
342625.51452212336260.485477876637384
352425.0805934546039-1.08059345460386
362724.64606315294882.35393684705121
372724.44072800673272.55927199326728
382627.1669958212266-1.16699582122660
392424.3683200907296-0.368320090729552
402323.7835727066262-0.7835727066262
412322.58428091357420.415719086425817
422423.27352505885490.726474941145096
431719.9788645974371-2.97886459743713
442117.26305266257273.73694733742725
451921.4062092793341-2.40620927933408
462219.07346656879212.92653343120787
472219.48416160082552.51583839917451
481819.9044579425670-1.90445794256703
491615.56558003823090.434419961769114
501416.5256970092773-2.52569700927733
511211.83069195358710.169308046412859
521412.50060564211071.49939435788932
531612.24187419903173.75812580096831
54810.9328172505992-2.93281725059918
5533.51310134146743-0.513101341467427
5601.27697322628293-1.27697322628293
5752.883647591567232.11635240843277
5814.23862864399928-3.23862864399928
5910.7431432486452860.256856751354713
6031.200769733041371.79923026695863







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.8060609037225170.3878781925549650.193939096277483
190.7334788273272650.533042345345470.266521172672735
200.7953851702508750.409229659498250.204614829749125
210.9392542703739740.1214914592520530.0607457296260263
220.8939617709323820.2120764581352370.106038229067618
230.8689803734801850.262039253039630.131019626519815
240.887882352617680.2242352947646400.112117647382320
250.8869123179310320.2261753641379360.113087682068968
260.846480361533970.3070392769320610.153519638466030
270.8149301603213930.3701396793572130.185069839678607
280.7364570594585610.5270858810828790.263542940541439
290.684615561541480.6307688769170410.315384438458520
300.68750005014450.6249998997110.3124999498555
310.799165032719680.4016699345606420.200834967280321
320.9503529795398440.0992940409203130.0496470204601565
330.9330913306818040.1338173386363910.0669086693181956
340.8896178682893930.2207642634212130.110382131710607
350.8583421492511780.2833157014976450.141657850748822
360.8118777524481370.3762444951037260.188122247551863
370.7899116722126690.4201766555746620.210088327787331
380.7739153524457430.4521692951085140.226084647554257
390.6600075827368880.6799848345262240.339992417263112
400.5433284186020980.9133431627958030.456671581397902
410.4643571323558740.9287142647117490.535642867644126
420.4006627634011710.8013255268023430.599337236598829

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.806060903722517 & 0.387878192554965 & 0.193939096277483 \tabularnewline
19 & 0.733478827327265 & 0.53304234534547 & 0.266521172672735 \tabularnewline
20 & 0.795385170250875 & 0.40922965949825 & 0.204614829749125 \tabularnewline
21 & 0.939254270373974 & 0.121491459252053 & 0.0607457296260263 \tabularnewline
22 & 0.893961770932382 & 0.212076458135237 & 0.106038229067618 \tabularnewline
23 & 0.868980373480185 & 0.26203925303963 & 0.131019626519815 \tabularnewline
24 & 0.88788235261768 & 0.224235294764640 & 0.112117647382320 \tabularnewline
25 & 0.886912317931032 & 0.226175364137936 & 0.113087682068968 \tabularnewline
26 & 0.84648036153397 & 0.307039276932061 & 0.153519638466030 \tabularnewline
27 & 0.814930160321393 & 0.370139679357213 & 0.185069839678607 \tabularnewline
28 & 0.736457059458561 & 0.527085881082879 & 0.263542940541439 \tabularnewline
29 & 0.68461556154148 & 0.630768876917041 & 0.315384438458520 \tabularnewline
30 & 0.6875000501445 & 0.624999899711 & 0.3124999498555 \tabularnewline
31 & 0.79916503271968 & 0.401669934560642 & 0.200834967280321 \tabularnewline
32 & 0.950352979539844 & 0.099294040920313 & 0.0496470204601565 \tabularnewline
33 & 0.933091330681804 & 0.133817338636391 & 0.0669086693181956 \tabularnewline
34 & 0.889617868289393 & 0.220764263421213 & 0.110382131710607 \tabularnewline
35 & 0.858342149251178 & 0.283315701497645 & 0.141657850748822 \tabularnewline
36 & 0.811877752448137 & 0.376244495103726 & 0.188122247551863 \tabularnewline
37 & 0.789911672212669 & 0.420176655574662 & 0.210088327787331 \tabularnewline
38 & 0.773915352445743 & 0.452169295108514 & 0.226084647554257 \tabularnewline
39 & 0.660007582736888 & 0.679984834526224 & 0.339992417263112 \tabularnewline
40 & 0.543328418602098 & 0.913343162795803 & 0.456671581397902 \tabularnewline
41 & 0.464357132355874 & 0.928714264711749 & 0.535642867644126 \tabularnewline
42 & 0.400662763401171 & 0.801325526802343 & 0.599337236598829 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57658&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]18[/C][C]0.806060903722517[/C][C]0.387878192554965[/C][C]0.193939096277483[/C][/ROW]
[ROW][C]19[/C][C]0.733478827327265[/C][C]0.53304234534547[/C][C]0.266521172672735[/C][/ROW]
[ROW][C]20[/C][C]0.795385170250875[/C][C]0.40922965949825[/C][C]0.204614829749125[/C][/ROW]
[ROW][C]21[/C][C]0.939254270373974[/C][C]0.121491459252053[/C][C]0.0607457296260263[/C][/ROW]
[ROW][C]22[/C][C]0.893961770932382[/C][C]0.212076458135237[/C][C]0.106038229067618[/C][/ROW]
[ROW][C]23[/C][C]0.868980373480185[/C][C]0.26203925303963[/C][C]0.131019626519815[/C][/ROW]
[ROW][C]24[/C][C]0.88788235261768[/C][C]0.224235294764640[/C][C]0.112117647382320[/C][/ROW]
[ROW][C]25[/C][C]0.886912317931032[/C][C]0.226175364137936[/C][C]0.113087682068968[/C][/ROW]
[ROW][C]26[/C][C]0.84648036153397[/C][C]0.307039276932061[/C][C]0.153519638466030[/C][/ROW]
[ROW][C]27[/C][C]0.814930160321393[/C][C]0.370139679357213[/C][C]0.185069839678607[/C][/ROW]
[ROW][C]28[/C][C]0.736457059458561[/C][C]0.527085881082879[/C][C]0.263542940541439[/C][/ROW]
[ROW][C]29[/C][C]0.68461556154148[/C][C]0.630768876917041[/C][C]0.315384438458520[/C][/ROW]
[ROW][C]30[/C][C]0.6875000501445[/C][C]0.624999899711[/C][C]0.3124999498555[/C][/ROW]
[ROW][C]31[/C][C]0.79916503271968[/C][C]0.401669934560642[/C][C]0.200834967280321[/C][/ROW]
[ROW][C]32[/C][C]0.950352979539844[/C][C]0.099294040920313[/C][C]0.0496470204601565[/C][/ROW]
[ROW][C]33[/C][C]0.933091330681804[/C][C]0.133817338636391[/C][C]0.0669086693181956[/C][/ROW]
[ROW][C]34[/C][C]0.889617868289393[/C][C]0.220764263421213[/C][C]0.110382131710607[/C][/ROW]
[ROW][C]35[/C][C]0.858342149251178[/C][C]0.283315701497645[/C][C]0.141657850748822[/C][/ROW]
[ROW][C]36[/C][C]0.811877752448137[/C][C]0.376244495103726[/C][C]0.188122247551863[/C][/ROW]
[ROW][C]37[/C][C]0.789911672212669[/C][C]0.420176655574662[/C][C]0.210088327787331[/C][/ROW]
[ROW][C]38[/C][C]0.773915352445743[/C][C]0.452169295108514[/C][C]0.226084647554257[/C][/ROW]
[ROW][C]39[/C][C]0.660007582736888[/C][C]0.679984834526224[/C][C]0.339992417263112[/C][/ROW]
[ROW][C]40[/C][C]0.543328418602098[/C][C]0.913343162795803[/C][C]0.456671581397902[/C][/ROW]
[ROW][C]41[/C][C]0.464357132355874[/C][C]0.928714264711749[/C][C]0.535642867644126[/C][/ROW]
[ROW][C]42[/C][C]0.400662763401171[/C][C]0.801325526802343[/C][C]0.599337236598829[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57658&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57658&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
180.8060609037225170.3878781925549650.193939096277483
190.7334788273272650.533042345345470.266521172672735
200.7953851702508750.409229659498250.204614829749125
210.9392542703739740.1214914592520530.0607457296260263
220.8939617709323820.2120764581352370.106038229067618
230.8689803734801850.262039253039630.131019626519815
240.887882352617680.2242352947646400.112117647382320
250.8869123179310320.2261753641379360.113087682068968
260.846480361533970.3070392769320610.153519638466030
270.8149301603213930.3701396793572130.185069839678607
280.7364570594585610.5270858810828790.263542940541439
290.684615561541480.6307688769170410.315384438458520
300.68750005014450.6249998997110.3124999498555
310.799165032719680.4016699345606420.200834967280321
320.9503529795398440.0992940409203130.0496470204601565
330.9330913306818040.1338173386363910.0669086693181956
340.8896178682893930.2207642634212130.110382131710607
350.8583421492511780.2833157014976450.141657850748822
360.8118777524481370.3762444951037260.188122247551863
370.7899116722126690.4201766555746620.210088327787331
380.7739153524457430.4521692951085140.226084647554257
390.6600075827368880.6799848345262240.339992417263112
400.5433284186020980.9133431627958030.456671581397902
410.4643571323558740.9287142647117490.535642867644126
420.4006627634011710.8013255268023430.599337236598829







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 level10.04OK

\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 & 1 & 0.04 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57658&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]1[/C][C]0.04[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57658&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57658&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 level10.04OK



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