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 09:23:35 -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/19/t1261239934uxbxqz74eig97oi.htm/, Retrieved Mon, 29 Apr 2024 22:38:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69673, Retrieved Mon, 29 Apr 2024 22:38:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact134
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] [865cd78857e928bd6e7d79509c6cdcc5] [Current]
-    D      [Multiple Regression] [Model 4] [2009-12-20 01:20:37] [a542c511726eba04a1fc2f4bd37a90f8]
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	0
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=69673&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=69673&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69673&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] = + 1112.02652796567 + 0.223233492472836`y(t-1)`[t] + 0.319262189799833`y(t-2)`[t] + 35.0304516301858x[t] -124.87050947952M1[t] + 65.4880752713608M2[t] + 271.293404992809M3[t] -153.152721244156M4[t] + 68.4632365716367M5[t] + 346.830003968164M6[t] + 101.994476866418M7[t] + 281.262139157106M8[t] + 188.653515284143M9[t] + 119.308989555359M10[t] + 414.965821439792M11[t] -5.81464467737814t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  1112.02652796567 +  0.223233492472836`y(t-1)`[t] +  0.319262189799833`y(t-2)`[t] +  35.0304516301858x[t] -124.87050947952M1[t] +  65.4880752713608M2[t] +  271.293404992809M3[t] -153.152721244156M4[t] +  68.4632365716367M5[t] +  346.830003968164M6[t] +  101.994476866418M7[t] +  281.262139157106M8[t] +  188.653515284143M9[t] +  119.308989555359M10[t] +  414.965821439792M11[t] -5.81464467737814t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69673&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  1112.02652796567 +  0.223233492472836`y(t-1)`[t] +  0.319262189799833`y(t-2)`[t] +  35.0304516301858x[t] -124.87050947952M1[t] +  65.4880752713608M2[t] +  271.293404992809M3[t] -153.152721244156M4[t] +  68.4632365716367M5[t] +  346.830003968164M6[t] +  101.994476866418M7[t] +  281.262139157106M8[t] +  188.653515284143M9[t] +  119.308989555359M10[t] +  414.965821439792M11[t] -5.81464467737814t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69673&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69673&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] = + 1112.02652796567 + 0.223233492472836`y(t-1)`[t] + 0.319262189799833`y(t-2)`[t] + 35.0304516301858x[t] -124.87050947952M1[t] + 65.4880752713608M2[t] + 271.293404992809M3[t] -153.152721244156M4[t] + 68.4632365716367M5[t] + 346.830003968164M6[t] + 101.994476866418M7[t] + 281.262139157106M8[t] + 188.653515284143M9[t] + 119.308989555359M10[t] + 414.965821439792M11[t] -5.81464467737814t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1112.02652796567496.6066782.23930.0303660.015183
`y(t-1)`0.2232334924728360.1407311.58620.1200120.060006
`y(t-2)`0.3192621897998330.1434542.22550.0313410.01567
x35.0304516301858138.1841680.25350.8010860.400543
M1-124.87050947952187.035294-0.66760.5079370.253968
M265.4880752713608183.431750.3570.7228260.361413
M3271.293404992809182.7823161.48420.1450380.072519
M4-153.152721244156176.53059-0.86760.3904460.195223
M568.4632365716367191.923220.35670.7230450.361522
M6346.830003968164186.6839231.85780.0700470.035023
M7101.994476866418176.6097150.57750.5666050.283302
M8281.262139157106179.7720291.56450.1250190.06251
M9188.653515284143175.4464371.07530.2882470.144124
M10119.308989555359177.4129220.67250.5048680.252434
M11414.965821439792175.0039442.37120.0222820.011141
t-5.814644677378144.046632-1.43690.1579810.07899

\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) & 1112.02652796567 & 496.606678 & 2.2393 & 0.030366 & 0.015183 \tabularnewline
`y(t-1)` & 0.223233492472836 & 0.140731 & 1.5862 & 0.120012 & 0.060006 \tabularnewline
`y(t-2)` & 0.319262189799833 & 0.143454 & 2.2255 & 0.031341 & 0.01567 \tabularnewline
x & 35.0304516301858 & 138.184168 & 0.2535 & 0.801086 & 0.400543 \tabularnewline
M1 & -124.87050947952 & 187.035294 & -0.6676 & 0.507937 & 0.253968 \tabularnewline
M2 & 65.4880752713608 & 183.43175 & 0.357 & 0.722826 & 0.361413 \tabularnewline
M3 & 271.293404992809 & 182.782316 & 1.4842 & 0.145038 & 0.072519 \tabularnewline
M4 & -153.152721244156 & 176.53059 & -0.8676 & 0.390446 & 0.195223 \tabularnewline
M5 & 68.4632365716367 & 191.92322 & 0.3567 & 0.723045 & 0.361522 \tabularnewline
M6 & 346.830003968164 & 186.683923 & 1.8578 & 0.070047 & 0.035023 \tabularnewline
M7 & 101.994476866418 & 176.609715 & 0.5775 & 0.566605 & 0.283302 \tabularnewline
M8 & 281.262139157106 & 179.772029 & 1.5645 & 0.125019 & 0.06251 \tabularnewline
M9 & 188.653515284143 & 175.446437 & 1.0753 & 0.288247 & 0.144124 \tabularnewline
M10 & 119.308989555359 & 177.412922 & 0.6725 & 0.504868 & 0.252434 \tabularnewline
M11 & 414.965821439792 & 175.003944 & 2.3712 & 0.022282 & 0.011141 \tabularnewline
t & -5.81464467737814 & 4.046632 & -1.4369 & 0.157981 & 0.07899 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69673&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]1112.02652796567[/C][C]496.606678[/C][C]2.2393[/C][C]0.030366[/C][C]0.015183[/C][/ROW]
[ROW][C]`y(t-1)`[/C][C]0.223233492472836[/C][C]0.140731[/C][C]1.5862[/C][C]0.120012[/C][C]0.060006[/C][/ROW]
[ROW][C]`y(t-2)`[/C][C]0.319262189799833[/C][C]0.143454[/C][C]2.2255[/C][C]0.031341[/C][C]0.01567[/C][/ROW]
[ROW][C]x[/C][C]35.0304516301858[/C][C]138.184168[/C][C]0.2535[/C][C]0.801086[/C][C]0.400543[/C][/ROW]
[ROW][C]M1[/C][C]-124.87050947952[/C][C]187.035294[/C][C]-0.6676[/C][C]0.507937[/C][C]0.253968[/C][/ROW]
[ROW][C]M2[/C][C]65.4880752713608[/C][C]183.43175[/C][C]0.357[/C][C]0.722826[/C][C]0.361413[/C][/ROW]
[ROW][C]M3[/C][C]271.293404992809[/C][C]182.782316[/C][C]1.4842[/C][C]0.145038[/C][C]0.072519[/C][/ROW]
[ROW][C]M4[/C][C]-153.152721244156[/C][C]176.53059[/C][C]-0.8676[/C][C]0.390446[/C][C]0.195223[/C][/ROW]
[ROW][C]M5[/C][C]68.4632365716367[/C][C]191.92322[/C][C]0.3567[/C][C]0.723045[/C][C]0.361522[/C][/ROW]
[ROW][C]M6[/C][C]346.830003968164[/C][C]186.683923[/C][C]1.8578[/C][C]0.070047[/C][C]0.035023[/C][/ROW]
[ROW][C]M7[/C][C]101.994476866418[/C][C]176.609715[/C][C]0.5775[/C][C]0.566605[/C][C]0.283302[/C][/ROW]
[ROW][C]M8[/C][C]281.262139157106[/C][C]179.772029[/C][C]1.5645[/C][C]0.125019[/C][C]0.06251[/C][/ROW]
[ROW][C]M9[/C][C]188.653515284143[/C][C]175.446437[/C][C]1.0753[/C][C]0.288247[/C][C]0.144124[/C][/ROW]
[ROW][C]M10[/C][C]119.308989555359[/C][C]177.412922[/C][C]0.6725[/C][C]0.504868[/C][C]0.252434[/C][/ROW]
[ROW][C]M11[/C][C]414.965821439792[/C][C]175.003944[/C][C]2.3712[/C][C]0.022282[/C][C]0.011141[/C][/ROW]
[ROW][C]t[/C][C]-5.81464467737814[/C][C]4.046632[/C][C]-1.4369[/C][C]0.157981[/C][C]0.07899[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69673&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69673&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)1112.02652796567496.6066782.23930.0303660.015183
`y(t-1)`0.2232334924728360.1407311.58620.1200120.060006
`y(t-2)`0.3192621897998330.1434542.22550.0313410.01567
x35.0304516301858138.1841680.25350.8010860.400543
M1-124.87050947952187.035294-0.66760.5079370.253968
M265.4880752713608183.431750.3570.7228260.361413
M3271.293404992809182.7823161.48420.1450380.072519
M4-153.152721244156176.53059-0.86760.3904460.195223
M568.4632365716367191.923220.35670.7230450.361522
M6346.830003968164186.6839231.85780.0700470.035023
M7101.994476866418176.6097150.57750.5666050.283302
M8281.262139157106179.7720291.56450.1250190.06251
M9188.653515284143175.4464371.07530.2882470.144124
M10119.308989555359177.4129220.67250.5048680.252434
M11414.965821439792175.0039442.37120.0222820.011141
t-5.814644677378144.046632-1.43690.1579810.07899







Multiple Linear Regression - Regression Statistics
Multiple R0.744050670630097
R-squared0.553611400465098
Adjusted R-squared0.397894447138969
F-TEST (value)3.55524166534155
F-TEST (DF numerator)15
F-TEST (DF denominator)43
p-value0.000553619578918085
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation254.921020964398
Sum Squared Residuals2794343.25796983

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.744050670630097 \tabularnewline
R-squared & 0.553611400465098 \tabularnewline
Adjusted R-squared & 0.397894447138969 \tabularnewline
F-TEST (value) & 3.55524166534155 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 43 \tabularnewline
p-value & 0.000553619578918085 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 254.921020964398 \tabularnewline
Sum Squared Residuals & 2794343.25796983 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69673&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.744050670630097[/C][/ROW]
[ROW][C]R-squared[/C][C]0.553611400465098[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.397894447138969[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.55524166534155[/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.000553619578918085[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]254.921020964398[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2794343.25796983[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69673&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69673&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.744050670630097
R-squared0.553611400465098
Adjusted R-squared0.397894447138969
F-TEST (value)3.55524166534155
F-TEST (DF numerator)15
F-TEST (DF denominator)43
p-value0.000553619578918085
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation254.921020964398
Sum Squared Residuals2794343.25796983







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
121722425.30431452403-253.30431452403
221502338.75847855192-188.758478551918
325332539.26548398818-6.26548398818243
420582187.47937251534-129.479372515339
521602419.52219542249-259.522195422492
622602563.19459421895-303.194594218949
724982367.43251504669130.567484953307
826952625.9413228485269.0586771514796
927992647.47945348769151.520546512311
1029462658.43121768927287.568782310732
1129303014.29199602901-84.2919960290127
1223182636.87133593285-318.871335932853
1325402364.45908934578175.540910654218
1425702403.17240459076166.827595409244
1526692680.73630054457-11.7363005445745
1624502282.15351107904167.846488920963
1728422480.67364615608361.326353843916
1834402770.81487835842669.185121641579
1926782778.80911347959-100.809113479587
2029812973.076999328907.92300067110365
2122602699.01569037035-439.015690370352
2228442559.64161540062284.358384599376
2325462749.66412336614-203.664123366136
2424562448.809195335167.19080466483707
2522952202.8928942953692.1071057046404
2623792322.7626449987556.2373550012491
2724792490.10373085277-11.1037308527658
2820572108.98433312889-51.9843331288926
2922802262.5073314237517.4926685762466
3023512450.11187886881-99.1118788688148
3122762286.50675338063-10.5067533806252
3225482465.8848745342682.1151254657393
3323112404.23645170154-93.2364517015436
3422012363.01025920487-162.010259204873
3527252587.66207488754137.337925112458
3624082248.73711794816159.262882051844
3721392214.58033413248-75.5803341324816
3818982237.86835056424-339.868350564244
3925372298.17823486621238.821765133794
4020681933.62147790025134.378522099754
4120632248.73482235099-185.734822350993
4225202370.43681059166149.563189408344
4324342220.20803392362213.791966076381
4421902520.36579192279-330.365791922789
4527942340.01700288629453.98299711371
4620702321.79088762256-251.790887622561
4726152642.84638891838-27.8463889183824
4822652112.58235078383152.417649216172
4921392077.7633677023561.2366322976532
5024282122.43812129433305.561878705669
5121372346.71624974827-209.716249748271
5218231943.76130537649-120.761305376485
5320631996.5620046466866.4379953533226
5418062222.44183796216-416.441837962159
5517581991.04358416948-233.043584169476
5622432071.73101136553171.268988634467
5719932066.25140155413-73.2514015541256
5819322090.12602008267-158.126020082673
5924652286.53541679893178.464583201073

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2172 & 2425.30431452403 & -253.30431452403 \tabularnewline
2 & 2150 & 2338.75847855192 & -188.758478551918 \tabularnewline
3 & 2533 & 2539.26548398818 & -6.26548398818243 \tabularnewline
4 & 2058 & 2187.47937251534 & -129.479372515339 \tabularnewline
5 & 2160 & 2419.52219542249 & -259.522195422492 \tabularnewline
6 & 2260 & 2563.19459421895 & -303.194594218949 \tabularnewline
7 & 2498 & 2367.43251504669 & 130.567484953307 \tabularnewline
8 & 2695 & 2625.94132284852 & 69.0586771514796 \tabularnewline
9 & 2799 & 2647.47945348769 & 151.520546512311 \tabularnewline
10 & 2946 & 2658.43121768927 & 287.568782310732 \tabularnewline
11 & 2930 & 3014.29199602901 & -84.2919960290127 \tabularnewline
12 & 2318 & 2636.87133593285 & -318.871335932853 \tabularnewline
13 & 2540 & 2364.45908934578 & 175.540910654218 \tabularnewline
14 & 2570 & 2403.17240459076 & 166.827595409244 \tabularnewline
15 & 2669 & 2680.73630054457 & -11.7363005445745 \tabularnewline
16 & 2450 & 2282.15351107904 & 167.846488920963 \tabularnewline
17 & 2842 & 2480.67364615608 & 361.326353843916 \tabularnewline
18 & 3440 & 2770.81487835842 & 669.185121641579 \tabularnewline
19 & 2678 & 2778.80911347959 & -100.809113479587 \tabularnewline
20 & 2981 & 2973.07699932890 & 7.92300067110365 \tabularnewline
21 & 2260 & 2699.01569037035 & -439.015690370352 \tabularnewline
22 & 2844 & 2559.64161540062 & 284.358384599376 \tabularnewline
23 & 2546 & 2749.66412336614 & -203.664123366136 \tabularnewline
24 & 2456 & 2448.80919533516 & 7.19080466483707 \tabularnewline
25 & 2295 & 2202.89289429536 & 92.1071057046404 \tabularnewline
26 & 2379 & 2322.76264499875 & 56.2373550012491 \tabularnewline
27 & 2479 & 2490.10373085277 & -11.1037308527658 \tabularnewline
28 & 2057 & 2108.98433312889 & -51.9843331288926 \tabularnewline
29 & 2280 & 2262.50733142375 & 17.4926685762466 \tabularnewline
30 & 2351 & 2450.11187886881 & -99.1118788688148 \tabularnewline
31 & 2276 & 2286.50675338063 & -10.5067533806252 \tabularnewline
32 & 2548 & 2465.88487453426 & 82.1151254657393 \tabularnewline
33 & 2311 & 2404.23645170154 & -93.2364517015436 \tabularnewline
34 & 2201 & 2363.01025920487 & -162.010259204873 \tabularnewline
35 & 2725 & 2587.66207488754 & 137.337925112458 \tabularnewline
36 & 2408 & 2248.73711794816 & 159.262882051844 \tabularnewline
37 & 2139 & 2214.58033413248 & -75.5803341324816 \tabularnewline
38 & 1898 & 2237.86835056424 & -339.868350564244 \tabularnewline
39 & 2537 & 2298.17823486621 & 238.821765133794 \tabularnewline
40 & 2068 & 1933.62147790025 & 134.378522099754 \tabularnewline
41 & 2063 & 2248.73482235099 & -185.734822350993 \tabularnewline
42 & 2520 & 2370.43681059166 & 149.563189408344 \tabularnewline
43 & 2434 & 2220.20803392362 & 213.791966076381 \tabularnewline
44 & 2190 & 2520.36579192279 & -330.365791922789 \tabularnewline
45 & 2794 & 2340.01700288629 & 453.98299711371 \tabularnewline
46 & 2070 & 2321.79088762256 & -251.790887622561 \tabularnewline
47 & 2615 & 2642.84638891838 & -27.8463889183824 \tabularnewline
48 & 2265 & 2112.58235078383 & 152.417649216172 \tabularnewline
49 & 2139 & 2077.76336770235 & 61.2366322976532 \tabularnewline
50 & 2428 & 2122.43812129433 & 305.561878705669 \tabularnewline
51 & 2137 & 2346.71624974827 & -209.716249748271 \tabularnewline
52 & 1823 & 1943.76130537649 & -120.761305376485 \tabularnewline
53 & 2063 & 1996.56200464668 & 66.4379953533226 \tabularnewline
54 & 1806 & 2222.44183796216 & -416.441837962159 \tabularnewline
55 & 1758 & 1991.04358416948 & -233.043584169476 \tabularnewline
56 & 2243 & 2071.73101136553 & 171.268988634467 \tabularnewline
57 & 1993 & 2066.25140155413 & -73.2514015541256 \tabularnewline
58 & 1932 & 2090.12602008267 & -158.126020082673 \tabularnewline
59 & 2465 & 2286.53541679893 & 178.464583201073 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69673&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]2425.30431452403[/C][C]-253.30431452403[/C][/ROW]
[ROW][C]2[/C][C]2150[/C][C]2338.75847855192[/C][C]-188.758478551918[/C][/ROW]
[ROW][C]3[/C][C]2533[/C][C]2539.26548398818[/C][C]-6.26548398818243[/C][/ROW]
[ROW][C]4[/C][C]2058[/C][C]2187.47937251534[/C][C]-129.479372515339[/C][/ROW]
[ROW][C]5[/C][C]2160[/C][C]2419.52219542249[/C][C]-259.522195422492[/C][/ROW]
[ROW][C]6[/C][C]2260[/C][C]2563.19459421895[/C][C]-303.194594218949[/C][/ROW]
[ROW][C]7[/C][C]2498[/C][C]2367.43251504669[/C][C]130.567484953307[/C][/ROW]
[ROW][C]8[/C][C]2695[/C][C]2625.94132284852[/C][C]69.0586771514796[/C][/ROW]
[ROW][C]9[/C][C]2799[/C][C]2647.47945348769[/C][C]151.520546512311[/C][/ROW]
[ROW][C]10[/C][C]2946[/C][C]2658.43121768927[/C][C]287.568782310732[/C][/ROW]
[ROW][C]11[/C][C]2930[/C][C]3014.29199602901[/C][C]-84.2919960290127[/C][/ROW]
[ROW][C]12[/C][C]2318[/C][C]2636.87133593285[/C][C]-318.871335932853[/C][/ROW]
[ROW][C]13[/C][C]2540[/C][C]2364.45908934578[/C][C]175.540910654218[/C][/ROW]
[ROW][C]14[/C][C]2570[/C][C]2403.17240459076[/C][C]166.827595409244[/C][/ROW]
[ROW][C]15[/C][C]2669[/C][C]2680.73630054457[/C][C]-11.7363005445745[/C][/ROW]
[ROW][C]16[/C][C]2450[/C][C]2282.15351107904[/C][C]167.846488920963[/C][/ROW]
[ROW][C]17[/C][C]2842[/C][C]2480.67364615608[/C][C]361.326353843916[/C][/ROW]
[ROW][C]18[/C][C]3440[/C][C]2770.81487835842[/C][C]669.185121641579[/C][/ROW]
[ROW][C]19[/C][C]2678[/C][C]2778.80911347959[/C][C]-100.809113479587[/C][/ROW]
[ROW][C]20[/C][C]2981[/C][C]2973.07699932890[/C][C]7.92300067110365[/C][/ROW]
[ROW][C]21[/C][C]2260[/C][C]2699.01569037035[/C][C]-439.015690370352[/C][/ROW]
[ROW][C]22[/C][C]2844[/C][C]2559.64161540062[/C][C]284.358384599376[/C][/ROW]
[ROW][C]23[/C][C]2546[/C][C]2749.66412336614[/C][C]-203.664123366136[/C][/ROW]
[ROW][C]24[/C][C]2456[/C][C]2448.80919533516[/C][C]7.19080466483707[/C][/ROW]
[ROW][C]25[/C][C]2295[/C][C]2202.89289429536[/C][C]92.1071057046404[/C][/ROW]
[ROW][C]26[/C][C]2379[/C][C]2322.76264499875[/C][C]56.2373550012491[/C][/ROW]
[ROW][C]27[/C][C]2479[/C][C]2490.10373085277[/C][C]-11.1037308527658[/C][/ROW]
[ROW][C]28[/C][C]2057[/C][C]2108.98433312889[/C][C]-51.9843331288926[/C][/ROW]
[ROW][C]29[/C][C]2280[/C][C]2262.50733142375[/C][C]17.4926685762466[/C][/ROW]
[ROW][C]30[/C][C]2351[/C][C]2450.11187886881[/C][C]-99.1118788688148[/C][/ROW]
[ROW][C]31[/C][C]2276[/C][C]2286.50675338063[/C][C]-10.5067533806252[/C][/ROW]
[ROW][C]32[/C][C]2548[/C][C]2465.88487453426[/C][C]82.1151254657393[/C][/ROW]
[ROW][C]33[/C][C]2311[/C][C]2404.23645170154[/C][C]-93.2364517015436[/C][/ROW]
[ROW][C]34[/C][C]2201[/C][C]2363.01025920487[/C][C]-162.010259204873[/C][/ROW]
[ROW][C]35[/C][C]2725[/C][C]2587.66207488754[/C][C]137.337925112458[/C][/ROW]
[ROW][C]36[/C][C]2408[/C][C]2248.73711794816[/C][C]159.262882051844[/C][/ROW]
[ROW][C]37[/C][C]2139[/C][C]2214.58033413248[/C][C]-75.5803341324816[/C][/ROW]
[ROW][C]38[/C][C]1898[/C][C]2237.86835056424[/C][C]-339.868350564244[/C][/ROW]
[ROW][C]39[/C][C]2537[/C][C]2298.17823486621[/C][C]238.821765133794[/C][/ROW]
[ROW][C]40[/C][C]2068[/C][C]1933.62147790025[/C][C]134.378522099754[/C][/ROW]
[ROW][C]41[/C][C]2063[/C][C]2248.73482235099[/C][C]-185.734822350993[/C][/ROW]
[ROW][C]42[/C][C]2520[/C][C]2370.43681059166[/C][C]149.563189408344[/C][/ROW]
[ROW][C]43[/C][C]2434[/C][C]2220.20803392362[/C][C]213.791966076381[/C][/ROW]
[ROW][C]44[/C][C]2190[/C][C]2520.36579192279[/C][C]-330.365791922789[/C][/ROW]
[ROW][C]45[/C][C]2794[/C][C]2340.01700288629[/C][C]453.98299711371[/C][/ROW]
[ROW][C]46[/C][C]2070[/C][C]2321.79088762256[/C][C]-251.790887622561[/C][/ROW]
[ROW][C]47[/C][C]2615[/C][C]2642.84638891838[/C][C]-27.8463889183824[/C][/ROW]
[ROW][C]48[/C][C]2265[/C][C]2112.58235078383[/C][C]152.417649216172[/C][/ROW]
[ROW][C]49[/C][C]2139[/C][C]2077.76336770235[/C][C]61.2366322976532[/C][/ROW]
[ROW][C]50[/C][C]2428[/C][C]2122.43812129433[/C][C]305.561878705669[/C][/ROW]
[ROW][C]51[/C][C]2137[/C][C]2346.71624974827[/C][C]-209.716249748271[/C][/ROW]
[ROW][C]52[/C][C]1823[/C][C]1943.76130537649[/C][C]-120.761305376485[/C][/ROW]
[ROW][C]53[/C][C]2063[/C][C]1996.56200464668[/C][C]66.4379953533226[/C][/ROW]
[ROW][C]54[/C][C]1806[/C][C]2222.44183796216[/C][C]-416.441837962159[/C][/ROW]
[ROW][C]55[/C][C]1758[/C][C]1991.04358416948[/C][C]-233.043584169476[/C][/ROW]
[ROW][C]56[/C][C]2243[/C][C]2071.73101136553[/C][C]171.268988634467[/C][/ROW]
[ROW][C]57[/C][C]1993[/C][C]2066.25140155413[/C][C]-73.2514015541256[/C][/ROW]
[ROW][C]58[/C][C]1932[/C][C]2090.12602008267[/C][C]-158.126020082673[/C][/ROW]
[ROW][C]59[/C][C]2465[/C][C]2286.53541679893[/C][C]178.464583201073[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69673&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69673&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
121722425.30431452403-253.30431452403
221502338.75847855192-188.758478551918
325332539.26548398818-6.26548398818243
420582187.47937251534-129.479372515339
521602419.52219542249-259.522195422492
622602563.19459421895-303.194594218949
724982367.43251504669130.567484953307
826952625.9413228485269.0586771514796
927992647.47945348769151.520546512311
1029462658.43121768927287.568782310732
1129303014.29199602901-84.2919960290127
1223182636.87133593285-318.871335932853
1325402364.45908934578175.540910654218
1425702403.17240459076166.827595409244
1526692680.73630054457-11.7363005445745
1624502282.15351107904167.846488920963
1728422480.67364615608361.326353843916
1834402770.81487835842669.185121641579
1926782778.80911347959-100.809113479587
2029812973.076999328907.92300067110365
2122602699.01569037035-439.015690370352
2228442559.64161540062284.358384599376
2325462749.66412336614-203.664123366136
2424562448.809195335167.19080466483707
2522952202.8928942953692.1071057046404
2623792322.7626449987556.2373550012491
2724792490.10373085277-11.1037308527658
2820572108.98433312889-51.9843331288926
2922802262.5073314237517.4926685762466
3023512450.11187886881-99.1118788688148
3122762286.50675338063-10.5067533806252
3225482465.8848745342682.1151254657393
3323112404.23645170154-93.2364517015436
3422012363.01025920487-162.010259204873
3527252587.66207488754137.337925112458
3624082248.73711794816159.262882051844
3721392214.58033413248-75.5803341324816
3818982237.86835056424-339.868350564244
3925372298.17823486621238.821765133794
4020681933.62147790025134.378522099754
4120632248.73482235099-185.734822350993
4225202370.43681059166149.563189408344
4324342220.20803392362213.791966076381
4421902520.36579192279-330.365791922789
4527942340.01700288629453.98299711371
4620702321.79088762256-251.790887622561
4726152642.84638891838-27.8463889183824
4822652112.58235078383152.417649216172
4921392077.7633677023561.2366322976532
5024282122.43812129433305.561878705669
5121372346.71624974827-209.716249748271
5218231943.76130537649-120.761305376485
5320631996.5620046466866.4379953533226
5418062222.44183796216-416.441837962159
5517581991.04358416948-233.043584169476
5622432071.73101136553171.268988634467
5719932066.25140155413-73.2514015541256
5819322090.12602008267-158.126020082673
5924652286.53541679893178.464583201073







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.92281315095260.15437369809480.0771868490474
200.8713051055000010.2573897889999970.128694894499999
210.9849407479423030.03011850411539430.0150592520576971
220.9793307284106180.04133854317876320.0206692715893816
230.9769417526700210.04611649465995780.0230582473299789
240.9594782319107240.0810435361785510.0405217680892755
250.9318966166278190.1362067667443630.0681033833721815
260.8890149847086780.2219700305826440.110985015291322
270.8354801123286120.3290397753427760.164519887671388
280.7707774442032180.4584451115935640.229222555796782
290.684381730091470.631236539817060.31561826990853
300.626448986953510.747102026092980.37355101304649
310.5167343049986410.9665313900027180.483265695001359
320.4346149629342350.869229925868470.565385037065765
330.3408068896753090.6816137793506180.659193110324691
340.311044035204340.622088070408680.68895596479566
350.2224296177657800.4448592355315590.77757038223422
360.1456343035194720.2912686070389430.854365696480529
370.1228372241325810.2456744482651610.87716277586742
380.4173578753129440.8347157506258890.582642124687056
390.3579138791191110.7158277582382220.642086120880889
400.3424210166763290.6848420333526570.657578983323671

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.9228131509526 & 0.1543736980948 & 0.0771868490474 \tabularnewline
20 & 0.871305105500001 & 0.257389788999997 & 0.128694894499999 \tabularnewline
21 & 0.984940747942303 & 0.0301185041153943 & 0.0150592520576971 \tabularnewline
22 & 0.979330728410618 & 0.0413385431787632 & 0.0206692715893816 \tabularnewline
23 & 0.976941752670021 & 0.0461164946599578 & 0.0230582473299789 \tabularnewline
24 & 0.959478231910724 & 0.081043536178551 & 0.0405217680892755 \tabularnewline
25 & 0.931896616627819 & 0.136206766744363 & 0.0681033833721815 \tabularnewline
26 & 0.889014984708678 & 0.221970030582644 & 0.110985015291322 \tabularnewline
27 & 0.835480112328612 & 0.329039775342776 & 0.164519887671388 \tabularnewline
28 & 0.770777444203218 & 0.458445111593564 & 0.229222555796782 \tabularnewline
29 & 0.68438173009147 & 0.63123653981706 & 0.31561826990853 \tabularnewline
30 & 0.62644898695351 & 0.74710202609298 & 0.37355101304649 \tabularnewline
31 & 0.516734304998641 & 0.966531390002718 & 0.483265695001359 \tabularnewline
32 & 0.434614962934235 & 0.86922992586847 & 0.565385037065765 \tabularnewline
33 & 0.340806889675309 & 0.681613779350618 & 0.659193110324691 \tabularnewline
34 & 0.31104403520434 & 0.62208807040868 & 0.68895596479566 \tabularnewline
35 & 0.222429617765780 & 0.444859235531559 & 0.77757038223422 \tabularnewline
36 & 0.145634303519472 & 0.291268607038943 & 0.854365696480529 \tabularnewline
37 & 0.122837224132581 & 0.245674448265161 & 0.87716277586742 \tabularnewline
38 & 0.417357875312944 & 0.834715750625889 & 0.582642124687056 \tabularnewline
39 & 0.357913879119111 & 0.715827758238222 & 0.642086120880889 \tabularnewline
40 & 0.342421016676329 & 0.684842033352657 & 0.657578983323671 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69673&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.9228131509526[/C][C]0.1543736980948[/C][C]0.0771868490474[/C][/ROW]
[ROW][C]20[/C][C]0.871305105500001[/C][C]0.257389788999997[/C][C]0.128694894499999[/C][/ROW]
[ROW][C]21[/C][C]0.984940747942303[/C][C]0.0301185041153943[/C][C]0.0150592520576971[/C][/ROW]
[ROW][C]22[/C][C]0.979330728410618[/C][C]0.0413385431787632[/C][C]0.0206692715893816[/C][/ROW]
[ROW][C]23[/C][C]0.976941752670021[/C][C]0.0461164946599578[/C][C]0.0230582473299789[/C][/ROW]
[ROW][C]24[/C][C]0.959478231910724[/C][C]0.081043536178551[/C][C]0.0405217680892755[/C][/ROW]
[ROW][C]25[/C][C]0.931896616627819[/C][C]0.136206766744363[/C][C]0.0681033833721815[/C][/ROW]
[ROW][C]26[/C][C]0.889014984708678[/C][C]0.221970030582644[/C][C]0.110985015291322[/C][/ROW]
[ROW][C]27[/C][C]0.835480112328612[/C][C]0.329039775342776[/C][C]0.164519887671388[/C][/ROW]
[ROW][C]28[/C][C]0.770777444203218[/C][C]0.458445111593564[/C][C]0.229222555796782[/C][/ROW]
[ROW][C]29[/C][C]0.68438173009147[/C][C]0.63123653981706[/C][C]0.31561826990853[/C][/ROW]
[ROW][C]30[/C][C]0.62644898695351[/C][C]0.74710202609298[/C][C]0.37355101304649[/C][/ROW]
[ROW][C]31[/C][C]0.516734304998641[/C][C]0.966531390002718[/C][C]0.483265695001359[/C][/ROW]
[ROW][C]32[/C][C]0.434614962934235[/C][C]0.86922992586847[/C][C]0.565385037065765[/C][/ROW]
[ROW][C]33[/C][C]0.340806889675309[/C][C]0.681613779350618[/C][C]0.659193110324691[/C][/ROW]
[ROW][C]34[/C][C]0.31104403520434[/C][C]0.62208807040868[/C][C]0.68895596479566[/C][/ROW]
[ROW][C]35[/C][C]0.222429617765780[/C][C]0.444859235531559[/C][C]0.77757038223422[/C][/ROW]
[ROW][C]36[/C][C]0.145634303519472[/C][C]0.291268607038943[/C][C]0.854365696480529[/C][/ROW]
[ROW][C]37[/C][C]0.122837224132581[/C][C]0.245674448265161[/C][C]0.87716277586742[/C][/ROW]
[ROW][C]38[/C][C]0.417357875312944[/C][C]0.834715750625889[/C][C]0.582642124687056[/C][/ROW]
[ROW][C]39[/C][C]0.357913879119111[/C][C]0.715827758238222[/C][C]0.642086120880889[/C][/ROW]
[ROW][C]40[/C][C]0.342421016676329[/C][C]0.684842033352657[/C][C]0.657578983323671[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69673&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69673&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.92281315095260.15437369809480.0771868490474
200.8713051055000010.2573897889999970.128694894499999
210.9849407479423030.03011850411539430.0150592520576971
220.9793307284106180.04133854317876320.0206692715893816
230.9769417526700210.04611649465995780.0230582473299789
240.9594782319107240.0810435361785510.0405217680892755
250.9318966166278190.1362067667443630.0681033833721815
260.8890149847086780.2219700305826440.110985015291322
270.8354801123286120.3290397753427760.164519887671388
280.7707774442032180.4584451115935640.229222555796782
290.684381730091470.631236539817060.31561826990853
300.626448986953510.747102026092980.37355101304649
310.5167343049986410.9665313900027180.483265695001359
320.4346149629342350.869229925868470.565385037065765
330.3408068896753090.6816137793506180.659193110324691
340.311044035204340.622088070408680.68895596479566
350.2224296177657800.4448592355315590.77757038223422
360.1456343035194720.2912686070389430.854365696480529
370.1228372241325810.2456744482651610.87716277586742
380.4173578753129440.8347157506258890.582642124687056
390.3579138791191110.7158277582382220.642086120880889
400.3424210166763290.6848420333526570.657578983323671







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=69673&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=69673&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69673&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')
}