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 computationFri, 20 Nov 2009 06:14:25 -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/20/t1258722989467ginllt5eam9n.htm/, Retrieved Wed, 24 Apr 2024 01:25:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58123, Retrieved Wed, 24 Apr 2024 01:25:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact101
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [workshop 7,2] [2009-11-20 13:14:25] [2210215221105fab636491031ce54076] [Current]
Feedback Forum

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




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=58123&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=58123&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58123&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] = + 1.93696698747801 + 0.657290696471075X[t] -0.198364069129669M1[t] -0.202353720376696M2[t] + 0.026854186070578M3[t] + 0.196624650729587M4[t] + 0.170895581082480M5[t] + 0.0925832557176857M6[t] + 0.125729069647108M7[t] + 0.277187208941323M8[t] + 0.468082790023802M9[t] + 0.652124185035703M10[t] + 0.578978371106282M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  1.93696698747801 +  0.657290696471075X[t] -0.198364069129669M1[t] -0.202353720376696M2[t] +  0.026854186070578M3[t] +  0.196624650729587M4[t] +  0.170895581082480M5[t] +  0.0925832557176857M6[t] +  0.125729069647108M7[t] +  0.277187208941323M8[t] +  0.468082790023802M9[t] +  0.652124185035703M10[t] +  0.578978371106282M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58123&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  1.93696698747801 +  0.657290696471075X[t] -0.198364069129669M1[t] -0.202353720376696M2[t] +  0.026854186070578M3[t] +  0.196624650729587M4[t] +  0.170895581082480M5[t] +  0.0925832557176857M6[t] +  0.125729069647108M7[t] +  0.277187208941323M8[t] +  0.468082790023802M9[t] +  0.652124185035703M10[t] +  0.578978371106282M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58123&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58123&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] = + 1.93696698747801 + 0.657290696471075X[t] -0.198364069129669M1[t] -0.202353720376696M2[t] + 0.026854186070578M3[t] + 0.196624650729587M4[t] + 0.170895581082480M5[t] + 0.0925832557176857M6[t] + 0.125729069647108M7[t] + 0.277187208941323M8[t] + 0.468082790023802M9[t] + 0.652124185035703M10[t] + 0.578978371106282M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1.936966987478010.3380095.73051e-060
X0.6572906964710750.03578318.368900
M1-0.1983640691296690.151798-1.30680.197520.09876
M2-0.2023537203766960.158165-1.27940.2069110.103456
M30.0268541860705780.1573080.17070.8651680.432584
M40.1966246507295870.1578331.24580.2188920.109446
M50.1708955810824800.1575811.08450.2835630.141781
M60.09258325571768570.1573320.58850.5589840.279492
M70.1257290696471080.1573470.79910.4281930.214097
M80.2771872089413230.1576721.7580.0851230.042561
M90.4680827900238020.1585772.95180.0048770.002438
M100.6521241850357030.1601524.07190.0001748.7e-05
M110.5789783711062820.1600193.61820.0007120.000356

\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) & 1.93696698747801 & 0.338009 & 5.7305 & 1e-06 & 0 \tabularnewline
X & 0.657290696471075 & 0.035783 & 18.3689 & 0 & 0 \tabularnewline
M1 & -0.198364069129669 & 0.151798 & -1.3068 & 0.19752 & 0.09876 \tabularnewline
M2 & -0.202353720376696 & 0.158165 & -1.2794 & 0.206911 & 0.103456 \tabularnewline
M3 & 0.026854186070578 & 0.157308 & 0.1707 & 0.865168 & 0.432584 \tabularnewline
M4 & 0.196624650729587 & 0.157833 & 1.2458 & 0.218892 & 0.109446 \tabularnewline
M5 & 0.170895581082480 & 0.157581 & 1.0845 & 0.283563 & 0.141781 \tabularnewline
M6 & 0.0925832557176857 & 0.157332 & 0.5885 & 0.558984 & 0.279492 \tabularnewline
M7 & 0.125729069647108 & 0.157347 & 0.7991 & 0.428193 & 0.214097 \tabularnewline
M8 & 0.277187208941323 & 0.157672 & 1.758 & 0.085123 & 0.042561 \tabularnewline
M9 & 0.468082790023802 & 0.158577 & 2.9518 & 0.004877 & 0.002438 \tabularnewline
M10 & 0.652124185035703 & 0.160152 & 4.0719 & 0.000174 & 8.7e-05 \tabularnewline
M11 & 0.578978371106282 & 0.160019 & 3.6182 & 0.000712 & 0.000356 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58123&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]1.93696698747801[/C][C]0.338009[/C][C]5.7305[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]0.657290696471075[/C][C]0.035783[/C][C]18.3689[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.198364069129669[/C][C]0.151798[/C][C]-1.3068[/C][C]0.19752[/C][C]0.09876[/C][/ROW]
[ROW][C]M2[/C][C]-0.202353720376696[/C][C]0.158165[/C][C]-1.2794[/C][C]0.206911[/C][C]0.103456[/C][/ROW]
[ROW][C]M3[/C][C]0.026854186070578[/C][C]0.157308[/C][C]0.1707[/C][C]0.865168[/C][C]0.432584[/C][/ROW]
[ROW][C]M4[/C][C]0.196624650729587[/C][C]0.157833[/C][C]1.2458[/C][C]0.218892[/C][C]0.109446[/C][/ROW]
[ROW][C]M5[/C][C]0.170895581082480[/C][C]0.157581[/C][C]1.0845[/C][C]0.283563[/C][C]0.141781[/C][/ROW]
[ROW][C]M6[/C][C]0.0925832557176857[/C][C]0.157332[/C][C]0.5885[/C][C]0.558984[/C][C]0.279492[/C][/ROW]
[ROW][C]M7[/C][C]0.125729069647108[/C][C]0.157347[/C][C]0.7991[/C][C]0.428193[/C][C]0.214097[/C][/ROW]
[ROW][C]M8[/C][C]0.277187208941323[/C][C]0.157672[/C][C]1.758[/C][C]0.085123[/C][C]0.042561[/C][/ROW]
[ROW][C]M9[/C][C]0.468082790023802[/C][C]0.158577[/C][C]2.9518[/C][C]0.004877[/C][C]0.002438[/C][/ROW]
[ROW][C]M10[/C][C]0.652124185035703[/C][C]0.160152[/C][C]4.0719[/C][C]0.000174[/C][C]8.7e-05[/C][/ROW]
[ROW][C]M11[/C][C]0.578978371106282[/C][C]0.160019[/C][C]3.6182[/C][C]0.000712[/C][C]0.000356[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58123&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58123&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)1.936966987478010.3380095.73051e-060
X0.6572906964710750.03578318.368900
M1-0.1983640691296690.151798-1.30680.197520.09876
M2-0.2023537203766960.158165-1.27940.2069110.103456
M30.0268541860705780.1573080.17070.8651680.432584
M40.1966246507295870.1578331.24580.2188920.109446
M50.1708955810824800.1575811.08450.2835630.141781
M60.09258325571768570.1573320.58850.5589840.279492
M70.1257290696471080.1573470.79910.4281930.214097
M80.2771872089413230.1576721.7580.0851230.042561
M90.4680827900238020.1585772.95180.0048770.002438
M100.6521241850357030.1601524.07190.0001748.7e-05
M110.5789783711062820.1600193.61820.0007120.000356







Multiple Linear Regression - Regression Statistics
Multiple R0.93612045291971
R-squared0.876321502374602
Adjusted R-squared0.845401877968253
F-TEST (value)28.3419193861440
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.248722542545239
Sum Squared Residuals2.96941935216807

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.93612045291971 \tabularnewline
R-squared & 0.876321502374602 \tabularnewline
Adjusted R-squared & 0.845401877968253 \tabularnewline
F-TEST (value) & 28.3419193861440 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.248722542545239 \tabularnewline
Sum Squared Residuals & 2.96941935216807 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58123&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.93612045291971[/C][/ROW]
[ROW][C]R-squared[/C][C]0.876321502374602[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.845401877968253[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]28.3419193861440[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/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]0.248722542545239[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2.96941935216807[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58123&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58123&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.93612045291971
R-squared0.876321502374602
Adjusted R-squared0.845401877968253
F-TEST (value)28.3419193861440
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.248722542545239
Sum Squared Residuals2.96941935216807







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.99.03452964917727-0.134529649177271
28.98.899081858636040.000918141363964084
38.68.536728138259340.0632718617406598
48.38.180666045741490.119333954258513
58.38.154936976094380.145063023905620
68.38.273811859670910.0261881403290909
78.48.372686743247440.0273132567525615
88.58.458415812894550.0415841871054534
98.48.38639511538860.0136048846114047
108.68.438978371106280.161021628893719
118.58.431561626823970.0684383731760322
128.58.57560302183587-0.0756030218358685
138.48.50869709200042-0.108697092000415
148.58.438978371106280.0610216288937193
158.58.273811859670910.226188140329091
168.58.180666045741490.319333954258512
178.58.220666045741490.279333954258511
188.58.20808279002380.291917209976198
198.58.241228603953220.258771396046776
208.58.261228603953220.238771396046776
218.58.320666045741490.179333954258512
228.68.504707440753390.0952925592466107
238.48.43156162682397-0.0315616268239674
248.18.37841581289455-0.278415812894547
2588.3115098830591-0.311509883059092
2688.17606209251785-0.176062092517852
2788.07662465072959-0.0766246507295872
2888.04920790644727-0.0492079064472736
297.98.02347883680017-0.123478836800165
307.88.01089558108248-0.210895581082479
317.88.0440413950119-0.244041395011901
327.98.19549953430612-0.295499534306116
338.18.4521241850357-0.352124185035703
3488.37324930145918-0.373249301459175
357.67.97145813929422-0.371458139294216
367.37.45820883783504-0.158208837835041
3777.06265755976405-0.062657559764049
386.86.795751629928590.0042483700714069
3977.15641767567008-0.156417675670082
407.17.32618814032909-0.226188140329091
417.27.36618814032909-0.166188140329090
427.17.22214674531719-0.122146745317190
436.97.05810535030529-0.158105350305288
446.76.88091814136397-0.180918141363965
456.76.87462651350512-0.174626513505122
466.66.8614806995757-0.261480699575701
476.97.05125116423471-0.151251164234709
487.37.32675069854082-0.0267506985408253
497.57.45703197764670.0429680223533061
507.37.190126047811240.109873952188761
517.17.15641767567008-0.056417675670082
526.97.06327186174066-0.16327186174066
537.17.23473000103488-0.134730001034876
547.57.485063023905620.0149369760943803
557.77.583937907482150.116062092517851
567.87.603937907482150.196062092517852
577.87.466188140329090.333811859670909
587.77.321584187105450.378415812894547
597.87.314167442823140.48583255717686
607.87.261021628893720.538978371106282
617.97.325573838352480.574426161647521

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.9 & 9.03452964917727 & -0.134529649177271 \tabularnewline
2 & 8.9 & 8.89908185863604 & 0.000918141363964084 \tabularnewline
3 & 8.6 & 8.53672813825934 & 0.0632718617406598 \tabularnewline
4 & 8.3 & 8.18066604574149 & 0.119333954258513 \tabularnewline
5 & 8.3 & 8.15493697609438 & 0.145063023905620 \tabularnewline
6 & 8.3 & 8.27381185967091 & 0.0261881403290909 \tabularnewline
7 & 8.4 & 8.37268674324744 & 0.0273132567525615 \tabularnewline
8 & 8.5 & 8.45841581289455 & 0.0415841871054534 \tabularnewline
9 & 8.4 & 8.3863951153886 & 0.0136048846114047 \tabularnewline
10 & 8.6 & 8.43897837110628 & 0.161021628893719 \tabularnewline
11 & 8.5 & 8.43156162682397 & 0.0684383731760322 \tabularnewline
12 & 8.5 & 8.57560302183587 & -0.0756030218358685 \tabularnewline
13 & 8.4 & 8.50869709200042 & -0.108697092000415 \tabularnewline
14 & 8.5 & 8.43897837110628 & 0.0610216288937193 \tabularnewline
15 & 8.5 & 8.27381185967091 & 0.226188140329091 \tabularnewline
16 & 8.5 & 8.18066604574149 & 0.319333954258512 \tabularnewline
17 & 8.5 & 8.22066604574149 & 0.279333954258511 \tabularnewline
18 & 8.5 & 8.2080827900238 & 0.291917209976198 \tabularnewline
19 & 8.5 & 8.24122860395322 & 0.258771396046776 \tabularnewline
20 & 8.5 & 8.26122860395322 & 0.238771396046776 \tabularnewline
21 & 8.5 & 8.32066604574149 & 0.179333954258512 \tabularnewline
22 & 8.6 & 8.50470744075339 & 0.0952925592466107 \tabularnewline
23 & 8.4 & 8.43156162682397 & -0.0315616268239674 \tabularnewline
24 & 8.1 & 8.37841581289455 & -0.278415812894547 \tabularnewline
25 & 8 & 8.3115098830591 & -0.311509883059092 \tabularnewline
26 & 8 & 8.17606209251785 & -0.176062092517852 \tabularnewline
27 & 8 & 8.07662465072959 & -0.0766246507295872 \tabularnewline
28 & 8 & 8.04920790644727 & -0.0492079064472736 \tabularnewline
29 & 7.9 & 8.02347883680017 & -0.123478836800165 \tabularnewline
30 & 7.8 & 8.01089558108248 & -0.210895581082479 \tabularnewline
31 & 7.8 & 8.0440413950119 & -0.244041395011901 \tabularnewline
32 & 7.9 & 8.19549953430612 & -0.295499534306116 \tabularnewline
33 & 8.1 & 8.4521241850357 & -0.352124185035703 \tabularnewline
34 & 8 & 8.37324930145918 & -0.373249301459175 \tabularnewline
35 & 7.6 & 7.97145813929422 & -0.371458139294216 \tabularnewline
36 & 7.3 & 7.45820883783504 & -0.158208837835041 \tabularnewline
37 & 7 & 7.06265755976405 & -0.062657559764049 \tabularnewline
38 & 6.8 & 6.79575162992859 & 0.0042483700714069 \tabularnewline
39 & 7 & 7.15641767567008 & -0.156417675670082 \tabularnewline
40 & 7.1 & 7.32618814032909 & -0.226188140329091 \tabularnewline
41 & 7.2 & 7.36618814032909 & -0.166188140329090 \tabularnewline
42 & 7.1 & 7.22214674531719 & -0.122146745317190 \tabularnewline
43 & 6.9 & 7.05810535030529 & -0.158105350305288 \tabularnewline
44 & 6.7 & 6.88091814136397 & -0.180918141363965 \tabularnewline
45 & 6.7 & 6.87462651350512 & -0.174626513505122 \tabularnewline
46 & 6.6 & 6.8614806995757 & -0.261480699575701 \tabularnewline
47 & 6.9 & 7.05125116423471 & -0.151251164234709 \tabularnewline
48 & 7.3 & 7.32675069854082 & -0.0267506985408253 \tabularnewline
49 & 7.5 & 7.4570319776467 & 0.0429680223533061 \tabularnewline
50 & 7.3 & 7.19012604781124 & 0.109873952188761 \tabularnewline
51 & 7.1 & 7.15641767567008 & -0.056417675670082 \tabularnewline
52 & 6.9 & 7.06327186174066 & -0.16327186174066 \tabularnewline
53 & 7.1 & 7.23473000103488 & -0.134730001034876 \tabularnewline
54 & 7.5 & 7.48506302390562 & 0.0149369760943803 \tabularnewline
55 & 7.7 & 7.58393790748215 & 0.116062092517851 \tabularnewline
56 & 7.8 & 7.60393790748215 & 0.196062092517852 \tabularnewline
57 & 7.8 & 7.46618814032909 & 0.333811859670909 \tabularnewline
58 & 7.7 & 7.32158418710545 & 0.378415812894547 \tabularnewline
59 & 7.8 & 7.31416744282314 & 0.48583255717686 \tabularnewline
60 & 7.8 & 7.26102162889372 & 0.538978371106282 \tabularnewline
61 & 7.9 & 7.32557383835248 & 0.574426161647521 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58123&T=4

[TABLE]
[ROW][C]Multiple Linear Regression - Actuals, Interpolation, and Residuals[/C][/ROW]
[ROW][C]Time or Index[/C][C]Actuals[/C][C]InterpolationForecast[/C][C]ResidualsPrediction Error[/C][/ROW]
[ROW][C]1[/C][C]8.9[/C][C]9.03452964917727[/C][C]-0.134529649177271[/C][/ROW]
[ROW][C]2[/C][C]8.9[/C][C]8.89908185863604[/C][C]0.000918141363964084[/C][/ROW]
[ROW][C]3[/C][C]8.6[/C][C]8.53672813825934[/C][C]0.0632718617406598[/C][/ROW]
[ROW][C]4[/C][C]8.3[/C][C]8.18066604574149[/C][C]0.119333954258513[/C][/ROW]
[ROW][C]5[/C][C]8.3[/C][C]8.15493697609438[/C][C]0.145063023905620[/C][/ROW]
[ROW][C]6[/C][C]8.3[/C][C]8.27381185967091[/C][C]0.0261881403290909[/C][/ROW]
[ROW][C]7[/C][C]8.4[/C][C]8.37268674324744[/C][C]0.0273132567525615[/C][/ROW]
[ROW][C]8[/C][C]8.5[/C][C]8.45841581289455[/C][C]0.0415841871054534[/C][/ROW]
[ROW][C]9[/C][C]8.4[/C][C]8.3863951153886[/C][C]0.0136048846114047[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.43897837110628[/C][C]0.161021628893719[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.43156162682397[/C][C]0.0684383731760322[/C][/ROW]
[ROW][C]12[/C][C]8.5[/C][C]8.57560302183587[/C][C]-0.0756030218358685[/C][/ROW]
[ROW][C]13[/C][C]8.4[/C][C]8.50869709200042[/C][C]-0.108697092000415[/C][/ROW]
[ROW][C]14[/C][C]8.5[/C][C]8.43897837110628[/C][C]0.0610216288937193[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.27381185967091[/C][C]0.226188140329091[/C][/ROW]
[ROW][C]16[/C][C]8.5[/C][C]8.18066604574149[/C][C]0.319333954258512[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]8.22066604574149[/C][C]0.279333954258511[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.2080827900238[/C][C]0.291917209976198[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]8.24122860395322[/C][C]0.258771396046776[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]8.26122860395322[/C][C]0.238771396046776[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]8.32066604574149[/C][C]0.179333954258512[/C][/ROW]
[ROW][C]22[/C][C]8.6[/C][C]8.50470744075339[/C][C]0.0952925592466107[/C][/ROW]
[ROW][C]23[/C][C]8.4[/C][C]8.43156162682397[/C][C]-0.0315616268239674[/C][/ROW]
[ROW][C]24[/C][C]8.1[/C][C]8.37841581289455[/C][C]-0.278415812894547[/C][/ROW]
[ROW][C]25[/C][C]8[/C][C]8.3115098830591[/C][C]-0.311509883059092[/C][/ROW]
[ROW][C]26[/C][C]8[/C][C]8.17606209251785[/C][C]-0.176062092517852[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]8.07662465072959[/C][C]-0.0766246507295872[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]8.04920790644727[/C][C]-0.0492079064472736[/C][/ROW]
[ROW][C]29[/C][C]7.9[/C][C]8.02347883680017[/C][C]-0.123478836800165[/C][/ROW]
[ROW][C]30[/C][C]7.8[/C][C]8.01089558108248[/C][C]-0.210895581082479[/C][/ROW]
[ROW][C]31[/C][C]7.8[/C][C]8.0440413950119[/C][C]-0.244041395011901[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]8.19549953430612[/C][C]-0.295499534306116[/C][/ROW]
[ROW][C]33[/C][C]8.1[/C][C]8.4521241850357[/C][C]-0.352124185035703[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]8.37324930145918[/C][C]-0.373249301459175[/C][/ROW]
[ROW][C]35[/C][C]7.6[/C][C]7.97145813929422[/C][C]-0.371458139294216[/C][/ROW]
[ROW][C]36[/C][C]7.3[/C][C]7.45820883783504[/C][C]-0.158208837835041[/C][/ROW]
[ROW][C]37[/C][C]7[/C][C]7.06265755976405[/C][C]-0.062657559764049[/C][/ROW]
[ROW][C]38[/C][C]6.8[/C][C]6.79575162992859[/C][C]0.0042483700714069[/C][/ROW]
[ROW][C]39[/C][C]7[/C][C]7.15641767567008[/C][C]-0.156417675670082[/C][/ROW]
[ROW][C]40[/C][C]7.1[/C][C]7.32618814032909[/C][C]-0.226188140329091[/C][/ROW]
[ROW][C]41[/C][C]7.2[/C][C]7.36618814032909[/C][C]-0.166188140329090[/C][/ROW]
[ROW][C]42[/C][C]7.1[/C][C]7.22214674531719[/C][C]-0.122146745317190[/C][/ROW]
[ROW][C]43[/C][C]6.9[/C][C]7.05810535030529[/C][C]-0.158105350305288[/C][/ROW]
[ROW][C]44[/C][C]6.7[/C][C]6.88091814136397[/C][C]-0.180918141363965[/C][/ROW]
[ROW][C]45[/C][C]6.7[/C][C]6.87462651350512[/C][C]-0.174626513505122[/C][/ROW]
[ROW][C]46[/C][C]6.6[/C][C]6.8614806995757[/C][C]-0.261480699575701[/C][/ROW]
[ROW][C]47[/C][C]6.9[/C][C]7.05125116423471[/C][C]-0.151251164234709[/C][/ROW]
[ROW][C]48[/C][C]7.3[/C][C]7.32675069854082[/C][C]-0.0267506985408253[/C][/ROW]
[ROW][C]49[/C][C]7.5[/C][C]7.4570319776467[/C][C]0.0429680223533061[/C][/ROW]
[ROW][C]50[/C][C]7.3[/C][C]7.19012604781124[/C][C]0.109873952188761[/C][/ROW]
[ROW][C]51[/C][C]7.1[/C][C]7.15641767567008[/C][C]-0.056417675670082[/C][/ROW]
[ROW][C]52[/C][C]6.9[/C][C]7.06327186174066[/C][C]-0.16327186174066[/C][/ROW]
[ROW][C]53[/C][C]7.1[/C][C]7.23473000103488[/C][C]-0.134730001034876[/C][/ROW]
[ROW][C]54[/C][C]7.5[/C][C]7.48506302390562[/C][C]0.0149369760943803[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.58393790748215[/C][C]0.116062092517851[/C][/ROW]
[ROW][C]56[/C][C]7.8[/C][C]7.60393790748215[/C][C]0.196062092517852[/C][/ROW]
[ROW][C]57[/C][C]7.8[/C][C]7.46618814032909[/C][C]0.333811859670909[/C][/ROW]
[ROW][C]58[/C][C]7.7[/C][C]7.32158418710545[/C][C]0.378415812894547[/C][/ROW]
[ROW][C]59[/C][C]7.8[/C][C]7.31416744282314[/C][C]0.48583255717686[/C][/ROW]
[ROW][C]60[/C][C]7.8[/C][C]7.26102162889372[/C][C]0.538978371106282[/C][/ROW]
[ROW][C]61[/C][C]7.9[/C][C]7.32557383835248[/C][C]0.574426161647521[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58123&T=4

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.99.03452964917727-0.134529649177271
28.98.899081858636040.000918141363964084
38.68.536728138259340.0632718617406598
48.38.180666045741490.119333954258513
58.38.154936976094380.145063023905620
68.38.273811859670910.0261881403290909
78.48.372686743247440.0273132567525615
88.58.458415812894550.0415841871054534
98.48.38639511538860.0136048846114047
108.68.438978371106280.161021628893719
118.58.431561626823970.0684383731760322
128.58.57560302183587-0.0756030218358685
138.48.50869709200042-0.108697092000415
148.58.438978371106280.0610216288937193
158.58.273811859670910.226188140329091
168.58.180666045741490.319333954258512
178.58.220666045741490.279333954258511
188.58.20808279002380.291917209976198
198.58.241228603953220.258771396046776
208.58.261228603953220.238771396046776
218.58.320666045741490.179333954258512
228.68.504707440753390.0952925592466107
238.48.43156162682397-0.0315616268239674
248.18.37841581289455-0.278415812894547
2588.3115098830591-0.311509883059092
2688.17606209251785-0.176062092517852
2788.07662465072959-0.0766246507295872
2888.04920790644727-0.0492079064472736
297.98.02347883680017-0.123478836800165
307.88.01089558108248-0.210895581082479
317.88.0440413950119-0.244041395011901
327.98.19549953430612-0.295499534306116
338.18.4521241850357-0.352124185035703
3488.37324930145918-0.373249301459175
357.67.97145813929422-0.371458139294216
367.37.45820883783504-0.158208837835041
3777.06265755976405-0.062657559764049
386.86.795751629928590.0042483700714069
3977.15641767567008-0.156417675670082
407.17.32618814032909-0.226188140329091
417.27.36618814032909-0.166188140329090
427.17.22214674531719-0.122146745317190
436.97.05810535030529-0.158105350305288
446.76.88091814136397-0.180918141363965
456.76.87462651350512-0.174626513505122
466.66.8614806995757-0.261480699575701
476.97.05125116423471-0.151251164234709
487.37.32675069854082-0.0267506985408253
497.57.45703197764670.0429680223533061
507.37.190126047811240.109873952188761
517.17.15641767567008-0.056417675670082
526.97.06327186174066-0.16327186174066
537.17.23473000103488-0.134730001034876
547.57.485063023905620.0149369760943803
557.77.583937907482150.116062092517851
567.87.603937907482150.196062092517852
577.87.466188140329090.333811859670909
587.77.321584187105450.378415812894547
597.87.314167442823140.48583255717686
607.87.261021628893720.538978371106282
617.97.325573838352480.574426161647521







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.05311700113278040.1062340022655610.94688299886722
170.02856006708522110.05712013417044210.971439932914779
180.03686681867327300.07373363734654590.963133181326727
190.03037280498451870.06074560996903730.969627195015481
200.01984688918461810.03969377836923620.980153110815382
210.01256467470474550.02512934940949110.987435325295254
220.006050425361597470.01210085072319490.993949574638402
230.002833860473692680.005667720947385370.997166139526307
240.003163671255791500.006327342511582990.996836328744209
250.004431007011244740.008862014022489470.995568992988755
260.003328692364716320.006657384729432630.996671307635284
270.002400811821821570.004801623643643150.997599188178178
280.002750370544046030.005500741088092060.997249629455954
290.003727235718651050.007454471437302090.99627276428135
300.004482139283878170.008964278567756340.995517860716122
310.004770812990653010.009541625981306020.995229187009347
320.006852951752482570.01370590350496510.993147048247517
330.01703532046969570.03407064093939130.982964679530304
340.04375239813827140.08750479627654290.956247601861729
350.1787948810205810.3575897620411610.82120511897942
360.3262364474204820.6524728948409630.673763552579518
370.3234058862297080.6468117724594160.676594113770292
380.2565428220121150.5130856440242310.743457177987885
390.1911547839421830.3823095678843670.808845216057817
400.1714127317837930.3428254635675860.828587268216207
410.1211684004098620.2423368008197240.878831599590138
420.07202325519546630.1440465103909330.927976744804534
430.0402945240723070.0805890481446140.959705475927693
440.02443966515792740.04887933031585470.975560334842073
450.01062594727117830.02125189454235660.989374052728822

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0531170011327804 & 0.106234002265561 & 0.94688299886722 \tabularnewline
17 & 0.0285600670852211 & 0.0571201341704421 & 0.971439932914779 \tabularnewline
18 & 0.0368668186732730 & 0.0737336373465459 & 0.963133181326727 \tabularnewline
19 & 0.0303728049845187 & 0.0607456099690373 & 0.969627195015481 \tabularnewline
20 & 0.0198468891846181 & 0.0396937783692362 & 0.980153110815382 \tabularnewline
21 & 0.0125646747047455 & 0.0251293494094911 & 0.987435325295254 \tabularnewline
22 & 0.00605042536159747 & 0.0121008507231949 & 0.993949574638402 \tabularnewline
23 & 0.00283386047369268 & 0.00566772094738537 & 0.997166139526307 \tabularnewline
24 & 0.00316367125579150 & 0.00632734251158299 & 0.996836328744209 \tabularnewline
25 & 0.00443100701124474 & 0.00886201402248947 & 0.995568992988755 \tabularnewline
26 & 0.00332869236471632 & 0.00665738472943263 & 0.996671307635284 \tabularnewline
27 & 0.00240081182182157 & 0.00480162364364315 & 0.997599188178178 \tabularnewline
28 & 0.00275037054404603 & 0.00550074108809206 & 0.997249629455954 \tabularnewline
29 & 0.00372723571865105 & 0.00745447143730209 & 0.99627276428135 \tabularnewline
30 & 0.00448213928387817 & 0.00896427856775634 & 0.995517860716122 \tabularnewline
31 & 0.00477081299065301 & 0.00954162598130602 & 0.995229187009347 \tabularnewline
32 & 0.00685295175248257 & 0.0137059035049651 & 0.993147048247517 \tabularnewline
33 & 0.0170353204696957 & 0.0340706409393913 & 0.982964679530304 \tabularnewline
34 & 0.0437523981382714 & 0.0875047962765429 & 0.956247601861729 \tabularnewline
35 & 0.178794881020581 & 0.357589762041161 & 0.82120511897942 \tabularnewline
36 & 0.326236447420482 & 0.652472894840963 & 0.673763552579518 \tabularnewline
37 & 0.323405886229708 & 0.646811772459416 & 0.676594113770292 \tabularnewline
38 & 0.256542822012115 & 0.513085644024231 & 0.743457177987885 \tabularnewline
39 & 0.191154783942183 & 0.382309567884367 & 0.808845216057817 \tabularnewline
40 & 0.171412731783793 & 0.342825463567586 & 0.828587268216207 \tabularnewline
41 & 0.121168400409862 & 0.242336800819724 & 0.878831599590138 \tabularnewline
42 & 0.0720232551954663 & 0.144046510390933 & 0.927976744804534 \tabularnewline
43 & 0.040294524072307 & 0.080589048144614 & 0.959705475927693 \tabularnewline
44 & 0.0244396651579274 & 0.0488793303158547 & 0.975560334842073 \tabularnewline
45 & 0.0106259472711783 & 0.0212518945423566 & 0.989374052728822 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58123&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]16[/C][C]0.0531170011327804[/C][C]0.106234002265561[/C][C]0.94688299886722[/C][/ROW]
[ROW][C]17[/C][C]0.0285600670852211[/C][C]0.0571201341704421[/C][C]0.971439932914779[/C][/ROW]
[ROW][C]18[/C][C]0.0368668186732730[/C][C]0.0737336373465459[/C][C]0.963133181326727[/C][/ROW]
[ROW][C]19[/C][C]0.0303728049845187[/C][C]0.0607456099690373[/C][C]0.969627195015481[/C][/ROW]
[ROW][C]20[/C][C]0.0198468891846181[/C][C]0.0396937783692362[/C][C]0.980153110815382[/C][/ROW]
[ROW][C]21[/C][C]0.0125646747047455[/C][C]0.0251293494094911[/C][C]0.987435325295254[/C][/ROW]
[ROW][C]22[/C][C]0.00605042536159747[/C][C]0.0121008507231949[/C][C]0.993949574638402[/C][/ROW]
[ROW][C]23[/C][C]0.00283386047369268[/C][C]0.00566772094738537[/C][C]0.997166139526307[/C][/ROW]
[ROW][C]24[/C][C]0.00316367125579150[/C][C]0.00632734251158299[/C][C]0.996836328744209[/C][/ROW]
[ROW][C]25[/C][C]0.00443100701124474[/C][C]0.00886201402248947[/C][C]0.995568992988755[/C][/ROW]
[ROW][C]26[/C][C]0.00332869236471632[/C][C]0.00665738472943263[/C][C]0.996671307635284[/C][/ROW]
[ROW][C]27[/C][C]0.00240081182182157[/C][C]0.00480162364364315[/C][C]0.997599188178178[/C][/ROW]
[ROW][C]28[/C][C]0.00275037054404603[/C][C]0.00550074108809206[/C][C]0.997249629455954[/C][/ROW]
[ROW][C]29[/C][C]0.00372723571865105[/C][C]0.00745447143730209[/C][C]0.99627276428135[/C][/ROW]
[ROW][C]30[/C][C]0.00448213928387817[/C][C]0.00896427856775634[/C][C]0.995517860716122[/C][/ROW]
[ROW][C]31[/C][C]0.00477081299065301[/C][C]0.00954162598130602[/C][C]0.995229187009347[/C][/ROW]
[ROW][C]32[/C][C]0.00685295175248257[/C][C]0.0137059035049651[/C][C]0.993147048247517[/C][/ROW]
[ROW][C]33[/C][C]0.0170353204696957[/C][C]0.0340706409393913[/C][C]0.982964679530304[/C][/ROW]
[ROW][C]34[/C][C]0.0437523981382714[/C][C]0.0875047962765429[/C][C]0.956247601861729[/C][/ROW]
[ROW][C]35[/C][C]0.178794881020581[/C][C]0.357589762041161[/C][C]0.82120511897942[/C][/ROW]
[ROW][C]36[/C][C]0.326236447420482[/C][C]0.652472894840963[/C][C]0.673763552579518[/C][/ROW]
[ROW][C]37[/C][C]0.323405886229708[/C][C]0.646811772459416[/C][C]0.676594113770292[/C][/ROW]
[ROW][C]38[/C][C]0.256542822012115[/C][C]0.513085644024231[/C][C]0.743457177987885[/C][/ROW]
[ROW][C]39[/C][C]0.191154783942183[/C][C]0.382309567884367[/C][C]0.808845216057817[/C][/ROW]
[ROW][C]40[/C][C]0.171412731783793[/C][C]0.342825463567586[/C][C]0.828587268216207[/C][/ROW]
[ROW][C]41[/C][C]0.121168400409862[/C][C]0.242336800819724[/C][C]0.878831599590138[/C][/ROW]
[ROW][C]42[/C][C]0.0720232551954663[/C][C]0.144046510390933[/C][C]0.927976744804534[/C][/ROW]
[ROW][C]43[/C][C]0.040294524072307[/C][C]0.080589048144614[/C][C]0.959705475927693[/C][/ROW]
[ROW][C]44[/C][C]0.0244396651579274[/C][C]0.0488793303158547[/C][C]0.975560334842073[/C][/ROW]
[ROW][C]45[/C][C]0.0106259472711783[/C][C]0.0212518945423566[/C][C]0.989374052728822[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58123&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58123&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
160.05311700113278040.1062340022655610.94688299886722
170.02856006708522110.05712013417044210.971439932914779
180.03686681867327300.07373363734654590.963133181326727
190.03037280498451870.06074560996903730.969627195015481
200.01984688918461810.03969377836923620.980153110815382
210.01256467470474550.02512934940949110.987435325295254
220.006050425361597470.01210085072319490.993949574638402
230.002833860473692680.005667720947385370.997166139526307
240.003163671255791500.006327342511582990.996836328744209
250.004431007011244740.008862014022489470.995568992988755
260.003328692364716320.006657384729432630.996671307635284
270.002400811821821570.004801623643643150.997599188178178
280.002750370544046030.005500741088092060.997249629455954
290.003727235718651050.007454471437302090.99627276428135
300.004482139283878170.008964278567756340.995517860716122
310.004770812990653010.009541625981306020.995229187009347
320.006852951752482570.01370590350496510.993147048247517
330.01703532046969570.03407064093939130.982964679530304
340.04375239813827140.08750479627654290.956247601861729
350.1787948810205810.3575897620411610.82120511897942
360.3262364474204820.6524728948409630.673763552579518
370.3234058862297080.6468117724594160.676594113770292
380.2565428220121150.5130856440242310.743457177987885
390.1911547839421830.3823095678843670.808845216057817
400.1714127317837930.3428254635675860.828587268216207
410.1211684004098620.2423368008197240.878831599590138
420.07202325519546630.1440465103909330.927976744804534
430.0402945240723070.0805890481446140.959705475927693
440.02443966515792740.04887933031585470.975560334842073
450.01062594727117830.02125189454235660.989374052728822







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level90.3NOK
5% type I error level160.533333333333333NOK
10% type I error level210.7NOK

\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 & 9 & 0.3 & NOK \tabularnewline
5% type I error level & 16 & 0.533333333333333 & NOK \tabularnewline
10% type I error level & 21 & 0.7 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58123&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]9[/C][C]0.3[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]16[/C][C]0.533333333333333[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]21[/C][C]0.7[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58123&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58123&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 level90.3NOK
5% type I error level160.533333333333333NOK
10% type I error level210.7NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}