Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 11:20:43 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/20/t1258741279lrjiepk5ury32jh.htm/, Retrieved Fri, 19 Apr 2024 11:27:51 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58388, Retrieved Fri, 19 Apr 2024 11:27:51 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact130
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
- R  D      [Multiple Regression] [] [2009-11-20 18:20:43] [c5f9f441970441f2f938cd843072158d] [Current]
-    D        [Multiple Regression] [model 4] [2009-11-20 19:49:56] [fa71ec4c741ffec745cb91dcbd756720]
-   PD        [Multiple Regression] [Model 4] [2009-12-19 11:58:01] [eba9b8a72d680086d9ebbb043233c887]
Feedback Forum

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




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58388&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58388&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = -521.125044123331 + 43.9247300401469X[t] + 0.267607684713609Y1[t] + 0.353647238620865Y2[t] + 0.0424752602074008Y3[t] + 0.087865010872984Y4[t] + 127.551804826609M1[t] -192.613937113397M2[t] + 225.212618383627M3[t] + 443.735103798471M4[t] + 133.326151066841M5[t] + 512.431188452368M6[t] + 188.750160570144M7[t] + 228.369322244913M8[t] + 514.605578151214M9[t] -216.103454805878M10[t] -264.768073178073M11[t] + 1.7513226111489t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -521.125044123331 +  43.9247300401469X[t] +  0.267607684713609Y1[t] +  0.353647238620865Y2[t] +  0.0424752602074008Y3[t] +  0.087865010872984Y4[t] +  127.551804826609M1[t] -192.613937113397M2[t] +  225.212618383627M3[t] +  443.735103798471M4[t] +  133.326151066841M5[t] +  512.431188452368M6[t] +  188.750160570144M7[t] +  228.369322244913M8[t] +  514.605578151214M9[t] -216.103454805878M10[t] -264.768073178073M11[t] +  1.7513226111489t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58388&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -521.125044123331 +  43.9247300401469X[t] +  0.267607684713609Y1[t] +  0.353647238620865Y2[t] +  0.0424752602074008Y3[t] +  0.087865010872984Y4[t] +  127.551804826609M1[t] -192.613937113397M2[t] +  225.212618383627M3[t] +  443.735103798471M4[t] +  133.326151066841M5[t] +  512.431188452368M6[t] +  188.750160570144M7[t] +  228.369322244913M8[t] +  514.605578151214M9[t] -216.103454805878M10[t] -264.768073178073M11[t] +  1.7513226111489t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58388&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58388&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] = -521.125044123331 + 43.9247300401469X[t] + 0.267607684713609Y1[t] + 0.353647238620865Y2[t] + 0.0424752602074008Y3[t] + 0.087865010872984Y4[t] + 127.551804826609M1[t] -192.613937113397M2[t] + 225.212618383627M3[t] + 443.735103798471M4[t] + 133.326151066841M5[t] + 512.431188452368M6[t] + 188.750160570144M7[t] + 228.369322244913M8[t] + 514.605578151214M9[t] -216.103454805878M10[t] -264.768073178073M11[t] + 1.7513226111489t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-521.125044123331784.363785-0.66440.5103490.255174
X43.924730040146928.0094691.56820.1249110.062456
Y10.2676076847136090.1575881.69820.0974460.048723
Y20.3536472386208650.1657132.13410.0391780.019589
Y30.04247526020740080.1667630.25470.800290.400145
Y40.0878650108729840.1614450.54420.5893740.294687
M1127.551804826609191.7693380.66510.5098810.25494
M2-192.613937113397216.309642-0.89050.3786820.189341
M3225.212618383627206.890731.08860.283030.141515
M4443.735103798471212.2732822.09040.0431490.021575
M5133.326151066841252.3302480.52840.600230.300115
M6512.431188452368246.671262.07740.0443980.022199
M7188.750160570144241.7915980.78060.4397320.219866
M8228.369322244913254.5348760.89720.3751160.187558
M9514.605578151214236.6852992.17420.035820.01791
M10-216.103454805878201.719321-1.07130.2906160.145308
M11-264.768073178073185.609993-1.42650.1616880.080844
t1.75132261114892.6883020.65150.518570.259285

\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) & -521.125044123331 & 784.363785 & -0.6644 & 0.510349 & 0.255174 \tabularnewline
X & 43.9247300401469 & 28.009469 & 1.5682 & 0.124911 & 0.062456 \tabularnewline
Y1 & 0.267607684713609 & 0.157588 & 1.6982 & 0.097446 & 0.048723 \tabularnewline
Y2 & 0.353647238620865 & 0.165713 & 2.1341 & 0.039178 & 0.019589 \tabularnewline
Y3 & 0.0424752602074008 & 0.166763 & 0.2547 & 0.80029 & 0.400145 \tabularnewline
Y4 & 0.087865010872984 & 0.161445 & 0.5442 & 0.589374 & 0.294687 \tabularnewline
M1 & 127.551804826609 & 191.769338 & 0.6651 & 0.509881 & 0.25494 \tabularnewline
M2 & -192.613937113397 & 216.309642 & -0.8905 & 0.378682 & 0.189341 \tabularnewline
M3 & 225.212618383627 & 206.89073 & 1.0886 & 0.28303 & 0.141515 \tabularnewline
M4 & 443.735103798471 & 212.273282 & 2.0904 & 0.043149 & 0.021575 \tabularnewline
M5 & 133.326151066841 & 252.330248 & 0.5284 & 0.60023 & 0.300115 \tabularnewline
M6 & 512.431188452368 & 246.67126 & 2.0774 & 0.044398 & 0.022199 \tabularnewline
M7 & 188.750160570144 & 241.791598 & 0.7806 & 0.439732 & 0.219866 \tabularnewline
M8 & 228.369322244913 & 254.534876 & 0.8972 & 0.375116 & 0.187558 \tabularnewline
M9 & 514.605578151214 & 236.685299 & 2.1742 & 0.03582 & 0.01791 \tabularnewline
M10 & -216.103454805878 & 201.719321 & -1.0713 & 0.290616 & 0.145308 \tabularnewline
M11 & -264.768073178073 & 185.609993 & -1.4265 & 0.161688 & 0.080844 \tabularnewline
t & 1.7513226111489 & 2.688302 & 0.6515 & 0.51857 & 0.259285 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58388&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]-521.125044123331[/C][C]784.363785[/C][C]-0.6644[/C][C]0.510349[/C][C]0.255174[/C][/ROW]
[ROW][C]X[/C][C]43.9247300401469[/C][C]28.009469[/C][C]1.5682[/C][C]0.124911[/C][C]0.062456[/C][/ROW]
[ROW][C]Y1[/C][C]0.267607684713609[/C][C]0.157588[/C][C]1.6982[/C][C]0.097446[/C][C]0.048723[/C][/ROW]
[ROW][C]Y2[/C][C]0.353647238620865[/C][C]0.165713[/C][C]2.1341[/C][C]0.039178[/C][C]0.019589[/C][/ROW]
[ROW][C]Y3[/C][C]0.0424752602074008[/C][C]0.166763[/C][C]0.2547[/C][C]0.80029[/C][C]0.400145[/C][/ROW]
[ROW][C]Y4[/C][C]0.087865010872984[/C][C]0.161445[/C][C]0.5442[/C][C]0.589374[/C][C]0.294687[/C][/ROW]
[ROW][C]M1[/C][C]127.551804826609[/C][C]191.769338[/C][C]0.6651[/C][C]0.509881[/C][C]0.25494[/C][/ROW]
[ROW][C]M2[/C][C]-192.613937113397[/C][C]216.309642[/C][C]-0.8905[/C][C]0.378682[/C][C]0.189341[/C][/ROW]
[ROW][C]M3[/C][C]225.212618383627[/C][C]206.89073[/C][C]1.0886[/C][C]0.28303[/C][C]0.141515[/C][/ROW]
[ROW][C]M4[/C][C]443.735103798471[/C][C]212.273282[/C][C]2.0904[/C][C]0.043149[/C][C]0.021575[/C][/ROW]
[ROW][C]M5[/C][C]133.326151066841[/C][C]252.330248[/C][C]0.5284[/C][C]0.60023[/C][C]0.300115[/C][/ROW]
[ROW][C]M6[/C][C]512.431188452368[/C][C]246.67126[/C][C]2.0774[/C][C]0.044398[/C][C]0.022199[/C][/ROW]
[ROW][C]M7[/C][C]188.750160570144[/C][C]241.791598[/C][C]0.7806[/C][C]0.439732[/C][C]0.219866[/C][/ROW]
[ROW][C]M8[/C][C]228.369322244913[/C][C]254.534876[/C][C]0.8972[/C][C]0.375116[/C][C]0.187558[/C][/ROW]
[ROW][C]M9[/C][C]514.605578151214[/C][C]236.685299[/C][C]2.1742[/C][C]0.03582[/C][C]0.01791[/C][/ROW]
[ROW][C]M10[/C][C]-216.103454805878[/C][C]201.719321[/C][C]-1.0713[/C][C]0.290616[/C][C]0.145308[/C][/ROW]
[ROW][C]M11[/C][C]-264.768073178073[/C][C]185.609993[/C][C]-1.4265[/C][C]0.161688[/C][C]0.080844[/C][/ROW]
[ROW][C]t[/C][C]1.7513226111489[/C][C]2.688302[/C][C]0.6515[/C][C]0.51857[/C][C]0.259285[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58388&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58388&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)-521.125044123331784.363785-0.66440.5103490.255174
X43.924730040146928.0094691.56820.1249110.062456
Y10.2676076847136090.1575881.69820.0974460.048723
Y20.3536472386208650.1657132.13410.0391780.019589
Y30.04247526020740080.1667630.25470.800290.400145
Y40.0878650108729840.1614450.54420.5893740.294687
M1127.551804826609191.7693380.66510.5098810.25494
M2-192.613937113397216.309642-0.89050.3786820.189341
M3225.212618383627206.890731.08860.283030.141515
M4443.735103798471212.2732822.09040.0431490.021575
M5133.326151066841252.3302480.52840.600230.300115
M6512.431188452368246.671262.07740.0443980.022199
M7188.750160570144241.7915980.78060.4397320.219866
M8228.369322244913254.5348760.89720.3751160.187558
M9514.605578151214236.6852992.17420.035820.01791
M10-216.103454805878201.719321-1.07130.2906160.145308
M11-264.768073178073185.609993-1.42650.1616880.080844
t1.75132261114892.6883020.65150.518570.259285







Multiple Linear Regression - Regression Statistics
Multiple R0.829733555062557
R-squared0.688457772396749
Adjusted R-squared0.552657314210717
F-TEST (value)5.06962775820413
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value1.38179662922955e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation236.799134179636
Sum Squared Residuals2186879.36798078

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.829733555062557 \tabularnewline
R-squared & 0.688457772396749 \tabularnewline
Adjusted R-squared & 0.552657314210717 \tabularnewline
F-TEST (value) & 5.06962775820413 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 1.38179662922955e-05 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 236.799134179636 \tabularnewline
Sum Squared Residuals & 2186879.36798078 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58388&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.829733555062557[/C][/ROW]
[ROW][C]R-squared[/C][C]0.688457772396749[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.552657314210717[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5.06962775820413[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]39[/C][/ROW]
[ROW][C]p-value[/C][C]1.38179662922955e-05[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]236.799134179636[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2186879.36798078[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58388&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58388&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.829733555062557
R-squared0.688457772396749
Adjusted R-squared0.552657314210717
F-TEST (value)5.06962775820413
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value1.38179662922955e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation236.799134179636
Sum Squared Residuals2186879.36798078







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
118521941.05180079232-89.0518007923169
215701623.12094946266-53.1209494626560
318511874.89315302571-23.8931530257124
419542160.25021167375-206.250211673746
518281959.08061013037-131.080610130366
622512307.8393174631-56.8393174631012
722772035.29592757216241.704072427837
820852192.9904768909-107.990476890899
922822450.08072484923-168.080724849227
1022661968.22883814607297.771161853927
1118782029.14876880496-151.148768804957
1222672173.2830982766093.7169017234037
1320692242.17555942156-173.175559421565
1417461924.57025814827-178.57025814827
1522992143.76511482489155.234885175112
1623602379.64257209135-19.6425720913465
1722142207.834422455756.16557754425473
1828252509.19881337064315.801186629365
1923552306.4005184661948.5994815338065
2023332419.66233939098-86.6623393909767
2130162592.59716913233423.402830867667
2221552327.12085177489-172.120851774893
2321722323.77943368687-151.779433686865
2421502321.82793315012-171.827933150117
2525332391.23931089213141.760689107873
2620582017.9366595525640.0633404474396
2721602415.65971824574-255.659718245736
2822602483.22722816375-223.227228163747
2924982237.70151640775260.298483592253
3026952675.8173526008219.1826473991786
3127992508.37663414389290.623365856107
3229462639.78759864091306.212401359092
3329303019.99489946441-89.9948994644116
3423182518.59747258839-200.597472588395
3525402335.20163436202204.798365637976
3625702456.93437855671113.065621443293
3726692619.0198860647249.9801139352799
3824502249.43943575277200.560564247234
3928422648.63270573609193.367294263910
4034402859.27625195842580.723748041577
4126782835.49686991502-157.496869915020
4229813186.18530344320-205.185303443204
4322602726.91987466946-466.919874669459
4428442685.10756778693158.892432213067
4525462820.31524068911-274.315240689115
4624562381.0528374906474.947162509361
4722952196.8701631461598.1298368538463
4823792413.95459001658-34.9545900165796
4924792408.5134428292770.486557170729
5020572065.93269708375-8.93269708374724
5122802349.04930816757-69.0493081675735
5223512482.60373611274-131.603736112738
5322762253.8865810911222.1134189088789
5425482620.95921312224-72.9592131222383
5523112425.00704514829-114.007045148292
5622012471.45201729028-270.452017290284
5727252616.01196586491108.988034135087

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 1852 & 1941.05180079232 & -89.0518007923169 \tabularnewline
2 & 1570 & 1623.12094946266 & -53.1209494626560 \tabularnewline
3 & 1851 & 1874.89315302571 & -23.8931530257124 \tabularnewline
4 & 1954 & 2160.25021167375 & -206.250211673746 \tabularnewline
5 & 1828 & 1959.08061013037 & -131.080610130366 \tabularnewline
6 & 2251 & 2307.8393174631 & -56.8393174631012 \tabularnewline
7 & 2277 & 2035.29592757216 & 241.704072427837 \tabularnewline
8 & 2085 & 2192.9904768909 & -107.990476890899 \tabularnewline
9 & 2282 & 2450.08072484923 & -168.080724849227 \tabularnewline
10 & 2266 & 1968.22883814607 & 297.771161853927 \tabularnewline
11 & 1878 & 2029.14876880496 & -151.148768804957 \tabularnewline
12 & 2267 & 2173.28309827660 & 93.7169017234037 \tabularnewline
13 & 2069 & 2242.17555942156 & -173.175559421565 \tabularnewline
14 & 1746 & 1924.57025814827 & -178.57025814827 \tabularnewline
15 & 2299 & 2143.76511482489 & 155.234885175112 \tabularnewline
16 & 2360 & 2379.64257209135 & -19.6425720913465 \tabularnewline
17 & 2214 & 2207.83442245575 & 6.16557754425473 \tabularnewline
18 & 2825 & 2509.19881337064 & 315.801186629365 \tabularnewline
19 & 2355 & 2306.40051846619 & 48.5994815338065 \tabularnewline
20 & 2333 & 2419.66233939098 & -86.6623393909767 \tabularnewline
21 & 3016 & 2592.59716913233 & 423.402830867667 \tabularnewline
22 & 2155 & 2327.12085177489 & -172.120851774893 \tabularnewline
23 & 2172 & 2323.77943368687 & -151.779433686865 \tabularnewline
24 & 2150 & 2321.82793315012 & -171.827933150117 \tabularnewline
25 & 2533 & 2391.23931089213 & 141.760689107873 \tabularnewline
26 & 2058 & 2017.93665955256 & 40.0633404474396 \tabularnewline
27 & 2160 & 2415.65971824574 & -255.659718245736 \tabularnewline
28 & 2260 & 2483.22722816375 & -223.227228163747 \tabularnewline
29 & 2498 & 2237.70151640775 & 260.298483592253 \tabularnewline
30 & 2695 & 2675.81735260082 & 19.1826473991786 \tabularnewline
31 & 2799 & 2508.37663414389 & 290.623365856107 \tabularnewline
32 & 2946 & 2639.78759864091 & 306.212401359092 \tabularnewline
33 & 2930 & 3019.99489946441 & -89.9948994644116 \tabularnewline
34 & 2318 & 2518.59747258839 & -200.597472588395 \tabularnewline
35 & 2540 & 2335.20163436202 & 204.798365637976 \tabularnewline
36 & 2570 & 2456.93437855671 & 113.065621443293 \tabularnewline
37 & 2669 & 2619.01988606472 & 49.9801139352799 \tabularnewline
38 & 2450 & 2249.43943575277 & 200.560564247234 \tabularnewline
39 & 2842 & 2648.63270573609 & 193.367294263910 \tabularnewline
40 & 3440 & 2859.27625195842 & 580.723748041577 \tabularnewline
41 & 2678 & 2835.49686991502 & -157.496869915020 \tabularnewline
42 & 2981 & 3186.18530344320 & -205.185303443204 \tabularnewline
43 & 2260 & 2726.91987466946 & -466.919874669459 \tabularnewline
44 & 2844 & 2685.10756778693 & 158.892432213067 \tabularnewline
45 & 2546 & 2820.31524068911 & -274.315240689115 \tabularnewline
46 & 2456 & 2381.05283749064 & 74.947162509361 \tabularnewline
47 & 2295 & 2196.87016314615 & 98.1298368538463 \tabularnewline
48 & 2379 & 2413.95459001658 & -34.9545900165796 \tabularnewline
49 & 2479 & 2408.51344282927 & 70.486557170729 \tabularnewline
50 & 2057 & 2065.93269708375 & -8.93269708374724 \tabularnewline
51 & 2280 & 2349.04930816757 & -69.0493081675735 \tabularnewline
52 & 2351 & 2482.60373611274 & -131.603736112738 \tabularnewline
53 & 2276 & 2253.88658109112 & 22.1134189088789 \tabularnewline
54 & 2548 & 2620.95921312224 & -72.9592131222383 \tabularnewline
55 & 2311 & 2425.00704514829 & -114.007045148292 \tabularnewline
56 & 2201 & 2471.45201729028 & -270.452017290284 \tabularnewline
57 & 2725 & 2616.01196586491 & 108.988034135087 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58388&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]1852[/C][C]1941.05180079232[/C][C]-89.0518007923169[/C][/ROW]
[ROW][C]2[/C][C]1570[/C][C]1623.12094946266[/C][C]-53.1209494626560[/C][/ROW]
[ROW][C]3[/C][C]1851[/C][C]1874.89315302571[/C][C]-23.8931530257124[/C][/ROW]
[ROW][C]4[/C][C]1954[/C][C]2160.25021167375[/C][C]-206.250211673746[/C][/ROW]
[ROW][C]5[/C][C]1828[/C][C]1959.08061013037[/C][C]-131.080610130366[/C][/ROW]
[ROW][C]6[/C][C]2251[/C][C]2307.8393174631[/C][C]-56.8393174631012[/C][/ROW]
[ROW][C]7[/C][C]2277[/C][C]2035.29592757216[/C][C]241.704072427837[/C][/ROW]
[ROW][C]8[/C][C]2085[/C][C]2192.9904768909[/C][C]-107.990476890899[/C][/ROW]
[ROW][C]9[/C][C]2282[/C][C]2450.08072484923[/C][C]-168.080724849227[/C][/ROW]
[ROW][C]10[/C][C]2266[/C][C]1968.22883814607[/C][C]297.771161853927[/C][/ROW]
[ROW][C]11[/C][C]1878[/C][C]2029.14876880496[/C][C]-151.148768804957[/C][/ROW]
[ROW][C]12[/C][C]2267[/C][C]2173.28309827660[/C][C]93.7169017234037[/C][/ROW]
[ROW][C]13[/C][C]2069[/C][C]2242.17555942156[/C][C]-173.175559421565[/C][/ROW]
[ROW][C]14[/C][C]1746[/C][C]1924.57025814827[/C][C]-178.57025814827[/C][/ROW]
[ROW][C]15[/C][C]2299[/C][C]2143.76511482489[/C][C]155.234885175112[/C][/ROW]
[ROW][C]16[/C][C]2360[/C][C]2379.64257209135[/C][C]-19.6425720913465[/C][/ROW]
[ROW][C]17[/C][C]2214[/C][C]2207.83442245575[/C][C]6.16557754425473[/C][/ROW]
[ROW][C]18[/C][C]2825[/C][C]2509.19881337064[/C][C]315.801186629365[/C][/ROW]
[ROW][C]19[/C][C]2355[/C][C]2306.40051846619[/C][C]48.5994815338065[/C][/ROW]
[ROW][C]20[/C][C]2333[/C][C]2419.66233939098[/C][C]-86.6623393909767[/C][/ROW]
[ROW][C]21[/C][C]3016[/C][C]2592.59716913233[/C][C]423.402830867667[/C][/ROW]
[ROW][C]22[/C][C]2155[/C][C]2327.12085177489[/C][C]-172.120851774893[/C][/ROW]
[ROW][C]23[/C][C]2172[/C][C]2323.77943368687[/C][C]-151.779433686865[/C][/ROW]
[ROW][C]24[/C][C]2150[/C][C]2321.82793315012[/C][C]-171.827933150117[/C][/ROW]
[ROW][C]25[/C][C]2533[/C][C]2391.23931089213[/C][C]141.760689107873[/C][/ROW]
[ROW][C]26[/C][C]2058[/C][C]2017.93665955256[/C][C]40.0633404474396[/C][/ROW]
[ROW][C]27[/C][C]2160[/C][C]2415.65971824574[/C][C]-255.659718245736[/C][/ROW]
[ROW][C]28[/C][C]2260[/C][C]2483.22722816375[/C][C]-223.227228163747[/C][/ROW]
[ROW][C]29[/C][C]2498[/C][C]2237.70151640775[/C][C]260.298483592253[/C][/ROW]
[ROW][C]30[/C][C]2695[/C][C]2675.81735260082[/C][C]19.1826473991786[/C][/ROW]
[ROW][C]31[/C][C]2799[/C][C]2508.37663414389[/C][C]290.623365856107[/C][/ROW]
[ROW][C]32[/C][C]2946[/C][C]2639.78759864091[/C][C]306.212401359092[/C][/ROW]
[ROW][C]33[/C][C]2930[/C][C]3019.99489946441[/C][C]-89.9948994644116[/C][/ROW]
[ROW][C]34[/C][C]2318[/C][C]2518.59747258839[/C][C]-200.597472588395[/C][/ROW]
[ROW][C]35[/C][C]2540[/C][C]2335.20163436202[/C][C]204.798365637976[/C][/ROW]
[ROW][C]36[/C][C]2570[/C][C]2456.93437855671[/C][C]113.065621443293[/C][/ROW]
[ROW][C]37[/C][C]2669[/C][C]2619.01988606472[/C][C]49.9801139352799[/C][/ROW]
[ROW][C]38[/C][C]2450[/C][C]2249.43943575277[/C][C]200.560564247234[/C][/ROW]
[ROW][C]39[/C][C]2842[/C][C]2648.63270573609[/C][C]193.367294263910[/C][/ROW]
[ROW][C]40[/C][C]3440[/C][C]2859.27625195842[/C][C]580.723748041577[/C][/ROW]
[ROW][C]41[/C][C]2678[/C][C]2835.49686991502[/C][C]-157.496869915020[/C][/ROW]
[ROW][C]42[/C][C]2981[/C][C]3186.18530344320[/C][C]-205.185303443204[/C][/ROW]
[ROW][C]43[/C][C]2260[/C][C]2726.91987466946[/C][C]-466.919874669459[/C][/ROW]
[ROW][C]44[/C][C]2844[/C][C]2685.10756778693[/C][C]158.892432213067[/C][/ROW]
[ROW][C]45[/C][C]2546[/C][C]2820.31524068911[/C][C]-274.315240689115[/C][/ROW]
[ROW][C]46[/C][C]2456[/C][C]2381.05283749064[/C][C]74.947162509361[/C][/ROW]
[ROW][C]47[/C][C]2295[/C][C]2196.87016314615[/C][C]98.1298368538463[/C][/ROW]
[ROW][C]48[/C][C]2379[/C][C]2413.95459001658[/C][C]-34.9545900165796[/C][/ROW]
[ROW][C]49[/C][C]2479[/C][C]2408.51344282927[/C][C]70.486557170729[/C][/ROW]
[ROW][C]50[/C][C]2057[/C][C]2065.93269708375[/C][C]-8.93269708374724[/C][/ROW]
[ROW][C]51[/C][C]2280[/C][C]2349.04930816757[/C][C]-69.0493081675735[/C][/ROW]
[ROW][C]52[/C][C]2351[/C][C]2482.60373611274[/C][C]-131.603736112738[/C][/ROW]
[ROW][C]53[/C][C]2276[/C][C]2253.88658109112[/C][C]22.1134189088789[/C][/ROW]
[ROW][C]54[/C][C]2548[/C][C]2620.95921312224[/C][C]-72.9592131222383[/C][/ROW]
[ROW][C]55[/C][C]2311[/C][C]2425.00704514829[/C][C]-114.007045148292[/C][/ROW]
[ROW][C]56[/C][C]2201[/C][C]2471.45201729028[/C][C]-270.452017290284[/C][/ROW]
[ROW][C]57[/C][C]2725[/C][C]2616.01196586491[/C][C]108.988034135087[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58388&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58388&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
118521941.05180079232-89.0518007923169
215701623.12094946266-53.1209494626560
318511874.89315302571-23.8931530257124
419542160.25021167375-206.250211673746
518281959.08061013037-131.080610130366
622512307.8393174631-56.8393174631012
722772035.29592757216241.704072427837
820852192.9904768909-107.990476890899
922822450.08072484923-168.080724849227
1022661968.22883814607297.771161853927
1118782029.14876880496-151.148768804957
1222672173.2830982766093.7169017234037
1320692242.17555942156-173.175559421565
1417461924.57025814827-178.57025814827
1522992143.76511482489155.234885175112
1623602379.64257209135-19.6425720913465
1722142207.834422455756.16557754425473
1828252509.19881337064315.801186629365
1923552306.4005184661948.5994815338065
2023332419.66233939098-86.6623393909767
2130162592.59716913233423.402830867667
2221552327.12085177489-172.120851774893
2321722323.77943368687-151.779433686865
2421502321.82793315012-171.827933150117
2525332391.23931089213141.760689107873
2620582017.9366595525640.0633404474396
2721602415.65971824574-255.659718245736
2822602483.22722816375-223.227228163747
2924982237.70151640775260.298483592253
3026952675.8173526008219.1826473991786
3127992508.37663414389290.623365856107
3229462639.78759864091306.212401359092
3329303019.99489946441-89.9948994644116
3423182518.59747258839-200.597472588395
3525402335.20163436202204.798365637976
3625702456.93437855671113.065621443293
3726692619.0198860647249.9801139352799
3824502249.43943575277200.560564247234
3928422648.63270573609193.367294263910
4034402859.27625195842580.723748041577
4126782835.49686991502-157.496869915020
4229813186.18530344320-205.185303443204
4322602726.91987466946-466.919874669459
4428442685.10756778693158.892432213067
4525462820.31524068911-274.315240689115
4624562381.0528374906474.947162509361
4722952196.8701631461598.1298368538463
4823792413.95459001658-34.9545900165796
4924792408.5134428292770.486557170729
5020572065.93269708375-8.93269708374724
5122802349.04930816757-69.0493081675735
5223512482.60373611274-131.603736112738
5322762253.8865810911222.1134189088789
5425482620.95921312224-72.9592131222383
5523112425.00704514829-114.007045148292
5622012471.45201729028-270.452017290284
5727252616.01196586491108.988034135087







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.03482066500686580.06964133001373170.965179334993134
220.01577302947748700.03154605895497390.984226970522513
230.008660329033291280.01732065806658260.991339670966709
240.06187124314545210.1237424862909040.938128756854548
250.06606158829206170.1321231765841230.933938411707938
260.08398435939117740.1679687187823550.916015640608823
270.1617592779485840.3235185558971680.838240722051416
280.4834536998317660.9669073996635330.516546300168234
290.3815268123756840.7630536247513680.618473187624316
300.3678027622656590.7356055245313180.632197237734341
310.2668235367311030.5336470734622060.733176463268897
320.4230115140300450.846023028060090.576988485969955
330.3043263570666360.6086527141332720.695673642933364
340.2211282555723860.4422565111447720.778871744427614
350.1299050055279640.2598100110559280.870094994472036
360.08261441414163890.1652288282832780.917385585858361

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.0348206650068658 & 0.0696413300137317 & 0.965179334993134 \tabularnewline
22 & 0.0157730294774870 & 0.0315460589549739 & 0.984226970522513 \tabularnewline
23 & 0.00866032903329128 & 0.0173206580665826 & 0.991339670966709 \tabularnewline
24 & 0.0618712431454521 & 0.123742486290904 & 0.938128756854548 \tabularnewline
25 & 0.0660615882920617 & 0.132123176584123 & 0.933938411707938 \tabularnewline
26 & 0.0839843593911774 & 0.167968718782355 & 0.916015640608823 \tabularnewline
27 & 0.161759277948584 & 0.323518555897168 & 0.838240722051416 \tabularnewline
28 & 0.483453699831766 & 0.966907399663533 & 0.516546300168234 \tabularnewline
29 & 0.381526812375684 & 0.763053624751368 & 0.618473187624316 \tabularnewline
30 & 0.367802762265659 & 0.735605524531318 & 0.632197237734341 \tabularnewline
31 & 0.266823536731103 & 0.533647073462206 & 0.733176463268897 \tabularnewline
32 & 0.423011514030045 & 0.84602302806009 & 0.576988485969955 \tabularnewline
33 & 0.304326357066636 & 0.608652714133272 & 0.695673642933364 \tabularnewline
34 & 0.221128255572386 & 0.442256511144772 & 0.778871744427614 \tabularnewline
35 & 0.129905005527964 & 0.259810011055928 & 0.870094994472036 \tabularnewline
36 & 0.0826144141416389 & 0.165228828283278 & 0.917385585858361 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58388&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]21[/C][C]0.0348206650068658[/C][C]0.0696413300137317[/C][C]0.965179334993134[/C][/ROW]
[ROW][C]22[/C][C]0.0157730294774870[/C][C]0.0315460589549739[/C][C]0.984226970522513[/C][/ROW]
[ROW][C]23[/C][C]0.00866032903329128[/C][C]0.0173206580665826[/C][C]0.991339670966709[/C][/ROW]
[ROW][C]24[/C][C]0.0618712431454521[/C][C]0.123742486290904[/C][C]0.938128756854548[/C][/ROW]
[ROW][C]25[/C][C]0.0660615882920617[/C][C]0.132123176584123[/C][C]0.933938411707938[/C][/ROW]
[ROW][C]26[/C][C]0.0839843593911774[/C][C]0.167968718782355[/C][C]0.916015640608823[/C][/ROW]
[ROW][C]27[/C][C]0.161759277948584[/C][C]0.323518555897168[/C][C]0.838240722051416[/C][/ROW]
[ROW][C]28[/C][C]0.483453699831766[/C][C]0.966907399663533[/C][C]0.516546300168234[/C][/ROW]
[ROW][C]29[/C][C]0.381526812375684[/C][C]0.763053624751368[/C][C]0.618473187624316[/C][/ROW]
[ROW][C]30[/C][C]0.367802762265659[/C][C]0.735605524531318[/C][C]0.632197237734341[/C][/ROW]
[ROW][C]31[/C][C]0.266823536731103[/C][C]0.533647073462206[/C][C]0.733176463268897[/C][/ROW]
[ROW][C]32[/C][C]0.423011514030045[/C][C]0.84602302806009[/C][C]0.576988485969955[/C][/ROW]
[ROW][C]33[/C][C]0.304326357066636[/C][C]0.608652714133272[/C][C]0.695673642933364[/C][/ROW]
[ROW][C]34[/C][C]0.221128255572386[/C][C]0.442256511144772[/C][C]0.778871744427614[/C][/ROW]
[ROW][C]35[/C][C]0.129905005527964[/C][C]0.259810011055928[/C][C]0.870094994472036[/C][/ROW]
[ROW][C]36[/C][C]0.0826144141416389[/C][C]0.165228828283278[/C][C]0.917385585858361[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58388&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58388&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
210.03482066500686580.06964133001373170.965179334993134
220.01577302947748700.03154605895497390.984226970522513
230.008660329033291280.01732065806658260.991339670966709
240.06187124314545210.1237424862909040.938128756854548
250.06606158829206170.1321231765841230.933938411707938
260.08398435939117740.1679687187823550.916015640608823
270.1617592779485840.3235185558971680.838240722051416
280.4834536998317660.9669073996635330.516546300168234
290.3815268123756840.7630536247513680.618473187624316
300.3678027622656590.7356055245313180.632197237734341
310.2668235367311030.5336470734622060.733176463268897
320.4230115140300450.846023028060090.576988485969955
330.3043263570666360.6086527141332720.695673642933364
340.2211282555723860.4422565111447720.778871744427614
350.1299050055279640.2598100110559280.870094994472036
360.08261441414163890.1652288282832780.917385585858361







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58388&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 level20.125NOK
10% type I error level30.1875NOK



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