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 12:58:04 -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/t12586607242vaig3bhwkhga0u.htm/, Retrieved Fri, 26 Apr 2024 05:26:09 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57920, Retrieved Fri, 26 Apr 2024 05:26:09 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWorkshop 7 link 4
Estimated Impact122
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] [Workshop 7] [2009-11-19 19:58:04] [100339cefec36dfa6f2b82a1c918e250] [Current]
Feedback Forum

Post a new message
Dataseries X:
461	0	455	462	452	449
461	0	461	455	462	452
463	0	461	461	455	462
462	0	463	461	461	455
456	0	462	463	461	461
455	0	456	462	463	461
456	0	455	456	462	463
472	0	456	455	456	462
472	0	472	456	455	456
471	0	472	472	456	455
465	0	471	472	472	456
459	0	465	471	472	472
465	0	459	465	471	472
468	0	465	459	465	471
467	0	468	465	459	465
463	0	467	468	465	459
460	0	463	467	468	465
462	0	460	463	467	468
461	0	462	460	463	467
476	0	461	462	460	463
476	0	476	461	462	460
471	0	476	476	461	462
453	0	471	476	476	461
443	0	453	471	476	476
442	0	443	453	471	476
444	0	442	443	453	471
438	0	444	442	443	453
427	0	438	444	442	443
424	0	427	438	444	442
416	0	424	427	438	444
406	0	416	424	427	438
431	0	406	416	424	427
434	0	431	406	416	424
418	0	434	431	406	416
412	0	418	434	431	406
404	0	412	418	434	431
409	0	404	412	418	434
412	1	409	404	412	418
406	1	412	409	404	412
398	1	406	412	409	404
397	1	398	406	412	409
385	1	397	398	406	412
390	1	385	397	398	406
413	1	390	385	397	398
413	1	413	390	385	397
401	1	413	413	390	385
397	1	401	413	413	390
397	1	397	401	413	413
409	1	397	397	401	413
419	1	409	397	397	401
424	1	419	409	397	397
428	1	424	419	409	397
430	1	428	424	419	409
424	1	430	428	424	419
433	1	424	430	428	424
456	1	433	424	430	428
459	1	456	433	424	430




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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = -5.32826335158439 + 2.34295047914645X[t] + 1.09404972823779Y1[t] -0.103435969619101Y2[t] + 0.290853961965319Y3[t] -0.283179283774372Y4[t] + 13.4961062988867M1[t] + 9.49932734168887M2[t] + 5.38342892233694M3[t] -0.316430489186691M4[t] + 2.27378015665203M5[t] + 0.634821026614046M6[t] + 7.50051641234214M7[t] + 26.0146635332518M8[t] + 5.80947840878837M9[t] -2.57233748576951M10[t] -7.79427250169785M11[t] + 0.000594829630836294t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -5.32826335158439 +  2.34295047914645X[t] +  1.09404972823779Y1[t] -0.103435969619101Y2[t] +  0.290853961965319Y3[t] -0.283179283774372Y4[t] +  13.4961062988867M1[t] +  9.49932734168887M2[t] +  5.38342892233694M3[t] -0.316430489186691M4[t] +  2.27378015665203M5[t] +  0.634821026614046M6[t] +  7.50051641234214M7[t] +  26.0146635332518M8[t] +  5.80947840878837M9[t] -2.57233748576951M10[t] -7.79427250169785M11[t] +  0.000594829630836294t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57920&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -5.32826335158439 +  2.34295047914645X[t] +  1.09404972823779Y1[t] -0.103435969619101Y2[t] +  0.290853961965319Y3[t] -0.283179283774372Y4[t] +  13.4961062988867M1[t] +  9.49932734168887M2[t] +  5.38342892233694M3[t] -0.316430489186691M4[t] +  2.27378015665203M5[t] +  0.634821026614046M6[t] +  7.50051641234214M7[t] +  26.0146635332518M8[t] +  5.80947840878837M9[t] -2.57233748576951M10[t] -7.79427250169785M11[t] +  0.000594829630836294t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57920&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57920&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] = -5.32826335158439 + 2.34295047914645X[t] + 1.09404972823779Y1[t] -0.103435969619101Y2[t] + 0.290853961965319Y3[t] -0.283179283774372Y4[t] + 13.4961062988867M1[t] + 9.49932734168887M2[t] + 5.38342892233694M3[t] -0.316430489186691M4[t] + 2.27378015665203M5[t] + 0.634821026614046M6[t] + 7.50051641234214M7[t] + 26.0146635332518M8[t] + 5.80947840878837M9[t] -2.57233748576951M10[t] -7.79427250169785M11[t] + 0.000594829630836294t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-5.3282633515843924.839465-0.21450.8312690.415634
X2.342950479146453.0938380.75730.4534240.226712
Y11.094049728237790.1522737.184800
Y2-0.1034359696191010.213236-0.48510.6303350.315167
Y30.2908539619653190.210231.38350.1743790.087189
Y4-0.2831792837743720.143258-1.97670.0551760.027588
M113.49610629888673.4762563.88240.0003890.000194
M29.499327341688874.0243682.36050.0233480.011674
M35.383428922336944.3499211.23760.2232670.111633
M4-0.3164304891866913.768009-0.0840.9335030.466752
M52.273780156652033.423450.66420.5104840.255242
M60.6348210266140463.4287970.18510.8540760.427038
M77.500516412342143.4750342.15840.0371120.018556
M826.01466353325183.5943727.237600
M95.809478408788375.6404311.030.3093690.154685
M10-2.572337485769515.415976-0.4750.6374690.318735
M11-7.794272501697854.401038-1.7710.0843750.042187
t0.0005948296308362940.0831630.00720.994330.497165

\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) & -5.32826335158439 & 24.839465 & -0.2145 & 0.831269 & 0.415634 \tabularnewline
X & 2.34295047914645 & 3.093838 & 0.7573 & 0.453424 & 0.226712 \tabularnewline
Y1 & 1.09404972823779 & 0.152273 & 7.1848 & 0 & 0 \tabularnewline
Y2 & -0.103435969619101 & 0.213236 & -0.4851 & 0.630335 & 0.315167 \tabularnewline
Y3 & 0.290853961965319 & 0.21023 & 1.3835 & 0.174379 & 0.087189 \tabularnewline
Y4 & -0.283179283774372 & 0.143258 & -1.9767 & 0.055176 & 0.027588 \tabularnewline
M1 & 13.4961062988867 & 3.476256 & 3.8824 & 0.000389 & 0.000194 \tabularnewline
M2 & 9.49932734168887 & 4.024368 & 2.3605 & 0.023348 & 0.011674 \tabularnewline
M3 & 5.38342892233694 & 4.349921 & 1.2376 & 0.223267 & 0.111633 \tabularnewline
M4 & -0.316430489186691 & 3.768009 & -0.084 & 0.933503 & 0.466752 \tabularnewline
M5 & 2.27378015665203 & 3.42345 & 0.6642 & 0.510484 & 0.255242 \tabularnewline
M6 & 0.634821026614046 & 3.428797 & 0.1851 & 0.854076 & 0.427038 \tabularnewline
M7 & 7.50051641234214 & 3.475034 & 2.1584 & 0.037112 & 0.018556 \tabularnewline
M8 & 26.0146635332518 & 3.594372 & 7.2376 & 0 & 0 \tabularnewline
M9 & 5.80947840878837 & 5.640431 & 1.03 & 0.309369 & 0.154685 \tabularnewline
M10 & -2.57233748576951 & 5.415976 & -0.475 & 0.637469 & 0.318735 \tabularnewline
M11 & -7.79427250169785 & 4.401038 & -1.771 & 0.084375 & 0.042187 \tabularnewline
t & 0.000594829630836294 & 0.083163 & 0.0072 & 0.99433 & 0.497165 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57920&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]-5.32826335158439[/C][C]24.839465[/C][C]-0.2145[/C][C]0.831269[/C][C]0.415634[/C][/ROW]
[ROW][C]X[/C][C]2.34295047914645[/C][C]3.093838[/C][C]0.7573[/C][C]0.453424[/C][C]0.226712[/C][/ROW]
[ROW][C]Y1[/C][C]1.09404972823779[/C][C]0.152273[/C][C]7.1848[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.103435969619101[/C][C]0.213236[/C][C]-0.4851[/C][C]0.630335[/C][C]0.315167[/C][/ROW]
[ROW][C]Y3[/C][C]0.290853961965319[/C][C]0.21023[/C][C]1.3835[/C][C]0.174379[/C][C]0.087189[/C][/ROW]
[ROW][C]Y4[/C][C]-0.283179283774372[/C][C]0.143258[/C][C]-1.9767[/C][C]0.055176[/C][C]0.027588[/C][/ROW]
[ROW][C]M1[/C][C]13.4961062988867[/C][C]3.476256[/C][C]3.8824[/C][C]0.000389[/C][C]0.000194[/C][/ROW]
[ROW][C]M2[/C][C]9.49932734168887[/C][C]4.024368[/C][C]2.3605[/C][C]0.023348[/C][C]0.011674[/C][/ROW]
[ROW][C]M3[/C][C]5.38342892233694[/C][C]4.349921[/C][C]1.2376[/C][C]0.223267[/C][C]0.111633[/C][/ROW]
[ROW][C]M4[/C][C]-0.316430489186691[/C][C]3.768009[/C][C]-0.084[/C][C]0.933503[/C][C]0.466752[/C][/ROW]
[ROW][C]M5[/C][C]2.27378015665203[/C][C]3.42345[/C][C]0.6642[/C][C]0.510484[/C][C]0.255242[/C][/ROW]
[ROW][C]M6[/C][C]0.634821026614046[/C][C]3.428797[/C][C]0.1851[/C][C]0.854076[/C][C]0.427038[/C][/ROW]
[ROW][C]M7[/C][C]7.50051641234214[/C][C]3.475034[/C][C]2.1584[/C][C]0.037112[/C][C]0.018556[/C][/ROW]
[ROW][C]M8[/C][C]26.0146635332518[/C][C]3.594372[/C][C]7.2376[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]5.80947840878837[/C][C]5.640431[/C][C]1.03[/C][C]0.309369[/C][C]0.154685[/C][/ROW]
[ROW][C]M10[/C][C]-2.57233748576951[/C][C]5.415976[/C][C]-0.475[/C][C]0.637469[/C][C]0.318735[/C][/ROW]
[ROW][C]M11[/C][C]-7.79427250169785[/C][C]4.401038[/C][C]-1.771[/C][C]0.084375[/C][C]0.042187[/C][/ROW]
[ROW][C]t[/C][C]0.000594829630836294[/C][C]0.083163[/C][C]0.0072[/C][C]0.99433[/C][C]0.497165[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57920&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57920&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)-5.3282633515843924.839465-0.21450.8312690.415634
X2.342950479146453.0938380.75730.4534240.226712
Y11.094049728237790.1522737.184800
Y2-0.1034359696191010.213236-0.48510.6303350.315167
Y30.2908539619653190.210231.38350.1743790.087189
Y4-0.2831792837743720.143258-1.97670.0551760.027588
M113.49610629888673.4762563.88240.0003890.000194
M29.499327341688874.0243682.36050.0233480.011674
M35.383428922336944.3499211.23760.2232670.111633
M4-0.3164304891866913.768009-0.0840.9335030.466752
M52.273780156652033.423450.66420.5104840.255242
M60.6348210266140463.4287970.18510.8540760.427038
M77.500516412342143.4750342.15840.0371120.018556
M826.01466353325183.5943727.237600
M95.809478408788375.6404311.030.3093690.154685
M10-2.572337485769515.415976-0.4750.6374690.318735
M11-7.794272501697854.401038-1.7710.0843750.042187
t0.0005948296308362940.0831630.00720.994330.497165







Multiple Linear Regression - Regression Statistics
Multiple R0.988776823652894
R-squared0.977679606993106
Adjusted R-squared0.967950204913177
F-TEST (value)100.487121301117
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.80066799932126
Sum Squared Residuals898.81011634858

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.988776823652894 \tabularnewline
R-squared & 0.977679606993106 \tabularnewline
Adjusted R-squared & 0.967950204913177 \tabularnewline
F-TEST (value) & 100.487121301117 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.80066799932126 \tabularnewline
Sum Squared Residuals & 898.81011634858 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57920&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.988776823652894[/C][/ROW]
[ROW][C]R-squared[/C][C]0.977679606993106[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.967950204913177[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]100.487121301117[/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]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4.80066799932126[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]898.81011634858[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57920&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57920&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.988776823652894
R-squared0.977679606993106
Adjusted R-squared0.967950204913177
F-TEST (value)100.487121301117
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.80066799932126
Sum Squared Residuals898.81011634858







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1461462.492138554731-1.49213855473124
2461467.843306352255-6.84330635225514
3463458.2396163733194.76038362668138
4462458.4558300061143.54416999388604
5456458.046638111461-2.04663811146130
6455450.5291193351774.47088066482284
7456456.064763110499-0.0647631104988569
8472474.315046270879-2.31504627087866
9472472.920037398912-0.920037398912489
10471463.4578740658207.54212593418048
11465461.5129682589553.48703174104504
12459458.3161046500860.683895349913938
13465465.578269264926-0.578269264926175
14468467.3050548364830.694945163517022
15467465.8052365446151.19476345538506
16463462.1458138000650.854186199934795
17460459.6373425154520.362657484547555
18462453.990181095528.0098189044801
19461462.474642112125-1.47464211212481
20476479.948617644391-3.94861764439084
21476477.689455017998-1.6894550179979
22471466.899481879274.10051812072972
23453460.853881765038-7.853881765038
24443445.225344579566-2.22534457956645
25442448.189126069023-6.18912606902336
26444440.3137770129063.68622298709427
27438440.678696337565-2.67869633756482
28427430.749200322785-3.74920032278551
29424422.7909618130591.20903818694096
30416416.696761654408-0.69676165440799
31406413.62064407375-7.62064407374966
32431424.2647867344876.73521326551277
33434430.9685054973913.03149450260911
34418422.640429027241-4.64042902724146
35412409.7071271671592.29287283284123
36404406.385751434503-2.38575143450301
37409406.2474693120652.75253068793536
38412413.677716830384-1.67771683038393
39406411.699626584204-5.69962658420436
40398402.845459804049-4.84545980404912
41397396.7611487383550.238851261644903
42385392.261560843548-7.26156084354795
43390385.4749342965964.52506570340376
44413412.6757368319850.324263168015478
45413413.910042178716-0.910042178716053
46401408.002215027669-7.00221502766874
47397394.9260228088482.07397719115172
48397393.0727993358443.92720066415553
49409403.4929967992555.50700320074541
50419414.8601449679724.13985503202778
51424421.5768241602972.42317583970274
52428423.8036960669864.1963039330138
53430429.7639088216720.236091178327881
54424428.522377071347-4.522377071347
55433428.3650164070304.63498359296957
56456456.795812518259-0.79581251825874
57459458.5119599069830.488040093017333

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 461 & 462.492138554731 & -1.49213855473124 \tabularnewline
2 & 461 & 467.843306352255 & -6.84330635225514 \tabularnewline
3 & 463 & 458.239616373319 & 4.76038362668138 \tabularnewline
4 & 462 & 458.455830006114 & 3.54416999388604 \tabularnewline
5 & 456 & 458.046638111461 & -2.04663811146130 \tabularnewline
6 & 455 & 450.529119335177 & 4.47088066482284 \tabularnewline
7 & 456 & 456.064763110499 & -0.0647631104988569 \tabularnewline
8 & 472 & 474.315046270879 & -2.31504627087866 \tabularnewline
9 & 472 & 472.920037398912 & -0.920037398912489 \tabularnewline
10 & 471 & 463.457874065820 & 7.54212593418048 \tabularnewline
11 & 465 & 461.512968258955 & 3.48703174104504 \tabularnewline
12 & 459 & 458.316104650086 & 0.683895349913938 \tabularnewline
13 & 465 & 465.578269264926 & -0.578269264926175 \tabularnewline
14 & 468 & 467.305054836483 & 0.694945163517022 \tabularnewline
15 & 467 & 465.805236544615 & 1.19476345538506 \tabularnewline
16 & 463 & 462.145813800065 & 0.854186199934795 \tabularnewline
17 & 460 & 459.637342515452 & 0.362657484547555 \tabularnewline
18 & 462 & 453.99018109552 & 8.0098189044801 \tabularnewline
19 & 461 & 462.474642112125 & -1.47464211212481 \tabularnewline
20 & 476 & 479.948617644391 & -3.94861764439084 \tabularnewline
21 & 476 & 477.689455017998 & -1.6894550179979 \tabularnewline
22 & 471 & 466.89948187927 & 4.10051812072972 \tabularnewline
23 & 453 & 460.853881765038 & -7.853881765038 \tabularnewline
24 & 443 & 445.225344579566 & -2.22534457956645 \tabularnewline
25 & 442 & 448.189126069023 & -6.18912606902336 \tabularnewline
26 & 444 & 440.313777012906 & 3.68622298709427 \tabularnewline
27 & 438 & 440.678696337565 & -2.67869633756482 \tabularnewline
28 & 427 & 430.749200322785 & -3.74920032278551 \tabularnewline
29 & 424 & 422.790961813059 & 1.20903818694096 \tabularnewline
30 & 416 & 416.696761654408 & -0.69676165440799 \tabularnewline
31 & 406 & 413.62064407375 & -7.62064407374966 \tabularnewline
32 & 431 & 424.264786734487 & 6.73521326551277 \tabularnewline
33 & 434 & 430.968505497391 & 3.03149450260911 \tabularnewline
34 & 418 & 422.640429027241 & -4.64042902724146 \tabularnewline
35 & 412 & 409.707127167159 & 2.29287283284123 \tabularnewline
36 & 404 & 406.385751434503 & -2.38575143450301 \tabularnewline
37 & 409 & 406.247469312065 & 2.75253068793536 \tabularnewline
38 & 412 & 413.677716830384 & -1.67771683038393 \tabularnewline
39 & 406 & 411.699626584204 & -5.69962658420436 \tabularnewline
40 & 398 & 402.845459804049 & -4.84545980404912 \tabularnewline
41 & 397 & 396.761148738355 & 0.238851261644903 \tabularnewline
42 & 385 & 392.261560843548 & -7.26156084354795 \tabularnewline
43 & 390 & 385.474934296596 & 4.52506570340376 \tabularnewline
44 & 413 & 412.675736831985 & 0.324263168015478 \tabularnewline
45 & 413 & 413.910042178716 & -0.910042178716053 \tabularnewline
46 & 401 & 408.002215027669 & -7.00221502766874 \tabularnewline
47 & 397 & 394.926022808848 & 2.07397719115172 \tabularnewline
48 & 397 & 393.072799335844 & 3.92720066415553 \tabularnewline
49 & 409 & 403.492996799255 & 5.50700320074541 \tabularnewline
50 & 419 & 414.860144967972 & 4.13985503202778 \tabularnewline
51 & 424 & 421.576824160297 & 2.42317583970274 \tabularnewline
52 & 428 & 423.803696066986 & 4.1963039330138 \tabularnewline
53 & 430 & 429.763908821672 & 0.236091178327881 \tabularnewline
54 & 424 & 428.522377071347 & -4.522377071347 \tabularnewline
55 & 433 & 428.365016407030 & 4.63498359296957 \tabularnewline
56 & 456 & 456.795812518259 & -0.79581251825874 \tabularnewline
57 & 459 & 458.511959906983 & 0.488040093017333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57920&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]461[/C][C]462.492138554731[/C][C]-1.49213855473124[/C][/ROW]
[ROW][C]2[/C][C]461[/C][C]467.843306352255[/C][C]-6.84330635225514[/C][/ROW]
[ROW][C]3[/C][C]463[/C][C]458.239616373319[/C][C]4.76038362668138[/C][/ROW]
[ROW][C]4[/C][C]462[/C][C]458.455830006114[/C][C]3.54416999388604[/C][/ROW]
[ROW][C]5[/C][C]456[/C][C]458.046638111461[/C][C]-2.04663811146130[/C][/ROW]
[ROW][C]6[/C][C]455[/C][C]450.529119335177[/C][C]4.47088066482284[/C][/ROW]
[ROW][C]7[/C][C]456[/C][C]456.064763110499[/C][C]-0.0647631104988569[/C][/ROW]
[ROW][C]8[/C][C]472[/C][C]474.315046270879[/C][C]-2.31504627087866[/C][/ROW]
[ROW][C]9[/C][C]472[/C][C]472.920037398912[/C][C]-0.920037398912489[/C][/ROW]
[ROW][C]10[/C][C]471[/C][C]463.457874065820[/C][C]7.54212593418048[/C][/ROW]
[ROW][C]11[/C][C]465[/C][C]461.512968258955[/C][C]3.48703174104504[/C][/ROW]
[ROW][C]12[/C][C]459[/C][C]458.316104650086[/C][C]0.683895349913938[/C][/ROW]
[ROW][C]13[/C][C]465[/C][C]465.578269264926[/C][C]-0.578269264926175[/C][/ROW]
[ROW][C]14[/C][C]468[/C][C]467.305054836483[/C][C]0.694945163517022[/C][/ROW]
[ROW][C]15[/C][C]467[/C][C]465.805236544615[/C][C]1.19476345538506[/C][/ROW]
[ROW][C]16[/C][C]463[/C][C]462.145813800065[/C][C]0.854186199934795[/C][/ROW]
[ROW][C]17[/C][C]460[/C][C]459.637342515452[/C][C]0.362657484547555[/C][/ROW]
[ROW][C]18[/C][C]462[/C][C]453.99018109552[/C][C]8.0098189044801[/C][/ROW]
[ROW][C]19[/C][C]461[/C][C]462.474642112125[/C][C]-1.47464211212481[/C][/ROW]
[ROW][C]20[/C][C]476[/C][C]479.948617644391[/C][C]-3.94861764439084[/C][/ROW]
[ROW][C]21[/C][C]476[/C][C]477.689455017998[/C][C]-1.6894550179979[/C][/ROW]
[ROW][C]22[/C][C]471[/C][C]466.89948187927[/C][C]4.10051812072972[/C][/ROW]
[ROW][C]23[/C][C]453[/C][C]460.853881765038[/C][C]-7.853881765038[/C][/ROW]
[ROW][C]24[/C][C]443[/C][C]445.225344579566[/C][C]-2.22534457956645[/C][/ROW]
[ROW][C]25[/C][C]442[/C][C]448.189126069023[/C][C]-6.18912606902336[/C][/ROW]
[ROW][C]26[/C][C]444[/C][C]440.313777012906[/C][C]3.68622298709427[/C][/ROW]
[ROW][C]27[/C][C]438[/C][C]440.678696337565[/C][C]-2.67869633756482[/C][/ROW]
[ROW][C]28[/C][C]427[/C][C]430.749200322785[/C][C]-3.74920032278551[/C][/ROW]
[ROW][C]29[/C][C]424[/C][C]422.790961813059[/C][C]1.20903818694096[/C][/ROW]
[ROW][C]30[/C][C]416[/C][C]416.696761654408[/C][C]-0.69676165440799[/C][/ROW]
[ROW][C]31[/C][C]406[/C][C]413.62064407375[/C][C]-7.62064407374966[/C][/ROW]
[ROW][C]32[/C][C]431[/C][C]424.264786734487[/C][C]6.73521326551277[/C][/ROW]
[ROW][C]33[/C][C]434[/C][C]430.968505497391[/C][C]3.03149450260911[/C][/ROW]
[ROW][C]34[/C][C]418[/C][C]422.640429027241[/C][C]-4.64042902724146[/C][/ROW]
[ROW][C]35[/C][C]412[/C][C]409.707127167159[/C][C]2.29287283284123[/C][/ROW]
[ROW][C]36[/C][C]404[/C][C]406.385751434503[/C][C]-2.38575143450301[/C][/ROW]
[ROW][C]37[/C][C]409[/C][C]406.247469312065[/C][C]2.75253068793536[/C][/ROW]
[ROW][C]38[/C][C]412[/C][C]413.677716830384[/C][C]-1.67771683038393[/C][/ROW]
[ROW][C]39[/C][C]406[/C][C]411.699626584204[/C][C]-5.69962658420436[/C][/ROW]
[ROW][C]40[/C][C]398[/C][C]402.845459804049[/C][C]-4.84545980404912[/C][/ROW]
[ROW][C]41[/C][C]397[/C][C]396.761148738355[/C][C]0.238851261644903[/C][/ROW]
[ROW][C]42[/C][C]385[/C][C]392.261560843548[/C][C]-7.26156084354795[/C][/ROW]
[ROW][C]43[/C][C]390[/C][C]385.474934296596[/C][C]4.52506570340376[/C][/ROW]
[ROW][C]44[/C][C]413[/C][C]412.675736831985[/C][C]0.324263168015478[/C][/ROW]
[ROW][C]45[/C][C]413[/C][C]413.910042178716[/C][C]-0.910042178716053[/C][/ROW]
[ROW][C]46[/C][C]401[/C][C]408.002215027669[/C][C]-7.00221502766874[/C][/ROW]
[ROW][C]47[/C][C]397[/C][C]394.926022808848[/C][C]2.07397719115172[/C][/ROW]
[ROW][C]48[/C][C]397[/C][C]393.072799335844[/C][C]3.92720066415553[/C][/ROW]
[ROW][C]49[/C][C]409[/C][C]403.492996799255[/C][C]5.50700320074541[/C][/ROW]
[ROW][C]50[/C][C]419[/C][C]414.860144967972[/C][C]4.13985503202778[/C][/ROW]
[ROW][C]51[/C][C]424[/C][C]421.576824160297[/C][C]2.42317583970274[/C][/ROW]
[ROW][C]52[/C][C]428[/C][C]423.803696066986[/C][C]4.1963039330138[/C][/ROW]
[ROW][C]53[/C][C]430[/C][C]429.763908821672[/C][C]0.236091178327881[/C][/ROW]
[ROW][C]54[/C][C]424[/C][C]428.522377071347[/C][C]-4.522377071347[/C][/ROW]
[ROW][C]55[/C][C]433[/C][C]428.365016407030[/C][C]4.63498359296957[/C][/ROW]
[ROW][C]56[/C][C]456[/C][C]456.795812518259[/C][C]-0.79581251825874[/C][/ROW]
[ROW][C]57[/C][C]459[/C][C]458.511959906983[/C][C]0.488040093017333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57920&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57920&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
1461462.492138554731-1.49213855473124
2461467.843306352255-6.84330635225514
3463458.2396163733194.76038362668138
4462458.4558300061143.54416999388604
5456458.046638111461-2.04663811146130
6455450.5291193351774.47088066482284
7456456.064763110499-0.0647631104988569
8472474.315046270879-2.31504627087866
9472472.920037398912-0.920037398912489
10471463.4578740658207.54212593418048
11465461.5129682589553.48703174104504
12459458.3161046500860.683895349913938
13465465.578269264926-0.578269264926175
14468467.3050548364830.694945163517022
15467465.8052365446151.19476345538506
16463462.1458138000650.854186199934795
17460459.6373425154520.362657484547555
18462453.990181095528.0098189044801
19461462.474642112125-1.47464211212481
20476479.948617644391-3.94861764439084
21476477.689455017998-1.6894550179979
22471466.899481879274.10051812072972
23453460.853881765038-7.853881765038
24443445.225344579566-2.22534457956645
25442448.189126069023-6.18912606902336
26444440.3137770129063.68622298709427
27438440.678696337565-2.67869633756482
28427430.749200322785-3.74920032278551
29424422.7909618130591.20903818694096
30416416.696761654408-0.69676165440799
31406413.62064407375-7.62064407374966
32431424.2647867344876.73521326551277
33434430.9685054973913.03149450260911
34418422.640429027241-4.64042902724146
35412409.7071271671592.29287283284123
36404406.385751434503-2.38575143450301
37409406.2474693120652.75253068793536
38412413.677716830384-1.67771683038393
39406411.699626584204-5.69962658420436
40398402.845459804049-4.84545980404912
41397396.7611487383550.238851261644903
42385392.261560843548-7.26156084354795
43390385.4749342965964.52506570340376
44413412.6757368319850.324263168015478
45413413.910042178716-0.910042178716053
46401408.002215027669-7.00221502766874
47397394.9260228088482.07397719115172
48397393.0727993358443.92720066415553
49409403.4929967992555.50700320074541
50419414.8601449679724.13985503202778
51424421.5768241602972.42317583970274
52428423.8036960669864.1963039330138
53430429.7639088216720.236091178327881
54424428.522377071347-4.522377071347
55433428.3650164070304.63498359296957
56456456.795812518259-0.79581251825874
57459458.5119599069830.488040093017333







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.01427827562753000.02855655125505990.98572172437247
220.09017917805156960.1803583561031390.90982082194843
230.5806988739255690.8386022521488630.419301126074431
240.5182395155049730.9635209689900540.481760484495027
250.4090503425548410.8181006851096820.590949657445159
260.3917287035208480.7834574070416960.608271296479152
270.2922580579393260.5845161158786530.707741942060674
280.2007535158464380.4015070316928760.799246484153562
290.3450576404793930.6901152809587870.654942359520607
300.4448922706854780.8897845413709560.555107729314522
310.5630218531119730.8739562937760550.436978146888027
320.935685597387460.1286288052250790.0643144026125396
330.9358075391013160.1283849217973680.0641924608986838
340.9380800416387370.1238399167225260.061919958361263
350.9407117502087940.1185764995824110.0592882497912057
360.8696628592850670.2606742814298650.130337140714932

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.0142782756275300 & 0.0285565512550599 & 0.98572172437247 \tabularnewline
22 & 0.0901791780515696 & 0.180358356103139 & 0.90982082194843 \tabularnewline
23 & 0.580698873925569 & 0.838602252148863 & 0.419301126074431 \tabularnewline
24 & 0.518239515504973 & 0.963520968990054 & 0.481760484495027 \tabularnewline
25 & 0.409050342554841 & 0.818100685109682 & 0.590949657445159 \tabularnewline
26 & 0.391728703520848 & 0.783457407041696 & 0.608271296479152 \tabularnewline
27 & 0.292258057939326 & 0.584516115878653 & 0.707741942060674 \tabularnewline
28 & 0.200753515846438 & 0.401507031692876 & 0.799246484153562 \tabularnewline
29 & 0.345057640479393 & 0.690115280958787 & 0.654942359520607 \tabularnewline
30 & 0.444892270685478 & 0.889784541370956 & 0.555107729314522 \tabularnewline
31 & 0.563021853111973 & 0.873956293776055 & 0.436978146888027 \tabularnewline
32 & 0.93568559738746 & 0.128628805225079 & 0.0643144026125396 \tabularnewline
33 & 0.935807539101316 & 0.128384921797368 & 0.0641924608986838 \tabularnewline
34 & 0.938080041638737 & 0.123839916722526 & 0.061919958361263 \tabularnewline
35 & 0.940711750208794 & 0.118576499582411 & 0.0592882497912057 \tabularnewline
36 & 0.869662859285067 & 0.260674281429865 & 0.130337140714932 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57920&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.0142782756275300[/C][C]0.0285565512550599[/C][C]0.98572172437247[/C][/ROW]
[ROW][C]22[/C][C]0.0901791780515696[/C][C]0.180358356103139[/C][C]0.90982082194843[/C][/ROW]
[ROW][C]23[/C][C]0.580698873925569[/C][C]0.838602252148863[/C][C]0.419301126074431[/C][/ROW]
[ROW][C]24[/C][C]0.518239515504973[/C][C]0.963520968990054[/C][C]0.481760484495027[/C][/ROW]
[ROW][C]25[/C][C]0.409050342554841[/C][C]0.818100685109682[/C][C]0.590949657445159[/C][/ROW]
[ROW][C]26[/C][C]0.391728703520848[/C][C]0.783457407041696[/C][C]0.608271296479152[/C][/ROW]
[ROW][C]27[/C][C]0.292258057939326[/C][C]0.584516115878653[/C][C]0.707741942060674[/C][/ROW]
[ROW][C]28[/C][C]0.200753515846438[/C][C]0.401507031692876[/C][C]0.799246484153562[/C][/ROW]
[ROW][C]29[/C][C]0.345057640479393[/C][C]0.690115280958787[/C][C]0.654942359520607[/C][/ROW]
[ROW][C]30[/C][C]0.444892270685478[/C][C]0.889784541370956[/C][C]0.555107729314522[/C][/ROW]
[ROW][C]31[/C][C]0.563021853111973[/C][C]0.873956293776055[/C][C]0.436978146888027[/C][/ROW]
[ROW][C]32[/C][C]0.93568559738746[/C][C]0.128628805225079[/C][C]0.0643144026125396[/C][/ROW]
[ROW][C]33[/C][C]0.935807539101316[/C][C]0.128384921797368[/C][C]0.0641924608986838[/C][/ROW]
[ROW][C]34[/C][C]0.938080041638737[/C][C]0.123839916722526[/C][C]0.061919958361263[/C][/ROW]
[ROW][C]35[/C][C]0.940711750208794[/C][C]0.118576499582411[/C][C]0.0592882497912057[/C][/ROW]
[ROW][C]36[/C][C]0.869662859285067[/C][C]0.260674281429865[/C][C]0.130337140714932[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57920&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57920&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.01427827562753000.02855655125505990.98572172437247
220.09017917805156960.1803583561031390.90982082194843
230.5806988739255690.8386022521488630.419301126074431
240.5182395155049730.9635209689900540.481760484495027
250.4090503425548410.8181006851096820.590949657445159
260.3917287035208480.7834574070416960.608271296479152
270.2922580579393260.5845161158786530.707741942060674
280.2007535158464380.4015070316928760.799246484153562
290.3450576404793930.6901152809587870.654942359520607
300.4448922706854780.8897845413709560.555107729314522
310.5630218531119730.8739562937760550.436978146888027
320.935685597387460.1286288052250790.0643144026125396
330.9358075391013160.1283849217973680.0641924608986838
340.9380800416387370.1238399167225260.061919958361263
350.9407117502087940.1185764995824110.0592882497912057
360.8696628592850670.2606742814298650.130337140714932







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

\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 & 1 & 0.0625 & NOK \tabularnewline
10% type I error level & 1 & 0.0625 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57920&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]1[/C][C]0.0625[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]1[/C][C]0.0625[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57920&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57920&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 level10.0625NOK
10% type I error level10.0625OK



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