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 computationWed, 25 Nov 2009 11:27:00 -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/25/t12591738493fkqtxn0hvahkis.htm/, Retrieved Tue, 30 Apr 2024 03:36:07 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59545, Retrieved Tue, 30 Apr 2024 03:36:07 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWS 7
Estimated Impact149
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] [WS7] [2009-11-18 17:01:04] [8b1aef4e7013bd33fbc2a5833375c5f5]
-   PD      [Multiple Regression] [WS7(2)] [2009-11-20 19:01:46] [7d268329e554b8694908ba13e6e6f258]
-   P         [Multiple Regression] [WS7(3)] [2009-11-21 10:22:47] [7d268329e554b8694908ba13e6e6f258]
-   PD          [Multiple Regression] [WS7(4)] [2009-11-21 10:55:20] [7d268329e554b8694908ba13e6e6f258]
-    D              [Multiple Regression] [WS 7] [2009-11-25 18:27:00] [52b85b290d6f50b0921ad6729b8a5af2] [Current]
Feedback Forum

Post a new message
Dataseries X:
9.5	7.8	9.2	9.2	10.9
9.6	7.8	9.5	9.2	10
9.5	7.8	9.6	9.5	9.2
9.1	7.5	9.5	9.6	9.2
8.9	7.5	9.1	9.5	9.5
9	7.1	8.9	9.1	9.6
10.1	7.5	9	8.9	9.5
10.3	7.5	10.1	9	9.1
10.2	7.6	10.3	10.1	8.9
9.6	7.7	10.2	10.3	9
9.2	7.7	9.6	10.2	10.1
9.3	7.9	9.2	9.6	10.3
9.4	8.1	9.3	9.2	10.2
9.4	8.2	9.4	9.3	9.6
9.2	8.2	9.4	9.4	9.2
9	8.2	9.2	9.4	9.3
9	7.9	9	9.2	9.4
9	7.3	9	9	9.4
9.8	6.9	9	9	9.2
10	6.6	9.8	9	9
9.8	6.7	10	9.8	9
9.3	6.9	9.8	10	9
9	7	9.3	9.8	9.8
9	7.1	9	9.3	10
9.1	7.2	9	9	9.8
9.1	7.1	9.1	9	9.3
9.1	6.9	9.1	9.1	9
9.2	7	9.1	9.1	9
8.8	6.8	9.2	9.1	9.1
8.3	6.4	8.8	9.2	9.1
8.4	6.7	8.3	8.8	9.1
8.1	6.6	8.4	8.3	9.2
7.7	6.4	8.1	8.4	8.8
7.9	6.3	7.7	8.1	8.3
7.9	6.2	7.9	7.7	8.4
8	6.5	7.9	7.9	8.1
7.9	6.8	8	7.9	7.7
7.6	6.8	7.9	8	7.9
7.1	6.4	7.6	7.9	7.9
6.8	6.1	7.1	7.6	8
6.5	5.8	6.8	7.1	7.9
6.9	6.1	6.5	6.8	7.6
8.2	7.2	6.9	6.5	7.1
8.7	7.3	8.2	6.9	6.8
8.3	6.9	8.7	8.2	6.5
7.9	6.1	8.3	8.7	6.9
7.5	5.8	7.9	8.3	8.2
7.8	6.2	7.5	7.9	8.7
8.3	7.1	7.8	7.5	8.3
8.4	7.7	8.3	7.8	7.9
8.2	7.9	8.4	8.3	7.5
7.7	7.7	8.2	8.4	7.8
7.2	7.4	7.7	8.2	8.3
7.3	7.5	7.2	7.7	8.4
8.1	8	7.3	7.2	8.2
8.5	8.1	8.1	7.3	7.7




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59545&T=0

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t][t] = + 0.96516966726725 + 0.0728233212314704`X[t]`[t] + 1.51008889291274Y1[t] -0.842097557192121Y2[t] + 0.195263037470142Y4[t] -0.252072399613067M1[t] -0.377998832307196M2[t] -0.311690799845318M3[t] -0.29134313680935M4[t] -0.361762877792294M5[t] -0.114910553279112M6[t] + 0.454982972646780M7[t] -0.508263771434458M8[t] -0.288690459113628M9[t] -0.0566750074272165M10[t] -0.223600327907046M11[t] -0.00450287437187023t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t][t] =  +  0.96516966726725 +  0.0728233212314704`X[t]`[t] +  1.51008889291274Y1[t] -0.842097557192121Y2[t] +  0.195263037470142Y4[t] -0.252072399613067M1[t] -0.377998832307196M2[t] -0.311690799845318M3[t] -0.29134313680935M4[t] -0.361762877792294M5[t] -0.114910553279112M6[t] +  0.454982972646780M7[t] -0.508263771434458M8[t] -0.288690459113628M9[t] -0.0566750074272165M10[t] -0.223600327907046M11[t] -0.00450287437187023t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59545&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t][t] =  +  0.96516966726725 +  0.0728233212314704`X[t]`[t] +  1.51008889291274Y1[t] -0.842097557192121Y2[t] +  0.195263037470142Y4[t] -0.252072399613067M1[t] -0.377998832307196M2[t] -0.311690799845318M3[t] -0.29134313680935M4[t] -0.361762877792294M5[t] -0.114910553279112M6[t] +  0.454982972646780M7[t] -0.508263771434458M8[t] -0.288690459113628M9[t] -0.0566750074272165M10[t] -0.223600327907046M11[t] -0.00450287437187023t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59545&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59545&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][t] = + 0.96516966726725 + 0.0728233212314704`X[t]`[t] + 1.51008889291274Y1[t] -0.842097557192121Y2[t] + 0.195263037470142Y4[t] -0.252072399613067M1[t] -0.377998832307196M2[t] -0.311690799845318M3[t] -0.29134313680935M4[t] -0.361762877792294M5[t] -0.114910553279112M6[t] + 0.454982972646780M7[t] -0.508263771434458M8[t] -0.288690459113628M9[t] -0.0566750074272165M10[t] -0.223600327907046M11[t] -0.00450287437187023t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.965169667267250.7026371.37360.1773990.088699
`X[t]`0.07282332123147040.0524081.38960.1725470.086274
Y11.510088892912740.13771510.965300
Y2-0.8420975571921210.150614-5.59112e-061e-06
Y40.1952630374701420.0757512.57770.013840.00692
M1-0.2520723996130670.136919-1.8410.0732330.036617
M2-0.3779988323071960.13793-2.74050.0092070.004603
M3-0.3116907998453180.14187-2.1970.0340260.017013
M4-0.291343136809350.139356-2.09060.0431270.021563
M5-0.3617628777922940.132293-2.73460.0093470.004674
M6-0.1149105532791120.131148-0.87620.3862930.193147
M70.4549829726467800.1354683.35860.001760.00088
M8-0.5082637714344580.177234-2.86780.0066370.003318
M9-0.2886904591136280.161826-1.7840.0822130.041106
M10-0.05667500742721650.168711-0.33590.7387250.369362
M11-0.2236003279070460.13873-1.61180.1150770.057539
t-0.004502874371870230.00352-1.27930.2083430.104171

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 0.96516966726725 & 0.702637 & 1.3736 & 0.177399 & 0.088699 \tabularnewline
`X[t]` & 0.0728233212314704 & 0.052408 & 1.3896 & 0.172547 & 0.086274 \tabularnewline
Y1 & 1.51008889291274 & 0.137715 & 10.9653 & 0 & 0 \tabularnewline
Y2 & -0.842097557192121 & 0.150614 & -5.5911 & 2e-06 & 1e-06 \tabularnewline
Y4 & 0.195263037470142 & 0.075751 & 2.5777 & 0.01384 & 0.00692 \tabularnewline
M1 & -0.252072399613067 & 0.136919 & -1.841 & 0.073233 & 0.036617 \tabularnewline
M2 & -0.377998832307196 & 0.13793 & -2.7405 & 0.009207 & 0.004603 \tabularnewline
M3 & -0.311690799845318 & 0.14187 & -2.197 & 0.034026 & 0.017013 \tabularnewline
M4 & -0.29134313680935 & 0.139356 & -2.0906 & 0.043127 & 0.021563 \tabularnewline
M5 & -0.361762877792294 & 0.132293 & -2.7346 & 0.009347 & 0.004674 \tabularnewline
M6 & -0.114910553279112 & 0.131148 & -0.8762 & 0.386293 & 0.193147 \tabularnewline
M7 & 0.454982972646780 & 0.135468 & 3.3586 & 0.00176 & 0.00088 \tabularnewline
M8 & -0.508263771434458 & 0.177234 & -2.8678 & 0.006637 & 0.003318 \tabularnewline
M9 & -0.288690459113628 & 0.161826 & -1.784 & 0.082213 & 0.041106 \tabularnewline
M10 & -0.0566750074272165 & 0.168711 & -0.3359 & 0.738725 & 0.369362 \tabularnewline
M11 & -0.223600327907046 & 0.13873 & -1.6118 & 0.115077 & 0.057539 \tabularnewline
t & -0.00450287437187023 & 0.00352 & -1.2793 & 0.208343 & 0.104171 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59545&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]0.96516966726725[/C][C]0.702637[/C][C]1.3736[/C][C]0.177399[/C][C]0.088699[/C][/ROW]
[ROW][C]`X[t]`[/C][C]0.0728233212314704[/C][C]0.052408[/C][C]1.3896[/C][C]0.172547[/C][C]0.086274[/C][/ROW]
[ROW][C]Y1[/C][C]1.51008889291274[/C][C]0.137715[/C][C]10.9653[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.842097557192121[/C][C]0.150614[/C][C]-5.5911[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]Y4[/C][C]0.195263037470142[/C][C]0.075751[/C][C]2.5777[/C][C]0.01384[/C][C]0.00692[/C][/ROW]
[ROW][C]M1[/C][C]-0.252072399613067[/C][C]0.136919[/C][C]-1.841[/C][C]0.073233[/C][C]0.036617[/C][/ROW]
[ROW][C]M2[/C][C]-0.377998832307196[/C][C]0.13793[/C][C]-2.7405[/C][C]0.009207[/C][C]0.004603[/C][/ROW]
[ROW][C]M3[/C][C]-0.311690799845318[/C][C]0.14187[/C][C]-2.197[/C][C]0.034026[/C][C]0.017013[/C][/ROW]
[ROW][C]M4[/C][C]-0.29134313680935[/C][C]0.139356[/C][C]-2.0906[/C][C]0.043127[/C][C]0.021563[/C][/ROW]
[ROW][C]M5[/C][C]-0.361762877792294[/C][C]0.132293[/C][C]-2.7346[/C][C]0.009347[/C][C]0.004674[/C][/ROW]
[ROW][C]M6[/C][C]-0.114910553279112[/C][C]0.131148[/C][C]-0.8762[/C][C]0.386293[/C][C]0.193147[/C][/ROW]
[ROW][C]M7[/C][C]0.454982972646780[/C][C]0.135468[/C][C]3.3586[/C][C]0.00176[/C][C]0.00088[/C][/ROW]
[ROW][C]M8[/C][C]-0.508263771434458[/C][C]0.177234[/C][C]-2.8678[/C][C]0.006637[/C][C]0.003318[/C][/ROW]
[ROW][C]M9[/C][C]-0.288690459113628[/C][C]0.161826[/C][C]-1.784[/C][C]0.082213[/C][C]0.041106[/C][/ROW]
[ROW][C]M10[/C][C]-0.0566750074272165[/C][C]0.168711[/C][C]-0.3359[/C][C]0.738725[/C][C]0.369362[/C][/ROW]
[ROW][C]M11[/C][C]-0.223600327907046[/C][C]0.13873[/C][C]-1.6118[/C][C]0.115077[/C][C]0.057539[/C][/ROW]
[ROW][C]t[/C][C]-0.00450287437187023[/C][C]0.00352[/C][C]-1.2793[/C][C]0.208343[/C][C]0.104171[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59545&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.965169667267250.7026371.37360.1773990.088699
`X[t]`0.07282332123147040.0524081.38960.1725470.086274
Y11.510088892912740.13771510.965300
Y2-0.8420975571921210.150614-5.59112e-061e-06
Y40.1952630374701420.0757512.57770.013840.00692
M1-0.2520723996130670.136919-1.8410.0732330.036617
M2-0.3779988323071960.13793-2.74050.0092070.004603
M3-0.3116907998453180.14187-2.1970.0340260.017013
M4-0.291343136809350.139356-2.09060.0431270.021563
M5-0.3617628777922940.132293-2.73460.0093470.004674
M6-0.1149105532791120.131148-0.87620.3862930.193147
M70.4549829726467800.1354683.35860.001760.00088
M8-0.5082637714344580.177234-2.86780.0066370.003318
M9-0.2886904591136280.161826-1.7840.0822130.041106
M10-0.05667500742721650.168711-0.33590.7387250.369362
M11-0.2236003279070460.13873-1.61180.1150770.057539
t-0.004502874371870230.00352-1.27930.2083430.104171







Multiple Linear Regression - Regression Statistics
Multiple R0.984567048731084
R-squared0.969372273447037
Adjusted R-squared0.956807052297104
F-TEST (value)77.1472512803463
F-TEST (DF numerator)16
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.190041825426013
Sum Squared Residuals1.40851992103880

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.984567048731084 \tabularnewline
R-squared & 0.969372273447037 \tabularnewline
Adjusted R-squared & 0.956807052297104 \tabularnewline
F-TEST (value) & 77.1472512803463 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.190041825426013 \tabularnewline
Sum Squared Residuals & 1.40851992103880 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59545&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.984567048731084[/C][/ROW]
[ROW][C]R-squared[/C][C]0.969372273447037[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.956807052297104[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]77.1472512803463[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]39[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.190041825426013[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1.40851992103880[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59545&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59545&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.984567048731084
R-squared0.969372273447037
Adjusted R-squared0.956807052297104
F-TEST (value)77.1472512803463
F-TEST (DF numerator)16
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.190041825426013
Sum Squared Residuals1.40851992103880







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
19.59.550503695942-0.0505036959419945
29.69.69736432302671-0.0973643230267106
39.59.50133867327424-0.00133867327424250
49.19.26011782055841-0.160117820558413
58.98.723948314998760.176051685001243
698.99151598468880.00848401531120342
710.19.88593806171810.214061938281910
810.310.4169712547617-0.116971254761724
910.29.975981883011020.224018116988980
109.69.91087469546602-0.310874695466022
119.29.132392261803050.0676077381969513
129.39.30632996422872-0.00632996422872172
139.49.53264096291119-0.132640962911189
149.49.359135299058310.0408647009416881
159.29.25862548644105-0.0586254864410525
1698.991978800269610.0080211997303855
1798.781137225148250.218862774851748
1899.1482121939891-0.148212193989105
199.89.64542090955650.154579090443491
20109.824842801570120.175157198429875
219.89.675535304471080.12446469552892
229.39.44717525601095-0.147175256010945
2398.852614888240560.147385111759439
2499.08606939211515-0.0860693921151495
259.19.050353109916970.0496468900830317
269.18.966018841284020.133981158715976
279.18.870470668167480.229529331832516
289.28.893597788954730.306402211045271
298.88.9746457023919-0.174645702391907
308.38.49962051115633-0.199620511156325
318.48.66865273550027-0.268652735500265
328.18.28520475655836-0.185204756558359
337.77.87036889167993-0.170368891679933
347.97.64156132812880.258438671871202
357.98.12123390636036-0.221233906360361
3688.13517993358551-0.135179933585512
377.97.97335533027323-0.073355330273232
387.67.64675998569078-0.0467599856907766
397.17.31061890313359-0.210618903133586
406.86.82172781987652-0.0217278198765233
416.56.67345401512749-0.173454015127493
426.96.678674149681020.221325850318983
438.28.083203760177320.116796239822682
448.78.690434100516030.00956589948397417
458.38.47811392083797-0.178113920837967
467.97.700388720394240.199611279605765
477.57.493758943596030.00624105640397059
487.87.572420710070620.227579289929383
498.38.093146900956620.206853099043384
508.48.43072155094018-0.0307215509401769
518.28.158946268983640.0410537310163644
527.77.83257777034072-0.132577770340720
537.27.24681474233359-0.0468147423335921
547.37.181977160484760.118022839515244
558.18.31678453304782-0.216784533047817
568.58.382547086593770.117452913406235

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 9.5 & 9.550503695942 & -0.0505036959419945 \tabularnewline
2 & 9.6 & 9.69736432302671 & -0.0973643230267106 \tabularnewline
3 & 9.5 & 9.50133867327424 & -0.00133867327424250 \tabularnewline
4 & 9.1 & 9.26011782055841 & -0.160117820558413 \tabularnewline
5 & 8.9 & 8.72394831499876 & 0.176051685001243 \tabularnewline
6 & 9 & 8.9915159846888 & 0.00848401531120342 \tabularnewline
7 & 10.1 & 9.8859380617181 & 0.214061938281910 \tabularnewline
8 & 10.3 & 10.4169712547617 & -0.116971254761724 \tabularnewline
9 & 10.2 & 9.97598188301102 & 0.224018116988980 \tabularnewline
10 & 9.6 & 9.91087469546602 & -0.310874695466022 \tabularnewline
11 & 9.2 & 9.13239226180305 & 0.0676077381969513 \tabularnewline
12 & 9.3 & 9.30632996422872 & -0.00632996422872172 \tabularnewline
13 & 9.4 & 9.53264096291119 & -0.132640962911189 \tabularnewline
14 & 9.4 & 9.35913529905831 & 0.0408647009416881 \tabularnewline
15 & 9.2 & 9.25862548644105 & -0.0586254864410525 \tabularnewline
16 & 9 & 8.99197880026961 & 0.0080211997303855 \tabularnewline
17 & 9 & 8.78113722514825 & 0.218862774851748 \tabularnewline
18 & 9 & 9.1482121939891 & -0.148212193989105 \tabularnewline
19 & 9.8 & 9.6454209095565 & 0.154579090443491 \tabularnewline
20 & 10 & 9.82484280157012 & 0.175157198429875 \tabularnewline
21 & 9.8 & 9.67553530447108 & 0.12446469552892 \tabularnewline
22 & 9.3 & 9.44717525601095 & -0.147175256010945 \tabularnewline
23 & 9 & 8.85261488824056 & 0.147385111759439 \tabularnewline
24 & 9 & 9.08606939211515 & -0.0860693921151495 \tabularnewline
25 & 9.1 & 9.05035310991697 & 0.0496468900830317 \tabularnewline
26 & 9.1 & 8.96601884128402 & 0.133981158715976 \tabularnewline
27 & 9.1 & 8.87047066816748 & 0.229529331832516 \tabularnewline
28 & 9.2 & 8.89359778895473 & 0.306402211045271 \tabularnewline
29 & 8.8 & 8.9746457023919 & -0.174645702391907 \tabularnewline
30 & 8.3 & 8.49962051115633 & -0.199620511156325 \tabularnewline
31 & 8.4 & 8.66865273550027 & -0.268652735500265 \tabularnewline
32 & 8.1 & 8.28520475655836 & -0.185204756558359 \tabularnewline
33 & 7.7 & 7.87036889167993 & -0.170368891679933 \tabularnewline
34 & 7.9 & 7.6415613281288 & 0.258438671871202 \tabularnewline
35 & 7.9 & 8.12123390636036 & -0.221233906360361 \tabularnewline
36 & 8 & 8.13517993358551 & -0.135179933585512 \tabularnewline
37 & 7.9 & 7.97335533027323 & -0.073355330273232 \tabularnewline
38 & 7.6 & 7.64675998569078 & -0.0467599856907766 \tabularnewline
39 & 7.1 & 7.31061890313359 & -0.210618903133586 \tabularnewline
40 & 6.8 & 6.82172781987652 & -0.0217278198765233 \tabularnewline
41 & 6.5 & 6.67345401512749 & -0.173454015127493 \tabularnewline
42 & 6.9 & 6.67867414968102 & 0.221325850318983 \tabularnewline
43 & 8.2 & 8.08320376017732 & 0.116796239822682 \tabularnewline
44 & 8.7 & 8.69043410051603 & 0.00956589948397417 \tabularnewline
45 & 8.3 & 8.47811392083797 & -0.178113920837967 \tabularnewline
46 & 7.9 & 7.70038872039424 & 0.199611279605765 \tabularnewline
47 & 7.5 & 7.49375894359603 & 0.00624105640397059 \tabularnewline
48 & 7.8 & 7.57242071007062 & 0.227579289929383 \tabularnewline
49 & 8.3 & 8.09314690095662 & 0.206853099043384 \tabularnewline
50 & 8.4 & 8.43072155094018 & -0.0307215509401769 \tabularnewline
51 & 8.2 & 8.15894626898364 & 0.0410537310163644 \tabularnewline
52 & 7.7 & 7.83257777034072 & -0.132577770340720 \tabularnewline
53 & 7.2 & 7.24681474233359 & -0.0468147423335921 \tabularnewline
54 & 7.3 & 7.18197716048476 & 0.118022839515244 \tabularnewline
55 & 8.1 & 8.31678453304782 & -0.216784533047817 \tabularnewline
56 & 8.5 & 8.38254708659377 & 0.117452913406235 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59545&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]9.5[/C][C]9.550503695942[/C][C]-0.0505036959419945[/C][/ROW]
[ROW][C]2[/C][C]9.6[/C][C]9.69736432302671[/C][C]-0.0973643230267106[/C][/ROW]
[ROW][C]3[/C][C]9.5[/C][C]9.50133867327424[/C][C]-0.00133867327424250[/C][/ROW]
[ROW][C]4[/C][C]9.1[/C][C]9.26011782055841[/C][C]-0.160117820558413[/C][/ROW]
[ROW][C]5[/C][C]8.9[/C][C]8.72394831499876[/C][C]0.176051685001243[/C][/ROW]
[ROW][C]6[/C][C]9[/C][C]8.9915159846888[/C][C]0.00848401531120342[/C][/ROW]
[ROW][C]7[/C][C]10.1[/C][C]9.8859380617181[/C][C]0.214061938281910[/C][/ROW]
[ROW][C]8[/C][C]10.3[/C][C]10.4169712547617[/C][C]-0.116971254761724[/C][/ROW]
[ROW][C]9[/C][C]10.2[/C][C]9.97598188301102[/C][C]0.224018116988980[/C][/ROW]
[ROW][C]10[/C][C]9.6[/C][C]9.91087469546602[/C][C]-0.310874695466022[/C][/ROW]
[ROW][C]11[/C][C]9.2[/C][C]9.13239226180305[/C][C]0.0676077381969513[/C][/ROW]
[ROW][C]12[/C][C]9.3[/C][C]9.30632996422872[/C][C]-0.00632996422872172[/C][/ROW]
[ROW][C]13[/C][C]9.4[/C][C]9.53264096291119[/C][C]-0.132640962911189[/C][/ROW]
[ROW][C]14[/C][C]9.4[/C][C]9.35913529905831[/C][C]0.0408647009416881[/C][/ROW]
[ROW][C]15[/C][C]9.2[/C][C]9.25862548644105[/C][C]-0.0586254864410525[/C][/ROW]
[ROW][C]16[/C][C]9[/C][C]8.99197880026961[/C][C]0.0080211997303855[/C][/ROW]
[ROW][C]17[/C][C]9[/C][C]8.78113722514825[/C][C]0.218862774851748[/C][/ROW]
[ROW][C]18[/C][C]9[/C][C]9.1482121939891[/C][C]-0.148212193989105[/C][/ROW]
[ROW][C]19[/C][C]9.8[/C][C]9.6454209095565[/C][C]0.154579090443491[/C][/ROW]
[ROW][C]20[/C][C]10[/C][C]9.82484280157012[/C][C]0.175157198429875[/C][/ROW]
[ROW][C]21[/C][C]9.8[/C][C]9.67553530447108[/C][C]0.12446469552892[/C][/ROW]
[ROW][C]22[/C][C]9.3[/C][C]9.44717525601095[/C][C]-0.147175256010945[/C][/ROW]
[ROW][C]23[/C][C]9[/C][C]8.85261488824056[/C][C]0.147385111759439[/C][/ROW]
[ROW][C]24[/C][C]9[/C][C]9.08606939211515[/C][C]-0.0860693921151495[/C][/ROW]
[ROW][C]25[/C][C]9.1[/C][C]9.05035310991697[/C][C]0.0496468900830317[/C][/ROW]
[ROW][C]26[/C][C]9.1[/C][C]8.96601884128402[/C][C]0.133981158715976[/C][/ROW]
[ROW][C]27[/C][C]9.1[/C][C]8.87047066816748[/C][C]0.229529331832516[/C][/ROW]
[ROW][C]28[/C][C]9.2[/C][C]8.89359778895473[/C][C]0.306402211045271[/C][/ROW]
[ROW][C]29[/C][C]8.8[/C][C]8.9746457023919[/C][C]-0.174645702391907[/C][/ROW]
[ROW][C]30[/C][C]8.3[/C][C]8.49962051115633[/C][C]-0.199620511156325[/C][/ROW]
[ROW][C]31[/C][C]8.4[/C][C]8.66865273550027[/C][C]-0.268652735500265[/C][/ROW]
[ROW][C]32[/C][C]8.1[/C][C]8.28520475655836[/C][C]-0.185204756558359[/C][/ROW]
[ROW][C]33[/C][C]7.7[/C][C]7.87036889167993[/C][C]-0.170368891679933[/C][/ROW]
[ROW][C]34[/C][C]7.9[/C][C]7.6415613281288[/C][C]0.258438671871202[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]8.12123390636036[/C][C]-0.221233906360361[/C][/ROW]
[ROW][C]36[/C][C]8[/C][C]8.13517993358551[/C][C]-0.135179933585512[/C][/ROW]
[ROW][C]37[/C][C]7.9[/C][C]7.97335533027323[/C][C]-0.073355330273232[/C][/ROW]
[ROW][C]38[/C][C]7.6[/C][C]7.64675998569078[/C][C]-0.0467599856907766[/C][/ROW]
[ROW][C]39[/C][C]7.1[/C][C]7.31061890313359[/C][C]-0.210618903133586[/C][/ROW]
[ROW][C]40[/C][C]6.8[/C][C]6.82172781987652[/C][C]-0.0217278198765233[/C][/ROW]
[ROW][C]41[/C][C]6.5[/C][C]6.67345401512749[/C][C]-0.173454015127493[/C][/ROW]
[ROW][C]42[/C][C]6.9[/C][C]6.67867414968102[/C][C]0.221325850318983[/C][/ROW]
[ROW][C]43[/C][C]8.2[/C][C]8.08320376017732[/C][C]0.116796239822682[/C][/ROW]
[ROW][C]44[/C][C]8.7[/C][C]8.69043410051603[/C][C]0.00956589948397417[/C][/ROW]
[ROW][C]45[/C][C]8.3[/C][C]8.47811392083797[/C][C]-0.178113920837967[/C][/ROW]
[ROW][C]46[/C][C]7.9[/C][C]7.70038872039424[/C][C]0.199611279605765[/C][/ROW]
[ROW][C]47[/C][C]7.5[/C][C]7.49375894359603[/C][C]0.00624105640397059[/C][/ROW]
[ROW][C]48[/C][C]7.8[/C][C]7.57242071007062[/C][C]0.227579289929383[/C][/ROW]
[ROW][C]49[/C][C]8.3[/C][C]8.09314690095662[/C][C]0.206853099043384[/C][/ROW]
[ROW][C]50[/C][C]8.4[/C][C]8.43072155094018[/C][C]-0.0307215509401769[/C][/ROW]
[ROW][C]51[/C][C]8.2[/C][C]8.15894626898364[/C][C]0.0410537310163644[/C][/ROW]
[ROW][C]52[/C][C]7.7[/C][C]7.83257777034072[/C][C]-0.132577770340720[/C][/ROW]
[ROW][C]53[/C][C]7.2[/C][C]7.24681474233359[/C][C]-0.0468147423335921[/C][/ROW]
[ROW][C]54[/C][C]7.3[/C][C]7.18197716048476[/C][C]0.118022839515244[/C][/ROW]
[ROW][C]55[/C][C]8.1[/C][C]8.31678453304782[/C][C]-0.216784533047817[/C][/ROW]
[ROW][C]56[/C][C]8.5[/C][C]8.38254708659377[/C][C]0.117452913406235[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59545&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59545&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
19.59.550503695942-0.0505036959419945
29.69.69736432302671-0.0973643230267106
39.59.50133867327424-0.00133867327424250
49.19.26011782055841-0.160117820558413
58.98.723948314998760.176051685001243
698.99151598468880.00848401531120342
710.19.88593806171810.214061938281910
810.310.4169712547617-0.116971254761724
910.29.975981883011020.224018116988980
109.69.91087469546602-0.310874695466022
119.29.132392261803050.0676077381969513
129.39.30632996422872-0.00632996422872172
139.49.53264096291119-0.132640962911189
149.49.359135299058310.0408647009416881
159.29.25862548644105-0.0586254864410525
1698.991978800269610.0080211997303855
1798.781137225148250.218862774851748
1899.1482121939891-0.148212193989105
199.89.64542090955650.154579090443491
20109.824842801570120.175157198429875
219.89.675535304471080.12446469552892
229.39.44717525601095-0.147175256010945
2398.852614888240560.147385111759439
2499.08606939211515-0.0860693921151495
259.19.050353109916970.0496468900830317
269.18.966018841284020.133981158715976
279.18.870470668167480.229529331832516
289.28.893597788954730.306402211045271
298.88.9746457023919-0.174645702391907
308.38.49962051115633-0.199620511156325
318.48.66865273550027-0.268652735500265
328.18.28520475655836-0.185204756558359
337.77.87036889167993-0.170368891679933
347.97.64156132812880.258438671871202
357.98.12123390636036-0.221233906360361
3688.13517993358551-0.135179933585512
377.97.97335533027323-0.073355330273232
387.67.64675998569078-0.0467599856907766
397.17.31061890313359-0.210618903133586
406.86.82172781987652-0.0217278198765233
416.56.67345401512749-0.173454015127493
426.96.678674149681020.221325850318983
438.28.083203760177320.116796239822682
448.78.690434100516030.00956589948397417
458.38.47811392083797-0.178113920837967
467.97.700388720394240.199611279605765
477.57.493758943596030.00624105640397059
487.87.572420710070620.227579289929383
498.38.093146900956620.206853099043384
508.48.43072155094018-0.0307215509401769
518.28.158946268983640.0410537310163644
527.77.83257777034072-0.132577770340720
537.27.24681474233359-0.0468147423335921
547.37.181977160484760.118022839515244
558.18.31678453304782-0.216784533047817
568.58.382547086593770.117452913406235







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.04779023961334550.0955804792266910.952209760386655
210.07260542077345170.1452108415469030.927394579226548
220.03702976218320480.07405952436640960.962970237816795
230.01984328819105300.03968657638210590.980156711808947
240.009125511946485530.01825102389297110.990874488053515
250.003061294193169810.006122588386339620.99693870580683
260.001179090182091220.002358180364182440.998820909817909
270.003074933651388520.006149867302777040.996925066348612
280.1980525676473200.3961051352946390.80194743235268
290.2455568119441070.4911136238882140.754443188055893
300.2006986807748210.4013973615496410.79930131922518
310.7828834066164260.4342331867671490.217116593383574
320.799512560101290.4009748797974190.200487439898710
330.8773133682917840.2453732634164320.122686631708216
340.9093309711391230.1813380577217540.090669028860877
350.9014590443383060.1970819113233880.0985409556616939
360.8041339551097460.3917320897805080.195866044890254

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
20 & 0.0477902396133455 & 0.095580479226691 & 0.952209760386655 \tabularnewline
21 & 0.0726054207734517 & 0.145210841546903 & 0.927394579226548 \tabularnewline
22 & 0.0370297621832048 & 0.0740595243664096 & 0.962970237816795 \tabularnewline
23 & 0.0198432881910530 & 0.0396865763821059 & 0.980156711808947 \tabularnewline
24 & 0.00912551194648553 & 0.0182510238929711 & 0.990874488053515 \tabularnewline
25 & 0.00306129419316981 & 0.00612258838633962 & 0.99693870580683 \tabularnewline
26 & 0.00117909018209122 & 0.00235818036418244 & 0.998820909817909 \tabularnewline
27 & 0.00307493365138852 & 0.00614986730277704 & 0.996925066348612 \tabularnewline
28 & 0.198052567647320 & 0.396105135294639 & 0.80194743235268 \tabularnewline
29 & 0.245556811944107 & 0.491113623888214 & 0.754443188055893 \tabularnewline
30 & 0.200698680774821 & 0.401397361549641 & 0.79930131922518 \tabularnewline
31 & 0.782883406616426 & 0.434233186767149 & 0.217116593383574 \tabularnewline
32 & 0.79951256010129 & 0.400974879797419 & 0.200487439898710 \tabularnewline
33 & 0.877313368291784 & 0.245373263416432 & 0.122686631708216 \tabularnewline
34 & 0.909330971139123 & 0.181338057721754 & 0.090669028860877 \tabularnewline
35 & 0.901459044338306 & 0.197081911323388 & 0.0985409556616939 \tabularnewline
36 & 0.804133955109746 & 0.391732089780508 & 0.195866044890254 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59545&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]20[/C][C]0.0477902396133455[/C][C]0.095580479226691[/C][C]0.952209760386655[/C][/ROW]
[ROW][C]21[/C][C]0.0726054207734517[/C][C]0.145210841546903[/C][C]0.927394579226548[/C][/ROW]
[ROW][C]22[/C][C]0.0370297621832048[/C][C]0.0740595243664096[/C][C]0.962970237816795[/C][/ROW]
[ROW][C]23[/C][C]0.0198432881910530[/C][C]0.0396865763821059[/C][C]0.980156711808947[/C][/ROW]
[ROW][C]24[/C][C]0.00912551194648553[/C][C]0.0182510238929711[/C][C]0.990874488053515[/C][/ROW]
[ROW][C]25[/C][C]0.00306129419316981[/C][C]0.00612258838633962[/C][C]0.99693870580683[/C][/ROW]
[ROW][C]26[/C][C]0.00117909018209122[/C][C]0.00235818036418244[/C][C]0.998820909817909[/C][/ROW]
[ROW][C]27[/C][C]0.00307493365138852[/C][C]0.00614986730277704[/C][C]0.996925066348612[/C][/ROW]
[ROW][C]28[/C][C]0.198052567647320[/C][C]0.396105135294639[/C][C]0.80194743235268[/C][/ROW]
[ROW][C]29[/C][C]0.245556811944107[/C][C]0.491113623888214[/C][C]0.754443188055893[/C][/ROW]
[ROW][C]30[/C][C]0.200698680774821[/C][C]0.401397361549641[/C][C]0.79930131922518[/C][/ROW]
[ROW][C]31[/C][C]0.782883406616426[/C][C]0.434233186767149[/C][C]0.217116593383574[/C][/ROW]
[ROW][C]32[/C][C]0.79951256010129[/C][C]0.400974879797419[/C][C]0.200487439898710[/C][/ROW]
[ROW][C]33[/C][C]0.877313368291784[/C][C]0.245373263416432[/C][C]0.122686631708216[/C][/ROW]
[ROW][C]34[/C][C]0.909330971139123[/C][C]0.181338057721754[/C][C]0.090669028860877[/C][/ROW]
[ROW][C]35[/C][C]0.901459044338306[/C][C]0.197081911323388[/C][C]0.0985409556616939[/C][/ROW]
[ROW][C]36[/C][C]0.804133955109746[/C][C]0.391732089780508[/C][C]0.195866044890254[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59545&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59545&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
200.04779023961334550.0955804792266910.952209760386655
210.07260542077345170.1452108415469030.927394579226548
220.03702976218320480.07405952436640960.962970237816795
230.01984328819105300.03968657638210590.980156711808947
240.009125511946485530.01825102389297110.990874488053515
250.003061294193169810.006122588386339620.99693870580683
260.001179090182091220.002358180364182440.998820909817909
270.003074933651388520.006149867302777040.996925066348612
280.1980525676473200.3961051352946390.80194743235268
290.2455568119441070.4911136238882140.754443188055893
300.2006986807748210.4013973615496410.79930131922518
310.7828834066164260.4342331867671490.217116593383574
320.799512560101290.4009748797974190.200487439898710
330.8773133682917840.2453732634164320.122686631708216
340.9093309711391230.1813380577217540.090669028860877
350.9014590443383060.1970819113233880.0985409556616939
360.8041339551097460.3917320897805080.195866044890254







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.176470588235294NOK
5% type I error level50.294117647058824NOK
10% type I error level70.411764705882353NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59545&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 level30.176470588235294NOK
5% type I error level50.294117647058824NOK
10% type I error level70.411764705882353NOK



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