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 10:17:46 -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/t12587376636vbfyqaamgwxfg8.htm/, Retrieved Fri, 19 Apr 2024 06:05:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58347, Retrieved Fri, 19 Apr 2024 06:05:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact122
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [] [2009-11-17 17:43:04] [78d53abea600e0825abda35dbfc51d4c]
- R  D    [Multiple Regression] [] [2009-11-20 17:17:46] [c5f9f441970441f2f938cd843072158d] [Current]
Feedback Forum

Post a new message
Dataseries X:
2253	14.9
2218	18.6
1855	19.1
2187	18.8
1852	18.2
1570	18
1851	19
1954	20.7
1828	21.2
2251	20.7
2277	19.6
2085	18.6
2282	18.7
2266	23.8
1878	24.9
2267	24.8
2069	23.8
1746	22.3
2299	21.7
2360	20.7
2214	19.7
2825	18.4
2355	17.4
2333	17
3016	18
2155	23.8
2172	25.5
2150	25.6
2533	23.7
2058	22
2160	21.3
2260	20.7
2498	20.4
2695	20.3
2799	20.4
2946	19.8
2930	19.5
2318	23.1
2540	23.5
2570	23.5
2669	22.9
2450	21.9
2842	21.5
3440	20.5
2678	20.2
2981	19.4
2260	19.2
2844	18.8
2546	18.8
2456	22.6
2295	23.3
2379	23
2479	21.4
2057	19.9
2280	18.8
2351	18.6
2276	18.4
2548	18.6
2311	19.9
2201	19.2




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58347&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
wngb[t] = + 1681.39441980409 + 25.6802893156051`<25`[t] + 239.567189564934M1[t] -205.134354973182M2[t] -371.241281120370M3[t] -214.467917951953M4[t] -184.300659681619M5[t] -507.106189838661M6[t] -196.569557234498M7[t] -13.2281651345211M8[t] -189.659561461919M9[t] + 175.472311646427M10[t] -88.4135078262194M11[t] + 8.90827154945574t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
wngb[t] =  +  1681.39441980409 +  25.6802893156051`<25`[t] +  239.567189564934M1[t] -205.134354973182M2[t] -371.241281120370M3[t] -214.467917951953M4[t] -184.300659681619M5[t] -507.106189838661M6[t] -196.569557234498M7[t] -13.2281651345211M8[t] -189.659561461919M9[t] +  175.472311646427M10[t] -88.4135078262194M11[t] +  8.90827154945574t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58347&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]wngb[t] =  +  1681.39441980409 +  25.6802893156051`<25`[t] +  239.567189564934M1[t] -205.134354973182M2[t] -371.241281120370M3[t] -214.467917951953M4[t] -184.300659681619M5[t] -507.106189838661M6[t] -196.569557234498M7[t] -13.2281651345211M8[t] -189.659561461919M9[t] +  175.472311646427M10[t] -88.4135078262194M11[t] +  8.90827154945574t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58347&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58347&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
wngb[t] = + 1681.39441980409 + 25.6802893156051`<25`[t] + 239.567189564934M1[t] -205.134354973182M2[t] -371.241281120370M3[t] -214.467917951953M4[t] -184.300659681619M5[t] -507.106189838661M6[t] -196.569557234498M7[t] -13.2281651345211M8[t] -189.659561461919M9[t] + 175.472311646427M10[t] -88.4135078262194M11[t] + 8.90827154945574t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1681.39441980409447.0848963.76080.0004770.000239
`<25`25.680289315605123.5782621.08920.281760.14088
M1239.567189564934179.3709451.33560.1882520.094126
M2-205.134354973182201.199127-1.01960.313270.156635
M3-371.241281120370211.048258-1.7590.0852220.042611
M4-214.467917951953209.10242-1.02570.3104160.155208
M5-184.300659681619196.018195-0.94020.3520150.176007
M6-507.106189838661185.82202-2.7290.0089690.004485
M7-196.569557234498183.297603-1.07240.2891320.144566
M8-13.2281651345211181.885959-0.07270.9423380.471169
M9-189.659561461919180.497621-1.05080.2988580.149429
M10175.472311646427178.651980.98220.3311380.165569
M11-88.4135078262194178.147494-0.49630.622050.311025
t8.908271549455742.1944014.05950.0001899.5e-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) & 1681.39441980409 & 447.084896 & 3.7608 & 0.000477 & 0.000239 \tabularnewline
`<25` & 25.6802893156051 & 23.578262 & 1.0892 & 0.28176 & 0.14088 \tabularnewline
M1 & 239.567189564934 & 179.370945 & 1.3356 & 0.188252 & 0.094126 \tabularnewline
M2 & -205.134354973182 & 201.199127 & -1.0196 & 0.31327 & 0.156635 \tabularnewline
M3 & -371.241281120370 & 211.048258 & -1.759 & 0.085222 & 0.042611 \tabularnewline
M4 & -214.467917951953 & 209.10242 & -1.0257 & 0.310416 & 0.155208 \tabularnewline
M5 & -184.300659681619 & 196.018195 & -0.9402 & 0.352015 & 0.176007 \tabularnewline
M6 & -507.106189838661 & 185.82202 & -2.729 & 0.008969 & 0.004485 \tabularnewline
M7 & -196.569557234498 & 183.297603 & -1.0724 & 0.289132 & 0.144566 \tabularnewline
M8 & -13.2281651345211 & 181.885959 & -0.0727 & 0.942338 & 0.471169 \tabularnewline
M9 & -189.659561461919 & 180.497621 & -1.0508 & 0.298858 & 0.149429 \tabularnewline
M10 & 175.472311646427 & 178.65198 & 0.9822 & 0.331138 & 0.165569 \tabularnewline
M11 & -88.4135078262194 & 178.147494 & -0.4963 & 0.62205 & 0.311025 \tabularnewline
t & 8.90827154945574 & 2.194401 & 4.0595 & 0.000189 & 9.5e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58347&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]1681.39441980409[/C][C]447.084896[/C][C]3.7608[/C][C]0.000477[/C][C]0.000239[/C][/ROW]
[ROW][C]`<25`[/C][C]25.6802893156051[/C][C]23.578262[/C][C]1.0892[/C][C]0.28176[/C][C]0.14088[/C][/ROW]
[ROW][C]M1[/C][C]239.567189564934[/C][C]179.370945[/C][C]1.3356[/C][C]0.188252[/C][C]0.094126[/C][/ROW]
[ROW][C]M2[/C][C]-205.134354973182[/C][C]201.199127[/C][C]-1.0196[/C][C]0.31327[/C][C]0.156635[/C][/ROW]
[ROW][C]M3[/C][C]-371.241281120370[/C][C]211.048258[/C][C]-1.759[/C][C]0.085222[/C][C]0.042611[/C][/ROW]
[ROW][C]M4[/C][C]-214.467917951953[/C][C]209.10242[/C][C]-1.0257[/C][C]0.310416[/C][C]0.155208[/C][/ROW]
[ROW][C]M5[/C][C]-184.300659681619[/C][C]196.018195[/C][C]-0.9402[/C][C]0.352015[/C][C]0.176007[/C][/ROW]
[ROW][C]M6[/C][C]-507.106189838661[/C][C]185.82202[/C][C]-2.729[/C][C]0.008969[/C][C]0.004485[/C][/ROW]
[ROW][C]M7[/C][C]-196.569557234498[/C][C]183.297603[/C][C]-1.0724[/C][C]0.289132[/C][C]0.144566[/C][/ROW]
[ROW][C]M8[/C][C]-13.2281651345211[/C][C]181.885959[/C][C]-0.0727[/C][C]0.942338[/C][C]0.471169[/C][/ROW]
[ROW][C]M9[/C][C]-189.659561461919[/C][C]180.497621[/C][C]-1.0508[/C][C]0.298858[/C][C]0.149429[/C][/ROW]
[ROW][C]M10[/C][C]175.472311646427[/C][C]178.65198[/C][C]0.9822[/C][C]0.331138[/C][C]0.165569[/C][/ROW]
[ROW][C]M11[/C][C]-88.4135078262194[/C][C]178.147494[/C][C]-0.4963[/C][C]0.62205[/C][C]0.311025[/C][/ROW]
[ROW][C]t[/C][C]8.90827154945574[/C][C]2.194401[/C][C]4.0595[/C][C]0.000189[/C][C]9.5e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58347&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58347&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)1681.39441980409447.0848963.76080.0004770.000239
`<25`25.680289315605123.5782621.08920.281760.14088
M1239.567189564934179.3709451.33560.1882520.094126
M2-205.134354973182201.199127-1.01960.313270.156635
M3-371.241281120370211.048258-1.7590.0852220.042611
M4-214.467917951953209.10242-1.02570.3104160.155208
M5-184.300659681619196.018195-0.94020.3520150.176007
M6-507.106189838661185.82202-2.7290.0089690.004485
M7-196.569557234498183.297603-1.07240.2891320.144566
M8-13.2281651345211181.885959-0.07270.9423380.471169
M9-189.659561461919180.497621-1.05080.2988580.149429
M10175.472311646427178.651980.98220.3311380.165569
M11-88.4135078262194178.147494-0.49630.622050.311025
t8.908271549455742.1944014.05950.0001899.5e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.705597659500331
R-squared0.497868057092345
Adjusted R-squared0.355961203661921
F-TEST (value)3.50841446383311
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.000797409462064635
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation280.638436043883
Sum Squared Residuals3622864.86211721

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.705597659500331 \tabularnewline
R-squared & 0.497868057092345 \tabularnewline
Adjusted R-squared & 0.355961203661921 \tabularnewline
F-TEST (value) & 3.50841446383311 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.000797409462064635 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 280.638436043883 \tabularnewline
Sum Squared Residuals & 3622864.86211721 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58347&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.705597659500331[/C][/ROW]
[ROW][C]R-squared[/C][C]0.497868057092345[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.355961203661921[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.50841446383311[/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]0.000797409462064635[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]280.638436043883[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3622864.86211721[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58347&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58347&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.705597659500331
R-squared0.497868057092345
Adjusted R-squared0.355961203661921
F-TEST (value)3.50841446383311
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.000797409462064635
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation280.638436043883
Sum Squared Residuals3622864.86211721







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
122532312.50619172101-59.506191721009
222181971.72998920007246.270010799925
318551827.3714792601427.628520739855
421871985.34902718334201.650972816664
518522009.01638341376-157.016383413763
615701689.98306694306-119.983066943056
718512035.10826041228-184.108260412278
819542271.01441589824-317.01441589824
918282116.3314357781-288.331435778101
1022512477.5314357781-226.531435778101
1122772194.3055696077482.6944303922565
1220852265.94705966781-180.947059667814
1322822516.99054971376-234.990549713764
1422662212.1667522346953.83324776531
1518782083.21641588412-205.216415884124
1622672246.3300216704420.6699783295644
1720692259.72526217462-190.725262174620
1817461907.30756959363-161.307569593627
1922992211.3443001578887.6556998421186
2023602377.91367449171-17.9136744917094
2122142184.7102603981629.2897396018383
2228252525.36602894568299.633971054322
2323552244.70819170688110.291808293119
2423332331.757855356311.24214464368536
2530162605.91360578631410.08639421369
2621552319.06601082816-164.066010828159
2721722205.52384806696-33.5238480669555
2821502373.77351171639-223.773511716389
2925332364.05649183653168.943508163471
3020582006.5027413924151.4972586075861
3121602307.97144302511-147.971443025108
3222602484.81293308518-224.812933085178
3324982309.58572151255188.414278487446
3426952681.0578372388013.9421627612039
3527992428.64831824717370.351681752835
3629462510.56192403348435.438075966522
3729302751.33329835319178.666701646814
3823182407.98906690070-89.9890669007047
3925402261.06252802921278.937471970786
4025702426.74416274709143.255837252913
4126692450.41151897751218.588481022486
4224502110.83397105432339.166028945678
4328422420.0067594817421.993240518302
4434402586.57613381553853.423866184474
4526782411.3489222429266.651077757098
4629812764.84483544822216.155164551780
4722602504.73122966191-244.731229661908
4828442591.78089331134252.219106688658
4925462840.25635442573-294.256354425731
5024562502.04818083637-46.0481808363711
5122952362.82572875956-67.8257287595621
5223792520.80327668275-141.803276682753
5324792518.79034359757-39.7903435975746
5420572166.37265101658-109.372651016581
5522802457.56923692303-177.569236923033
5623512644.68284270935-293.682842709345
5722762472.02366006828-196.023660068282
5825482851.19986258921-303.199862589206
5923112629.6066907763-318.606690776301
6022012708.95226763105-507.952267631052

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2253 & 2312.50619172101 & -59.506191721009 \tabularnewline
2 & 2218 & 1971.72998920007 & 246.270010799925 \tabularnewline
3 & 1855 & 1827.37147926014 & 27.628520739855 \tabularnewline
4 & 2187 & 1985.34902718334 & 201.650972816664 \tabularnewline
5 & 1852 & 2009.01638341376 & -157.016383413763 \tabularnewline
6 & 1570 & 1689.98306694306 & -119.983066943056 \tabularnewline
7 & 1851 & 2035.10826041228 & -184.108260412278 \tabularnewline
8 & 1954 & 2271.01441589824 & -317.01441589824 \tabularnewline
9 & 1828 & 2116.3314357781 & -288.331435778101 \tabularnewline
10 & 2251 & 2477.5314357781 & -226.531435778101 \tabularnewline
11 & 2277 & 2194.30556960774 & 82.6944303922565 \tabularnewline
12 & 2085 & 2265.94705966781 & -180.947059667814 \tabularnewline
13 & 2282 & 2516.99054971376 & -234.990549713764 \tabularnewline
14 & 2266 & 2212.16675223469 & 53.83324776531 \tabularnewline
15 & 1878 & 2083.21641588412 & -205.216415884124 \tabularnewline
16 & 2267 & 2246.33002167044 & 20.6699783295644 \tabularnewline
17 & 2069 & 2259.72526217462 & -190.725262174620 \tabularnewline
18 & 1746 & 1907.30756959363 & -161.307569593627 \tabularnewline
19 & 2299 & 2211.34430015788 & 87.6556998421186 \tabularnewline
20 & 2360 & 2377.91367449171 & -17.9136744917094 \tabularnewline
21 & 2214 & 2184.71026039816 & 29.2897396018383 \tabularnewline
22 & 2825 & 2525.36602894568 & 299.633971054322 \tabularnewline
23 & 2355 & 2244.70819170688 & 110.291808293119 \tabularnewline
24 & 2333 & 2331.75785535631 & 1.24214464368536 \tabularnewline
25 & 3016 & 2605.91360578631 & 410.08639421369 \tabularnewline
26 & 2155 & 2319.06601082816 & -164.066010828159 \tabularnewline
27 & 2172 & 2205.52384806696 & -33.5238480669555 \tabularnewline
28 & 2150 & 2373.77351171639 & -223.773511716389 \tabularnewline
29 & 2533 & 2364.05649183653 & 168.943508163471 \tabularnewline
30 & 2058 & 2006.50274139241 & 51.4972586075861 \tabularnewline
31 & 2160 & 2307.97144302511 & -147.971443025108 \tabularnewline
32 & 2260 & 2484.81293308518 & -224.812933085178 \tabularnewline
33 & 2498 & 2309.58572151255 & 188.414278487446 \tabularnewline
34 & 2695 & 2681.05783723880 & 13.9421627612039 \tabularnewline
35 & 2799 & 2428.64831824717 & 370.351681752835 \tabularnewline
36 & 2946 & 2510.56192403348 & 435.438075966522 \tabularnewline
37 & 2930 & 2751.33329835319 & 178.666701646814 \tabularnewline
38 & 2318 & 2407.98906690070 & -89.9890669007047 \tabularnewline
39 & 2540 & 2261.06252802921 & 278.937471970786 \tabularnewline
40 & 2570 & 2426.74416274709 & 143.255837252913 \tabularnewline
41 & 2669 & 2450.41151897751 & 218.588481022486 \tabularnewline
42 & 2450 & 2110.83397105432 & 339.166028945678 \tabularnewline
43 & 2842 & 2420.0067594817 & 421.993240518302 \tabularnewline
44 & 3440 & 2586.57613381553 & 853.423866184474 \tabularnewline
45 & 2678 & 2411.3489222429 & 266.651077757098 \tabularnewline
46 & 2981 & 2764.84483544822 & 216.155164551780 \tabularnewline
47 & 2260 & 2504.73122966191 & -244.731229661908 \tabularnewline
48 & 2844 & 2591.78089331134 & 252.219106688658 \tabularnewline
49 & 2546 & 2840.25635442573 & -294.256354425731 \tabularnewline
50 & 2456 & 2502.04818083637 & -46.0481808363711 \tabularnewline
51 & 2295 & 2362.82572875956 & -67.8257287595621 \tabularnewline
52 & 2379 & 2520.80327668275 & -141.803276682753 \tabularnewline
53 & 2479 & 2518.79034359757 & -39.7903435975746 \tabularnewline
54 & 2057 & 2166.37265101658 & -109.372651016581 \tabularnewline
55 & 2280 & 2457.56923692303 & -177.569236923033 \tabularnewline
56 & 2351 & 2644.68284270935 & -293.682842709345 \tabularnewline
57 & 2276 & 2472.02366006828 & -196.023660068282 \tabularnewline
58 & 2548 & 2851.19986258921 & -303.199862589206 \tabularnewline
59 & 2311 & 2629.6066907763 & -318.606690776301 \tabularnewline
60 & 2201 & 2708.95226763105 & -507.952267631052 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58347&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]2253[/C][C]2312.50619172101[/C][C]-59.506191721009[/C][/ROW]
[ROW][C]2[/C][C]2218[/C][C]1971.72998920007[/C][C]246.270010799925[/C][/ROW]
[ROW][C]3[/C][C]1855[/C][C]1827.37147926014[/C][C]27.628520739855[/C][/ROW]
[ROW][C]4[/C][C]2187[/C][C]1985.34902718334[/C][C]201.650972816664[/C][/ROW]
[ROW][C]5[/C][C]1852[/C][C]2009.01638341376[/C][C]-157.016383413763[/C][/ROW]
[ROW][C]6[/C][C]1570[/C][C]1689.98306694306[/C][C]-119.983066943056[/C][/ROW]
[ROW][C]7[/C][C]1851[/C][C]2035.10826041228[/C][C]-184.108260412278[/C][/ROW]
[ROW][C]8[/C][C]1954[/C][C]2271.01441589824[/C][C]-317.01441589824[/C][/ROW]
[ROW][C]9[/C][C]1828[/C][C]2116.3314357781[/C][C]-288.331435778101[/C][/ROW]
[ROW][C]10[/C][C]2251[/C][C]2477.5314357781[/C][C]-226.531435778101[/C][/ROW]
[ROW][C]11[/C][C]2277[/C][C]2194.30556960774[/C][C]82.6944303922565[/C][/ROW]
[ROW][C]12[/C][C]2085[/C][C]2265.94705966781[/C][C]-180.947059667814[/C][/ROW]
[ROW][C]13[/C][C]2282[/C][C]2516.99054971376[/C][C]-234.990549713764[/C][/ROW]
[ROW][C]14[/C][C]2266[/C][C]2212.16675223469[/C][C]53.83324776531[/C][/ROW]
[ROW][C]15[/C][C]1878[/C][C]2083.21641588412[/C][C]-205.216415884124[/C][/ROW]
[ROW][C]16[/C][C]2267[/C][C]2246.33002167044[/C][C]20.6699783295644[/C][/ROW]
[ROW][C]17[/C][C]2069[/C][C]2259.72526217462[/C][C]-190.725262174620[/C][/ROW]
[ROW][C]18[/C][C]1746[/C][C]1907.30756959363[/C][C]-161.307569593627[/C][/ROW]
[ROW][C]19[/C][C]2299[/C][C]2211.34430015788[/C][C]87.6556998421186[/C][/ROW]
[ROW][C]20[/C][C]2360[/C][C]2377.91367449171[/C][C]-17.9136744917094[/C][/ROW]
[ROW][C]21[/C][C]2214[/C][C]2184.71026039816[/C][C]29.2897396018383[/C][/ROW]
[ROW][C]22[/C][C]2825[/C][C]2525.36602894568[/C][C]299.633971054322[/C][/ROW]
[ROW][C]23[/C][C]2355[/C][C]2244.70819170688[/C][C]110.291808293119[/C][/ROW]
[ROW][C]24[/C][C]2333[/C][C]2331.75785535631[/C][C]1.24214464368536[/C][/ROW]
[ROW][C]25[/C][C]3016[/C][C]2605.91360578631[/C][C]410.08639421369[/C][/ROW]
[ROW][C]26[/C][C]2155[/C][C]2319.06601082816[/C][C]-164.066010828159[/C][/ROW]
[ROW][C]27[/C][C]2172[/C][C]2205.52384806696[/C][C]-33.5238480669555[/C][/ROW]
[ROW][C]28[/C][C]2150[/C][C]2373.77351171639[/C][C]-223.773511716389[/C][/ROW]
[ROW][C]29[/C][C]2533[/C][C]2364.05649183653[/C][C]168.943508163471[/C][/ROW]
[ROW][C]30[/C][C]2058[/C][C]2006.50274139241[/C][C]51.4972586075861[/C][/ROW]
[ROW][C]31[/C][C]2160[/C][C]2307.97144302511[/C][C]-147.971443025108[/C][/ROW]
[ROW][C]32[/C][C]2260[/C][C]2484.81293308518[/C][C]-224.812933085178[/C][/ROW]
[ROW][C]33[/C][C]2498[/C][C]2309.58572151255[/C][C]188.414278487446[/C][/ROW]
[ROW][C]34[/C][C]2695[/C][C]2681.05783723880[/C][C]13.9421627612039[/C][/ROW]
[ROW][C]35[/C][C]2799[/C][C]2428.64831824717[/C][C]370.351681752835[/C][/ROW]
[ROW][C]36[/C][C]2946[/C][C]2510.56192403348[/C][C]435.438075966522[/C][/ROW]
[ROW][C]37[/C][C]2930[/C][C]2751.33329835319[/C][C]178.666701646814[/C][/ROW]
[ROW][C]38[/C][C]2318[/C][C]2407.98906690070[/C][C]-89.9890669007047[/C][/ROW]
[ROW][C]39[/C][C]2540[/C][C]2261.06252802921[/C][C]278.937471970786[/C][/ROW]
[ROW][C]40[/C][C]2570[/C][C]2426.74416274709[/C][C]143.255837252913[/C][/ROW]
[ROW][C]41[/C][C]2669[/C][C]2450.41151897751[/C][C]218.588481022486[/C][/ROW]
[ROW][C]42[/C][C]2450[/C][C]2110.83397105432[/C][C]339.166028945678[/C][/ROW]
[ROW][C]43[/C][C]2842[/C][C]2420.0067594817[/C][C]421.993240518302[/C][/ROW]
[ROW][C]44[/C][C]3440[/C][C]2586.57613381553[/C][C]853.423866184474[/C][/ROW]
[ROW][C]45[/C][C]2678[/C][C]2411.3489222429[/C][C]266.651077757098[/C][/ROW]
[ROW][C]46[/C][C]2981[/C][C]2764.84483544822[/C][C]216.155164551780[/C][/ROW]
[ROW][C]47[/C][C]2260[/C][C]2504.73122966191[/C][C]-244.731229661908[/C][/ROW]
[ROW][C]48[/C][C]2844[/C][C]2591.78089331134[/C][C]252.219106688658[/C][/ROW]
[ROW][C]49[/C][C]2546[/C][C]2840.25635442573[/C][C]-294.256354425731[/C][/ROW]
[ROW][C]50[/C][C]2456[/C][C]2502.04818083637[/C][C]-46.0481808363711[/C][/ROW]
[ROW][C]51[/C][C]2295[/C][C]2362.82572875956[/C][C]-67.8257287595621[/C][/ROW]
[ROW][C]52[/C][C]2379[/C][C]2520.80327668275[/C][C]-141.803276682753[/C][/ROW]
[ROW][C]53[/C][C]2479[/C][C]2518.79034359757[/C][C]-39.7903435975746[/C][/ROW]
[ROW][C]54[/C][C]2057[/C][C]2166.37265101658[/C][C]-109.372651016581[/C][/ROW]
[ROW][C]55[/C][C]2280[/C][C]2457.56923692303[/C][C]-177.569236923033[/C][/ROW]
[ROW][C]56[/C][C]2351[/C][C]2644.68284270935[/C][C]-293.682842709345[/C][/ROW]
[ROW][C]57[/C][C]2276[/C][C]2472.02366006828[/C][C]-196.023660068282[/C][/ROW]
[ROW][C]58[/C][C]2548[/C][C]2851.19986258921[/C][C]-303.199862589206[/C][/ROW]
[ROW][C]59[/C][C]2311[/C][C]2629.6066907763[/C][C]-318.606690776301[/C][/ROW]
[ROW][C]60[/C][C]2201[/C][C]2708.95226763105[/C][C]-507.952267631052[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58347&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58347&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
122532312.50619172101-59.506191721009
222181971.72998920007246.270010799925
318551827.3714792601427.628520739855
421871985.34902718334201.650972816664
518522009.01638341376-157.016383413763
615701689.98306694306-119.983066943056
718512035.10826041228-184.108260412278
819542271.01441589824-317.01441589824
918282116.3314357781-288.331435778101
1022512477.5314357781-226.531435778101
1122772194.3055696077482.6944303922565
1220852265.94705966781-180.947059667814
1322822516.99054971376-234.990549713764
1422662212.1667522346953.83324776531
1518782083.21641588412-205.216415884124
1622672246.3300216704420.6699783295644
1720692259.72526217462-190.725262174620
1817461907.30756959363-161.307569593627
1922992211.3443001578887.6556998421186
2023602377.91367449171-17.9136744917094
2122142184.7102603981629.2897396018383
2228252525.36602894568299.633971054322
2323552244.70819170688110.291808293119
2423332331.757855356311.24214464368536
2530162605.91360578631410.08639421369
2621552319.06601082816-164.066010828159
2721722205.52384806696-33.5238480669555
2821502373.77351171639-223.773511716389
2925332364.05649183653168.943508163471
3020582006.5027413924151.4972586075861
3121602307.97144302511-147.971443025108
3222602484.81293308518-224.812933085178
3324982309.58572151255188.414278487446
3426952681.0578372388013.9421627612039
3527992428.64831824717370.351681752835
3629462510.56192403348435.438075966522
3729302751.33329835319178.666701646814
3823182407.98906690070-89.9890669007047
3925402261.06252802921278.937471970786
4025702426.74416274709143.255837252913
4126692450.41151897751218.588481022486
4224502110.83397105432339.166028945678
4328422420.0067594817421.993240518302
4434402586.57613381553853.423866184474
4526782411.3489222429266.651077757098
4629812764.84483544822216.155164551780
4722602504.73122966191-244.731229661908
4828442591.78089331134252.219106688658
4925462840.25635442573-294.256354425731
5024562502.04818083637-46.0481808363711
5122952362.82572875956-67.8257287595621
5223792520.80327668275-141.803276682753
5324792518.79034359757-39.7903435975746
5420572166.37265101658-109.372651016581
5522802457.56923692303-177.569236923033
5623512644.68284270935-293.682842709345
5722762472.02366006828-196.023660068282
5825482851.19986258921-303.199862589206
5923112629.6066907763-318.606690776301
6022012708.95226763105-507.952267631052







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.01227146846400870.02454293692801740.987728531535991
180.004675626087892180.009351252175784350.995324373912108
190.007307772243414250.01461554448682850.992692227756586
200.002383981472755340.004767962945510670.997616018527245
210.0008932019194873990.001786403838974800.999106798080513
220.0002559738403573650.000511947680714730.999744026159643
230.002022145125795580.004044290251591170.997977854874204
240.0009001603102088330.001800320620417670.999099839689791
250.002004394624157340.004008789248314690.997995605375843
260.01168932764505630.02337865529011260.988310672354944
270.006822412702539310.01364482540507860.99317758729746
280.01491919012771350.0298383802554270.985080809872287
290.01342782467625660.02685564935251320.986572175323743
300.008648281092833260.01729656218566650.991351718907167
310.01797971229404920.03595942458809840.98202028770595
320.1483374226365360.2966748452730730.851662577363464
330.1534668593549440.3069337187098880.846533140645056
340.3133359117942540.6266718235885080.686664088205746
350.2499999854977520.4999999709955030.750000014502249
360.2683081608986790.5366163217973580.73169183910132
370.1885217129882260.3770434259764520.811478287011774
380.3169947316096510.6339894632193020.683005268390349
390.2273747267268450.4547494534536910.772625273273154
400.1666818835243000.3333637670486000.8333181164757
410.1567952552714000.3135905105427990.8432047447286
420.1243098534243190.2486197068486380.875690146575681
430.1040586994305300.2081173988610600.89594130056947

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0122714684640087 & 0.0245429369280174 & 0.987728531535991 \tabularnewline
18 & 0.00467562608789218 & 0.00935125217578435 & 0.995324373912108 \tabularnewline
19 & 0.00730777224341425 & 0.0146155444868285 & 0.992692227756586 \tabularnewline
20 & 0.00238398147275534 & 0.00476796294551067 & 0.997616018527245 \tabularnewline
21 & 0.000893201919487399 & 0.00178640383897480 & 0.999106798080513 \tabularnewline
22 & 0.000255973840357365 & 0.00051194768071473 & 0.999744026159643 \tabularnewline
23 & 0.00202214512579558 & 0.00404429025159117 & 0.997977854874204 \tabularnewline
24 & 0.000900160310208833 & 0.00180032062041767 & 0.999099839689791 \tabularnewline
25 & 0.00200439462415734 & 0.00400878924831469 & 0.997995605375843 \tabularnewline
26 & 0.0116893276450563 & 0.0233786552901126 & 0.988310672354944 \tabularnewline
27 & 0.00682241270253931 & 0.0136448254050786 & 0.99317758729746 \tabularnewline
28 & 0.0149191901277135 & 0.029838380255427 & 0.985080809872287 \tabularnewline
29 & 0.0134278246762566 & 0.0268556493525132 & 0.986572175323743 \tabularnewline
30 & 0.00864828109283326 & 0.0172965621856665 & 0.991351718907167 \tabularnewline
31 & 0.0179797122940492 & 0.0359594245880984 & 0.98202028770595 \tabularnewline
32 & 0.148337422636536 & 0.296674845273073 & 0.851662577363464 \tabularnewline
33 & 0.153466859354944 & 0.306933718709888 & 0.846533140645056 \tabularnewline
34 & 0.313335911794254 & 0.626671823588508 & 0.686664088205746 \tabularnewline
35 & 0.249999985497752 & 0.499999970995503 & 0.750000014502249 \tabularnewline
36 & 0.268308160898679 & 0.536616321797358 & 0.73169183910132 \tabularnewline
37 & 0.188521712988226 & 0.377043425976452 & 0.811478287011774 \tabularnewline
38 & 0.316994731609651 & 0.633989463219302 & 0.683005268390349 \tabularnewline
39 & 0.227374726726845 & 0.454749453453691 & 0.772625273273154 \tabularnewline
40 & 0.166681883524300 & 0.333363767048600 & 0.8333181164757 \tabularnewline
41 & 0.156795255271400 & 0.313590510542799 & 0.8432047447286 \tabularnewline
42 & 0.124309853424319 & 0.248619706848638 & 0.875690146575681 \tabularnewline
43 & 0.104058699430530 & 0.208117398861060 & 0.89594130056947 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58347&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.0122714684640087[/C][C]0.0245429369280174[/C][C]0.987728531535991[/C][/ROW]
[ROW][C]18[/C][C]0.00467562608789218[/C][C]0.00935125217578435[/C][C]0.995324373912108[/C][/ROW]
[ROW][C]19[/C][C]0.00730777224341425[/C][C]0.0146155444868285[/C][C]0.992692227756586[/C][/ROW]
[ROW][C]20[/C][C]0.00238398147275534[/C][C]0.00476796294551067[/C][C]0.997616018527245[/C][/ROW]
[ROW][C]21[/C][C]0.000893201919487399[/C][C]0.00178640383897480[/C][C]0.999106798080513[/C][/ROW]
[ROW][C]22[/C][C]0.000255973840357365[/C][C]0.00051194768071473[/C][C]0.999744026159643[/C][/ROW]
[ROW][C]23[/C][C]0.00202214512579558[/C][C]0.00404429025159117[/C][C]0.997977854874204[/C][/ROW]
[ROW][C]24[/C][C]0.000900160310208833[/C][C]0.00180032062041767[/C][C]0.999099839689791[/C][/ROW]
[ROW][C]25[/C][C]0.00200439462415734[/C][C]0.00400878924831469[/C][C]0.997995605375843[/C][/ROW]
[ROW][C]26[/C][C]0.0116893276450563[/C][C]0.0233786552901126[/C][C]0.988310672354944[/C][/ROW]
[ROW][C]27[/C][C]0.00682241270253931[/C][C]0.0136448254050786[/C][C]0.99317758729746[/C][/ROW]
[ROW][C]28[/C][C]0.0149191901277135[/C][C]0.029838380255427[/C][C]0.985080809872287[/C][/ROW]
[ROW][C]29[/C][C]0.0134278246762566[/C][C]0.0268556493525132[/C][C]0.986572175323743[/C][/ROW]
[ROW][C]30[/C][C]0.00864828109283326[/C][C]0.0172965621856665[/C][C]0.991351718907167[/C][/ROW]
[ROW][C]31[/C][C]0.0179797122940492[/C][C]0.0359594245880984[/C][C]0.98202028770595[/C][/ROW]
[ROW][C]32[/C][C]0.148337422636536[/C][C]0.296674845273073[/C][C]0.851662577363464[/C][/ROW]
[ROW][C]33[/C][C]0.153466859354944[/C][C]0.306933718709888[/C][C]0.846533140645056[/C][/ROW]
[ROW][C]34[/C][C]0.313335911794254[/C][C]0.626671823588508[/C][C]0.686664088205746[/C][/ROW]
[ROW][C]35[/C][C]0.249999985497752[/C][C]0.499999970995503[/C][C]0.750000014502249[/C][/ROW]
[ROW][C]36[/C][C]0.268308160898679[/C][C]0.536616321797358[/C][C]0.73169183910132[/C][/ROW]
[ROW][C]37[/C][C]0.188521712988226[/C][C]0.377043425976452[/C][C]0.811478287011774[/C][/ROW]
[ROW][C]38[/C][C]0.316994731609651[/C][C]0.633989463219302[/C][C]0.683005268390349[/C][/ROW]
[ROW][C]39[/C][C]0.227374726726845[/C][C]0.454749453453691[/C][C]0.772625273273154[/C][/ROW]
[ROW][C]40[/C][C]0.166681883524300[/C][C]0.333363767048600[/C][C]0.8333181164757[/C][/ROW]
[ROW][C]41[/C][C]0.156795255271400[/C][C]0.313590510542799[/C][C]0.8432047447286[/C][/ROW]
[ROW][C]42[/C][C]0.124309853424319[/C][C]0.248619706848638[/C][C]0.875690146575681[/C][/ROW]
[ROW][C]43[/C][C]0.104058699430530[/C][C]0.208117398861060[/C][C]0.89594130056947[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58347&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58347&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.01227146846400870.02454293692801740.987728531535991
180.004675626087892180.009351252175784350.995324373912108
190.007307772243414250.01461554448682850.992692227756586
200.002383981472755340.004767962945510670.997616018527245
210.0008932019194873990.001786403838974800.999106798080513
220.0002559738403573650.000511947680714730.999744026159643
230.002022145125795580.004044290251591170.997977854874204
240.0009001603102088330.001800320620417670.999099839689791
250.002004394624157340.004008789248314690.997995605375843
260.01168932764505630.02337865529011260.988310672354944
270.006822412702539310.01364482540507860.99317758729746
280.01491919012771350.0298383802554270.985080809872287
290.01342782467625660.02685564935251320.986572175323743
300.008648281092833260.01729656218566650.991351718907167
310.01797971229404920.03595942458809840.98202028770595
320.1483374226365360.2966748452730730.851662577363464
330.1534668593549440.3069337187098880.846533140645056
340.3133359117942540.6266718235885080.686664088205746
350.2499999854977520.4999999709955030.750000014502249
360.2683081608986790.5366163217973580.73169183910132
370.1885217129882260.3770434259764520.811478287011774
380.3169947316096510.6339894632193020.683005268390349
390.2273747267268450.4547494534536910.772625273273154
400.1666818835243000.3333637670486000.8333181164757
410.1567952552714000.3135905105427990.8432047447286
420.1243098534243190.2486197068486380.875690146575681
430.1040586994305300.2081173988610600.89594130056947







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level70.259259259259259NOK
5% type I error level150.555555555555556NOK
10% type I error level150.555555555555556NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58347&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 level70.259259259259259NOK
5% type I error level150.555555555555556NOK
10% type I error level150.555555555555556NOK



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