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 12:13:31 -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/t1258744454h3b5ualk8tpkbzj.htm/, Retrieved Thu, 25 Apr 2024 09:45:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58432, Retrieved Thu, 25 Apr 2024 09:45:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact133
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Multiple Linear R...] [2009-11-20 19:13:31] [b42c0aeada8a5fa89825c81e73c10645] [Current]
Feedback Forum

Post a new message
Dataseries X:
9.3	104.1
8.7	90.2
8.2	99.2
8.3	116.5
8.5	98.4
8.6	90.6
8.5	130.5
8.2	107.4
8.1	106
7.9	196.5
8.6	107.8
8.7	90.5
8.7	123.8
8.5	114.7
8.4	115.3
8.5	197
8.7	88.4
8.7	93.8
8.6	111.3
8.5	105.9
8.3	123.6
8	171
8.2	97
8.1	99.2
8.1	126.6
8	103.4
7.9	121.3
7.9	129.6
8	110.8
8	98.9
7.9	122.8
8	120.9
7.7	133.1
7.2	203.1
7.5	110.2
7.3	119.5
7	135.1
7	113.9
7	137.4
7.2	157.1
7.3	126.4
7.1	112.2
6.8	128.8
6.4	136.8
6.1	156.5
6.5	215.2
7.7	146.7
7.9	130.8
7.5	133.1
6.9	153.4
6.6	159.9
6.9	174.6
7.7	145
8	112.9
8	137.8
7.7	150.6
7.3	162.1
7.4	226.4
8.1	112.3
8.3	126.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=58432&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=58432&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58432&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] = + 114.594644234140 -3.37758499824748X[t] + 19.3930884157026M1[t] + 8.24068261479143M2[t] + 18.3460353137049M3[t] + 46.4397669120224M4[t] + 5.50636041009466M5[t] -7.19766649141254M6[t] + 16.2378930073607M7[t] + 12.9232457062741M8[t] + 23.2659433052927M9[t] + 88.3890545040308M10[t] + 2.12402690150718M11[t] + 0.719130301437084t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  114.594644234140 -3.37758499824748X[t] +  19.3930884157026M1[t] +  8.24068261479143M2[t] +  18.3460353137049M3[t] +  46.4397669120224M4[t] +  5.50636041009466M5[t] -7.19766649141254M6[t] +  16.2378930073607M7[t] +  12.9232457062741M8[t] +  23.2659433052927M9[t] +  88.3890545040308M10[t] +  2.12402690150718M11[t] +  0.719130301437084t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58432&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  114.594644234140 -3.37758499824748X[t] +  19.3930884157026M1[t] +  8.24068261479143M2[t] +  18.3460353137049M3[t] +  46.4397669120224M4[t] +  5.50636041009466M5[t] -7.19766649141254M6[t] +  16.2378930073607M7[t] +  12.9232457062741M8[t] +  23.2659433052927M9[t] +  88.3890545040308M10[t] +  2.12402690150718M11[t] +  0.719130301437084t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58432&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58432&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] = + 114.594644234140 -3.37758499824748X[t] + 19.3930884157026M1[t] + 8.24068261479143M2[t] + 18.3460353137049M3[t] + 46.4397669120224M4[t] + 5.50636041009466M5[t] -7.19766649141254M6[t] + 16.2378930073607M7[t] + 12.9232457062741M8[t] + 23.2659433052927M9[t] + 88.3890545040308M10[t] + 2.12402690150718M11[t] + 0.719130301437084t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)114.59464423414037.3644123.06690.0036160.001808
X-3.377584998247484.051767-0.83360.408810.204405
M119.39308841570268.7873072.20690.0323470.016174
M28.240682614791438.9653680.91920.3628020.181401
M318.34603531370499.1420562.00680.0506720.025336
M446.43976691202248.9483235.18985e-062e-06
M55.506360410094668.7299520.63070.531330.265665
M6-7.197666491412548.699136-0.82740.4122820.206141
M716.23789300736078.7256261.86090.0691510.034575
M812.92324570627418.8245471.46450.1498680.074934
M923.26594330529279.0451112.57220.0133990.0067
M1088.38905450403089.1310219.680100
M112.124026901507188.6617050.24520.8073760.403688
t0.7191303014370840.1525034.71552.3e-051.1e-05

\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) & 114.594644234140 & 37.364412 & 3.0669 & 0.003616 & 0.001808 \tabularnewline
X & -3.37758499824748 & 4.051767 & -0.8336 & 0.40881 & 0.204405 \tabularnewline
M1 & 19.3930884157026 & 8.787307 & 2.2069 & 0.032347 & 0.016174 \tabularnewline
M2 & 8.24068261479143 & 8.965368 & 0.9192 & 0.362802 & 0.181401 \tabularnewline
M3 & 18.3460353137049 & 9.142056 & 2.0068 & 0.050672 & 0.025336 \tabularnewline
M4 & 46.4397669120224 & 8.948323 & 5.1898 & 5e-06 & 2e-06 \tabularnewline
M5 & 5.50636041009466 & 8.729952 & 0.6307 & 0.53133 & 0.265665 \tabularnewline
M6 & -7.19766649141254 & 8.699136 & -0.8274 & 0.412282 & 0.206141 \tabularnewline
M7 & 16.2378930073607 & 8.725626 & 1.8609 & 0.069151 & 0.034575 \tabularnewline
M8 & 12.9232457062741 & 8.824547 & 1.4645 & 0.149868 & 0.074934 \tabularnewline
M9 & 23.2659433052927 & 9.045111 & 2.5722 & 0.013399 & 0.0067 \tabularnewline
M10 & 88.3890545040308 & 9.131021 & 9.6801 & 0 & 0 \tabularnewline
M11 & 2.12402690150718 & 8.661705 & 0.2452 & 0.807376 & 0.403688 \tabularnewline
t & 0.719130301437084 & 0.152503 & 4.7155 & 2.3e-05 & 1.1e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58432&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]114.594644234140[/C][C]37.364412[/C][C]3.0669[/C][C]0.003616[/C][C]0.001808[/C][/ROW]
[ROW][C]X[/C][C]-3.37758499824748[/C][C]4.051767[/C][C]-0.8336[/C][C]0.40881[/C][C]0.204405[/C][/ROW]
[ROW][C]M1[/C][C]19.3930884157026[/C][C]8.787307[/C][C]2.2069[/C][C]0.032347[/C][C]0.016174[/C][/ROW]
[ROW][C]M2[/C][C]8.24068261479143[/C][C]8.965368[/C][C]0.9192[/C][C]0.362802[/C][C]0.181401[/C][/ROW]
[ROW][C]M3[/C][C]18.3460353137049[/C][C]9.142056[/C][C]2.0068[/C][C]0.050672[/C][C]0.025336[/C][/ROW]
[ROW][C]M4[/C][C]46.4397669120224[/C][C]8.948323[/C][C]5.1898[/C][C]5e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M5[/C][C]5.50636041009466[/C][C]8.729952[/C][C]0.6307[/C][C]0.53133[/C][C]0.265665[/C][/ROW]
[ROW][C]M6[/C][C]-7.19766649141254[/C][C]8.699136[/C][C]-0.8274[/C][C]0.412282[/C][C]0.206141[/C][/ROW]
[ROW][C]M7[/C][C]16.2378930073607[/C][C]8.725626[/C][C]1.8609[/C][C]0.069151[/C][C]0.034575[/C][/ROW]
[ROW][C]M8[/C][C]12.9232457062741[/C][C]8.824547[/C][C]1.4645[/C][C]0.149868[/C][C]0.074934[/C][/ROW]
[ROW][C]M9[/C][C]23.2659433052927[/C][C]9.045111[/C][C]2.5722[/C][C]0.013399[/C][C]0.0067[/C][/ROW]
[ROW][C]M10[/C][C]88.3890545040308[/C][C]9.131021[/C][C]9.6801[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]2.12402690150718[/C][C]8.661705[/C][C]0.2452[/C][C]0.807376[/C][C]0.403688[/C][/ROW]
[ROW][C]t[/C][C]0.719130301437084[/C][C]0.152503[/C][C]4.7155[/C][C]2.3e-05[/C][C]1.1e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58432&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58432&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)114.59464423414037.3644123.06690.0036160.001808
X-3.377584998247484.051767-0.83360.408810.204405
M119.39308841570268.7873072.20690.0323470.016174
M28.240682614791438.9653680.91920.3628020.181401
M318.34603531370499.1420562.00680.0506720.025336
M446.43976691202248.9483235.18985e-062e-06
M55.506360410094668.7299520.63070.531330.265665
M6-7.197666491412548.699136-0.82740.4122820.206141
M716.23789300736078.7256261.86090.0691510.034575
M812.92324570627418.8245471.46450.1498680.074934
M923.26594330529279.0451112.57220.0133990.0067
M1088.38905450403089.1310219.680100
M112.124026901507188.6617050.24520.8073760.403688
t0.7191303014370840.1525034.71552.3e-051.1e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.924217732216523
R-squared0.854178416543453
Adjusted R-squared0.812967969044863
F-TEST (value)20.7272298261913
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value5.55111512312578e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.6875386859959
Sum Squared Residuals8618.04090290921

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.924217732216523 \tabularnewline
R-squared & 0.854178416543453 \tabularnewline
Adjusted R-squared & 0.812967969044863 \tabularnewline
F-TEST (value) & 20.7272298261913 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 5.55111512312578e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 13.6875386859959 \tabularnewline
Sum Squared Residuals & 8618.04090290921 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58432&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.924217732216523[/C][/ROW]
[ROW][C]R-squared[/C][C]0.854178416543453[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.812967969044863[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]20.7272298261913[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]5.55111512312578e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]13.6875386859959[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]8618.04090290921[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58432&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58432&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.924217732216523
R-squared0.854178416543453
Adjusted R-squared0.812967969044863
F-TEST (value)20.7272298261913
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value5.55111512312578e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.6875386859959
Sum Squared Residuals8618.04090290921







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1104.1103.2953224675780.804677532421608
290.294.8885979670522-4.68859796705217
399.2107.401873466526-8.2018734665264
4116.5135.876976866456-19.3769768664563
598.494.98718366631623.41281633368384
690.682.66452856642137.9354714335787
7130.5107.15697686645623.3430231335436
8107.4105.5747353662811.82526463371890
9106116.974321766562-10.9743217665615
10196.5183.49208026638613.0079197336138
11107.895.581873466526412.2181265334735
1290.593.8392183666316-3.33921836663156
13123.8113.9514370837719.84856291622866
14114.7104.19367858394710.5063214160533
15115.3115.355920084122-0.0559200841219734
16197143.83102348405253.1689765159481
1788.4102.941230283912-14.5412302839116
1893.890.95633368384162.84366631615844
19111.3115.448781983877-4.14878198387660
20105.9113.191023484052-7.29102348405185
21123.6124.928368384157-1.32836838415701
22171191.783885383807-20.7838853838065
2397105.562471083070-8.56247108307045
2499.2104.495332982825-5.2953329828251
25126.6124.6075516999651.99244830003516
26103.4114.512034700315-11.1120347003155
27121.3125.674276200491-4.37427620049072
28129.6154.487138100245-24.8871381002454
29110.8113.935103399930-3.1351033999299
3098.9101.950206799860-3.0502067998598
31122.8126.442655099895-3.64265509989485
32120.9123.509379600421-2.60937960042059
33133.1135.584483000351-2.48448300035051
34203.1203.115516999649-0.0155169996494948
35110.2116.556344199089-6.35634419908867
36119.5115.8269645986683.67303540133192
37135.1136.952458815282-1.85245881528208
38113.9126.519183315808-12.6191833158080
39137.4137.3436663161580.0563336838415397
40157.1165.481011216264-8.38101121626362
41126.4124.9289765159481.47102348405187
42112.2113.619596915528-1.41959691552754
43128.8138.787562215212-9.98756221521207
44136.8137.543079214862-0.74307921486157
45156.5149.6181826147916.88181738520853
46215.2214.1093901156681.09060988433224
47146.7124.51039081668422.1896091833158
48130.8122.4299772169658.37002278303542
49133.1143.893229933403-10.7932299334033
50153.4135.48650543287817.9134945671223
51159.9147.32426393270212.5757360672975
52174.6175.123850332983-0.523850332982872
53145132.20750613389412.7924938661058
54112.9119.209334034350-6.3093340343498
55137.8143.36402383456-5.5640238345601
56150.6141.7817823343858.81821766561513
57162.1154.1946442341407.9053557658605
58226.4219.699127234496.70087276551
59112.3131.788920434630-19.4889204346302
60126.3129.708506834911-3.4085068349106

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 104.1 & 103.295322467578 & 0.804677532421608 \tabularnewline
2 & 90.2 & 94.8885979670522 & -4.68859796705217 \tabularnewline
3 & 99.2 & 107.401873466526 & -8.2018734665264 \tabularnewline
4 & 116.5 & 135.876976866456 & -19.3769768664563 \tabularnewline
5 & 98.4 & 94.9871836663162 & 3.41281633368384 \tabularnewline
6 & 90.6 & 82.6645285664213 & 7.9354714335787 \tabularnewline
7 & 130.5 & 107.156976866456 & 23.3430231335436 \tabularnewline
8 & 107.4 & 105.574735366281 & 1.82526463371890 \tabularnewline
9 & 106 & 116.974321766562 & -10.9743217665615 \tabularnewline
10 & 196.5 & 183.492080266386 & 13.0079197336138 \tabularnewline
11 & 107.8 & 95.5818734665264 & 12.2181265334735 \tabularnewline
12 & 90.5 & 93.8392183666316 & -3.33921836663156 \tabularnewline
13 & 123.8 & 113.951437083771 & 9.84856291622866 \tabularnewline
14 & 114.7 & 104.193678583947 & 10.5063214160533 \tabularnewline
15 & 115.3 & 115.355920084122 & -0.0559200841219734 \tabularnewline
16 & 197 & 143.831023484052 & 53.1689765159481 \tabularnewline
17 & 88.4 & 102.941230283912 & -14.5412302839116 \tabularnewline
18 & 93.8 & 90.9563336838416 & 2.84366631615844 \tabularnewline
19 & 111.3 & 115.448781983877 & -4.14878198387660 \tabularnewline
20 & 105.9 & 113.191023484052 & -7.29102348405185 \tabularnewline
21 & 123.6 & 124.928368384157 & -1.32836838415701 \tabularnewline
22 & 171 & 191.783885383807 & -20.7838853838065 \tabularnewline
23 & 97 & 105.562471083070 & -8.56247108307045 \tabularnewline
24 & 99.2 & 104.495332982825 & -5.2953329828251 \tabularnewline
25 & 126.6 & 124.607551699965 & 1.99244830003516 \tabularnewline
26 & 103.4 & 114.512034700315 & -11.1120347003155 \tabularnewline
27 & 121.3 & 125.674276200491 & -4.37427620049072 \tabularnewline
28 & 129.6 & 154.487138100245 & -24.8871381002454 \tabularnewline
29 & 110.8 & 113.935103399930 & -3.1351033999299 \tabularnewline
30 & 98.9 & 101.950206799860 & -3.0502067998598 \tabularnewline
31 & 122.8 & 126.442655099895 & -3.64265509989485 \tabularnewline
32 & 120.9 & 123.509379600421 & -2.60937960042059 \tabularnewline
33 & 133.1 & 135.584483000351 & -2.48448300035051 \tabularnewline
34 & 203.1 & 203.115516999649 & -0.0155169996494948 \tabularnewline
35 & 110.2 & 116.556344199089 & -6.35634419908867 \tabularnewline
36 & 119.5 & 115.826964598668 & 3.67303540133192 \tabularnewline
37 & 135.1 & 136.952458815282 & -1.85245881528208 \tabularnewline
38 & 113.9 & 126.519183315808 & -12.6191833158080 \tabularnewline
39 & 137.4 & 137.343666316158 & 0.0563336838415397 \tabularnewline
40 & 157.1 & 165.481011216264 & -8.38101121626362 \tabularnewline
41 & 126.4 & 124.928976515948 & 1.47102348405187 \tabularnewline
42 & 112.2 & 113.619596915528 & -1.41959691552754 \tabularnewline
43 & 128.8 & 138.787562215212 & -9.98756221521207 \tabularnewline
44 & 136.8 & 137.543079214862 & -0.74307921486157 \tabularnewline
45 & 156.5 & 149.618182614791 & 6.88181738520853 \tabularnewline
46 & 215.2 & 214.109390115668 & 1.09060988433224 \tabularnewline
47 & 146.7 & 124.510390816684 & 22.1896091833158 \tabularnewline
48 & 130.8 & 122.429977216965 & 8.37002278303542 \tabularnewline
49 & 133.1 & 143.893229933403 & -10.7932299334033 \tabularnewline
50 & 153.4 & 135.486505432878 & 17.9134945671223 \tabularnewline
51 & 159.9 & 147.324263932702 & 12.5757360672975 \tabularnewline
52 & 174.6 & 175.123850332983 & -0.523850332982872 \tabularnewline
53 & 145 & 132.207506133894 & 12.7924938661058 \tabularnewline
54 & 112.9 & 119.209334034350 & -6.3093340343498 \tabularnewline
55 & 137.8 & 143.36402383456 & -5.5640238345601 \tabularnewline
56 & 150.6 & 141.781782334385 & 8.81821766561513 \tabularnewline
57 & 162.1 & 154.194644234140 & 7.9053557658605 \tabularnewline
58 & 226.4 & 219.69912723449 & 6.70087276551 \tabularnewline
59 & 112.3 & 131.788920434630 & -19.4889204346302 \tabularnewline
60 & 126.3 & 129.708506834911 & -3.4085068349106 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58432&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]104.1[/C][C]103.295322467578[/C][C]0.804677532421608[/C][/ROW]
[ROW][C]2[/C][C]90.2[/C][C]94.8885979670522[/C][C]-4.68859796705217[/C][/ROW]
[ROW][C]3[/C][C]99.2[/C][C]107.401873466526[/C][C]-8.2018734665264[/C][/ROW]
[ROW][C]4[/C][C]116.5[/C][C]135.876976866456[/C][C]-19.3769768664563[/C][/ROW]
[ROW][C]5[/C][C]98.4[/C][C]94.9871836663162[/C][C]3.41281633368384[/C][/ROW]
[ROW][C]6[/C][C]90.6[/C][C]82.6645285664213[/C][C]7.9354714335787[/C][/ROW]
[ROW][C]7[/C][C]130.5[/C][C]107.156976866456[/C][C]23.3430231335436[/C][/ROW]
[ROW][C]8[/C][C]107.4[/C][C]105.574735366281[/C][C]1.82526463371890[/C][/ROW]
[ROW][C]9[/C][C]106[/C][C]116.974321766562[/C][C]-10.9743217665615[/C][/ROW]
[ROW][C]10[/C][C]196.5[/C][C]183.492080266386[/C][C]13.0079197336138[/C][/ROW]
[ROW][C]11[/C][C]107.8[/C][C]95.5818734665264[/C][C]12.2181265334735[/C][/ROW]
[ROW][C]12[/C][C]90.5[/C][C]93.8392183666316[/C][C]-3.33921836663156[/C][/ROW]
[ROW][C]13[/C][C]123.8[/C][C]113.951437083771[/C][C]9.84856291622866[/C][/ROW]
[ROW][C]14[/C][C]114.7[/C][C]104.193678583947[/C][C]10.5063214160533[/C][/ROW]
[ROW][C]15[/C][C]115.3[/C][C]115.355920084122[/C][C]-0.0559200841219734[/C][/ROW]
[ROW][C]16[/C][C]197[/C][C]143.831023484052[/C][C]53.1689765159481[/C][/ROW]
[ROW][C]17[/C][C]88.4[/C][C]102.941230283912[/C][C]-14.5412302839116[/C][/ROW]
[ROW][C]18[/C][C]93.8[/C][C]90.9563336838416[/C][C]2.84366631615844[/C][/ROW]
[ROW][C]19[/C][C]111.3[/C][C]115.448781983877[/C][C]-4.14878198387660[/C][/ROW]
[ROW][C]20[/C][C]105.9[/C][C]113.191023484052[/C][C]-7.29102348405185[/C][/ROW]
[ROW][C]21[/C][C]123.6[/C][C]124.928368384157[/C][C]-1.32836838415701[/C][/ROW]
[ROW][C]22[/C][C]171[/C][C]191.783885383807[/C][C]-20.7838853838065[/C][/ROW]
[ROW][C]23[/C][C]97[/C][C]105.562471083070[/C][C]-8.56247108307045[/C][/ROW]
[ROW][C]24[/C][C]99.2[/C][C]104.495332982825[/C][C]-5.2953329828251[/C][/ROW]
[ROW][C]25[/C][C]126.6[/C][C]124.607551699965[/C][C]1.99244830003516[/C][/ROW]
[ROW][C]26[/C][C]103.4[/C][C]114.512034700315[/C][C]-11.1120347003155[/C][/ROW]
[ROW][C]27[/C][C]121.3[/C][C]125.674276200491[/C][C]-4.37427620049072[/C][/ROW]
[ROW][C]28[/C][C]129.6[/C][C]154.487138100245[/C][C]-24.8871381002454[/C][/ROW]
[ROW][C]29[/C][C]110.8[/C][C]113.935103399930[/C][C]-3.1351033999299[/C][/ROW]
[ROW][C]30[/C][C]98.9[/C][C]101.950206799860[/C][C]-3.0502067998598[/C][/ROW]
[ROW][C]31[/C][C]122.8[/C][C]126.442655099895[/C][C]-3.64265509989485[/C][/ROW]
[ROW][C]32[/C][C]120.9[/C][C]123.509379600421[/C][C]-2.60937960042059[/C][/ROW]
[ROW][C]33[/C][C]133.1[/C][C]135.584483000351[/C][C]-2.48448300035051[/C][/ROW]
[ROW][C]34[/C][C]203.1[/C][C]203.115516999649[/C][C]-0.0155169996494948[/C][/ROW]
[ROW][C]35[/C][C]110.2[/C][C]116.556344199089[/C][C]-6.35634419908867[/C][/ROW]
[ROW][C]36[/C][C]119.5[/C][C]115.826964598668[/C][C]3.67303540133192[/C][/ROW]
[ROW][C]37[/C][C]135.1[/C][C]136.952458815282[/C][C]-1.85245881528208[/C][/ROW]
[ROW][C]38[/C][C]113.9[/C][C]126.519183315808[/C][C]-12.6191833158080[/C][/ROW]
[ROW][C]39[/C][C]137.4[/C][C]137.343666316158[/C][C]0.0563336838415397[/C][/ROW]
[ROW][C]40[/C][C]157.1[/C][C]165.481011216264[/C][C]-8.38101121626362[/C][/ROW]
[ROW][C]41[/C][C]126.4[/C][C]124.928976515948[/C][C]1.47102348405187[/C][/ROW]
[ROW][C]42[/C][C]112.2[/C][C]113.619596915528[/C][C]-1.41959691552754[/C][/ROW]
[ROW][C]43[/C][C]128.8[/C][C]138.787562215212[/C][C]-9.98756221521207[/C][/ROW]
[ROW][C]44[/C][C]136.8[/C][C]137.543079214862[/C][C]-0.74307921486157[/C][/ROW]
[ROW][C]45[/C][C]156.5[/C][C]149.618182614791[/C][C]6.88181738520853[/C][/ROW]
[ROW][C]46[/C][C]215.2[/C][C]214.109390115668[/C][C]1.09060988433224[/C][/ROW]
[ROW][C]47[/C][C]146.7[/C][C]124.510390816684[/C][C]22.1896091833158[/C][/ROW]
[ROW][C]48[/C][C]130.8[/C][C]122.429977216965[/C][C]8.37002278303542[/C][/ROW]
[ROW][C]49[/C][C]133.1[/C][C]143.893229933403[/C][C]-10.7932299334033[/C][/ROW]
[ROW][C]50[/C][C]153.4[/C][C]135.486505432878[/C][C]17.9134945671223[/C][/ROW]
[ROW][C]51[/C][C]159.9[/C][C]147.324263932702[/C][C]12.5757360672975[/C][/ROW]
[ROW][C]52[/C][C]174.6[/C][C]175.123850332983[/C][C]-0.523850332982872[/C][/ROW]
[ROW][C]53[/C][C]145[/C][C]132.207506133894[/C][C]12.7924938661058[/C][/ROW]
[ROW][C]54[/C][C]112.9[/C][C]119.209334034350[/C][C]-6.3093340343498[/C][/ROW]
[ROW][C]55[/C][C]137.8[/C][C]143.36402383456[/C][C]-5.5640238345601[/C][/ROW]
[ROW][C]56[/C][C]150.6[/C][C]141.781782334385[/C][C]8.81821766561513[/C][/ROW]
[ROW][C]57[/C][C]162.1[/C][C]154.194644234140[/C][C]7.9053557658605[/C][/ROW]
[ROW][C]58[/C][C]226.4[/C][C]219.69912723449[/C][C]6.70087276551[/C][/ROW]
[ROW][C]59[/C][C]112.3[/C][C]131.788920434630[/C][C]-19.4889204346302[/C][/ROW]
[ROW][C]60[/C][C]126.3[/C][C]129.708506834911[/C][C]-3.4085068349106[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58432&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58432&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
1104.1103.2953224675780.804677532421608
290.294.8885979670522-4.68859796705217
399.2107.401873466526-8.2018734665264
4116.5135.876976866456-19.3769768664563
598.494.98718366631623.41281633368384
690.682.66452856642137.9354714335787
7130.5107.15697686645623.3430231335436
8107.4105.5747353662811.82526463371890
9106116.974321766562-10.9743217665615
10196.5183.49208026638613.0079197336138
11107.895.581873466526412.2181265334735
1290.593.8392183666316-3.33921836663156
13123.8113.9514370837719.84856291622866
14114.7104.19367858394710.5063214160533
15115.3115.355920084122-0.0559200841219734
16197143.83102348405253.1689765159481
1788.4102.941230283912-14.5412302839116
1893.890.95633368384162.84366631615844
19111.3115.448781983877-4.14878198387660
20105.9113.191023484052-7.29102348405185
21123.6124.928368384157-1.32836838415701
22171191.783885383807-20.7838853838065
2397105.562471083070-8.56247108307045
2499.2104.495332982825-5.2953329828251
25126.6124.6075516999651.99244830003516
26103.4114.512034700315-11.1120347003155
27121.3125.674276200491-4.37427620049072
28129.6154.487138100245-24.8871381002454
29110.8113.935103399930-3.1351033999299
3098.9101.950206799860-3.0502067998598
31122.8126.442655099895-3.64265509989485
32120.9123.509379600421-2.60937960042059
33133.1135.584483000351-2.48448300035051
34203.1203.115516999649-0.0155169996494948
35110.2116.556344199089-6.35634419908867
36119.5115.8269645986683.67303540133192
37135.1136.952458815282-1.85245881528208
38113.9126.519183315808-12.6191833158080
39137.4137.3436663161580.0563336838415397
40157.1165.481011216264-8.38101121626362
41126.4124.9289765159481.47102348405187
42112.2113.619596915528-1.41959691552754
43128.8138.787562215212-9.98756221521207
44136.8137.543079214862-0.74307921486157
45156.5149.6181826147916.88181738520853
46215.2214.1093901156681.09060988433224
47146.7124.51039081668422.1896091833158
48130.8122.4299772169658.37002278303542
49133.1143.893229933403-10.7932299334033
50153.4135.48650543287817.9134945671223
51159.9147.32426393270212.5757360672975
52174.6175.123850332983-0.523850332982872
53145132.20750613389412.7924938661058
54112.9119.209334034350-6.3093340343498
55137.8143.36402383456-5.5640238345601
56150.6141.7817823343858.81821766561513
57162.1154.1946442341407.9053557658605
58226.4219.699127234496.70087276551
59112.3131.788920434630-19.4889204346302
60126.3129.708506834911-3.4085068349106







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.9996188474198580.0007623051602831370.000381152580141569
180.999585556440550.000828887118898160.00041444355944908
190.999855737521440.0002885249571187290.000144262478559364
200.999663639814920.0006727203701617430.000336360185080872
210.999185703670890.001628592658218950.000814296329109474
220.9996166924182420.0007666151635165410.000383307581758271
230.999330380112470.001339239775059640.000669619887529818
240.9983802410377030.003239517924595010.00161975896229750
250.997876320704730.004247358590541380.00212367929527069
260.9958398307358280.008320338528342860.00416016926417143
270.9914136532509180.01717269349816370.00858634674908183
280.99486179244180.01027641511639890.00513820755819944
290.9908566260764220.01828674784715550.00914337392357775
300.982981026040480.03403794791904160.0170189739595208
310.9735228566771940.05295428664561210.0264771433228061
320.953937862585230.09212427482953780.0460621374147689
330.9252102167010950.1495795665978100.0747897832989052
340.8864206934102330.2271586131795350.113579306589767
350.8263615909792760.3472768180414480.173638409020724
360.7623469814359960.4753060371280080.237653018564004
370.6866700222936730.6266599554126540.313329977706327
380.7382987169163270.5234025661673450.261701283083673
390.7018631813576670.5962736372846670.298136818642333
400.7518053755677110.4963892488645780.248194624432289
410.919471019014930.1610579619701390.0805289809850693
420.832155159534070.3356896809318580.167844840465929
430.6888134544809070.6223730910381850.311186545519092

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.999618847419858 & 0.000762305160283137 & 0.000381152580141569 \tabularnewline
18 & 0.99958555644055 & 0.00082888711889816 & 0.00041444355944908 \tabularnewline
19 & 0.99985573752144 & 0.000288524957118729 & 0.000144262478559364 \tabularnewline
20 & 0.99966363981492 & 0.000672720370161743 & 0.000336360185080872 \tabularnewline
21 & 0.99918570367089 & 0.00162859265821895 & 0.000814296329109474 \tabularnewline
22 & 0.999616692418242 & 0.000766615163516541 & 0.000383307581758271 \tabularnewline
23 & 0.99933038011247 & 0.00133923977505964 & 0.000669619887529818 \tabularnewline
24 & 0.998380241037703 & 0.00323951792459501 & 0.00161975896229750 \tabularnewline
25 & 0.99787632070473 & 0.00424735859054138 & 0.00212367929527069 \tabularnewline
26 & 0.995839830735828 & 0.00832033852834286 & 0.00416016926417143 \tabularnewline
27 & 0.991413653250918 & 0.0171726934981637 & 0.00858634674908183 \tabularnewline
28 & 0.9948617924418 & 0.0102764151163989 & 0.00513820755819944 \tabularnewline
29 & 0.990856626076422 & 0.0182867478471555 & 0.00914337392357775 \tabularnewline
30 & 0.98298102604048 & 0.0340379479190416 & 0.0170189739595208 \tabularnewline
31 & 0.973522856677194 & 0.0529542866456121 & 0.0264771433228061 \tabularnewline
32 & 0.95393786258523 & 0.0921242748295378 & 0.0460621374147689 \tabularnewline
33 & 0.925210216701095 & 0.149579566597810 & 0.0747897832989052 \tabularnewline
34 & 0.886420693410233 & 0.227158613179535 & 0.113579306589767 \tabularnewline
35 & 0.826361590979276 & 0.347276818041448 & 0.173638409020724 \tabularnewline
36 & 0.762346981435996 & 0.475306037128008 & 0.237653018564004 \tabularnewline
37 & 0.686670022293673 & 0.626659955412654 & 0.313329977706327 \tabularnewline
38 & 0.738298716916327 & 0.523402566167345 & 0.261701283083673 \tabularnewline
39 & 0.701863181357667 & 0.596273637284667 & 0.298136818642333 \tabularnewline
40 & 0.751805375567711 & 0.496389248864578 & 0.248194624432289 \tabularnewline
41 & 0.91947101901493 & 0.161057961970139 & 0.0805289809850693 \tabularnewline
42 & 0.83215515953407 & 0.335689680931858 & 0.167844840465929 \tabularnewline
43 & 0.688813454480907 & 0.622373091038185 & 0.311186545519092 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58432&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]17[/C][C]0.999618847419858[/C][C]0.000762305160283137[/C][C]0.000381152580141569[/C][/ROW]
[ROW][C]18[/C][C]0.99958555644055[/C][C]0.00082888711889816[/C][C]0.00041444355944908[/C][/ROW]
[ROW][C]19[/C][C]0.99985573752144[/C][C]0.000288524957118729[/C][C]0.000144262478559364[/C][/ROW]
[ROW][C]20[/C][C]0.99966363981492[/C][C]0.000672720370161743[/C][C]0.000336360185080872[/C][/ROW]
[ROW][C]21[/C][C]0.99918570367089[/C][C]0.00162859265821895[/C][C]0.000814296329109474[/C][/ROW]
[ROW][C]22[/C][C]0.999616692418242[/C][C]0.000766615163516541[/C][C]0.000383307581758271[/C][/ROW]
[ROW][C]23[/C][C]0.99933038011247[/C][C]0.00133923977505964[/C][C]0.000669619887529818[/C][/ROW]
[ROW][C]24[/C][C]0.998380241037703[/C][C]0.00323951792459501[/C][C]0.00161975896229750[/C][/ROW]
[ROW][C]25[/C][C]0.99787632070473[/C][C]0.00424735859054138[/C][C]0.00212367929527069[/C][/ROW]
[ROW][C]26[/C][C]0.995839830735828[/C][C]0.00832033852834286[/C][C]0.00416016926417143[/C][/ROW]
[ROW][C]27[/C][C]0.991413653250918[/C][C]0.0171726934981637[/C][C]0.00858634674908183[/C][/ROW]
[ROW][C]28[/C][C]0.9948617924418[/C][C]0.0102764151163989[/C][C]0.00513820755819944[/C][/ROW]
[ROW][C]29[/C][C]0.990856626076422[/C][C]0.0182867478471555[/C][C]0.00914337392357775[/C][/ROW]
[ROW][C]30[/C][C]0.98298102604048[/C][C]0.0340379479190416[/C][C]0.0170189739595208[/C][/ROW]
[ROW][C]31[/C][C]0.973522856677194[/C][C]0.0529542866456121[/C][C]0.0264771433228061[/C][/ROW]
[ROW][C]32[/C][C]0.95393786258523[/C][C]0.0921242748295378[/C][C]0.0460621374147689[/C][/ROW]
[ROW][C]33[/C][C]0.925210216701095[/C][C]0.149579566597810[/C][C]0.0747897832989052[/C][/ROW]
[ROW][C]34[/C][C]0.886420693410233[/C][C]0.227158613179535[/C][C]0.113579306589767[/C][/ROW]
[ROW][C]35[/C][C]0.826361590979276[/C][C]0.347276818041448[/C][C]0.173638409020724[/C][/ROW]
[ROW][C]36[/C][C]0.762346981435996[/C][C]0.475306037128008[/C][C]0.237653018564004[/C][/ROW]
[ROW][C]37[/C][C]0.686670022293673[/C][C]0.626659955412654[/C][C]0.313329977706327[/C][/ROW]
[ROW][C]38[/C][C]0.738298716916327[/C][C]0.523402566167345[/C][C]0.261701283083673[/C][/ROW]
[ROW][C]39[/C][C]0.701863181357667[/C][C]0.596273637284667[/C][C]0.298136818642333[/C][/ROW]
[ROW][C]40[/C][C]0.751805375567711[/C][C]0.496389248864578[/C][C]0.248194624432289[/C][/ROW]
[ROW][C]41[/C][C]0.91947101901493[/C][C]0.161057961970139[/C][C]0.0805289809850693[/C][/ROW]
[ROW][C]42[/C][C]0.83215515953407[/C][C]0.335689680931858[/C][C]0.167844840465929[/C][/ROW]
[ROW][C]43[/C][C]0.688813454480907[/C][C]0.622373091038185[/C][C]0.311186545519092[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58432&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58432&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
170.9996188474198580.0007623051602831370.000381152580141569
180.999585556440550.000828887118898160.00041444355944908
190.999855737521440.0002885249571187290.000144262478559364
200.999663639814920.0006727203701617430.000336360185080872
210.999185703670890.001628592658218950.000814296329109474
220.9996166924182420.0007666151635165410.000383307581758271
230.999330380112470.001339239775059640.000669619887529818
240.9983802410377030.003239517924595010.00161975896229750
250.997876320704730.004247358590541380.00212367929527069
260.9958398307358280.008320338528342860.00416016926417143
270.9914136532509180.01717269349816370.00858634674908183
280.99486179244180.01027641511639890.00513820755819944
290.9908566260764220.01828674784715550.00914337392357775
300.982981026040480.03403794791904160.0170189739595208
310.9735228566771940.05295428664561210.0264771433228061
320.953937862585230.09212427482953780.0460621374147689
330.9252102167010950.1495795665978100.0747897832989052
340.8864206934102330.2271586131795350.113579306589767
350.8263615909792760.3472768180414480.173638409020724
360.7623469814359960.4753060371280080.237653018564004
370.6866700222936730.6266599554126540.313329977706327
380.7382987169163270.5234025661673450.261701283083673
390.7018631813576670.5962736372846670.298136818642333
400.7518053755677110.4963892488645780.248194624432289
410.919471019014930.1610579619701390.0805289809850693
420.832155159534070.3356896809318580.167844840465929
430.6888134544809070.6223730910381850.311186545519092







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level100.370370370370370NOK
5% type I error level140.518518518518518NOK
10% type I error level160.592592592592593NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58432&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 level100.370370370370370NOK
5% type I error level140.518518518518518NOK
10% type I error level160.592592592592593NOK



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