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 09:39:27 -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/t1258735261q6lw5v2ls5ce22b.htm/, Retrieved Wed, 24 Apr 2024 22:20:29 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58315, Retrieved Wed, 24 Apr 2024 22:20:29 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact137
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [] [2009-11-17 17:31:01] [78d53abea600e0825abda35dbfc51d4c]
- R  D    [Multiple Regression] [] [2009-11-20 16:39:27] [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=58315&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=58315&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58315&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] = + 1588.51070846361 + 47.8206258852458`<25`[t] + 157.074438119669M1[t] -376.136315775409M2[t] -552.818466554426M3[t] -384.479991448196M4[t] -320.164477939016M5[t] -607.936139394426M6[t] -280.520714075738M7[t] -83.4001763809834M8[t] -245.166813650820M9[t] + 139.943499291803M10[t] -111.048788048852M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
wngb[t] =  +  1588.51070846361 +  47.8206258852458`<25`[t] +  157.074438119669M1[t] -376.136315775409M2[t] -552.818466554426M3[t] -384.479991448196M4[t] -320.164477939016M5[t] -607.936139394426M6[t] -280.520714075738M7[t] -83.4001763809834M8[t] -245.166813650820M9[t] +  139.943499291803M10[t] -111.048788048852M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58315&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]wngb[t] =  +  1588.51070846361 +  47.8206258852458`<25`[t] +  157.074438119669M1[t] -376.136315775409M2[t] -552.818466554426M3[t] -384.479991448196M4[t] -320.164477939016M5[t] -607.936139394426M6[t] -280.520714075738M7[t] -83.4001763809834M8[t] -245.166813650820M9[t] +  139.943499291803M10[t] -111.048788048852M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58315&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58315&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] = + 1588.51070846361 + 47.8206258852458`<25`[t] + 157.074438119669M1[t] -376.136315775409M2[t] -552.818466554426M3[t] -384.479991448196M4[t] -320.164477939016M5[t] -607.936139394426M6[t] -280.520714075738M7[t] -83.4001763809834M8[t] -245.166813650820M9[t] + 139.943499291803M10[t] -111.048788048852M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1588.51070846361514.8038783.08570.0033990.0017
`<25`47.820625885245826.447971.80810.0769920.038496
M1157.074438119669205.4794520.76440.4484330.224216
M2-376.136315775409226.837256-1.65820.1039420.051971
M3-552.818466554426237.806522-2.32470.0244610.01223
M4-384.479991448196236.205694-1.62770.1102680.055134
M5-320.164477939016222.686254-1.43770.1571340.078567
M6-607.936139394426212.326307-2.86320.0062470.003123
M7-280.520714075738209.988888-1.33590.188020.09401
M8-83.4001763809834208.761452-0.39950.6913350.345667
M9-245.166813650820207.511926-1.18150.2433640.121682
M10139.943499291803205.7346090.68020.4997060.249853
M11-111.048788048852205.299631-0.54090.5911240.295562

\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) & 1588.51070846361 & 514.803878 & 3.0857 & 0.003399 & 0.0017 \tabularnewline
`<25` & 47.8206258852458 & 26.44797 & 1.8081 & 0.076992 & 0.038496 \tabularnewline
M1 & 157.074438119669 & 205.479452 & 0.7644 & 0.448433 & 0.224216 \tabularnewline
M2 & -376.136315775409 & 226.837256 & -1.6582 & 0.103942 & 0.051971 \tabularnewline
M3 & -552.818466554426 & 237.806522 & -2.3247 & 0.024461 & 0.01223 \tabularnewline
M4 & -384.479991448196 & 236.205694 & -1.6277 & 0.110268 & 0.055134 \tabularnewline
M5 & -320.164477939016 & 222.686254 & -1.4377 & 0.157134 & 0.078567 \tabularnewline
M6 & -607.936139394426 & 212.326307 & -2.8632 & 0.006247 & 0.003123 \tabularnewline
M7 & -280.520714075738 & 209.988888 & -1.3359 & 0.18802 & 0.09401 \tabularnewline
M8 & -83.4001763809834 & 208.761452 & -0.3995 & 0.691335 & 0.345667 \tabularnewline
M9 & -245.166813650820 & 207.511926 & -1.1815 & 0.243364 & 0.121682 \tabularnewline
M10 & 139.943499291803 & 205.734609 & 0.6802 & 0.499706 & 0.249853 \tabularnewline
M11 & -111.048788048852 & 205.299631 & -0.5409 & 0.591124 & 0.295562 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58315&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]1588.51070846361[/C][C]514.803878[/C][C]3.0857[/C][C]0.003399[/C][C]0.0017[/C][/ROW]
[ROW][C]`<25`[/C][C]47.8206258852458[/C][C]26.44797[/C][C]1.8081[/C][C]0.076992[/C][C]0.038496[/C][/ROW]
[ROW][C]M1[/C][C]157.074438119669[/C][C]205.479452[/C][C]0.7644[/C][C]0.448433[/C][C]0.224216[/C][/ROW]
[ROW][C]M2[/C][C]-376.136315775409[/C][C]226.837256[/C][C]-1.6582[/C][C]0.103942[/C][C]0.051971[/C][/ROW]
[ROW][C]M3[/C][C]-552.818466554426[/C][C]237.806522[/C][C]-2.3247[/C][C]0.024461[/C][C]0.01223[/C][/ROW]
[ROW][C]M4[/C][C]-384.479991448196[/C][C]236.205694[/C][C]-1.6277[/C][C]0.110268[/C][C]0.055134[/C][/ROW]
[ROW][C]M5[/C][C]-320.164477939016[/C][C]222.686254[/C][C]-1.4377[/C][C]0.157134[/C][C]0.078567[/C][/ROW]
[ROW][C]M6[/C][C]-607.936139394426[/C][C]212.326307[/C][C]-2.8632[/C][C]0.006247[/C][C]0.003123[/C][/ROW]
[ROW][C]M7[/C][C]-280.520714075738[/C][C]209.988888[/C][C]-1.3359[/C][C]0.18802[/C][C]0.09401[/C][/ROW]
[ROW][C]M8[/C][C]-83.4001763809834[/C][C]208.761452[/C][C]-0.3995[/C][C]0.691335[/C][C]0.345667[/C][/ROW]
[ROW][C]M9[/C][C]-245.166813650820[/C][C]207.511926[/C][C]-1.1815[/C][C]0.243364[/C][C]0.121682[/C][/ROW]
[ROW][C]M10[/C][C]139.943499291803[/C][C]205.734609[/C][C]0.6802[/C][C]0.499706[/C][C]0.249853[/C][/ROW]
[ROW][C]M11[/C][C]-111.048788048852[/C][C]205.299631[/C][C]-0.5409[/C][C]0.591124[/C][C]0.295562[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58315&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58315&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)1588.51070846361514.8038783.08570.0033990.0017
`<25`47.820625885245826.447971.80810.0769920.038496
M1157.074438119669205.4794520.76440.4484330.224216
M2-376.136315775409226.837256-1.65820.1039420.051971
M3-552.818466554426237.806522-2.32470.0244610.01223
M4-384.479991448196236.205694-1.62770.1102680.055134
M5-320.164477939016222.686254-1.43770.1571340.078567
M6-607.936139394426212.326307-2.86320.0062470.003123
M7-280.520714075738209.988888-1.33590.188020.09401
M8-83.4001763809834208.761452-0.39950.6913350.345667
M9-245.166813650820207.511926-1.18150.2433640.121682
M10139.943499291803205.7346090.68020.4997060.249853
M11-111.048788048852205.299631-0.54090.5911240.295562







Multiple Linear Regression - Regression Statistics
Multiple R0.563892530113455
R-squared0.317974785517753
Adjusted R-squared0.143840688203137
F-TEST (value)1.82603401873244
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.0710475831667519
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation323.570134071516
Sum Squared Residuals4920788.68816377

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.563892530113455 \tabularnewline
R-squared & 0.317974785517753 \tabularnewline
Adjusted R-squared & 0.143840688203137 \tabularnewline
F-TEST (value) & 1.82603401873244 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.0710475831667519 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 323.570134071516 \tabularnewline
Sum Squared Residuals & 4920788.68816377 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58315&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.563892530113455[/C][/ROW]
[ROW][C]R-squared[/C][C]0.317974785517753[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.143840688203137[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.82603401873244[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.0710475831667519[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]323.570134071516[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]4920788.68816377[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58315&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58315&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.563892530113455
R-squared0.317974785517753
Adjusted R-squared0.143840688203137
F-TEST (value)1.82603401873244
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.0710475831667519
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation323.570134071516
Sum Squared Residuals4920788.68816377







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
122532458.11247227345-205.112472273453
222182101.83803415377116.161965846229
318551949.06619631738-94.0661963173776
421872103.0584836580383.9415163419666
518522138.68162163607-286.681621636066
615701841.34583500361-271.345835003607
718512216.58188620754-365.581886207541
819542494.99748790721-540.997487907213
918282357.14116358-529.14116358
1022512718.34116358-467.34116358
1122772414.74618776557-137.746187765574
1220852477.97434992918-392.97434992918
1322822639.83085063737-357.830850637374
1422662350.50528875705-84.505288757049
1518782226.42582645180-348.425826451803
1622672389.98223896951-122.982238969508
1720692406.47712659344-337.477126593442
1817462046.97452631016-300.974526310164
1922992345.69757609770-46.6975760977046
2023602494.99748790721-134.997487907213
2122142285.41022475213-71.4102247521312
2228252608.35372404393216.646275956065
2323552309.5408108180345.459189181967
2423332401.46134851279-68.461348512787
2530162606.35641251770409.643587482298
2621552350.50528875705-195.505288757049
2721722255.11820198295-83.1182019829507
2821502428.23873967770-278.238739677705
2925332401.69506400492131.304935995082
3020582032.6283385445925.3716614554101
3121602326.56932574361-166.569325743606
3222602494.99748790721-234.997487907213
3324982318.88466287180179.115337128197
3426952699.2129132259-4.21291322590157
3527992453.00268847377345.99731152623
3629462535.35910099148410.640899008525
3729302678.08735134557251.912648654429
3823182317.030850637380.969149362623003
3925402159.47695021246380.523049787541
4025702327.81542531869242.184574681312
4126692363.43856329672305.561436703279
4224502027.84627595607422.153724043935
4328422336.13345092066505.866549079345
4434402485.43336273016954.566637269836
4526782309.32053769475368.679462305246
4629812656.17434992918324.82565007082
4722602395.61793741148-135.617937411475
4828442487.53847510623356.46152489377
4925462644.6129132259-98.612913225899
5024562293.12053769475162.879462305246
5122952149.91282503541145.08717496459
5223792303.9051123760775.0948876239345
5324792291.70762446885187.292375531148
5420571932.20502418557124.794975814426
5522802207.0177610304972.982238969508
5623512394.57417354820-43.574173548197
5722762223.2434111013152.7565888986883
5825482617.91784922098-69.917849220984
5923112429.09237553115-118.092375531147
6022012506.66672546033-305.666725460328

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2253 & 2458.11247227345 & -205.112472273453 \tabularnewline
2 & 2218 & 2101.83803415377 & 116.161965846229 \tabularnewline
3 & 1855 & 1949.06619631738 & -94.0661963173776 \tabularnewline
4 & 2187 & 2103.05848365803 & 83.9415163419666 \tabularnewline
5 & 1852 & 2138.68162163607 & -286.681621636066 \tabularnewline
6 & 1570 & 1841.34583500361 & -271.345835003607 \tabularnewline
7 & 1851 & 2216.58188620754 & -365.581886207541 \tabularnewline
8 & 1954 & 2494.99748790721 & -540.997487907213 \tabularnewline
9 & 1828 & 2357.14116358 & -529.14116358 \tabularnewline
10 & 2251 & 2718.34116358 & -467.34116358 \tabularnewline
11 & 2277 & 2414.74618776557 & -137.746187765574 \tabularnewline
12 & 2085 & 2477.97434992918 & -392.97434992918 \tabularnewline
13 & 2282 & 2639.83085063737 & -357.830850637374 \tabularnewline
14 & 2266 & 2350.50528875705 & -84.505288757049 \tabularnewline
15 & 1878 & 2226.42582645180 & -348.425826451803 \tabularnewline
16 & 2267 & 2389.98223896951 & -122.982238969508 \tabularnewline
17 & 2069 & 2406.47712659344 & -337.477126593442 \tabularnewline
18 & 1746 & 2046.97452631016 & -300.974526310164 \tabularnewline
19 & 2299 & 2345.69757609770 & -46.6975760977046 \tabularnewline
20 & 2360 & 2494.99748790721 & -134.997487907213 \tabularnewline
21 & 2214 & 2285.41022475213 & -71.4102247521312 \tabularnewline
22 & 2825 & 2608.35372404393 & 216.646275956065 \tabularnewline
23 & 2355 & 2309.54081081803 & 45.459189181967 \tabularnewline
24 & 2333 & 2401.46134851279 & -68.461348512787 \tabularnewline
25 & 3016 & 2606.35641251770 & 409.643587482298 \tabularnewline
26 & 2155 & 2350.50528875705 & -195.505288757049 \tabularnewline
27 & 2172 & 2255.11820198295 & -83.1182019829507 \tabularnewline
28 & 2150 & 2428.23873967770 & -278.238739677705 \tabularnewline
29 & 2533 & 2401.69506400492 & 131.304935995082 \tabularnewline
30 & 2058 & 2032.62833854459 & 25.3716614554101 \tabularnewline
31 & 2160 & 2326.56932574361 & -166.569325743606 \tabularnewline
32 & 2260 & 2494.99748790721 & -234.997487907213 \tabularnewline
33 & 2498 & 2318.88466287180 & 179.115337128197 \tabularnewline
34 & 2695 & 2699.2129132259 & -4.21291322590157 \tabularnewline
35 & 2799 & 2453.00268847377 & 345.99731152623 \tabularnewline
36 & 2946 & 2535.35910099148 & 410.640899008525 \tabularnewline
37 & 2930 & 2678.08735134557 & 251.912648654429 \tabularnewline
38 & 2318 & 2317.03085063738 & 0.969149362623003 \tabularnewline
39 & 2540 & 2159.47695021246 & 380.523049787541 \tabularnewline
40 & 2570 & 2327.81542531869 & 242.184574681312 \tabularnewline
41 & 2669 & 2363.43856329672 & 305.561436703279 \tabularnewline
42 & 2450 & 2027.84627595607 & 422.153724043935 \tabularnewline
43 & 2842 & 2336.13345092066 & 505.866549079345 \tabularnewline
44 & 3440 & 2485.43336273016 & 954.566637269836 \tabularnewline
45 & 2678 & 2309.32053769475 & 368.679462305246 \tabularnewline
46 & 2981 & 2656.17434992918 & 324.82565007082 \tabularnewline
47 & 2260 & 2395.61793741148 & -135.617937411475 \tabularnewline
48 & 2844 & 2487.53847510623 & 356.46152489377 \tabularnewline
49 & 2546 & 2644.6129132259 & -98.612913225899 \tabularnewline
50 & 2456 & 2293.12053769475 & 162.879462305246 \tabularnewline
51 & 2295 & 2149.91282503541 & 145.08717496459 \tabularnewline
52 & 2379 & 2303.90511237607 & 75.0948876239345 \tabularnewline
53 & 2479 & 2291.70762446885 & 187.292375531148 \tabularnewline
54 & 2057 & 1932.20502418557 & 124.794975814426 \tabularnewline
55 & 2280 & 2207.01776103049 & 72.982238969508 \tabularnewline
56 & 2351 & 2394.57417354820 & -43.574173548197 \tabularnewline
57 & 2276 & 2223.24341110131 & 52.7565888986883 \tabularnewline
58 & 2548 & 2617.91784922098 & -69.917849220984 \tabularnewline
59 & 2311 & 2429.09237553115 & -118.092375531147 \tabularnewline
60 & 2201 & 2506.66672546033 & -305.666725460328 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58315&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]2458.11247227345[/C][C]-205.112472273453[/C][/ROW]
[ROW][C]2[/C][C]2218[/C][C]2101.83803415377[/C][C]116.161965846229[/C][/ROW]
[ROW][C]3[/C][C]1855[/C][C]1949.06619631738[/C][C]-94.0661963173776[/C][/ROW]
[ROW][C]4[/C][C]2187[/C][C]2103.05848365803[/C][C]83.9415163419666[/C][/ROW]
[ROW][C]5[/C][C]1852[/C][C]2138.68162163607[/C][C]-286.681621636066[/C][/ROW]
[ROW][C]6[/C][C]1570[/C][C]1841.34583500361[/C][C]-271.345835003607[/C][/ROW]
[ROW][C]7[/C][C]1851[/C][C]2216.58188620754[/C][C]-365.581886207541[/C][/ROW]
[ROW][C]8[/C][C]1954[/C][C]2494.99748790721[/C][C]-540.997487907213[/C][/ROW]
[ROW][C]9[/C][C]1828[/C][C]2357.14116358[/C][C]-529.14116358[/C][/ROW]
[ROW][C]10[/C][C]2251[/C][C]2718.34116358[/C][C]-467.34116358[/C][/ROW]
[ROW][C]11[/C][C]2277[/C][C]2414.74618776557[/C][C]-137.746187765574[/C][/ROW]
[ROW][C]12[/C][C]2085[/C][C]2477.97434992918[/C][C]-392.97434992918[/C][/ROW]
[ROW][C]13[/C][C]2282[/C][C]2639.83085063737[/C][C]-357.830850637374[/C][/ROW]
[ROW][C]14[/C][C]2266[/C][C]2350.50528875705[/C][C]-84.505288757049[/C][/ROW]
[ROW][C]15[/C][C]1878[/C][C]2226.42582645180[/C][C]-348.425826451803[/C][/ROW]
[ROW][C]16[/C][C]2267[/C][C]2389.98223896951[/C][C]-122.982238969508[/C][/ROW]
[ROW][C]17[/C][C]2069[/C][C]2406.47712659344[/C][C]-337.477126593442[/C][/ROW]
[ROW][C]18[/C][C]1746[/C][C]2046.97452631016[/C][C]-300.974526310164[/C][/ROW]
[ROW][C]19[/C][C]2299[/C][C]2345.69757609770[/C][C]-46.6975760977046[/C][/ROW]
[ROW][C]20[/C][C]2360[/C][C]2494.99748790721[/C][C]-134.997487907213[/C][/ROW]
[ROW][C]21[/C][C]2214[/C][C]2285.41022475213[/C][C]-71.4102247521312[/C][/ROW]
[ROW][C]22[/C][C]2825[/C][C]2608.35372404393[/C][C]216.646275956065[/C][/ROW]
[ROW][C]23[/C][C]2355[/C][C]2309.54081081803[/C][C]45.459189181967[/C][/ROW]
[ROW][C]24[/C][C]2333[/C][C]2401.46134851279[/C][C]-68.461348512787[/C][/ROW]
[ROW][C]25[/C][C]3016[/C][C]2606.35641251770[/C][C]409.643587482298[/C][/ROW]
[ROW][C]26[/C][C]2155[/C][C]2350.50528875705[/C][C]-195.505288757049[/C][/ROW]
[ROW][C]27[/C][C]2172[/C][C]2255.11820198295[/C][C]-83.1182019829507[/C][/ROW]
[ROW][C]28[/C][C]2150[/C][C]2428.23873967770[/C][C]-278.238739677705[/C][/ROW]
[ROW][C]29[/C][C]2533[/C][C]2401.69506400492[/C][C]131.304935995082[/C][/ROW]
[ROW][C]30[/C][C]2058[/C][C]2032.62833854459[/C][C]25.3716614554101[/C][/ROW]
[ROW][C]31[/C][C]2160[/C][C]2326.56932574361[/C][C]-166.569325743606[/C][/ROW]
[ROW][C]32[/C][C]2260[/C][C]2494.99748790721[/C][C]-234.997487907213[/C][/ROW]
[ROW][C]33[/C][C]2498[/C][C]2318.88466287180[/C][C]179.115337128197[/C][/ROW]
[ROW][C]34[/C][C]2695[/C][C]2699.2129132259[/C][C]-4.21291322590157[/C][/ROW]
[ROW][C]35[/C][C]2799[/C][C]2453.00268847377[/C][C]345.99731152623[/C][/ROW]
[ROW][C]36[/C][C]2946[/C][C]2535.35910099148[/C][C]410.640899008525[/C][/ROW]
[ROW][C]37[/C][C]2930[/C][C]2678.08735134557[/C][C]251.912648654429[/C][/ROW]
[ROW][C]38[/C][C]2318[/C][C]2317.03085063738[/C][C]0.969149362623003[/C][/ROW]
[ROW][C]39[/C][C]2540[/C][C]2159.47695021246[/C][C]380.523049787541[/C][/ROW]
[ROW][C]40[/C][C]2570[/C][C]2327.81542531869[/C][C]242.184574681312[/C][/ROW]
[ROW][C]41[/C][C]2669[/C][C]2363.43856329672[/C][C]305.561436703279[/C][/ROW]
[ROW][C]42[/C][C]2450[/C][C]2027.84627595607[/C][C]422.153724043935[/C][/ROW]
[ROW][C]43[/C][C]2842[/C][C]2336.13345092066[/C][C]505.866549079345[/C][/ROW]
[ROW][C]44[/C][C]3440[/C][C]2485.43336273016[/C][C]954.566637269836[/C][/ROW]
[ROW][C]45[/C][C]2678[/C][C]2309.32053769475[/C][C]368.679462305246[/C][/ROW]
[ROW][C]46[/C][C]2981[/C][C]2656.17434992918[/C][C]324.82565007082[/C][/ROW]
[ROW][C]47[/C][C]2260[/C][C]2395.61793741148[/C][C]-135.617937411475[/C][/ROW]
[ROW][C]48[/C][C]2844[/C][C]2487.53847510623[/C][C]356.46152489377[/C][/ROW]
[ROW][C]49[/C][C]2546[/C][C]2644.6129132259[/C][C]-98.612913225899[/C][/ROW]
[ROW][C]50[/C][C]2456[/C][C]2293.12053769475[/C][C]162.879462305246[/C][/ROW]
[ROW][C]51[/C][C]2295[/C][C]2149.91282503541[/C][C]145.08717496459[/C][/ROW]
[ROW][C]52[/C][C]2379[/C][C]2303.90511237607[/C][C]75.0948876239345[/C][/ROW]
[ROW][C]53[/C][C]2479[/C][C]2291.70762446885[/C][C]187.292375531148[/C][/ROW]
[ROW][C]54[/C][C]2057[/C][C]1932.20502418557[/C][C]124.794975814426[/C][/ROW]
[ROW][C]55[/C][C]2280[/C][C]2207.01776103049[/C][C]72.982238969508[/C][/ROW]
[ROW][C]56[/C][C]2351[/C][C]2394.57417354820[/C][C]-43.574173548197[/C][/ROW]
[ROW][C]57[/C][C]2276[/C][C]2223.24341110131[/C][C]52.7565888986883[/C][/ROW]
[ROW][C]58[/C][C]2548[/C][C]2617.91784922098[/C][C]-69.917849220984[/C][/ROW]
[ROW][C]59[/C][C]2311[/C][C]2429.09237553115[/C][C]-118.092375531147[/C][/ROW]
[ROW][C]60[/C][C]2201[/C][C]2506.66672546033[/C][C]-305.666725460328[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58315&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58315&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
122532458.11247227345-205.112472273453
222182101.83803415377116.161965846229
318551949.06619631738-94.0661963173776
421872103.0584836580383.9415163419666
518522138.68162163607-286.681621636066
615701841.34583500361-271.345835003607
718512216.58188620754-365.581886207541
819542494.99748790721-540.997487907213
918282357.14116358-529.14116358
1022512718.34116358-467.34116358
1122772414.74618776557-137.746187765574
1220852477.97434992918-392.97434992918
1322822639.83085063737-357.830850637374
1422662350.50528875705-84.505288757049
1518782226.42582645180-348.425826451803
1622672389.98223896951-122.982238969508
1720692406.47712659344-337.477126593442
1817462046.97452631016-300.974526310164
1922992345.69757609770-46.6975760977046
2023602494.99748790721-134.997487907213
2122142285.41022475213-71.4102247521312
2228252608.35372404393216.646275956065
2323552309.5408108180345.459189181967
2423332401.46134851279-68.461348512787
2530162606.35641251770409.643587482298
2621552350.50528875705-195.505288757049
2721722255.11820198295-83.1182019829507
2821502428.23873967770-278.238739677705
2925332401.69506400492131.304935995082
3020582032.6283385445925.3716614554101
3121602326.56932574361-166.569325743606
3222602494.99748790721-234.997487907213
3324982318.88466287180179.115337128197
3426952699.2129132259-4.21291322590157
3527992453.00268847377345.99731152623
3629462535.35910099148410.640899008525
3729302678.08735134557251.912648654429
3823182317.030850637380.969149362623003
3925402159.47695021246380.523049787541
4025702327.81542531869242.184574681312
4126692363.43856329672305.561436703279
4224502027.84627595607422.153724043935
4328422336.13345092066505.866549079345
4434402485.43336273016954.566637269836
4526782309.32053769475368.679462305246
4629812656.17434992918324.82565007082
4722602395.61793741148-135.617937411475
4828442487.53847510623356.46152489377
4925462644.6129132259-98.612913225899
5024562293.12053769475162.879462305246
5122952149.91282503541145.08717496459
5223792303.9051123760775.0948876239345
5324792291.70762446885187.292375531148
5420571932.20502418557124.794975814426
5522802207.0177610304972.982238969508
5623512394.57417354820-43.574173548197
5722762223.2434111013152.7565888986883
5825482617.91784922098-69.917849220984
5923112429.09237553115-118.092375531147
6022012506.66672546033-305.666725460328







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.0002147163872933380.0004294327745866760.999785283612707
170.002327170151665160.004654340303330320.997672829848335
180.001041148170187280.002082296340374560.998958851829813
190.02008089377487020.04016178754974050.97991910622513
200.04921905083138130.09843810166276260.950780949168619
210.07857314975789850.1571462995157970.921426850242101
220.1837921305706130.3675842611412260.816207869429387
230.1200079248425560.2400158496851110.879992075157444
240.09476861630428090.1895372326085620.905231383695719
250.2932179020214640.5864358040429280.706782097978536
260.2312328742426150.4624657484852290.768767125757385
270.211158297069490.422316594138980.78884170293051
280.2137087960758010.4274175921516020.7862912039242
290.2613361845484520.5226723690969030.738663815451548
300.2631480961647720.5262961923295430.736851903835228
310.2927766255080040.5855532510160080.707223374491996
320.5745366409856050.850926718028790.425463359014395
330.608964684518870.782070630962260.39103531548113
340.6335681846904160.7328636306191690.366431815309584
350.6538034884759330.6923930230481350.346196511524067
360.7110787570048130.5778424859903740.288921242995187
370.6625284999089230.6749430001821530.337471500091077
380.5972578650181280.8054842699637430.402742134981872
390.5837997396614980.8324005206770040.416200260338502
400.4921649642236030.9843299284472070.507835035776397
410.4346448896439040.8692897792878080.565355110356096
420.3801741616888510.7603483233777020.619825838311149
430.3552330403641100.7104660807282210.64476695963589
440.5289804490010850.942039101997830.471019550998915

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.000214716387293338 & 0.000429432774586676 & 0.999785283612707 \tabularnewline
17 & 0.00232717015166516 & 0.00465434030333032 & 0.997672829848335 \tabularnewline
18 & 0.00104114817018728 & 0.00208229634037456 & 0.998958851829813 \tabularnewline
19 & 0.0200808937748702 & 0.0401617875497405 & 0.97991910622513 \tabularnewline
20 & 0.0492190508313813 & 0.0984381016627626 & 0.950780949168619 \tabularnewline
21 & 0.0785731497578985 & 0.157146299515797 & 0.921426850242101 \tabularnewline
22 & 0.183792130570613 & 0.367584261141226 & 0.816207869429387 \tabularnewline
23 & 0.120007924842556 & 0.240015849685111 & 0.879992075157444 \tabularnewline
24 & 0.0947686163042809 & 0.189537232608562 & 0.905231383695719 \tabularnewline
25 & 0.293217902021464 & 0.586435804042928 & 0.706782097978536 \tabularnewline
26 & 0.231232874242615 & 0.462465748485229 & 0.768767125757385 \tabularnewline
27 & 0.21115829706949 & 0.42231659413898 & 0.78884170293051 \tabularnewline
28 & 0.213708796075801 & 0.427417592151602 & 0.7862912039242 \tabularnewline
29 & 0.261336184548452 & 0.522672369096903 & 0.738663815451548 \tabularnewline
30 & 0.263148096164772 & 0.526296192329543 & 0.736851903835228 \tabularnewline
31 & 0.292776625508004 & 0.585553251016008 & 0.707223374491996 \tabularnewline
32 & 0.574536640985605 & 0.85092671802879 & 0.425463359014395 \tabularnewline
33 & 0.60896468451887 & 0.78207063096226 & 0.39103531548113 \tabularnewline
34 & 0.633568184690416 & 0.732863630619169 & 0.366431815309584 \tabularnewline
35 & 0.653803488475933 & 0.692393023048135 & 0.346196511524067 \tabularnewline
36 & 0.711078757004813 & 0.577842485990374 & 0.288921242995187 \tabularnewline
37 & 0.662528499908923 & 0.674943000182153 & 0.337471500091077 \tabularnewline
38 & 0.597257865018128 & 0.805484269963743 & 0.402742134981872 \tabularnewline
39 & 0.583799739661498 & 0.832400520677004 & 0.416200260338502 \tabularnewline
40 & 0.492164964223603 & 0.984329928447207 & 0.507835035776397 \tabularnewline
41 & 0.434644889643904 & 0.869289779287808 & 0.565355110356096 \tabularnewline
42 & 0.380174161688851 & 0.760348323377702 & 0.619825838311149 \tabularnewline
43 & 0.355233040364110 & 0.710466080728221 & 0.64476695963589 \tabularnewline
44 & 0.528980449001085 & 0.94203910199783 & 0.471019550998915 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58315&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.000214716387293338[/C][C]0.000429432774586676[/C][C]0.999785283612707[/C][/ROW]
[ROW][C]17[/C][C]0.00232717015166516[/C][C]0.00465434030333032[/C][C]0.997672829848335[/C][/ROW]
[ROW][C]18[/C][C]0.00104114817018728[/C][C]0.00208229634037456[/C][C]0.998958851829813[/C][/ROW]
[ROW][C]19[/C][C]0.0200808937748702[/C][C]0.0401617875497405[/C][C]0.97991910622513[/C][/ROW]
[ROW][C]20[/C][C]0.0492190508313813[/C][C]0.0984381016627626[/C][C]0.950780949168619[/C][/ROW]
[ROW][C]21[/C][C]0.0785731497578985[/C][C]0.157146299515797[/C][C]0.921426850242101[/C][/ROW]
[ROW][C]22[/C][C]0.183792130570613[/C][C]0.367584261141226[/C][C]0.816207869429387[/C][/ROW]
[ROW][C]23[/C][C]0.120007924842556[/C][C]0.240015849685111[/C][C]0.879992075157444[/C][/ROW]
[ROW][C]24[/C][C]0.0947686163042809[/C][C]0.189537232608562[/C][C]0.905231383695719[/C][/ROW]
[ROW][C]25[/C][C]0.293217902021464[/C][C]0.586435804042928[/C][C]0.706782097978536[/C][/ROW]
[ROW][C]26[/C][C]0.231232874242615[/C][C]0.462465748485229[/C][C]0.768767125757385[/C][/ROW]
[ROW][C]27[/C][C]0.21115829706949[/C][C]0.42231659413898[/C][C]0.78884170293051[/C][/ROW]
[ROW][C]28[/C][C]0.213708796075801[/C][C]0.427417592151602[/C][C]0.7862912039242[/C][/ROW]
[ROW][C]29[/C][C]0.261336184548452[/C][C]0.522672369096903[/C][C]0.738663815451548[/C][/ROW]
[ROW][C]30[/C][C]0.263148096164772[/C][C]0.526296192329543[/C][C]0.736851903835228[/C][/ROW]
[ROW][C]31[/C][C]0.292776625508004[/C][C]0.585553251016008[/C][C]0.707223374491996[/C][/ROW]
[ROW][C]32[/C][C]0.574536640985605[/C][C]0.85092671802879[/C][C]0.425463359014395[/C][/ROW]
[ROW][C]33[/C][C]0.60896468451887[/C][C]0.78207063096226[/C][C]0.39103531548113[/C][/ROW]
[ROW][C]34[/C][C]0.633568184690416[/C][C]0.732863630619169[/C][C]0.366431815309584[/C][/ROW]
[ROW][C]35[/C][C]0.653803488475933[/C][C]0.692393023048135[/C][C]0.346196511524067[/C][/ROW]
[ROW][C]36[/C][C]0.711078757004813[/C][C]0.577842485990374[/C][C]0.288921242995187[/C][/ROW]
[ROW][C]37[/C][C]0.662528499908923[/C][C]0.674943000182153[/C][C]0.337471500091077[/C][/ROW]
[ROW][C]38[/C][C]0.597257865018128[/C][C]0.805484269963743[/C][C]0.402742134981872[/C][/ROW]
[ROW][C]39[/C][C]0.583799739661498[/C][C]0.832400520677004[/C][C]0.416200260338502[/C][/ROW]
[ROW][C]40[/C][C]0.492164964223603[/C][C]0.984329928447207[/C][C]0.507835035776397[/C][/ROW]
[ROW][C]41[/C][C]0.434644889643904[/C][C]0.869289779287808[/C][C]0.565355110356096[/C][/ROW]
[ROW][C]42[/C][C]0.380174161688851[/C][C]0.760348323377702[/C][C]0.619825838311149[/C][/ROW]
[ROW][C]43[/C][C]0.355233040364110[/C][C]0.710466080728221[/C][C]0.64476695963589[/C][/ROW]
[ROW][C]44[/C][C]0.528980449001085[/C][C]0.94203910199783[/C][C]0.471019550998915[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58315&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.0002147163872933380.0004294327745866760.999785283612707
170.002327170151665160.004654340303330320.997672829848335
180.001041148170187280.002082296340374560.998958851829813
190.02008089377487020.04016178754974050.97991910622513
200.04921905083138130.09843810166276260.950780949168619
210.07857314975789850.1571462995157970.921426850242101
220.1837921305706130.3675842611412260.816207869429387
230.1200079248425560.2400158496851110.879992075157444
240.09476861630428090.1895372326085620.905231383695719
250.2932179020214640.5864358040429280.706782097978536
260.2312328742426150.4624657484852290.768767125757385
270.211158297069490.422316594138980.78884170293051
280.2137087960758010.4274175921516020.7862912039242
290.2613361845484520.5226723690969030.738663815451548
300.2631480961647720.5262961923295430.736851903835228
310.2927766255080040.5855532510160080.707223374491996
320.5745366409856050.850926718028790.425463359014395
330.608964684518870.782070630962260.39103531548113
340.6335681846904160.7328636306191690.366431815309584
350.6538034884759330.6923930230481350.346196511524067
360.7110787570048130.5778424859903740.288921242995187
370.6625284999089230.6749430001821530.337471500091077
380.5972578650181280.8054842699637430.402742134981872
390.5837997396614980.8324005206770040.416200260338502
400.4921649642236030.9843299284472070.507835035776397
410.4346448896439040.8692897792878080.565355110356096
420.3801741616888510.7603483233777020.619825838311149
430.3552330403641100.7104660807282210.64476695963589
440.5289804490010850.942039101997830.471019550998915







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.103448275862069NOK
5% type I error level40.137931034482759NOK
10% type I error level50.172413793103448NOK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 3 & 0.103448275862069 & NOK \tabularnewline
5% type I error level & 4 & 0.137931034482759 & NOK \tabularnewline
10% type I error level & 5 & 0.172413793103448 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58315&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]3[/C][C]0.103448275862069[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]4[/C][C]0.137931034482759[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]5[/C][C]0.172413793103448[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58315&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.103448275862069NOK
5% type I error level40.137931034482759NOK
10% type I error level50.172413793103448NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}