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, 17 Dec 2009 07:40:57 -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/Dec/17/t1261060924qph5bvpitwkp6hp.htm/, Retrieved Tue, 30 Apr 2024 05:29:20 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68914, Retrieved Tue, 30 Apr 2024 05:29:20 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact129
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 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [] [2009-11-18 16:22:43] [90f6d58d515a4caed6fb4b8be4e11eaa]
-    D      [Multiple Regression] [Multiple Regressi...] [2009-12-17 13:47:34] [90f6d58d515a4caed6fb4b8be4e11eaa]
-   PD          [Multiple Regression] [Multiple Regressi...] [2009-12-17 14:40:57] [2b548c9d2e9bba6e1eaf65bd4d551f41] [Current]
-   PD            [Multiple Regression] [Multiple Regressi...] [2009-12-19 13:55:22] [90f6d58d515a4caed6fb4b8be4e11eaa]
Feedback Forum

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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68914&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] = + 2.68671173294437 -0.043180403808019X[t] + 1.38949814463619Y1[t] -0.689861717000064Y2[t] -0.0431505830094493M1[t] + 0.0775144191554113M2[t] + 0.295760596745925M3[t] + 0.247109144555499M4[t] + 0.0053898005053127M5[t] + 0.0259581788623766M6[t] + 0.0267338805858564M7[t] -0.0325720489159387M8[t] + 0.0988937971289136M9[t] + 0.680602980478848M10[t] -0.247085702039494M11[t] -0.00816867183945566t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  2.68671173294437 -0.043180403808019X[t] +  1.38949814463619Y1[t] -0.689861717000064Y2[t] -0.0431505830094493M1[t] +  0.0775144191554113M2[t] +  0.295760596745925M3[t] +  0.247109144555499M4[t] +  0.0053898005053127M5[t] +  0.0259581788623766M6[t] +  0.0267338805858564M7[t] -0.0325720489159387M8[t] +  0.0988937971289136M9[t] +  0.680602980478848M10[t] -0.247085702039494M11[t] -0.00816867183945566t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68914&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  2.68671173294437 -0.043180403808019X[t] +  1.38949814463619Y1[t] -0.689861717000064Y2[t] -0.0431505830094493M1[t] +  0.0775144191554113M2[t] +  0.295760596745925M3[t] +  0.247109144555499M4[t] +  0.0053898005053127M5[t] +  0.0259581788623766M6[t] +  0.0267338805858564M7[t] -0.0325720489159387M8[t] +  0.0988937971289136M9[t] +  0.680602980478848M10[t] -0.247085702039494M11[t] -0.00816867183945566t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68914&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68914&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] = + 2.68671173294437 -0.043180403808019X[t] + 1.38949814463619Y1[t] -0.689861717000064Y2[t] -0.0431505830094493M1[t] + 0.0775144191554113M2[t] + 0.295760596745925M3[t] + 0.247109144555499M4[t] + 0.0053898005053127M5[t] + 0.0259581788623766M6[t] + 0.0267338805858564M7[t] -0.0325720489159387M8[t] + 0.0988937971289136M9[t] + 0.680602980478848M10[t] -0.247085702039494M11[t] -0.00816867183945566t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.686711732944370.7896663.40230.0014780.000739
X-0.0431804038080190.021873-1.97410.0549650.027483
Y11.389498144636190.11892311.68400
Y2-0.6898617170000640.131892-5.23055e-063e-06
M1-0.04315058300944930.126666-0.34070.7350550.367528
M20.07751441915541130.130730.59290.5564030.278202
M30.2957605967459250.1315032.24910.029810.014905
M40.2471091445554990.1331711.85560.0705410.035271
M50.00538980050531270.1322260.04080.9676790.483839
M60.02595817886237660.1261180.20580.8379220.418961
M70.02673388058585640.1266590.21110.8338540.416927
M8-0.03257204891593870.128552-0.25340.8012130.400606
M90.09889379712891360.1320760.74880.4581710.229086
M100.6806029804788480.1338045.08668e-064e-06
M11-0.2470857020394940.154883-1.59530.1181410.059071
t-0.008168671839455660.002965-2.75470.0086460.004323

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 2.68671173294437 & 0.789666 & 3.4023 & 0.001478 & 0.000739 \tabularnewline
X & -0.043180403808019 & 0.021873 & -1.9741 & 0.054965 & 0.027483 \tabularnewline
Y1 & 1.38949814463619 & 0.118923 & 11.684 & 0 & 0 \tabularnewline
Y2 & -0.689861717000064 & 0.131892 & -5.2305 & 5e-06 & 3e-06 \tabularnewline
M1 & -0.0431505830094493 & 0.126666 & -0.3407 & 0.735055 & 0.367528 \tabularnewline
M2 & 0.0775144191554113 & 0.13073 & 0.5929 & 0.556403 & 0.278202 \tabularnewline
M3 & 0.295760596745925 & 0.131503 & 2.2491 & 0.02981 & 0.014905 \tabularnewline
M4 & 0.247109144555499 & 0.133171 & 1.8556 & 0.070541 & 0.035271 \tabularnewline
M5 & 0.0053898005053127 & 0.132226 & 0.0408 & 0.967679 & 0.483839 \tabularnewline
M6 & 0.0259581788623766 & 0.126118 & 0.2058 & 0.837922 & 0.418961 \tabularnewline
M7 & 0.0267338805858564 & 0.126659 & 0.2111 & 0.833854 & 0.416927 \tabularnewline
M8 & -0.0325720489159387 & 0.128552 & -0.2534 & 0.801213 & 0.400606 \tabularnewline
M9 & 0.0988937971289136 & 0.132076 & 0.7488 & 0.458171 & 0.229086 \tabularnewline
M10 & 0.680602980478848 & 0.133804 & 5.0866 & 8e-06 & 4e-06 \tabularnewline
M11 & -0.247085702039494 & 0.154883 & -1.5953 & 0.118141 & 0.059071 \tabularnewline
t & -0.00816867183945566 & 0.002965 & -2.7547 & 0.008646 & 0.004323 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68914&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]2.68671173294437[/C][C]0.789666[/C][C]3.4023[/C][C]0.001478[/C][C]0.000739[/C][/ROW]
[ROW][C]X[/C][C]-0.043180403808019[/C][C]0.021873[/C][C]-1.9741[/C][C]0.054965[/C][C]0.027483[/C][/ROW]
[ROW][C]Y1[/C][C]1.38949814463619[/C][C]0.118923[/C][C]11.684[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.689861717000064[/C][C]0.131892[/C][C]-5.2305[/C][C]5e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M1[/C][C]-0.0431505830094493[/C][C]0.126666[/C][C]-0.3407[/C][C]0.735055[/C][C]0.367528[/C][/ROW]
[ROW][C]M2[/C][C]0.0775144191554113[/C][C]0.13073[/C][C]0.5929[/C][C]0.556403[/C][C]0.278202[/C][/ROW]
[ROW][C]M3[/C][C]0.295760596745925[/C][C]0.131503[/C][C]2.2491[/C][C]0.02981[/C][C]0.014905[/C][/ROW]
[ROW][C]M4[/C][C]0.247109144555499[/C][C]0.133171[/C][C]1.8556[/C][C]0.070541[/C][C]0.035271[/C][/ROW]
[ROW][C]M5[/C][C]0.0053898005053127[/C][C]0.132226[/C][C]0.0408[/C][C]0.967679[/C][C]0.483839[/C][/ROW]
[ROW][C]M6[/C][C]0.0259581788623766[/C][C]0.126118[/C][C]0.2058[/C][C]0.837922[/C][C]0.418961[/C][/ROW]
[ROW][C]M7[/C][C]0.0267338805858564[/C][C]0.126659[/C][C]0.2111[/C][C]0.833854[/C][C]0.416927[/C][/ROW]
[ROW][C]M8[/C][C]-0.0325720489159387[/C][C]0.128552[/C][C]-0.2534[/C][C]0.801213[/C][C]0.400606[/C][/ROW]
[ROW][C]M9[/C][C]0.0988937971289136[/C][C]0.132076[/C][C]0.7488[/C][C]0.458171[/C][C]0.229086[/C][/ROW]
[ROW][C]M10[/C][C]0.680602980478848[/C][C]0.133804[/C][C]5.0866[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M11[/C][C]-0.247085702039494[/C][C]0.154883[/C][C]-1.5953[/C][C]0.118141[/C][C]0.059071[/C][/ROW]
[ROW][C]t[/C][C]-0.00816867183945566[/C][C]0.002965[/C][C]-2.7547[/C][C]0.008646[/C][C]0.004323[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68914&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.686711732944370.7896663.40230.0014780.000739
X-0.0431804038080190.021873-1.97410.0549650.027483
Y11.389498144636190.11892311.68400
Y2-0.6898617170000640.131892-5.23055e-063e-06
M1-0.04315058300944930.126666-0.34070.7350550.367528
M20.07751441915541130.130730.59290.5564030.278202
M30.2957605967459250.1315032.24910.029810.014905
M40.2471091445554990.1331711.85560.0705410.035271
M50.00538980050531270.1322260.04080.9676790.483839
M60.02595817886237660.1261180.20580.8379220.418961
M70.02673388058585640.1266590.21110.8338540.416927
M8-0.03257204891593870.128552-0.25340.8012130.400606
M90.09889379712891360.1320760.74880.4581710.229086
M100.6806029804788480.1338045.08668e-064e-06
M11-0.2470857020394940.154883-1.59530.1181410.059071
t-0.008168671839455660.002965-2.75470.0086460.004323







Multiple Linear Regression - Regression Statistics
Multiple R0.970515489244941
R-squared0.941900314864348
Adjusted R-squared0.9211504273159
F-TEST (value)45.39303225934
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.187083644942948
Sum Squared Residuals1.47001218861584

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.970515489244941 \tabularnewline
R-squared & 0.941900314864348 \tabularnewline
Adjusted R-squared & 0.9211504273159 \tabularnewline
F-TEST (value) & 45.39303225934 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.187083644942948 \tabularnewline
Sum Squared Residuals & 1.47001218861584 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68914&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.970515489244941[/C][/ROW]
[ROW][C]R-squared[/C][C]0.941900314864348[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.9211504273159[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]45.39303225934[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/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.187083644942948[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1.47001218861584[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68914&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68914&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.970515489244941
R-squared0.941900314864348
Adjusted R-squared0.9211504273159
F-TEST (value)45.39303225934
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.187083644942948
Sum Squared Residuals1.47001218861584







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.78.93906335721374-0.239063357213737
28.28.23513296228063-0.0351329622806318
38.38.181650587436850.118349412563156
48.58.60439309598981-0.104393095989810
58.68.550464416184990.0495355838150081
68.58.5422513918622-0.0422513918621965
78.28.3441945971058-0.144194597105804
88.17.93317476445450.166825235545497
97.98.1072084777731-0.207208477773093
108.68.471835532056340.128164467943658
118.78.637963141582280.0620368584177153
128.78.52860874396510.171391256034905
138.58.44284764046260.0571523595374015
148.48.273126301479960.126873698520035
158.58.46063613426340.0393638657365932
168.78.611751996397150.0882480036028489
178.78.570777437734740.129222562265260
188.68.471113043137150.128886956862854
198.58.307498097034340.192501902965656
208.38.161423772167880.138576227832123
2188.08876161028845-0.0887616102884489
228.28.38774306218888-0.187743062188885
238.17.941061892239150.158938107760855
248.17.920328926098760.179671073901240
2587.946631923711460.0533680762885351
267.97.90722431843085-0.00722431843084521
277.98.04302014103749-0.143020141037489
2888.07245835023082-0.0724583502308218
2987.9572021084240.0427978915760037
307.97.9006156432416-0.00061564324159782
3187.7542728586620.245727141337996
327.77.91632444538839-0.216324445388387
337.27.55378600450292-0.353786004502921
347.57.63953595879532-0.139535958795324
357.37.46977694670922-0.169776946709217
3677.21519975212039-0.215199752120394
3776.850459074234230.149540925765770
3877.13968763699404-0.139687636994041
397.27.3411290619835-0.141129061983495
407.37.54493640535765-0.244936405357645
417.17.2917078201508-0.191707820150807
426.86.92267740299476-0.122677402994755
436.46.64936145403034-0.249361454030341
446.16.18986570612662-0.089865706126616
456.56.142031841075570.357968158924434
467.77.474012085159740.225987914840261
477.97.95119801946935-0.0511980194693528
487.57.63586257781575-0.135862577815750
496.96.92099800437797-0.020998004377969
506.66.544828780814520.0551712191854826
516.96.773564075278760.126435924721236
527.77.366460152024570.333539847975428
5388.02984821750547-0.029848217505466
5487.96334251876430.0366574812356958
557.77.74467299316751-0.0446729931675073
567.37.299211311862620.000788688137382976
577.47.108212066359970.291787933640029
588.18.1268733617997-0.0268733617997096

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.7 & 8.93906335721374 & -0.239063357213737 \tabularnewline
2 & 8.2 & 8.23513296228063 & -0.0351329622806318 \tabularnewline
3 & 8.3 & 8.18165058743685 & 0.118349412563156 \tabularnewline
4 & 8.5 & 8.60439309598981 & -0.104393095989810 \tabularnewline
5 & 8.6 & 8.55046441618499 & 0.0495355838150081 \tabularnewline
6 & 8.5 & 8.5422513918622 & -0.0422513918621965 \tabularnewline
7 & 8.2 & 8.3441945971058 & -0.144194597105804 \tabularnewline
8 & 8.1 & 7.9331747644545 & 0.166825235545497 \tabularnewline
9 & 7.9 & 8.1072084777731 & -0.207208477773093 \tabularnewline
10 & 8.6 & 8.47183553205634 & 0.128164467943658 \tabularnewline
11 & 8.7 & 8.63796314158228 & 0.0620368584177153 \tabularnewline
12 & 8.7 & 8.5286087439651 & 0.171391256034905 \tabularnewline
13 & 8.5 & 8.4428476404626 & 0.0571523595374015 \tabularnewline
14 & 8.4 & 8.27312630147996 & 0.126873698520035 \tabularnewline
15 & 8.5 & 8.4606361342634 & 0.0393638657365932 \tabularnewline
16 & 8.7 & 8.61175199639715 & 0.0882480036028489 \tabularnewline
17 & 8.7 & 8.57077743773474 & 0.129222562265260 \tabularnewline
18 & 8.6 & 8.47111304313715 & 0.128886956862854 \tabularnewline
19 & 8.5 & 8.30749809703434 & 0.192501902965656 \tabularnewline
20 & 8.3 & 8.16142377216788 & 0.138576227832123 \tabularnewline
21 & 8 & 8.08876161028845 & -0.0887616102884489 \tabularnewline
22 & 8.2 & 8.38774306218888 & -0.187743062188885 \tabularnewline
23 & 8.1 & 7.94106189223915 & 0.158938107760855 \tabularnewline
24 & 8.1 & 7.92032892609876 & 0.179671073901240 \tabularnewline
25 & 8 & 7.94663192371146 & 0.0533680762885351 \tabularnewline
26 & 7.9 & 7.90722431843085 & -0.00722431843084521 \tabularnewline
27 & 7.9 & 8.04302014103749 & -0.143020141037489 \tabularnewline
28 & 8 & 8.07245835023082 & -0.0724583502308218 \tabularnewline
29 & 8 & 7.957202108424 & 0.0427978915760037 \tabularnewline
30 & 7.9 & 7.9006156432416 & -0.00061564324159782 \tabularnewline
31 & 8 & 7.754272858662 & 0.245727141337996 \tabularnewline
32 & 7.7 & 7.91632444538839 & -0.216324445388387 \tabularnewline
33 & 7.2 & 7.55378600450292 & -0.353786004502921 \tabularnewline
34 & 7.5 & 7.63953595879532 & -0.139535958795324 \tabularnewline
35 & 7.3 & 7.46977694670922 & -0.169776946709217 \tabularnewline
36 & 7 & 7.21519975212039 & -0.215199752120394 \tabularnewline
37 & 7 & 6.85045907423423 & 0.149540925765770 \tabularnewline
38 & 7 & 7.13968763699404 & -0.139687636994041 \tabularnewline
39 & 7.2 & 7.3411290619835 & -0.141129061983495 \tabularnewline
40 & 7.3 & 7.54493640535765 & -0.244936405357645 \tabularnewline
41 & 7.1 & 7.2917078201508 & -0.191707820150807 \tabularnewline
42 & 6.8 & 6.92267740299476 & -0.122677402994755 \tabularnewline
43 & 6.4 & 6.64936145403034 & -0.249361454030341 \tabularnewline
44 & 6.1 & 6.18986570612662 & -0.089865706126616 \tabularnewline
45 & 6.5 & 6.14203184107557 & 0.357968158924434 \tabularnewline
46 & 7.7 & 7.47401208515974 & 0.225987914840261 \tabularnewline
47 & 7.9 & 7.95119801946935 & -0.0511980194693528 \tabularnewline
48 & 7.5 & 7.63586257781575 & -0.135862577815750 \tabularnewline
49 & 6.9 & 6.92099800437797 & -0.020998004377969 \tabularnewline
50 & 6.6 & 6.54482878081452 & 0.0551712191854826 \tabularnewline
51 & 6.9 & 6.77356407527876 & 0.126435924721236 \tabularnewline
52 & 7.7 & 7.36646015202457 & 0.333539847975428 \tabularnewline
53 & 8 & 8.02984821750547 & -0.029848217505466 \tabularnewline
54 & 8 & 7.9633425187643 & 0.0366574812356958 \tabularnewline
55 & 7.7 & 7.74467299316751 & -0.0446729931675073 \tabularnewline
56 & 7.3 & 7.29921131186262 & 0.000788688137382976 \tabularnewline
57 & 7.4 & 7.10821206635997 & 0.291787933640029 \tabularnewline
58 & 8.1 & 8.1268733617997 & -0.0268733617997096 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68914&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.7[/C][C]8.93906335721374[/C][C]-0.239063357213737[/C][/ROW]
[ROW][C]2[/C][C]8.2[/C][C]8.23513296228063[/C][C]-0.0351329622806318[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]8.18165058743685[/C][C]0.118349412563156[/C][/ROW]
[ROW][C]4[/C][C]8.5[/C][C]8.60439309598981[/C][C]-0.104393095989810[/C][/ROW]
[ROW][C]5[/C][C]8.6[/C][C]8.55046441618499[/C][C]0.0495355838150081[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.5422513918622[/C][C]-0.0422513918621965[/C][/ROW]
[ROW][C]7[/C][C]8.2[/C][C]8.3441945971058[/C][C]-0.144194597105804[/C][/ROW]
[ROW][C]8[/C][C]8.1[/C][C]7.9331747644545[/C][C]0.166825235545497[/C][/ROW]
[ROW][C]9[/C][C]7.9[/C][C]8.1072084777731[/C][C]-0.207208477773093[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.47183553205634[/C][C]0.128164467943658[/C][/ROW]
[ROW][C]11[/C][C]8.7[/C][C]8.63796314158228[/C][C]0.0620368584177153[/C][/ROW]
[ROW][C]12[/C][C]8.7[/C][C]8.5286087439651[/C][C]0.171391256034905[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]8.4428476404626[/C][C]0.0571523595374015[/C][/ROW]
[ROW][C]14[/C][C]8.4[/C][C]8.27312630147996[/C][C]0.126873698520035[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.4606361342634[/C][C]0.0393638657365932[/C][/ROW]
[ROW][C]16[/C][C]8.7[/C][C]8.61175199639715[/C][C]0.0882480036028489[/C][/ROW]
[ROW][C]17[/C][C]8.7[/C][C]8.57077743773474[/C][C]0.129222562265260[/C][/ROW]
[ROW][C]18[/C][C]8.6[/C][C]8.47111304313715[/C][C]0.128886956862854[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]8.30749809703434[/C][C]0.192501902965656[/C][/ROW]
[ROW][C]20[/C][C]8.3[/C][C]8.16142377216788[/C][C]0.138576227832123[/C][/ROW]
[ROW][C]21[/C][C]8[/C][C]8.08876161028845[/C][C]-0.0887616102884489[/C][/ROW]
[ROW][C]22[/C][C]8.2[/C][C]8.38774306218888[/C][C]-0.187743062188885[/C][/ROW]
[ROW][C]23[/C][C]8.1[/C][C]7.94106189223915[/C][C]0.158938107760855[/C][/ROW]
[ROW][C]24[/C][C]8.1[/C][C]7.92032892609876[/C][C]0.179671073901240[/C][/ROW]
[ROW][C]25[/C][C]8[/C][C]7.94663192371146[/C][C]0.0533680762885351[/C][/ROW]
[ROW][C]26[/C][C]7.9[/C][C]7.90722431843085[/C][C]-0.00722431843084521[/C][/ROW]
[ROW][C]27[/C][C]7.9[/C][C]8.04302014103749[/C][C]-0.143020141037489[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]8.07245835023082[/C][C]-0.0724583502308218[/C][/ROW]
[ROW][C]29[/C][C]8[/C][C]7.957202108424[/C][C]0.0427978915760037[/C][/ROW]
[ROW][C]30[/C][C]7.9[/C][C]7.9006156432416[/C][C]-0.00061564324159782[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]7.754272858662[/C][C]0.245727141337996[/C][/ROW]
[ROW][C]32[/C][C]7.7[/C][C]7.91632444538839[/C][C]-0.216324445388387[/C][/ROW]
[ROW][C]33[/C][C]7.2[/C][C]7.55378600450292[/C][C]-0.353786004502921[/C][/ROW]
[ROW][C]34[/C][C]7.5[/C][C]7.63953595879532[/C][C]-0.139535958795324[/C][/ROW]
[ROW][C]35[/C][C]7.3[/C][C]7.46977694670922[/C][C]-0.169776946709217[/C][/ROW]
[ROW][C]36[/C][C]7[/C][C]7.21519975212039[/C][C]-0.215199752120394[/C][/ROW]
[ROW][C]37[/C][C]7[/C][C]6.85045907423423[/C][C]0.149540925765770[/C][/ROW]
[ROW][C]38[/C][C]7[/C][C]7.13968763699404[/C][C]-0.139687636994041[/C][/ROW]
[ROW][C]39[/C][C]7.2[/C][C]7.3411290619835[/C][C]-0.141129061983495[/C][/ROW]
[ROW][C]40[/C][C]7.3[/C][C]7.54493640535765[/C][C]-0.244936405357645[/C][/ROW]
[ROW][C]41[/C][C]7.1[/C][C]7.2917078201508[/C][C]-0.191707820150807[/C][/ROW]
[ROW][C]42[/C][C]6.8[/C][C]6.92267740299476[/C][C]-0.122677402994755[/C][/ROW]
[ROW][C]43[/C][C]6.4[/C][C]6.64936145403034[/C][C]-0.249361454030341[/C][/ROW]
[ROW][C]44[/C][C]6.1[/C][C]6.18986570612662[/C][C]-0.089865706126616[/C][/ROW]
[ROW][C]45[/C][C]6.5[/C][C]6.14203184107557[/C][C]0.357968158924434[/C][/ROW]
[ROW][C]46[/C][C]7.7[/C][C]7.47401208515974[/C][C]0.225987914840261[/C][/ROW]
[ROW][C]47[/C][C]7.9[/C][C]7.95119801946935[/C][C]-0.0511980194693528[/C][/ROW]
[ROW][C]48[/C][C]7.5[/C][C]7.63586257781575[/C][C]-0.135862577815750[/C][/ROW]
[ROW][C]49[/C][C]6.9[/C][C]6.92099800437797[/C][C]-0.020998004377969[/C][/ROW]
[ROW][C]50[/C][C]6.6[/C][C]6.54482878081452[/C][C]0.0551712191854826[/C][/ROW]
[ROW][C]51[/C][C]6.9[/C][C]6.77356407527876[/C][C]0.126435924721236[/C][/ROW]
[ROW][C]52[/C][C]7.7[/C][C]7.36646015202457[/C][C]0.333539847975428[/C][/ROW]
[ROW][C]53[/C][C]8[/C][C]8.02984821750547[/C][C]-0.029848217505466[/C][/ROW]
[ROW][C]54[/C][C]8[/C][C]7.9633425187643[/C][C]0.0366574812356958[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.74467299316751[/C][C]-0.0446729931675073[/C][/ROW]
[ROW][C]56[/C][C]7.3[/C][C]7.29921131186262[/C][C]0.000788688137382976[/C][/ROW]
[ROW][C]57[/C][C]7.4[/C][C]7.10821206635997[/C][C]0.291787933640029[/C][/ROW]
[ROW][C]58[/C][C]8.1[/C][C]8.1268733617997[/C][C]-0.0268733617997096[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68914&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68914&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.78.93906335721374-0.239063357213737
28.28.23513296228063-0.0351329622806318
38.38.181650587436850.118349412563156
48.58.60439309598981-0.104393095989810
58.68.550464416184990.0495355838150081
68.58.5422513918622-0.0422513918621965
78.28.3441945971058-0.144194597105804
88.17.93317476445450.166825235545497
97.98.1072084777731-0.207208477773093
108.68.471835532056340.128164467943658
118.78.637963141582280.0620368584177153
128.78.52860874396510.171391256034905
138.58.44284764046260.0571523595374015
148.48.273126301479960.126873698520035
158.58.46063613426340.0393638657365932
168.78.611751996397150.0882480036028489
178.78.570777437734740.129222562265260
188.68.471113043137150.128886956862854
198.58.307498097034340.192501902965656
208.38.161423772167880.138576227832123
2188.08876161028845-0.0887616102884489
228.28.38774306218888-0.187743062188885
238.17.941061892239150.158938107760855
248.17.920328926098760.179671073901240
2587.946631923711460.0533680762885351
267.97.90722431843085-0.00722431843084521
277.98.04302014103749-0.143020141037489
2888.07245835023082-0.0724583502308218
2987.9572021084240.0427978915760037
307.97.9006156432416-0.00061564324159782
3187.7542728586620.245727141337996
327.77.91632444538839-0.216324445388387
337.27.55378600450292-0.353786004502921
347.57.63953595879532-0.139535958795324
357.37.46977694670922-0.169776946709217
3677.21519975212039-0.215199752120394
3776.850459074234230.149540925765770
3877.13968763699404-0.139687636994041
397.27.3411290619835-0.141129061983495
407.37.54493640535765-0.244936405357645
417.17.2917078201508-0.191707820150807
426.86.92267740299476-0.122677402994755
436.46.64936145403034-0.249361454030341
446.16.18986570612662-0.089865706126616
456.56.142031841075570.357968158924434
467.77.474012085159740.225987914840261
477.97.95119801946935-0.0511980194693528
487.57.63586257781575-0.135862577815750
496.96.92099800437797-0.020998004377969
506.66.544828780814520.0551712191854826
516.96.773564075278760.126435924721236
527.77.366460152024570.333539847975428
5388.02984821750547-0.029848217505466
5487.96334251876430.0366574812356958
557.77.74467299316751-0.0446729931675073
567.37.299211311862620.000788688137382976
577.47.108212066359970.291787933640029
588.18.1268733617997-0.0268733617997096







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.08880604274521220.1776120854904240.911193957254788
200.0409265737682890.0818531475365780.95907342623171
210.01455645513648430.02911291027296870.985443544863516
220.1626503932567640.3253007865135280.837349606743236
230.1495595335857540.2991190671715090.850440466414246
240.1536919652239550.3073839304479090.846308034776045
250.09766159965510040.1953231993102010.9023384003449
260.08281253541591540.1656250708318310.917187464584085
270.09845914126265080.1969182825253020.90154085873735
280.06666794158885690.1333358831777140.933332058411143
290.06675918205618590.1335183641123720.933240817943814
300.05128468652604790.1025693730520960.948715313473952
310.3947575131338590.7895150262677180.605242486866141
320.4602722498514890.9205444997029790.539727750148511
330.4282944907509380.8565889815018750.571705509249062
340.4560580871965860.9121161743931730.543941912803414
350.4704948520734620.9409897041469230.529505147926538
360.5019880361247080.9960239277505830.498011963875292
370.6583507514648630.6832984970702740.341649248535137
380.6108743895211010.7782512209577980.389125610478899
390.856701207460940.2865975850781210.143298792539060

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.0888060427452122 & 0.177612085490424 & 0.911193957254788 \tabularnewline
20 & 0.040926573768289 & 0.081853147536578 & 0.95907342623171 \tabularnewline
21 & 0.0145564551364843 & 0.0291129102729687 & 0.985443544863516 \tabularnewline
22 & 0.162650393256764 & 0.325300786513528 & 0.837349606743236 \tabularnewline
23 & 0.149559533585754 & 0.299119067171509 & 0.850440466414246 \tabularnewline
24 & 0.153691965223955 & 0.307383930447909 & 0.846308034776045 \tabularnewline
25 & 0.0976615996551004 & 0.195323199310201 & 0.9023384003449 \tabularnewline
26 & 0.0828125354159154 & 0.165625070831831 & 0.917187464584085 \tabularnewline
27 & 0.0984591412626508 & 0.196918282525302 & 0.90154085873735 \tabularnewline
28 & 0.0666679415888569 & 0.133335883177714 & 0.933332058411143 \tabularnewline
29 & 0.0667591820561859 & 0.133518364112372 & 0.933240817943814 \tabularnewline
30 & 0.0512846865260479 & 0.102569373052096 & 0.948715313473952 \tabularnewline
31 & 0.394757513133859 & 0.789515026267718 & 0.605242486866141 \tabularnewline
32 & 0.460272249851489 & 0.920544499702979 & 0.539727750148511 \tabularnewline
33 & 0.428294490750938 & 0.856588981501875 & 0.571705509249062 \tabularnewline
34 & 0.456058087196586 & 0.912116174393173 & 0.543941912803414 \tabularnewline
35 & 0.470494852073462 & 0.940989704146923 & 0.529505147926538 \tabularnewline
36 & 0.501988036124708 & 0.996023927750583 & 0.498011963875292 \tabularnewline
37 & 0.658350751464863 & 0.683298497070274 & 0.341649248535137 \tabularnewline
38 & 0.610874389521101 & 0.778251220957798 & 0.389125610478899 \tabularnewline
39 & 0.85670120746094 & 0.286597585078121 & 0.143298792539060 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68914&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]19[/C][C]0.0888060427452122[/C][C]0.177612085490424[/C][C]0.911193957254788[/C][/ROW]
[ROW][C]20[/C][C]0.040926573768289[/C][C]0.081853147536578[/C][C]0.95907342623171[/C][/ROW]
[ROW][C]21[/C][C]0.0145564551364843[/C][C]0.0291129102729687[/C][C]0.985443544863516[/C][/ROW]
[ROW][C]22[/C][C]0.162650393256764[/C][C]0.325300786513528[/C][C]0.837349606743236[/C][/ROW]
[ROW][C]23[/C][C]0.149559533585754[/C][C]0.299119067171509[/C][C]0.850440466414246[/C][/ROW]
[ROW][C]24[/C][C]0.153691965223955[/C][C]0.307383930447909[/C][C]0.846308034776045[/C][/ROW]
[ROW][C]25[/C][C]0.0976615996551004[/C][C]0.195323199310201[/C][C]0.9023384003449[/C][/ROW]
[ROW][C]26[/C][C]0.0828125354159154[/C][C]0.165625070831831[/C][C]0.917187464584085[/C][/ROW]
[ROW][C]27[/C][C]0.0984591412626508[/C][C]0.196918282525302[/C][C]0.90154085873735[/C][/ROW]
[ROW][C]28[/C][C]0.0666679415888569[/C][C]0.133335883177714[/C][C]0.933332058411143[/C][/ROW]
[ROW][C]29[/C][C]0.0667591820561859[/C][C]0.133518364112372[/C][C]0.933240817943814[/C][/ROW]
[ROW][C]30[/C][C]0.0512846865260479[/C][C]0.102569373052096[/C][C]0.948715313473952[/C][/ROW]
[ROW][C]31[/C][C]0.394757513133859[/C][C]0.789515026267718[/C][C]0.605242486866141[/C][/ROW]
[ROW][C]32[/C][C]0.460272249851489[/C][C]0.920544499702979[/C][C]0.539727750148511[/C][/ROW]
[ROW][C]33[/C][C]0.428294490750938[/C][C]0.856588981501875[/C][C]0.571705509249062[/C][/ROW]
[ROW][C]34[/C][C]0.456058087196586[/C][C]0.912116174393173[/C][C]0.543941912803414[/C][/ROW]
[ROW][C]35[/C][C]0.470494852073462[/C][C]0.940989704146923[/C][C]0.529505147926538[/C][/ROW]
[ROW][C]36[/C][C]0.501988036124708[/C][C]0.996023927750583[/C][C]0.498011963875292[/C][/ROW]
[ROW][C]37[/C][C]0.658350751464863[/C][C]0.683298497070274[/C][C]0.341649248535137[/C][/ROW]
[ROW][C]38[/C][C]0.610874389521101[/C][C]0.778251220957798[/C][C]0.389125610478899[/C][/ROW]
[ROW][C]39[/C][C]0.85670120746094[/C][C]0.286597585078121[/C][C]0.143298792539060[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68914&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68914&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
190.08880604274521220.1776120854904240.911193957254788
200.0409265737682890.0818531475365780.95907342623171
210.01455645513648430.02911291027296870.985443544863516
220.1626503932567640.3253007865135280.837349606743236
230.1495595335857540.2991190671715090.850440466414246
240.1536919652239550.3073839304479090.846308034776045
250.09766159965510040.1953231993102010.9023384003449
260.08281253541591540.1656250708318310.917187464584085
270.09845914126265080.1969182825253020.90154085873735
280.06666794158885690.1333358831777140.933332058411143
290.06675918205618590.1335183641123720.933240817943814
300.05128468652604790.1025693730520960.948715313473952
310.3947575131338590.7895150262677180.605242486866141
320.4602722498514890.9205444997029790.539727750148511
330.4282944907509380.8565889815018750.571705509249062
340.4560580871965860.9121161743931730.543941912803414
350.4704948520734620.9409897041469230.529505147926538
360.5019880361247080.9960239277505830.498011963875292
370.6583507514648630.6832984970702740.341649248535137
380.6108743895211010.7782512209577980.389125610478899
390.856701207460940.2865975850781210.143298792539060







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

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

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



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