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 computationSat, 19 Dec 2009 18:20:37 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/20/t126127211713t3ylxeb1qcvjd.htm/, Retrieved Sat, 27 Apr 2024 06:19:19 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69774, Retrieved Sat, 27 Apr 2024 06:19:19 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact163
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [] [2009-11-20 17:32:02] [898d317f4f946fbfcc4d07699283d43b]
-    D  [Multiple Regression] [Model 4] [2009-12-19 16:23:35] [a542c511726eba04a1fc2f4bd37a90f8]
-    D      [Multiple Regression] [Model 4] [2009-12-20 01:20:37] [865cd78857e928bd6e7d79509c6cdcc5] [Current]
Feedback Forum

Post a new message
Dataseries X:
2172	2155	3016	0
2150	2172	2155	0
2533	2150	2172	0
2058	2533	2150	0
2160	2058	2533	0
2260	2160	2058	0
2498	2260	2160	0
2695	2498	2260	0
2799	2695	2498	0
2946	2799	2695	0
2930	2946	2799	0
2318	2930	2946	0
2540	2318	2930	0
2570	2540	2318	0
2669	2570	2540	0
2450	2669	2570	0
2842	2450	2669	0
3440	2842	2450	0
2678	3440	2842	0
2981	2678	3440	0
2260	2981	2678	0
2844	2260	2981	0
2546	2844	2260	0
2456	2546	2844	0
2295	2456	2546	0
2379	2295	2456	0
2479	2379	2295	0
2057	2479	2379	0
2280	2057	2479	0
2351	2280	2057	0
2276	2351	2280	0
2548	2276	2351	0
2311	2548	2276	0
2201	2311	2548	1
2725	2201	2311	1
2408	2725	2201	1
2139	2408	2725	1
1898	2139	2408	1
2537	1898	2139	1
2068	2537	1898	1
2063	2068	2537	1
2520	2063	2068	1
2434	2520	2063	1
2190	2434	2520	1
2794	2190	2434	1
2070	2794	2190	1
2615	2070	2794	1
2265	2615	2070	1
2139	2265	2615	1
2428	2139	2265	1
2137	2428	2139	1
1823	2137	2428	1
2063	1823	2137	1
1806	2063	1823	1
1758	1806	2063	1
2243	1758	1806	1
1993	2243	1758	1
1932	1993	2243	1
2465	1932	1993	1




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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
y[t] = + 1134.96781186213 + 0.218332264908275`y(t-1)`[t] + 0.311376317013316`y(t-2)`[t] -16.8622480344403x[t] -123.943865589962M1[t] + 61.3837845106491M2[t] + 265.623286709349M3[t] -158.893504322475M4[t] + 61.1246420426986M5[t] + 336.226451123308M6[t] + 92.6391545422365M7[t] + 271.513481458097M8[t] + 177.538679779320M9[t] + 111.471061167625M10[t] + 411.981538275436M11[t] -4.61154711748763t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  1134.96781186213 +  0.218332264908275`y(t-1)`[t] +  0.311376317013316`y(t-2)`[t] -16.8622480344403x[t] -123.943865589962M1[t] +  61.3837845106491M2[t] +  265.623286709349M3[t] -158.893504322475M4[t] +  61.1246420426986M5[t] +  336.226451123308M6[t] +  92.6391545422365M7[t] +  271.513481458097M8[t] +  177.538679779320M9[t] +  111.471061167625M10[t] +  411.981538275436M11[t] -4.61154711748763t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69774&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  1134.96781186213 +  0.218332264908275`y(t-1)`[t] +  0.311376317013316`y(t-2)`[t] -16.8622480344403x[t] -123.943865589962M1[t] +  61.3837845106491M2[t] +  265.623286709349M3[t] -158.893504322475M4[t] +  61.1246420426986M5[t] +  336.226451123308M6[t] +  92.6391545422365M7[t] +  271.513481458097M8[t] +  177.538679779320M9[t] +  111.471061167625M10[t] +  411.981538275436M11[t] -4.61154711748763t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69774&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
y[t] = + 1134.96781186213 + 0.218332264908275`y(t-1)`[t] + 0.311376317013316`y(t-2)`[t] -16.8622480344403x[t] -123.943865589962M1[t] + 61.3837845106491M2[t] + 265.623286709349M3[t] -158.893504322475M4[t] + 61.1246420426986M5[t] + 336.226451123308M6[t] + 92.6391545422365M7[t] + 271.513481458097M8[t] + 177.538679779320M9[t] + 111.471061167625M10[t] + 411.981538275436M11[t] -4.61154711748763t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1134.96781186213498.0723382.27870.0277090.013855
`y(t-1)`0.2183322649082750.141341.54470.1297390.06487
`y(t-2)`0.3113763170133160.1432072.17430.0352310.017615
x-16.8622480344403138.659443-0.12160.9037750.451888
M1-123.943865589962187.113645-0.66240.5112510.255625
M261.3837845106491183.6628840.33420.7398380.369919
M3265.623286709349183.033141.45120.1539730.076986
M4-158.893504322475176.700822-0.89920.3735420.186771
M561.1246420426986192.3701550.31770.7522160.376108
M6336.226451123308186.9912951.79810.0791870.039593
M792.6391545422365176.8105520.52390.6030070.301503
M8271.513481458097180.1541261.50710.1390930.069546
M9177.538679779320175.6275811.01090.3177280.158864
M10111.471061167625175.0873060.63670.5277210.263861
M11411.981538275436175.1653112.3520.0233240.011662
t-4.611547117487634.034457-1.1430.2593460.129673

\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) & 1134.96781186213 & 498.072338 & 2.2787 & 0.027709 & 0.013855 \tabularnewline
`y(t-1)` & 0.218332264908275 & 0.14134 & 1.5447 & 0.129739 & 0.06487 \tabularnewline
`y(t-2)` & 0.311376317013316 & 0.143207 & 2.1743 & 0.035231 & 0.017615 \tabularnewline
x & -16.8622480344403 & 138.659443 & -0.1216 & 0.903775 & 0.451888 \tabularnewline
M1 & -123.943865589962 & 187.113645 & -0.6624 & 0.511251 & 0.255625 \tabularnewline
M2 & 61.3837845106491 & 183.662884 & 0.3342 & 0.739838 & 0.369919 \tabularnewline
M3 & 265.623286709349 & 183.03314 & 1.4512 & 0.153973 & 0.076986 \tabularnewline
M4 & -158.893504322475 & 176.700822 & -0.8992 & 0.373542 & 0.186771 \tabularnewline
M5 & 61.1246420426986 & 192.370155 & 0.3177 & 0.752216 & 0.376108 \tabularnewline
M6 & 336.226451123308 & 186.991295 & 1.7981 & 0.079187 & 0.039593 \tabularnewline
M7 & 92.6391545422365 & 176.810552 & 0.5239 & 0.603007 & 0.301503 \tabularnewline
M8 & 271.513481458097 & 180.154126 & 1.5071 & 0.139093 & 0.069546 \tabularnewline
M9 & 177.538679779320 & 175.627581 & 1.0109 & 0.317728 & 0.158864 \tabularnewline
M10 & 111.471061167625 & 175.087306 & 0.6367 & 0.527721 & 0.263861 \tabularnewline
M11 & 411.981538275436 & 175.165311 & 2.352 & 0.023324 & 0.011662 \tabularnewline
t & -4.61154711748763 & 4.034457 & -1.143 & 0.259346 & 0.129673 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69774&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]1134.96781186213[/C][C]498.072338[/C][C]2.2787[/C][C]0.027709[/C][C]0.013855[/C][/ROW]
[ROW][C]`y(t-1)`[/C][C]0.218332264908275[/C][C]0.14134[/C][C]1.5447[/C][C]0.129739[/C][C]0.06487[/C][/ROW]
[ROW][C]`y(t-2)`[/C][C]0.311376317013316[/C][C]0.143207[/C][C]2.1743[/C][C]0.035231[/C][C]0.017615[/C][/ROW]
[ROW][C]x[/C][C]-16.8622480344403[/C][C]138.659443[/C][C]-0.1216[/C][C]0.903775[/C][C]0.451888[/C][/ROW]
[ROW][C]M1[/C][C]-123.943865589962[/C][C]187.113645[/C][C]-0.6624[/C][C]0.511251[/C][C]0.255625[/C][/ROW]
[ROW][C]M2[/C][C]61.3837845106491[/C][C]183.662884[/C][C]0.3342[/C][C]0.739838[/C][C]0.369919[/C][/ROW]
[ROW][C]M3[/C][C]265.623286709349[/C][C]183.03314[/C][C]1.4512[/C][C]0.153973[/C][C]0.076986[/C][/ROW]
[ROW][C]M4[/C][C]-158.893504322475[/C][C]176.700822[/C][C]-0.8992[/C][C]0.373542[/C][C]0.186771[/C][/ROW]
[ROW][C]M5[/C][C]61.1246420426986[/C][C]192.370155[/C][C]0.3177[/C][C]0.752216[/C][C]0.376108[/C][/ROW]
[ROW][C]M6[/C][C]336.226451123308[/C][C]186.991295[/C][C]1.7981[/C][C]0.079187[/C][C]0.039593[/C][/ROW]
[ROW][C]M7[/C][C]92.6391545422365[/C][C]176.810552[/C][C]0.5239[/C][C]0.603007[/C][C]0.301503[/C][/ROW]
[ROW][C]M8[/C][C]271.513481458097[/C][C]180.154126[/C][C]1.5071[/C][C]0.139093[/C][C]0.069546[/C][/ROW]
[ROW][C]M9[/C][C]177.538679779320[/C][C]175.627581[/C][C]1.0109[/C][C]0.317728[/C][C]0.158864[/C][/ROW]
[ROW][C]M10[/C][C]111.471061167625[/C][C]175.087306[/C][C]0.6367[/C][C]0.527721[/C][C]0.263861[/C][/ROW]
[ROW][C]M11[/C][C]411.981538275436[/C][C]175.165311[/C][C]2.352[/C][C]0.023324[/C][C]0.011662[/C][/ROW]
[ROW][C]t[/C][C]-4.61154711748763[/C][C]4.034457[/C][C]-1.143[/C][C]0.259346[/C][C]0.129673[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69774&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69774&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)1134.96781186213498.0723382.27870.0277090.013855
`y(t-1)`0.2183322649082750.141341.54470.1297390.06487
`y(t-2)`0.3113763170133160.1432072.17430.0352310.017615
x-16.8622480344403138.659443-0.12160.9037750.451888
M1-123.943865589962187.113645-0.66240.5112510.255625
M261.3837845106491183.6628840.33420.7398380.369919
M3265.623286709349183.033141.45120.1539730.076986
M4-158.893504322475176.700822-0.89920.3735420.186771
M561.1246420426986192.3701550.31770.7522160.376108
M6336.226451123308186.9912951.79810.0791870.039593
M792.6391545422365176.8105520.52390.6030070.301503
M8271.513481458097180.1541261.50710.1390930.069546
M9177.538679779320175.6275811.01090.3177280.158864
M10111.471061167625175.0873060.63670.5277210.263861
M11411.981538275436175.1653112.3520.0233240.011662
t-4.611547117487634.034457-1.1430.2593460.129673







Multiple Linear Regression - Regression Statistics
Multiple R0.743705558183632
R-squared0.553097957273228
Adjusted R-squared0.397201895856912
F-TEST (value)3.54786357171780
F-TEST (DF numerator)15
F-TEST (DF denominator)43
p-value0.000564374728205697
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation255.067585916146
Sum Squared Residuals2797557.3555589

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.743705558183632 \tabularnewline
R-squared & 0.553097957273228 \tabularnewline
Adjusted R-squared & 0.397201895856912 \tabularnewline
F-TEST (value) & 3.54786357171780 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 43 \tabularnewline
p-value & 0.000564374728205697 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 255.067585916146 \tabularnewline
Sum Squared Residuals & 2797557.3555589 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69774&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.743705558183632[/C][/ROW]
[ROW][C]R-squared[/C][C]0.553097957273228[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.397201895856912[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.54786357171780[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]43[/C][/ROW]
[ROW][C]p-value[/C][C]0.000564374728205697[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]255.067585916146[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2797557.3555589[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69774&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69774&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.743705558183632
R-squared0.553097957273228
Adjusted R-squared0.397201895856912
F-TEST (value)3.54786357171780
F-TEST (DF numerator)15
F-TEST (DF denominator)43
p-value0.000564374728205697
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation255.067585916146
Sum Squared Residuals2797557.3555589







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
121722416.02940214417-244.029402144172
221502332.36214468227-182.362144682273
325332532.480187324730.519812675270018
420582180.12282766099-122.122827660995
521602411.07873049335-251.07873049335
622602555.93513289579-295.935132895791
724982361.32990002342136.670099976583
826952618.6933905712976.3066094287091
927992637.22606141113161.773938588874
1029462650.59458568403295.405414315972
1129303010.97149558525-80.9714955852525
1223182636.65741255475-318.657412554754
1325402369.50063265123170.499367348773
1425702408.12419243184161.875807568162
1526692683.42765783726-14.4276578372551
1624502285.25550342426164.744496575739
1728422483.67359204135358.326407958646
1834402771.55868842260668.441311577397
1926782775.98205540841-97.9820554084126
2029812970.0786869206410.9213130793577
2122602700.37826082744-440.378260827438
2228442566.62855615442277.371443845576
2325462765.53120428458-219.531204284579
2424562465.71887308477-9.7188730847663
2522952224.7234140656070.276585934396
2623792342.2641538673036.7358461327037
2724792510.10043216166-31.10043216166
2820572128.96093113229-71.9609311322941
2922802283.36894629002-3.36894629001971
3023512471.14649754807-120.146497548067
3122762307.88616335197-31.8861633519653
3225482487.8817417901660.1182582098372
3323112425.32854527295-114.328545272950
3422012370.73674295369-169.736742953689
3527252568.82293667195156.177063328055
3624082232.38456321949175.615436780507
3721392197.7790126511-58.7790126510984
3818982221.05744388067-323.057443880674
3925372284.30709384241252.69290615759
4020681919.65138056928148.348619430723
4120632231.62961414649-168.629614146491
4225202354.99272210583165.007277894174
4324342205.01484188528228.985158114718
4421902502.80002377663-312.800023776629
4527942324.1622390796469.8377609204
4620702309.37994000377-239.379940003767
4726152635.27760567654-20.2776056765413
4822652112.23915114099152.760848859013
4921392076.967538487962.0324615121014
5024282121.19206513792306.807934862082
5121372344.68462883394-207.684628833945
5218231942.00935721317-119.009357213173
5320631998.2491170287964.7508829712143
5418062223.36695902771-417.366959027712
5517581993.78703933092-235.787039330922
5622432077.54615694128165.453843058725
5719932069.90489340889-76.9048934088851
5819322095.66017520409-163.660175204092
5924652300.39675778168164.603242218319

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2172 & 2416.02940214417 & -244.029402144172 \tabularnewline
2 & 2150 & 2332.36214468227 & -182.362144682273 \tabularnewline
3 & 2533 & 2532.48018732473 & 0.519812675270018 \tabularnewline
4 & 2058 & 2180.12282766099 & -122.122827660995 \tabularnewline
5 & 2160 & 2411.07873049335 & -251.07873049335 \tabularnewline
6 & 2260 & 2555.93513289579 & -295.935132895791 \tabularnewline
7 & 2498 & 2361.32990002342 & 136.670099976583 \tabularnewline
8 & 2695 & 2618.69339057129 & 76.3066094287091 \tabularnewline
9 & 2799 & 2637.22606141113 & 161.773938588874 \tabularnewline
10 & 2946 & 2650.59458568403 & 295.405414315972 \tabularnewline
11 & 2930 & 3010.97149558525 & -80.9714955852525 \tabularnewline
12 & 2318 & 2636.65741255475 & -318.657412554754 \tabularnewline
13 & 2540 & 2369.50063265123 & 170.499367348773 \tabularnewline
14 & 2570 & 2408.12419243184 & 161.875807568162 \tabularnewline
15 & 2669 & 2683.42765783726 & -14.4276578372551 \tabularnewline
16 & 2450 & 2285.25550342426 & 164.744496575739 \tabularnewline
17 & 2842 & 2483.67359204135 & 358.326407958646 \tabularnewline
18 & 3440 & 2771.55868842260 & 668.441311577397 \tabularnewline
19 & 2678 & 2775.98205540841 & -97.9820554084126 \tabularnewline
20 & 2981 & 2970.07868692064 & 10.9213130793577 \tabularnewline
21 & 2260 & 2700.37826082744 & -440.378260827438 \tabularnewline
22 & 2844 & 2566.62855615442 & 277.371443845576 \tabularnewline
23 & 2546 & 2765.53120428458 & -219.531204284579 \tabularnewline
24 & 2456 & 2465.71887308477 & -9.7188730847663 \tabularnewline
25 & 2295 & 2224.72341406560 & 70.276585934396 \tabularnewline
26 & 2379 & 2342.26415386730 & 36.7358461327037 \tabularnewline
27 & 2479 & 2510.10043216166 & -31.10043216166 \tabularnewline
28 & 2057 & 2128.96093113229 & -71.9609311322941 \tabularnewline
29 & 2280 & 2283.36894629002 & -3.36894629001971 \tabularnewline
30 & 2351 & 2471.14649754807 & -120.146497548067 \tabularnewline
31 & 2276 & 2307.88616335197 & -31.8861633519653 \tabularnewline
32 & 2548 & 2487.88174179016 & 60.1182582098372 \tabularnewline
33 & 2311 & 2425.32854527295 & -114.328545272950 \tabularnewline
34 & 2201 & 2370.73674295369 & -169.736742953689 \tabularnewline
35 & 2725 & 2568.82293667195 & 156.177063328055 \tabularnewline
36 & 2408 & 2232.38456321949 & 175.615436780507 \tabularnewline
37 & 2139 & 2197.7790126511 & -58.7790126510984 \tabularnewline
38 & 1898 & 2221.05744388067 & -323.057443880674 \tabularnewline
39 & 2537 & 2284.30709384241 & 252.69290615759 \tabularnewline
40 & 2068 & 1919.65138056928 & 148.348619430723 \tabularnewline
41 & 2063 & 2231.62961414649 & -168.629614146491 \tabularnewline
42 & 2520 & 2354.99272210583 & 165.007277894174 \tabularnewline
43 & 2434 & 2205.01484188528 & 228.985158114718 \tabularnewline
44 & 2190 & 2502.80002377663 & -312.800023776629 \tabularnewline
45 & 2794 & 2324.1622390796 & 469.8377609204 \tabularnewline
46 & 2070 & 2309.37994000377 & -239.379940003767 \tabularnewline
47 & 2615 & 2635.27760567654 & -20.2776056765413 \tabularnewline
48 & 2265 & 2112.23915114099 & 152.760848859013 \tabularnewline
49 & 2139 & 2076.9675384879 & 62.0324615121014 \tabularnewline
50 & 2428 & 2121.19206513792 & 306.807934862082 \tabularnewline
51 & 2137 & 2344.68462883394 & -207.684628833945 \tabularnewline
52 & 1823 & 1942.00935721317 & -119.009357213173 \tabularnewline
53 & 2063 & 1998.24911702879 & 64.7508829712143 \tabularnewline
54 & 1806 & 2223.36695902771 & -417.366959027712 \tabularnewline
55 & 1758 & 1993.78703933092 & -235.787039330922 \tabularnewline
56 & 2243 & 2077.54615694128 & 165.453843058725 \tabularnewline
57 & 1993 & 2069.90489340889 & -76.9048934088851 \tabularnewline
58 & 1932 & 2095.66017520409 & -163.660175204092 \tabularnewline
59 & 2465 & 2300.39675778168 & 164.603242218319 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69774&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]2172[/C][C]2416.02940214417[/C][C]-244.029402144172[/C][/ROW]
[ROW][C]2[/C][C]2150[/C][C]2332.36214468227[/C][C]-182.362144682273[/C][/ROW]
[ROW][C]3[/C][C]2533[/C][C]2532.48018732473[/C][C]0.519812675270018[/C][/ROW]
[ROW][C]4[/C][C]2058[/C][C]2180.12282766099[/C][C]-122.122827660995[/C][/ROW]
[ROW][C]5[/C][C]2160[/C][C]2411.07873049335[/C][C]-251.07873049335[/C][/ROW]
[ROW][C]6[/C][C]2260[/C][C]2555.93513289579[/C][C]-295.935132895791[/C][/ROW]
[ROW][C]7[/C][C]2498[/C][C]2361.32990002342[/C][C]136.670099976583[/C][/ROW]
[ROW][C]8[/C][C]2695[/C][C]2618.69339057129[/C][C]76.3066094287091[/C][/ROW]
[ROW][C]9[/C][C]2799[/C][C]2637.22606141113[/C][C]161.773938588874[/C][/ROW]
[ROW][C]10[/C][C]2946[/C][C]2650.59458568403[/C][C]295.405414315972[/C][/ROW]
[ROW][C]11[/C][C]2930[/C][C]3010.97149558525[/C][C]-80.9714955852525[/C][/ROW]
[ROW][C]12[/C][C]2318[/C][C]2636.65741255475[/C][C]-318.657412554754[/C][/ROW]
[ROW][C]13[/C][C]2540[/C][C]2369.50063265123[/C][C]170.499367348773[/C][/ROW]
[ROW][C]14[/C][C]2570[/C][C]2408.12419243184[/C][C]161.875807568162[/C][/ROW]
[ROW][C]15[/C][C]2669[/C][C]2683.42765783726[/C][C]-14.4276578372551[/C][/ROW]
[ROW][C]16[/C][C]2450[/C][C]2285.25550342426[/C][C]164.744496575739[/C][/ROW]
[ROW][C]17[/C][C]2842[/C][C]2483.67359204135[/C][C]358.326407958646[/C][/ROW]
[ROW][C]18[/C][C]3440[/C][C]2771.55868842260[/C][C]668.441311577397[/C][/ROW]
[ROW][C]19[/C][C]2678[/C][C]2775.98205540841[/C][C]-97.9820554084126[/C][/ROW]
[ROW][C]20[/C][C]2981[/C][C]2970.07868692064[/C][C]10.9213130793577[/C][/ROW]
[ROW][C]21[/C][C]2260[/C][C]2700.37826082744[/C][C]-440.378260827438[/C][/ROW]
[ROW][C]22[/C][C]2844[/C][C]2566.62855615442[/C][C]277.371443845576[/C][/ROW]
[ROW][C]23[/C][C]2546[/C][C]2765.53120428458[/C][C]-219.531204284579[/C][/ROW]
[ROW][C]24[/C][C]2456[/C][C]2465.71887308477[/C][C]-9.7188730847663[/C][/ROW]
[ROW][C]25[/C][C]2295[/C][C]2224.72341406560[/C][C]70.276585934396[/C][/ROW]
[ROW][C]26[/C][C]2379[/C][C]2342.26415386730[/C][C]36.7358461327037[/C][/ROW]
[ROW][C]27[/C][C]2479[/C][C]2510.10043216166[/C][C]-31.10043216166[/C][/ROW]
[ROW][C]28[/C][C]2057[/C][C]2128.96093113229[/C][C]-71.9609311322941[/C][/ROW]
[ROW][C]29[/C][C]2280[/C][C]2283.36894629002[/C][C]-3.36894629001971[/C][/ROW]
[ROW][C]30[/C][C]2351[/C][C]2471.14649754807[/C][C]-120.146497548067[/C][/ROW]
[ROW][C]31[/C][C]2276[/C][C]2307.88616335197[/C][C]-31.8861633519653[/C][/ROW]
[ROW][C]32[/C][C]2548[/C][C]2487.88174179016[/C][C]60.1182582098372[/C][/ROW]
[ROW][C]33[/C][C]2311[/C][C]2425.32854527295[/C][C]-114.328545272950[/C][/ROW]
[ROW][C]34[/C][C]2201[/C][C]2370.73674295369[/C][C]-169.736742953689[/C][/ROW]
[ROW][C]35[/C][C]2725[/C][C]2568.82293667195[/C][C]156.177063328055[/C][/ROW]
[ROW][C]36[/C][C]2408[/C][C]2232.38456321949[/C][C]175.615436780507[/C][/ROW]
[ROW][C]37[/C][C]2139[/C][C]2197.7790126511[/C][C]-58.7790126510984[/C][/ROW]
[ROW][C]38[/C][C]1898[/C][C]2221.05744388067[/C][C]-323.057443880674[/C][/ROW]
[ROW][C]39[/C][C]2537[/C][C]2284.30709384241[/C][C]252.69290615759[/C][/ROW]
[ROW][C]40[/C][C]2068[/C][C]1919.65138056928[/C][C]148.348619430723[/C][/ROW]
[ROW][C]41[/C][C]2063[/C][C]2231.62961414649[/C][C]-168.629614146491[/C][/ROW]
[ROW][C]42[/C][C]2520[/C][C]2354.99272210583[/C][C]165.007277894174[/C][/ROW]
[ROW][C]43[/C][C]2434[/C][C]2205.01484188528[/C][C]228.985158114718[/C][/ROW]
[ROW][C]44[/C][C]2190[/C][C]2502.80002377663[/C][C]-312.800023776629[/C][/ROW]
[ROW][C]45[/C][C]2794[/C][C]2324.1622390796[/C][C]469.8377609204[/C][/ROW]
[ROW][C]46[/C][C]2070[/C][C]2309.37994000377[/C][C]-239.379940003767[/C][/ROW]
[ROW][C]47[/C][C]2615[/C][C]2635.27760567654[/C][C]-20.2776056765413[/C][/ROW]
[ROW][C]48[/C][C]2265[/C][C]2112.23915114099[/C][C]152.760848859013[/C][/ROW]
[ROW][C]49[/C][C]2139[/C][C]2076.9675384879[/C][C]62.0324615121014[/C][/ROW]
[ROW][C]50[/C][C]2428[/C][C]2121.19206513792[/C][C]306.807934862082[/C][/ROW]
[ROW][C]51[/C][C]2137[/C][C]2344.68462883394[/C][C]-207.684628833945[/C][/ROW]
[ROW][C]52[/C][C]1823[/C][C]1942.00935721317[/C][C]-119.009357213173[/C][/ROW]
[ROW][C]53[/C][C]2063[/C][C]1998.24911702879[/C][C]64.7508829712143[/C][/ROW]
[ROW][C]54[/C][C]1806[/C][C]2223.36695902771[/C][C]-417.366959027712[/C][/ROW]
[ROW][C]55[/C][C]1758[/C][C]1993.78703933092[/C][C]-235.787039330922[/C][/ROW]
[ROW][C]56[/C][C]2243[/C][C]2077.54615694128[/C][C]165.453843058725[/C][/ROW]
[ROW][C]57[/C][C]1993[/C][C]2069.90489340889[/C][C]-76.9048934088851[/C][/ROW]
[ROW][C]58[/C][C]1932[/C][C]2095.66017520409[/C][C]-163.660175204092[/C][/ROW]
[ROW][C]59[/C][C]2465[/C][C]2300.39675778168[/C][C]164.603242218319[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69774&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69774&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
121722416.02940214417-244.029402144172
221502332.36214468227-182.362144682273
325332532.480187324730.519812675270018
420582180.12282766099-122.122827660995
521602411.07873049335-251.07873049335
622602555.93513289579-295.935132895791
724982361.32990002342136.670099976583
826952618.6933905712976.3066094287091
927992637.22606141113161.773938588874
1029462650.59458568403295.405414315972
1129303010.97149558525-80.9714955852525
1223182636.65741255475-318.657412554754
1325402369.50063265123170.499367348773
1425702408.12419243184161.875807568162
1526692683.42765783726-14.4276578372551
1624502285.25550342426164.744496575739
1728422483.67359204135358.326407958646
1834402771.55868842260668.441311577397
1926782775.98205540841-97.9820554084126
2029812970.0786869206410.9213130793577
2122602700.37826082744-440.378260827438
2228442566.62855615442277.371443845576
2325462765.53120428458-219.531204284579
2424562465.71887308477-9.7188730847663
2522952224.7234140656070.276585934396
2623792342.2641538673036.7358461327037
2724792510.10043216166-31.10043216166
2820572128.96093113229-71.9609311322941
2922802283.36894629002-3.36894629001971
3023512471.14649754807-120.146497548067
3122762307.88616335197-31.8861633519653
3225482487.8817417901660.1182582098372
3323112425.32854527295-114.328545272950
3422012370.73674295369-169.736742953689
3527252568.82293667195156.177063328055
3624082232.38456321949175.615436780507
3721392197.7790126511-58.7790126510984
3818982221.05744388067-323.057443880674
3925372284.30709384241252.69290615759
4020681919.65138056928148.348619430723
4120632231.62961414649-168.629614146491
4225202354.99272210583165.007277894174
4324342205.01484188528228.985158114718
4421902502.80002377663-312.800023776629
4527942324.1622390796469.8377609204
4620702309.37994000377-239.379940003767
4726152635.27760567654-20.2776056765413
4822652112.23915114099152.760848859013
4921392076.967538487962.0324615121014
5024282121.19206513792306.807934862082
5121372344.68462883394-207.684628833945
5218231942.00935721317-119.009357213173
5320631998.2491170287964.7508829712143
5418062223.36695902771-417.366959027712
5517581993.78703933092-235.787039330922
5622432077.54615694128165.453843058725
5719932069.90489340889-76.9048934088851
5819322095.66017520409-163.660175204092
5924652300.39675778168164.603242218319







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.9131394587074110.1737210825851780.086860541292589
200.8548409836330450.290318032733910.145159016366955
210.9808385575136030.03832288497279350.0191614424863968
220.9780333012475290.04393339750494210.0219666987524711
230.9757813182100260.04843736357994740.0242186817899737
240.9573503078255480.08529938434890430.0426496921744522
250.9286753559317510.1426492881364970.0713246440682487
260.8844126055732970.2311747888534060.115587394426703
270.8294566931892960.3410866136214080.170543306810704
280.7632859106510330.4734281786979340.236714089348967
290.6757831262058950.6484337475882110.324216873794105
300.617428933497890.765142133004220.38257106650211
310.5076567431813030.9846865136373940.492343256818697
320.441888781567390.883777563134780.55811121843261
330.3328151055960540.6656302111921080.667184894403946
340.2414376055013040.4828752110026070.758562394498696
350.2620871915266200.5241743830532410.73791280847338
360.1932843214253040.3865686428506080.806715678574696
370.1379807545603650.275961509120730.862019245439635
380.4135168578455430.8270337156910850.586483142154457
390.3654741407266330.7309482814532670.634525859273367
400.350447147973640.700894295947280.64955285202636

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.913139458707411 & 0.173721082585178 & 0.086860541292589 \tabularnewline
20 & 0.854840983633045 & 0.29031803273391 & 0.145159016366955 \tabularnewline
21 & 0.980838557513603 & 0.0383228849727935 & 0.0191614424863968 \tabularnewline
22 & 0.978033301247529 & 0.0439333975049421 & 0.0219666987524711 \tabularnewline
23 & 0.975781318210026 & 0.0484373635799474 & 0.0242186817899737 \tabularnewline
24 & 0.957350307825548 & 0.0852993843489043 & 0.0426496921744522 \tabularnewline
25 & 0.928675355931751 & 0.142649288136497 & 0.0713246440682487 \tabularnewline
26 & 0.884412605573297 & 0.231174788853406 & 0.115587394426703 \tabularnewline
27 & 0.829456693189296 & 0.341086613621408 & 0.170543306810704 \tabularnewline
28 & 0.763285910651033 & 0.473428178697934 & 0.236714089348967 \tabularnewline
29 & 0.675783126205895 & 0.648433747588211 & 0.324216873794105 \tabularnewline
30 & 0.61742893349789 & 0.76514213300422 & 0.38257106650211 \tabularnewline
31 & 0.507656743181303 & 0.984686513637394 & 0.492343256818697 \tabularnewline
32 & 0.44188878156739 & 0.88377756313478 & 0.55811121843261 \tabularnewline
33 & 0.332815105596054 & 0.665630211192108 & 0.667184894403946 \tabularnewline
34 & 0.241437605501304 & 0.482875211002607 & 0.758562394498696 \tabularnewline
35 & 0.262087191526620 & 0.524174383053241 & 0.73791280847338 \tabularnewline
36 & 0.193284321425304 & 0.386568642850608 & 0.806715678574696 \tabularnewline
37 & 0.137980754560365 & 0.27596150912073 & 0.862019245439635 \tabularnewline
38 & 0.413516857845543 & 0.827033715691085 & 0.586483142154457 \tabularnewline
39 & 0.365474140726633 & 0.730948281453267 & 0.634525859273367 \tabularnewline
40 & 0.35044714797364 & 0.70089429594728 & 0.64955285202636 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69774&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]19[/C][C]0.913139458707411[/C][C]0.173721082585178[/C][C]0.086860541292589[/C][/ROW]
[ROW][C]20[/C][C]0.854840983633045[/C][C]0.29031803273391[/C][C]0.145159016366955[/C][/ROW]
[ROW][C]21[/C][C]0.980838557513603[/C][C]0.0383228849727935[/C][C]0.0191614424863968[/C][/ROW]
[ROW][C]22[/C][C]0.978033301247529[/C][C]0.0439333975049421[/C][C]0.0219666987524711[/C][/ROW]
[ROW][C]23[/C][C]0.975781318210026[/C][C]0.0484373635799474[/C][C]0.0242186817899737[/C][/ROW]
[ROW][C]24[/C][C]0.957350307825548[/C][C]0.0852993843489043[/C][C]0.0426496921744522[/C][/ROW]
[ROW][C]25[/C][C]0.928675355931751[/C][C]0.142649288136497[/C][C]0.0713246440682487[/C][/ROW]
[ROW][C]26[/C][C]0.884412605573297[/C][C]0.231174788853406[/C][C]0.115587394426703[/C][/ROW]
[ROW][C]27[/C][C]0.829456693189296[/C][C]0.341086613621408[/C][C]0.170543306810704[/C][/ROW]
[ROW][C]28[/C][C]0.763285910651033[/C][C]0.473428178697934[/C][C]0.236714089348967[/C][/ROW]
[ROW][C]29[/C][C]0.675783126205895[/C][C]0.648433747588211[/C][C]0.324216873794105[/C][/ROW]
[ROW][C]30[/C][C]0.61742893349789[/C][C]0.76514213300422[/C][C]0.38257106650211[/C][/ROW]
[ROW][C]31[/C][C]0.507656743181303[/C][C]0.984686513637394[/C][C]0.492343256818697[/C][/ROW]
[ROW][C]32[/C][C]0.44188878156739[/C][C]0.88377756313478[/C][C]0.55811121843261[/C][/ROW]
[ROW][C]33[/C][C]0.332815105596054[/C][C]0.665630211192108[/C][C]0.667184894403946[/C][/ROW]
[ROW][C]34[/C][C]0.241437605501304[/C][C]0.482875211002607[/C][C]0.758562394498696[/C][/ROW]
[ROW][C]35[/C][C]0.262087191526620[/C][C]0.524174383053241[/C][C]0.73791280847338[/C][/ROW]
[ROW][C]36[/C][C]0.193284321425304[/C][C]0.386568642850608[/C][C]0.806715678574696[/C][/ROW]
[ROW][C]37[/C][C]0.137980754560365[/C][C]0.27596150912073[/C][C]0.862019245439635[/C][/ROW]
[ROW][C]38[/C][C]0.413516857845543[/C][C]0.827033715691085[/C][C]0.586483142154457[/C][/ROW]
[ROW][C]39[/C][C]0.365474140726633[/C][C]0.730948281453267[/C][C]0.634525859273367[/C][/ROW]
[ROW][C]40[/C][C]0.35044714797364[/C][C]0.70089429594728[/C][C]0.64955285202636[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69774&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.9131394587074110.1737210825851780.086860541292589
200.8548409836330450.290318032733910.145159016366955
210.9808385575136030.03832288497279350.0191614424863968
220.9780333012475290.04393339750494210.0219666987524711
230.9757813182100260.04843736357994740.0242186817899737
240.9573503078255480.08529938434890430.0426496921744522
250.9286753559317510.1426492881364970.0713246440682487
260.8844126055732970.2311747888534060.115587394426703
270.8294566931892960.3410866136214080.170543306810704
280.7632859106510330.4734281786979340.236714089348967
290.6757831262058950.6484337475882110.324216873794105
300.617428933497890.765142133004220.38257106650211
310.5076567431813030.9846865136373940.492343256818697
320.441888781567390.883777563134780.55811121843261
330.3328151055960540.6656302111921080.667184894403946
340.2414376055013040.4828752110026070.758562394498696
350.2620871915266200.5241743830532410.73791280847338
360.1932843214253040.3865686428506080.806715678574696
370.1379807545603650.275961509120730.862019245439635
380.4135168578455430.8270337156910850.586483142154457
390.3654741407266330.7309482814532670.634525859273367
400.350447147973640.700894295947280.64955285202636







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level30.136363636363636NOK
10% type I error level40.181818181818182NOK

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

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

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level30.136363636363636NOK
10% type I error level40.181818181818182NOK



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