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 computationThu, 19 Nov 2009 11:25:54 -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/19/t12586552336fm2ihgvszv47il.htm/, Retrieved Sat, 20 Apr 2024 04:44:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57878, Retrieved Sat, 20 Apr 2024 04:44:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsy= aantal bouwvergunningen x= rente
Estimated Impact173
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:14:11] [b98453cac15ba1066b407e146608df68]
- R  D      [Multiple Regression] [multiple regressi...] [2009-11-19 18:25:54] [03368d751914a6c247d86aff8eac7cbf] [Current]
Feedback Forum

Post a new message
Dataseries X:
2360	2	2267	1746
2214	2	2360	2267
2825	2	2214	2360
2355	2	2825	2214
2333	2	2355	2825
3016	2	2333	2355
2155	2	3016	2333
2172	2	2155	3016
2150	2	2172	2155
2533	2	2150	2172
2058	2	2533	2150
2160	2	2058	2533
2260	2	2160	2058
2498	2	2260	2160
2695	2	2498	2260
2799	2	2695	2498
2947	2	2799	2695
2930	2	2947	2799
2318	2	2930	2947
2540	2	2318	2930
2570	2	2540	2318
2669	2	2570	2540
2450	2	2669	2570
2842	2	2450	2669
3440	2	2842	2450
2678	2	3440	2842
2981	2	2678	3440
2260	2,21	2981	2678
2844	2,25	2260	2981
2546	2,25	2844	2260
2456	2,45	2546	2844
2295	2,5	2456	2546
2379	2,5	2295	2456
2479	2,64	2379	2295
2057	2,75	2479	2379
2280	2,93	2057	2479
2351	3	2280	2057
2276	3,17	2351	2280
2548	3,25	2276	2351
2311	3,39	2548	2276
2201	3,5	2311	2548
2725	3,5	2201	2311
2408	3,65	2725	2201
2139	3,75	2408	2725
1898	3,75	2139	2408
2537	3,9	1898	2139
2069	4	2537	1898
2063	4	2069	2537
2524	4	2063	2069
2437	4	2524	2063
2189	4	2437	2524
2793	4	2189	2437
2074	4	2793	2189
2622	4	2074	2793
2278	4	2622	2074
2144	4	2278	2622
2427	4	2144	2278
2139	4	2427	2144
1828	4,18	2139	2427
2072	4,25	1828	2139
1800	4,25	2072	1828




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time8 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 & 8 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57878&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]8 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=57878&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57878&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 time8 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 2433.44637791450 -315.074157998355X[t] -0.00125846806695553Y1[t] + 0.177146531235082Y2[t] + 250.885789760826M1[t] + 140.710806349446M2[t] + 315.354276985791M3[t] + 212.856988453909M4[t] + 147.800396561370M5[t] + 450.964210878744M6[t] + 22.4825935448227M7[t] -94.9584839475962M8[t] + 0.239158080932078M9[t] + 206.346376078827M10[t] -162.905871133591M11[t] + 10.3153346404841t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  2433.44637791450 -315.074157998355X[t] -0.00125846806695553Y1[t] +  0.177146531235082Y2[t] +  250.885789760826M1[t] +  140.710806349446M2[t] +  315.354276985791M3[t] +  212.856988453909M4[t] +  147.800396561370M5[t] +  450.964210878744M6[t] +  22.4825935448227M7[t] -94.9584839475962M8[t] +  0.239158080932078M9[t] +  206.346376078827M10[t] -162.905871133591M11[t] +  10.3153346404841t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57878&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  2433.44637791450 -315.074157998355X[t] -0.00125846806695553Y1[t] +  0.177146531235082Y2[t] +  250.885789760826M1[t] +  140.710806349446M2[t] +  315.354276985791M3[t] +  212.856988453909M4[t] +  147.800396561370M5[t] +  450.964210878744M6[t] +  22.4825935448227M7[t] -94.9584839475962M8[t] +  0.239158080932078M9[t] +  206.346376078827M10[t] -162.905871133591M11[t] +  10.3153346404841t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57878&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57878&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] = + 2433.44637791450 -315.074157998355X[t] -0.00125846806695553Y1[t] + 0.177146531235082Y2[t] + 250.885789760826M1[t] + 140.710806349446M2[t] + 315.354276985791M3[t] + 212.856988453909M4[t] + 147.800396561370M5[t] + 450.964210878744M6[t] + 22.4825935448227M7[t] -94.9584839475962M8[t] + 0.239158080932078M9[t] + 206.346376078827M10[t] -162.905871133591M11[t] + 10.3153346404841t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2433.44637791450751.6240493.23760.0022660.001133
X-315.074157998355148.716908-2.11860.0396770.019839
Y1-0.001258468066955530.162594-0.00770.9938590.496929
Y20.1771465312350820.1635191.08330.2844280.142214
M1250.885789760826167.3646031.4990.1408470.070424
M2140.710806349446177.562390.79250.4322520.216126
M3315.354276985791167.4281431.88350.0661020.033051
M4212.856988453909181.4177171.17330.246850.123425
M5147.800396561370174.406910.84740.4012320.200616
M6450.964210878744168.3351872.6790.0102770.005138
M722.4825935448227191.0253090.11770.9068340.453417
M8-94.9584839475962168.855391-0.56240.5766580.288329
M90.239158080932078161.0319480.00150.9988220.499411
M10206.346376078827163.505711.2620.2134460.106723
M11-162.905871133591170.220741-0.9570.3436670.171834
t10.31533464048416.7053111.53840.1309580.065479

\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) & 2433.44637791450 & 751.624049 & 3.2376 & 0.002266 & 0.001133 \tabularnewline
X & -315.074157998355 & 148.716908 & -2.1186 & 0.039677 & 0.019839 \tabularnewline
Y1 & -0.00125846806695553 & 0.162594 & -0.0077 & 0.993859 & 0.496929 \tabularnewline
Y2 & 0.177146531235082 & 0.163519 & 1.0833 & 0.284428 & 0.142214 \tabularnewline
M1 & 250.885789760826 & 167.364603 & 1.499 & 0.140847 & 0.070424 \tabularnewline
M2 & 140.710806349446 & 177.56239 & 0.7925 & 0.432252 & 0.216126 \tabularnewline
M3 & 315.354276985791 & 167.428143 & 1.8835 & 0.066102 & 0.033051 \tabularnewline
M4 & 212.856988453909 & 181.417717 & 1.1733 & 0.24685 & 0.123425 \tabularnewline
M5 & 147.800396561370 & 174.40691 & 0.8474 & 0.401232 & 0.200616 \tabularnewline
M6 & 450.964210878744 & 168.335187 & 2.679 & 0.010277 & 0.005138 \tabularnewline
M7 & 22.4825935448227 & 191.025309 & 0.1177 & 0.906834 & 0.453417 \tabularnewline
M8 & -94.9584839475962 & 168.855391 & -0.5624 & 0.576658 & 0.288329 \tabularnewline
M9 & 0.239158080932078 & 161.031948 & 0.0015 & 0.998822 & 0.499411 \tabularnewline
M10 & 206.346376078827 & 163.50571 & 1.262 & 0.213446 & 0.106723 \tabularnewline
M11 & -162.905871133591 & 170.220741 & -0.957 & 0.343667 & 0.171834 \tabularnewline
t & 10.3153346404841 & 6.705311 & 1.5384 & 0.130958 & 0.065479 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57878&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]2433.44637791450[/C][C]751.624049[/C][C]3.2376[/C][C]0.002266[/C][C]0.001133[/C][/ROW]
[ROW][C]X[/C][C]-315.074157998355[/C][C]148.716908[/C][C]-2.1186[/C][C]0.039677[/C][C]0.019839[/C][/ROW]
[ROW][C]Y1[/C][C]-0.00125846806695553[/C][C]0.162594[/C][C]-0.0077[/C][C]0.993859[/C][C]0.496929[/C][/ROW]
[ROW][C]Y2[/C][C]0.177146531235082[/C][C]0.163519[/C][C]1.0833[/C][C]0.284428[/C][C]0.142214[/C][/ROW]
[ROW][C]M1[/C][C]250.885789760826[/C][C]167.364603[/C][C]1.499[/C][C]0.140847[/C][C]0.070424[/C][/ROW]
[ROW][C]M2[/C][C]140.710806349446[/C][C]177.56239[/C][C]0.7925[/C][C]0.432252[/C][C]0.216126[/C][/ROW]
[ROW][C]M3[/C][C]315.354276985791[/C][C]167.428143[/C][C]1.8835[/C][C]0.066102[/C][C]0.033051[/C][/ROW]
[ROW][C]M4[/C][C]212.856988453909[/C][C]181.417717[/C][C]1.1733[/C][C]0.24685[/C][C]0.123425[/C][/ROW]
[ROW][C]M5[/C][C]147.800396561370[/C][C]174.40691[/C][C]0.8474[/C][C]0.401232[/C][C]0.200616[/C][/ROW]
[ROW][C]M6[/C][C]450.964210878744[/C][C]168.335187[/C][C]2.679[/C][C]0.010277[/C][C]0.005138[/C][/ROW]
[ROW][C]M7[/C][C]22.4825935448227[/C][C]191.025309[/C][C]0.1177[/C][C]0.906834[/C][C]0.453417[/C][/ROW]
[ROW][C]M8[/C][C]-94.9584839475962[/C][C]168.855391[/C][C]-0.5624[/C][C]0.576658[/C][C]0.288329[/C][/ROW]
[ROW][C]M9[/C][C]0.239158080932078[/C][C]161.031948[/C][C]0.0015[/C][C]0.998822[/C][C]0.499411[/C][/ROW]
[ROW][C]M10[/C][C]206.346376078827[/C][C]163.50571[/C][C]1.262[/C][C]0.213446[/C][C]0.106723[/C][/ROW]
[ROW][C]M11[/C][C]-162.905871133591[/C][C]170.220741[/C][C]-0.957[/C][C]0.343667[/C][C]0.171834[/C][/ROW]
[ROW][C]t[/C][C]10.3153346404841[/C][C]6.705311[/C][C]1.5384[/C][C]0.130958[/C][C]0.065479[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57878&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57878&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)2433.44637791450751.6240493.23760.0022660.001133
X-315.074157998355148.716908-2.11860.0396770.019839
Y1-0.001258468066955530.162594-0.00770.9938590.496929
Y20.1771465312350820.1635191.08330.2844280.142214
M1250.885789760826167.3646031.4990.1408470.070424
M2140.710806349446177.562390.79250.4322520.216126
M3315.354276985791167.4281431.88350.0661020.033051
M4212.856988453909181.4177171.17330.246850.123425
M5147.800396561370174.406910.84740.4012320.200616
M6450.964210878744168.3351872.6790.0102770.005138
M722.4825935448227191.0253090.11770.9068340.453417
M8-94.9584839475962168.855391-0.56240.5766580.288329
M90.239158080932078161.0319480.00150.9988220.499411
M10206.346376078827163.505711.2620.2134460.106723
M11-162.905871133591170.220741-0.9570.3436670.171834
t10.31533464048416.7053111.53840.1309580.065479







Multiple Linear Regression - Regression Statistics
Multiple R0.737666102933429
R-squared0.544151279416992
Adjusted R-squared0.392201705889323
F-TEST (value)3.58113067897427
F-TEST (DF numerator)15
F-TEST (DF denominator)45
p-value0.000455865512472009
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation248.415794172444
Sum Squared Residuals2776968.30574466

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.737666102933429 \tabularnewline
R-squared & 0.544151279416992 \tabularnewline
Adjusted R-squared & 0.392201705889323 \tabularnewline
F-TEST (value) & 3.58113067897427 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 45 \tabularnewline
p-value & 0.000455865512472009 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 248.415794172444 \tabularnewline
Sum Squared Residuals & 2776968.30574466 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57878&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.737666102933429[/C][/ROW]
[ROW][C]R-squared[/C][C]0.544151279416992[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.392201705889323[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.58113067897427[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]45[/C][/ROW]
[ROW][C]p-value[/C][C]0.000455865512472009[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]248.415794172444[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2776968.30574466[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57878&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57878&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.737666102933429
R-squared0.544151279416992
Adjusted R-squared0.392201705889323
F-TEST (value)3.58113067897427
F-TEST (DF numerator)15
F-TEST (DF denominator)45
p-value0.000455865512472009
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation248.415794172444
Sum Squared Residuals2776968.30574466







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
123602370.94408274775-10.9440827477537
222142363.26073922011-149.260739220114
328252564.87790823958260.122091760418
423552446.06363679895-91.0636367989512
523332500.150390123-167.150390123001
630162730.39835569784285.601644302156
721552307.47531562750-152.475315627505
821722322.42419461478-150.424194614779
921502275.39261393325-125.392613933248
1025332494.854343900138.1456560999033
1120582131.53821437135-73.5382143713462
1221602373.20431394026-213.204313940262
1322602550.13247226208-290.132472262079
1424982468.2159228704729.7840771295347
1526952670.5898658708724.4101341291327
1627992620.32086820423178.679131795772
1729472600.34659692652346.653403073479
1829302932.06273185892-2.06273185891864
1923182540.13552974541-222.135529745412
2025402430.76847831946109.231521680542
2125702427.58839796174142.411602038264
2226692683.29972649229-14.2997264922944
2324502329.55262151878120.447378481216
2428422520.58693839180321.413061608205
2534402742.49965297038697.500347029623
2626782711.32888053959-33.3288805395925
2729813003.18026416202-22.1802641620213
2822602709.46576446555-449.465764465548
2928442696.70429533406147.295704665936
3025462881.72584992033-335.725849920326
3124562504.37333335246-48.3733333524587
3222952328.81747841858-33.8174784185778
3323792418.58988063521-39.5898806352127
3424792562.27574830735-83.2757483073498
3520572183.43514017265-126.435140172648
3622802318.18872415478-38.1887241547824
3723512482.29818293607-131.298182936073
3822762368.29025253813-92.290252538125
3925482540.71491399787.28508600220146
4023112390.79428482979-79.7942848297873
4122012349.87698362572-148.876983625724
4227252621.51083616823103.489163831767
4324082135.9378740721272.062125927901
4421392090.5284321647448.471567835263
4518982140.22448634224-242.224486342240
4625372262.03678918277274.963210817235
4720691828.09598568856240.904014311445
4820632115.10278797718-52.1027879771833
4925242293.40688656888230.593113431123
5024372191.90420483170245.095795168296
5121892458.63704772973-269.637047729731
5227932351.35544570149441.644554298514
5320742251.92173399069-177.921733990689
5426222673.30222635468-51.3022263546779
5522782127.07794720253150.922052797475
5621442117.4614164824526.5385835175518
5724272162.20462112756264.795378872436
5821392354.53339211749-215.533392117494
5918281989.37803824867-161.378038248667
6020722089.91723553598-17.9172355359773
6118002295.71872251484-495.718722514840

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2360 & 2370.94408274775 & -10.9440827477537 \tabularnewline
2 & 2214 & 2363.26073922011 & -149.260739220114 \tabularnewline
3 & 2825 & 2564.87790823958 & 260.122091760418 \tabularnewline
4 & 2355 & 2446.06363679895 & -91.0636367989512 \tabularnewline
5 & 2333 & 2500.150390123 & -167.150390123001 \tabularnewline
6 & 3016 & 2730.39835569784 & 285.601644302156 \tabularnewline
7 & 2155 & 2307.47531562750 & -152.475315627505 \tabularnewline
8 & 2172 & 2322.42419461478 & -150.424194614779 \tabularnewline
9 & 2150 & 2275.39261393325 & -125.392613933248 \tabularnewline
10 & 2533 & 2494.8543439001 & 38.1456560999033 \tabularnewline
11 & 2058 & 2131.53821437135 & -73.5382143713462 \tabularnewline
12 & 2160 & 2373.20431394026 & -213.204313940262 \tabularnewline
13 & 2260 & 2550.13247226208 & -290.132472262079 \tabularnewline
14 & 2498 & 2468.21592287047 & 29.7840771295347 \tabularnewline
15 & 2695 & 2670.58986587087 & 24.4101341291327 \tabularnewline
16 & 2799 & 2620.32086820423 & 178.679131795772 \tabularnewline
17 & 2947 & 2600.34659692652 & 346.653403073479 \tabularnewline
18 & 2930 & 2932.06273185892 & -2.06273185891864 \tabularnewline
19 & 2318 & 2540.13552974541 & -222.135529745412 \tabularnewline
20 & 2540 & 2430.76847831946 & 109.231521680542 \tabularnewline
21 & 2570 & 2427.58839796174 & 142.411602038264 \tabularnewline
22 & 2669 & 2683.29972649229 & -14.2997264922944 \tabularnewline
23 & 2450 & 2329.55262151878 & 120.447378481216 \tabularnewline
24 & 2842 & 2520.58693839180 & 321.413061608205 \tabularnewline
25 & 3440 & 2742.49965297038 & 697.500347029623 \tabularnewline
26 & 2678 & 2711.32888053959 & -33.3288805395925 \tabularnewline
27 & 2981 & 3003.18026416202 & -22.1802641620213 \tabularnewline
28 & 2260 & 2709.46576446555 & -449.465764465548 \tabularnewline
29 & 2844 & 2696.70429533406 & 147.295704665936 \tabularnewline
30 & 2546 & 2881.72584992033 & -335.725849920326 \tabularnewline
31 & 2456 & 2504.37333335246 & -48.3733333524587 \tabularnewline
32 & 2295 & 2328.81747841858 & -33.8174784185778 \tabularnewline
33 & 2379 & 2418.58988063521 & -39.5898806352127 \tabularnewline
34 & 2479 & 2562.27574830735 & -83.2757483073498 \tabularnewline
35 & 2057 & 2183.43514017265 & -126.435140172648 \tabularnewline
36 & 2280 & 2318.18872415478 & -38.1887241547824 \tabularnewline
37 & 2351 & 2482.29818293607 & -131.298182936073 \tabularnewline
38 & 2276 & 2368.29025253813 & -92.290252538125 \tabularnewline
39 & 2548 & 2540.7149139978 & 7.28508600220146 \tabularnewline
40 & 2311 & 2390.79428482979 & -79.7942848297873 \tabularnewline
41 & 2201 & 2349.87698362572 & -148.876983625724 \tabularnewline
42 & 2725 & 2621.51083616823 & 103.489163831767 \tabularnewline
43 & 2408 & 2135.9378740721 & 272.062125927901 \tabularnewline
44 & 2139 & 2090.52843216474 & 48.471567835263 \tabularnewline
45 & 1898 & 2140.22448634224 & -242.224486342240 \tabularnewline
46 & 2537 & 2262.03678918277 & 274.963210817235 \tabularnewline
47 & 2069 & 1828.09598568856 & 240.904014311445 \tabularnewline
48 & 2063 & 2115.10278797718 & -52.1027879771833 \tabularnewline
49 & 2524 & 2293.40688656888 & 230.593113431123 \tabularnewline
50 & 2437 & 2191.90420483170 & 245.095795168296 \tabularnewline
51 & 2189 & 2458.63704772973 & -269.637047729731 \tabularnewline
52 & 2793 & 2351.35544570149 & 441.644554298514 \tabularnewline
53 & 2074 & 2251.92173399069 & -177.921733990689 \tabularnewline
54 & 2622 & 2673.30222635468 & -51.3022263546779 \tabularnewline
55 & 2278 & 2127.07794720253 & 150.922052797475 \tabularnewline
56 & 2144 & 2117.46141648245 & 26.5385835175518 \tabularnewline
57 & 2427 & 2162.20462112756 & 264.795378872436 \tabularnewline
58 & 2139 & 2354.53339211749 & -215.533392117494 \tabularnewline
59 & 1828 & 1989.37803824867 & -161.378038248667 \tabularnewline
60 & 2072 & 2089.91723553598 & -17.9172355359773 \tabularnewline
61 & 1800 & 2295.71872251484 & -495.718722514840 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57878&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]2360[/C][C]2370.94408274775[/C][C]-10.9440827477537[/C][/ROW]
[ROW][C]2[/C][C]2214[/C][C]2363.26073922011[/C][C]-149.260739220114[/C][/ROW]
[ROW][C]3[/C][C]2825[/C][C]2564.87790823958[/C][C]260.122091760418[/C][/ROW]
[ROW][C]4[/C][C]2355[/C][C]2446.06363679895[/C][C]-91.0636367989512[/C][/ROW]
[ROW][C]5[/C][C]2333[/C][C]2500.150390123[/C][C]-167.150390123001[/C][/ROW]
[ROW][C]6[/C][C]3016[/C][C]2730.39835569784[/C][C]285.601644302156[/C][/ROW]
[ROW][C]7[/C][C]2155[/C][C]2307.47531562750[/C][C]-152.475315627505[/C][/ROW]
[ROW][C]8[/C][C]2172[/C][C]2322.42419461478[/C][C]-150.424194614779[/C][/ROW]
[ROW][C]9[/C][C]2150[/C][C]2275.39261393325[/C][C]-125.392613933248[/C][/ROW]
[ROW][C]10[/C][C]2533[/C][C]2494.8543439001[/C][C]38.1456560999033[/C][/ROW]
[ROW][C]11[/C][C]2058[/C][C]2131.53821437135[/C][C]-73.5382143713462[/C][/ROW]
[ROW][C]12[/C][C]2160[/C][C]2373.20431394026[/C][C]-213.204313940262[/C][/ROW]
[ROW][C]13[/C][C]2260[/C][C]2550.13247226208[/C][C]-290.132472262079[/C][/ROW]
[ROW][C]14[/C][C]2498[/C][C]2468.21592287047[/C][C]29.7840771295347[/C][/ROW]
[ROW][C]15[/C][C]2695[/C][C]2670.58986587087[/C][C]24.4101341291327[/C][/ROW]
[ROW][C]16[/C][C]2799[/C][C]2620.32086820423[/C][C]178.679131795772[/C][/ROW]
[ROW][C]17[/C][C]2947[/C][C]2600.34659692652[/C][C]346.653403073479[/C][/ROW]
[ROW][C]18[/C][C]2930[/C][C]2932.06273185892[/C][C]-2.06273185891864[/C][/ROW]
[ROW][C]19[/C][C]2318[/C][C]2540.13552974541[/C][C]-222.135529745412[/C][/ROW]
[ROW][C]20[/C][C]2540[/C][C]2430.76847831946[/C][C]109.231521680542[/C][/ROW]
[ROW][C]21[/C][C]2570[/C][C]2427.58839796174[/C][C]142.411602038264[/C][/ROW]
[ROW][C]22[/C][C]2669[/C][C]2683.29972649229[/C][C]-14.2997264922944[/C][/ROW]
[ROW][C]23[/C][C]2450[/C][C]2329.55262151878[/C][C]120.447378481216[/C][/ROW]
[ROW][C]24[/C][C]2842[/C][C]2520.58693839180[/C][C]321.413061608205[/C][/ROW]
[ROW][C]25[/C][C]3440[/C][C]2742.49965297038[/C][C]697.500347029623[/C][/ROW]
[ROW][C]26[/C][C]2678[/C][C]2711.32888053959[/C][C]-33.3288805395925[/C][/ROW]
[ROW][C]27[/C][C]2981[/C][C]3003.18026416202[/C][C]-22.1802641620213[/C][/ROW]
[ROW][C]28[/C][C]2260[/C][C]2709.46576446555[/C][C]-449.465764465548[/C][/ROW]
[ROW][C]29[/C][C]2844[/C][C]2696.70429533406[/C][C]147.295704665936[/C][/ROW]
[ROW][C]30[/C][C]2546[/C][C]2881.72584992033[/C][C]-335.725849920326[/C][/ROW]
[ROW][C]31[/C][C]2456[/C][C]2504.37333335246[/C][C]-48.3733333524587[/C][/ROW]
[ROW][C]32[/C][C]2295[/C][C]2328.81747841858[/C][C]-33.8174784185778[/C][/ROW]
[ROW][C]33[/C][C]2379[/C][C]2418.58988063521[/C][C]-39.5898806352127[/C][/ROW]
[ROW][C]34[/C][C]2479[/C][C]2562.27574830735[/C][C]-83.2757483073498[/C][/ROW]
[ROW][C]35[/C][C]2057[/C][C]2183.43514017265[/C][C]-126.435140172648[/C][/ROW]
[ROW][C]36[/C][C]2280[/C][C]2318.18872415478[/C][C]-38.1887241547824[/C][/ROW]
[ROW][C]37[/C][C]2351[/C][C]2482.29818293607[/C][C]-131.298182936073[/C][/ROW]
[ROW][C]38[/C][C]2276[/C][C]2368.29025253813[/C][C]-92.290252538125[/C][/ROW]
[ROW][C]39[/C][C]2548[/C][C]2540.7149139978[/C][C]7.28508600220146[/C][/ROW]
[ROW][C]40[/C][C]2311[/C][C]2390.79428482979[/C][C]-79.7942848297873[/C][/ROW]
[ROW][C]41[/C][C]2201[/C][C]2349.87698362572[/C][C]-148.876983625724[/C][/ROW]
[ROW][C]42[/C][C]2725[/C][C]2621.51083616823[/C][C]103.489163831767[/C][/ROW]
[ROW][C]43[/C][C]2408[/C][C]2135.9378740721[/C][C]272.062125927901[/C][/ROW]
[ROW][C]44[/C][C]2139[/C][C]2090.52843216474[/C][C]48.471567835263[/C][/ROW]
[ROW][C]45[/C][C]1898[/C][C]2140.22448634224[/C][C]-242.224486342240[/C][/ROW]
[ROW][C]46[/C][C]2537[/C][C]2262.03678918277[/C][C]274.963210817235[/C][/ROW]
[ROW][C]47[/C][C]2069[/C][C]1828.09598568856[/C][C]240.904014311445[/C][/ROW]
[ROW][C]48[/C][C]2063[/C][C]2115.10278797718[/C][C]-52.1027879771833[/C][/ROW]
[ROW][C]49[/C][C]2524[/C][C]2293.40688656888[/C][C]230.593113431123[/C][/ROW]
[ROW][C]50[/C][C]2437[/C][C]2191.90420483170[/C][C]245.095795168296[/C][/ROW]
[ROW][C]51[/C][C]2189[/C][C]2458.63704772973[/C][C]-269.637047729731[/C][/ROW]
[ROW][C]52[/C][C]2793[/C][C]2351.35544570149[/C][C]441.644554298514[/C][/ROW]
[ROW][C]53[/C][C]2074[/C][C]2251.92173399069[/C][C]-177.921733990689[/C][/ROW]
[ROW][C]54[/C][C]2622[/C][C]2673.30222635468[/C][C]-51.3022263546779[/C][/ROW]
[ROW][C]55[/C][C]2278[/C][C]2127.07794720253[/C][C]150.922052797475[/C][/ROW]
[ROW][C]56[/C][C]2144[/C][C]2117.46141648245[/C][C]26.5385835175518[/C][/ROW]
[ROW][C]57[/C][C]2427[/C][C]2162.20462112756[/C][C]264.795378872436[/C][/ROW]
[ROW][C]58[/C][C]2139[/C][C]2354.53339211749[/C][C]-215.533392117494[/C][/ROW]
[ROW][C]59[/C][C]1828[/C][C]1989.37803824867[/C][C]-161.378038248667[/C][/ROW]
[ROW][C]60[/C][C]2072[/C][C]2089.91723553598[/C][C]-17.9172355359773[/C][/ROW]
[ROW][C]61[/C][C]1800[/C][C]2295.71872251484[/C][C]-495.718722514840[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57878&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57878&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
123602370.94408274775-10.9440827477537
222142363.26073922011-149.260739220114
328252564.87790823958260.122091760418
423552446.06363679895-91.0636367989512
523332500.150390123-167.150390123001
630162730.39835569784285.601644302156
721552307.47531562750-152.475315627505
821722322.42419461478-150.424194614779
921502275.39261393325-125.392613933248
1025332494.854343900138.1456560999033
1120582131.53821437135-73.5382143713462
1221602373.20431394026-213.204313940262
1322602550.13247226208-290.132472262079
1424982468.2159228704729.7840771295347
1526952670.5898658708724.4101341291327
1627992620.32086820423178.679131795772
1729472600.34659692652346.653403073479
1829302932.06273185892-2.06273185891864
1923182540.13552974541-222.135529745412
2025402430.76847831946109.231521680542
2125702427.58839796174142.411602038264
2226692683.29972649229-14.2997264922944
2324502329.55262151878120.447378481216
2428422520.58693839180321.413061608205
2534402742.49965297038697.500347029623
2626782711.32888053959-33.3288805395925
2729813003.18026416202-22.1802641620213
2822602709.46576446555-449.465764465548
2928442696.70429533406147.295704665936
3025462881.72584992033-335.725849920326
3124562504.37333335246-48.3733333524587
3222952328.81747841858-33.8174784185778
3323792418.58988063521-39.5898806352127
3424792562.27574830735-83.2757483073498
3520572183.43514017265-126.435140172648
3622802318.18872415478-38.1887241547824
3723512482.29818293607-131.298182936073
3822762368.29025253813-92.290252538125
3925482540.71491399787.28508600220146
4023112390.79428482979-79.7942848297873
4122012349.87698362572-148.876983625724
4227252621.51083616823103.489163831767
4324082135.9378740721272.062125927901
4421392090.5284321647448.471567835263
4518982140.22448634224-242.224486342240
4625372262.03678918277274.963210817235
4720691828.09598568856240.904014311445
4820632115.10278797718-52.1027879771833
4925242293.40688656888230.593113431123
5024372191.90420483170245.095795168296
5121892458.63704772973-269.637047729731
5227932351.35544570149441.644554298514
5320742251.92173399069-177.921733990689
5426222673.30222635468-51.3022263546779
5522782127.07794720253150.922052797475
5621442117.4614164824526.5385835175518
5724272162.20462112756264.795378872436
5821392354.53339211749-215.533392117494
5918281989.37803824867-161.378038248667
6020722089.91723553598-17.9172355359773
6118002295.71872251484-495.718722514840







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.6230565131339480.7538869737321040.376943486866052
200.4589302827253120.9178605654506230.541069717274688
210.3631061151458560.7262122302917120.636893884854144
220.2368168975226280.4736337950452560.763183102477372
230.1791782639238440.3583565278476870.820821736076156
240.2207658734128460.4415317468256930.779234126587154
250.7451587058117950.509682588376410.254841294188205
260.7565776842681150.486844631463770.243422315731885
270.7900147840245430.4199704319509150.209985215975457
280.7182559128002680.5634881743994640.281744087199732
290.8226196671306480.3547606657387040.177380332869352
300.7986680782016810.4026638435966380.201331921798319
310.8485195457418910.3029609085162170.151480454258109
320.7855748928764110.4288502142471770.214425107123588
330.7114969125608330.5770061748783330.288503087439167
340.6183588906315370.7632822187369260.381641109368463
350.5117213930435470.9765572139129060.488278606956453
360.4287260708123790.8574521416247570.571273929187621
370.3921997729519120.7843995459038250.607800227048088
380.2994102272084710.5988204544169410.70058977279153
390.2787902077780670.5575804155561340.721209792221933
400.2302576768550560.4605153537101120.769742323144944
410.1366036716746120.2732073433492240.863396328325388
420.07747478996929880.1549495799385980.922525210030701

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.623056513133948 & 0.753886973732104 & 0.376943486866052 \tabularnewline
20 & 0.458930282725312 & 0.917860565450623 & 0.541069717274688 \tabularnewline
21 & 0.363106115145856 & 0.726212230291712 & 0.636893884854144 \tabularnewline
22 & 0.236816897522628 & 0.473633795045256 & 0.763183102477372 \tabularnewline
23 & 0.179178263923844 & 0.358356527847687 & 0.820821736076156 \tabularnewline
24 & 0.220765873412846 & 0.441531746825693 & 0.779234126587154 \tabularnewline
25 & 0.745158705811795 & 0.50968258837641 & 0.254841294188205 \tabularnewline
26 & 0.756577684268115 & 0.48684463146377 & 0.243422315731885 \tabularnewline
27 & 0.790014784024543 & 0.419970431950915 & 0.209985215975457 \tabularnewline
28 & 0.718255912800268 & 0.563488174399464 & 0.281744087199732 \tabularnewline
29 & 0.822619667130648 & 0.354760665738704 & 0.177380332869352 \tabularnewline
30 & 0.798668078201681 & 0.402663843596638 & 0.201331921798319 \tabularnewline
31 & 0.848519545741891 & 0.302960908516217 & 0.151480454258109 \tabularnewline
32 & 0.785574892876411 & 0.428850214247177 & 0.214425107123588 \tabularnewline
33 & 0.711496912560833 & 0.577006174878333 & 0.288503087439167 \tabularnewline
34 & 0.618358890631537 & 0.763282218736926 & 0.381641109368463 \tabularnewline
35 & 0.511721393043547 & 0.976557213912906 & 0.488278606956453 \tabularnewline
36 & 0.428726070812379 & 0.857452141624757 & 0.571273929187621 \tabularnewline
37 & 0.392199772951912 & 0.784399545903825 & 0.607800227048088 \tabularnewline
38 & 0.299410227208471 & 0.598820454416941 & 0.70058977279153 \tabularnewline
39 & 0.278790207778067 & 0.557580415556134 & 0.721209792221933 \tabularnewline
40 & 0.230257676855056 & 0.460515353710112 & 0.769742323144944 \tabularnewline
41 & 0.136603671674612 & 0.273207343349224 & 0.863396328325388 \tabularnewline
42 & 0.0774747899692988 & 0.154949579938598 & 0.922525210030701 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57878&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.623056513133948[/C][C]0.753886973732104[/C][C]0.376943486866052[/C][/ROW]
[ROW][C]20[/C][C]0.458930282725312[/C][C]0.917860565450623[/C][C]0.541069717274688[/C][/ROW]
[ROW][C]21[/C][C]0.363106115145856[/C][C]0.726212230291712[/C][C]0.636893884854144[/C][/ROW]
[ROW][C]22[/C][C]0.236816897522628[/C][C]0.473633795045256[/C][C]0.763183102477372[/C][/ROW]
[ROW][C]23[/C][C]0.179178263923844[/C][C]0.358356527847687[/C][C]0.820821736076156[/C][/ROW]
[ROW][C]24[/C][C]0.220765873412846[/C][C]0.441531746825693[/C][C]0.779234126587154[/C][/ROW]
[ROW][C]25[/C][C]0.745158705811795[/C][C]0.50968258837641[/C][C]0.254841294188205[/C][/ROW]
[ROW][C]26[/C][C]0.756577684268115[/C][C]0.48684463146377[/C][C]0.243422315731885[/C][/ROW]
[ROW][C]27[/C][C]0.790014784024543[/C][C]0.419970431950915[/C][C]0.209985215975457[/C][/ROW]
[ROW][C]28[/C][C]0.718255912800268[/C][C]0.563488174399464[/C][C]0.281744087199732[/C][/ROW]
[ROW][C]29[/C][C]0.822619667130648[/C][C]0.354760665738704[/C][C]0.177380332869352[/C][/ROW]
[ROW][C]30[/C][C]0.798668078201681[/C][C]0.402663843596638[/C][C]0.201331921798319[/C][/ROW]
[ROW][C]31[/C][C]0.848519545741891[/C][C]0.302960908516217[/C][C]0.151480454258109[/C][/ROW]
[ROW][C]32[/C][C]0.785574892876411[/C][C]0.428850214247177[/C][C]0.214425107123588[/C][/ROW]
[ROW][C]33[/C][C]0.711496912560833[/C][C]0.577006174878333[/C][C]0.288503087439167[/C][/ROW]
[ROW][C]34[/C][C]0.618358890631537[/C][C]0.763282218736926[/C][C]0.381641109368463[/C][/ROW]
[ROW][C]35[/C][C]0.511721393043547[/C][C]0.976557213912906[/C][C]0.488278606956453[/C][/ROW]
[ROW][C]36[/C][C]0.428726070812379[/C][C]0.857452141624757[/C][C]0.571273929187621[/C][/ROW]
[ROW][C]37[/C][C]0.392199772951912[/C][C]0.784399545903825[/C][C]0.607800227048088[/C][/ROW]
[ROW][C]38[/C][C]0.299410227208471[/C][C]0.598820454416941[/C][C]0.70058977279153[/C][/ROW]
[ROW][C]39[/C][C]0.278790207778067[/C][C]0.557580415556134[/C][C]0.721209792221933[/C][/ROW]
[ROW][C]40[/C][C]0.230257676855056[/C][C]0.460515353710112[/C][C]0.769742323144944[/C][/ROW]
[ROW][C]41[/C][C]0.136603671674612[/C][C]0.273207343349224[/C][C]0.863396328325388[/C][/ROW]
[ROW][C]42[/C][C]0.0774747899692988[/C][C]0.154949579938598[/C][C]0.922525210030701[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57878&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57878&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.6230565131339480.7538869737321040.376943486866052
200.4589302827253120.9178605654506230.541069717274688
210.3631061151458560.7262122302917120.636893884854144
220.2368168975226280.4736337950452560.763183102477372
230.1791782639238440.3583565278476870.820821736076156
240.2207658734128460.4415317468256930.779234126587154
250.7451587058117950.509682588376410.254841294188205
260.7565776842681150.486844631463770.243422315731885
270.7900147840245430.4199704319509150.209985215975457
280.7182559128002680.5634881743994640.281744087199732
290.8226196671306480.3547606657387040.177380332869352
300.7986680782016810.4026638435966380.201331921798319
310.8485195457418910.3029609085162170.151480454258109
320.7855748928764110.4288502142471770.214425107123588
330.7114969125608330.5770061748783330.288503087439167
340.6183588906315370.7632822187369260.381641109368463
350.5117213930435470.9765572139129060.488278606956453
360.4287260708123790.8574521416247570.571273929187621
370.3921997729519120.7843995459038250.607800227048088
380.2994102272084710.5988204544169410.70058977279153
390.2787902077780670.5575804155561340.721209792221933
400.2302576768550560.4605153537101120.769742323144944
410.1366036716746120.2732073433492240.863396328325388
420.07747478996929880.1549495799385980.922525210030701







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

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

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



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