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 computationTue, 17 Nov 2009 10:43:04 -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/17/t12584801544gmtmunhav86vwj.htm/, Retrieved Wed, 01 May 2024 23:54:36 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57385, Retrieved Wed, 01 May 2024 23:54:36 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact205
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2009-11-17 17:43:04] [6e025b5370bdd3143fbe248190b38274] [Current]
- R  D    [Multiple Regression] [] [2009-11-20 17:17:46] [eba9b8a72d680086d9ebbb043233c887]
Feedback Forum

Post a new message
Dataseries X:
15836.8	89.1
17570.4	82.6
18252.1	102.7
16196.7	91.8
16643	94.1
17729	103.1
16446.1	93.2
15993.8	91
16373.5	94.3
17842.2	99.4
22321.5	115.7
22786.7	116.8
18274.1	99.8
22392.9	96
23899.3	115.9
21343.5	109.1
22952.3	117.3
21374.4	109.8
21164.1	112.8
20906.5	110.7
17877.4	100
20664.3	113.3
22160	122.4
19813.6	112.5
17735.4	104.2
19640.2	92.5
20844.4	117.2
19823.1	109.3
18594.6	106.1
21350.6	118.8
18574.1	105.3
18924.2	106
17343.4	102
19961.2	112.9
19932.1	116.5
19464.6	114.8
16165.4	100.5
17574.9	85.4
19795.4	114.6
19439.5	109.9
17170	100.7
21072.4	115.5
17751.8	100.7
17515.5	99
18040.3	102.3
19090.1	108.8
17746.5	105.9
19202.1	113.2
15141.6	95.7
16258.1	80.9
18586.5	113.9
17209.4	98.1
17838.7	102.8
19123.5	104.7
16583.6	95.9
15991.2	94.6
16704.4	101.6
17420.4	103.9
17872	110.3
17823.2	114.1




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
uitvoer[t] = -8033.86813731782 + 255.273412361827indproc[t] + 600.65077261152M1[t] + 5343.71594368815M2[t] + 489.803888705864M3[t] + 1407.01190144279M4[t] + 1138.02594128105M5[t] + 1087.38340364584M6[t] + 1344.43658319079M7[t] + 1480.38463826929M8[t] + 974.791939749771M9[t] + 794.13568831353M10[t] + 182.325658722537M11[t] -36.6871507608812t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
uitvoer[t] =  -8033.86813731782 +  255.273412361827indproc[t] +  600.65077261152M1[t] +  5343.71594368815M2[t] +  489.803888705864M3[t] +  1407.01190144279M4[t] +  1138.02594128105M5[t] +  1087.38340364584M6[t] +  1344.43658319079M7[t] +  1480.38463826929M8[t] +  974.791939749771M9[t] +  794.13568831353M10[t] +  182.325658722537M11[t] -36.6871507608812t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57385&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]uitvoer[t] =  -8033.86813731782 +  255.273412361827indproc[t] +  600.65077261152M1[t] +  5343.71594368815M2[t] +  489.803888705864M3[t] +  1407.01190144279M4[t] +  1138.02594128105M5[t] +  1087.38340364584M6[t] +  1344.43658319079M7[t] +  1480.38463826929M8[t] +  974.791939749771M9[t] +  794.13568831353M10[t] +  182.325658722537M11[t] -36.6871507608812t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57385&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57385&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
uitvoer[t] = -8033.86813731782 + 255.273412361827indproc[t] + 600.65077261152M1[t] + 5343.71594368815M2[t] + 489.803888705864M3[t] + 1407.01190144279M4[t] + 1138.02594128105M5[t] + 1087.38340364584M6[t] + 1344.43658319079M7[t] + 1480.38463826929M8[t] + 974.791939749771M9[t] + 794.13568831353M10[t] + 182.325658722537M11[t] -36.6871507608812t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-8033.868137317821983.559289-4.05020.0001959.7e-05
indproc255.27341236182717.07562314.949600
M1600.65077261152564.9071591.06330.2932080.146604
M25343.71594368815669.6378287.9800
M3489.803888705864491.1516550.99730.3238580.161929
M41407.01190144279521.9306212.69580.0097760.004888
M51138.02594128105518.307222.19570.0331980.016599
M61087.38340364584493.3848442.20390.0325730.016287
M71344.43658319079534.1166082.51710.015380.00769
M81480.38463826929543.4345562.72410.0090840.004542
M9974.791939749771544.9890621.78860.0802590.040129
M10794.13568831353500.759161.58590.1196220.059811
M11182.325658722537487.8531990.37370.7103220.355161
t-36.68715076088125.873454-6.246300

\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) & -8033.86813731782 & 1983.559289 & -4.0502 & 0.000195 & 9.7e-05 \tabularnewline
indproc & 255.273412361827 & 17.075623 & 14.9496 & 0 & 0 \tabularnewline
M1 & 600.65077261152 & 564.907159 & 1.0633 & 0.293208 & 0.146604 \tabularnewline
M2 & 5343.71594368815 & 669.637828 & 7.98 & 0 & 0 \tabularnewline
M3 & 489.803888705864 & 491.151655 & 0.9973 & 0.323858 & 0.161929 \tabularnewline
M4 & 1407.01190144279 & 521.930621 & 2.6958 & 0.009776 & 0.004888 \tabularnewline
M5 & 1138.02594128105 & 518.30722 & 2.1957 & 0.033198 & 0.016599 \tabularnewline
M6 & 1087.38340364584 & 493.384844 & 2.2039 & 0.032573 & 0.016287 \tabularnewline
M7 & 1344.43658319079 & 534.116608 & 2.5171 & 0.01538 & 0.00769 \tabularnewline
M8 & 1480.38463826929 & 543.434556 & 2.7241 & 0.009084 & 0.004542 \tabularnewline
M9 & 974.791939749771 & 544.989062 & 1.7886 & 0.080259 & 0.040129 \tabularnewline
M10 & 794.13568831353 & 500.75916 & 1.5859 & 0.119622 & 0.059811 \tabularnewline
M11 & 182.325658722537 & 487.853199 & 0.3737 & 0.710322 & 0.355161 \tabularnewline
t & -36.6871507608812 & 5.873454 & -6.2463 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57385&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]-8033.86813731782[/C][C]1983.559289[/C][C]-4.0502[/C][C]0.000195[/C][C]9.7e-05[/C][/ROW]
[ROW][C]indproc[/C][C]255.273412361827[/C][C]17.075623[/C][C]14.9496[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]600.65077261152[/C][C]564.907159[/C][C]1.0633[/C][C]0.293208[/C][C]0.146604[/C][/ROW]
[ROW][C]M2[/C][C]5343.71594368815[/C][C]669.637828[/C][C]7.98[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]489.803888705864[/C][C]491.151655[/C][C]0.9973[/C][C]0.323858[/C][C]0.161929[/C][/ROW]
[ROW][C]M4[/C][C]1407.01190144279[/C][C]521.930621[/C][C]2.6958[/C][C]0.009776[/C][C]0.004888[/C][/ROW]
[ROW][C]M5[/C][C]1138.02594128105[/C][C]518.30722[/C][C]2.1957[/C][C]0.033198[/C][C]0.016599[/C][/ROW]
[ROW][C]M6[/C][C]1087.38340364584[/C][C]493.384844[/C][C]2.2039[/C][C]0.032573[/C][C]0.016287[/C][/ROW]
[ROW][C]M7[/C][C]1344.43658319079[/C][C]534.116608[/C][C]2.5171[/C][C]0.01538[/C][C]0.00769[/C][/ROW]
[ROW][C]M8[/C][C]1480.38463826929[/C][C]543.434556[/C][C]2.7241[/C][C]0.009084[/C][C]0.004542[/C][/ROW]
[ROW][C]M9[/C][C]974.791939749771[/C][C]544.989062[/C][C]1.7886[/C][C]0.080259[/C][C]0.040129[/C][/ROW]
[ROW][C]M10[/C][C]794.13568831353[/C][C]500.75916[/C][C]1.5859[/C][C]0.119622[/C][C]0.059811[/C][/ROW]
[ROW][C]M11[/C][C]182.325658722537[/C][C]487.853199[/C][C]0.3737[/C][C]0.710322[/C][C]0.355161[/C][/ROW]
[ROW][C]t[/C][C]-36.6871507608812[/C][C]5.873454[/C][C]-6.2463[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57385&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57385&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)-8033.868137317821983.559289-4.05020.0001959.7e-05
indproc255.27341236182717.07562314.949600
M1600.65077261152564.9071591.06330.2932080.146604
M25343.71594368815669.6378287.9800
M3489.803888705864491.1516550.99730.3238580.161929
M41407.01190144279521.9306212.69580.0097760.004888
M51138.02594128105518.307222.19570.0331980.016599
M61087.38340364584493.3848442.20390.0325730.016287
M71344.43658319079534.1166082.51710.015380.00769
M81480.38463826929543.4345562.72410.0090840.004542
M9974.791939749771544.9890621.78860.0802590.040129
M10794.13568831353500.759161.58590.1196220.059811
M11182.325658722537487.8531990.37370.7103220.355161
t-36.68715076088125.873454-6.246300







Multiple Linear Regression - Regression Statistics
Multiple R0.94446092820677
R-squared0.892006444909194
Adjusted R-squared0.86148652716614
F-TEST (value)29.2270265083597
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation771.302682407173
Sum Squared Residuals27365760.082871

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.94446092820677 \tabularnewline
R-squared & 0.892006444909194 \tabularnewline
Adjusted R-squared & 0.86148652716614 \tabularnewline
F-TEST (value) & 29.2270265083597 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 771.302682407173 \tabularnewline
Sum Squared Residuals & 27365760.082871 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57385&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.94446092820677[/C][/ROW]
[ROW][C]R-squared[/C][C]0.892006444909194[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.86148652716614[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]29.2270265083597[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]771.302682407173[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]27365760.082871[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57385&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57385&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.94446092820677
R-squared0.892006444909194
Adjusted R-squared0.86148652716614
F-TEST (value)29.2270265083597
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation771.302682407173
Sum Squared Residuals27365760.082871







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
115836.815274.9565259715561.843474028527
217570.418322.0573659354-751.657365935433
318252.118562.453748665-310.353748664989
416196.716660.4944158971-463.79441589712
51664316941.9501534067-298.950153406699
61772919152.0811762670-1423.08117626705
716446.116845.2404226690-399.140422669041
815993.816382.8998197906-389.099819790635
916373.516683.0222313043-309.522231304264
1017842.217767.573232152574.6267678475399
1122321.521280.03267329841041.46732670164
1222786.721341.82061741301444.87938258705
1318274.117566.1362291125707.963770887464
1422392.921302.47528245331090.42471754666
1523899.321491.81698271052407.48301728947
1621343.520636.4786406261707.021359373852
1722952.322424.0475110705528.252488929496
1821374.420422.1672299607952.232770039286
1921164.121408.3534958303-244.253495830269
2020906.520971.5402341880-65.040234188046
2117877.417697.8348726361179.565127363899
2220664.320875.6278548513-211.327854851277
232216022550.1187269920-390.118726992027
2419813.619803.89913512659.70086487347598
2517735.418249.093434374-513.693434373999
2619640.219968.7725300564-328.572530056371
2720844.421383.4266096503-539.026609650327
2819823.120247.2875139679-424.187513967941
2918594.619124.7394834875-530.139483487471
3021350.622279.3821320866-928.782132086583
3118574.119053.557093986-479.457093985995
3218924.219331.5093869569-407.309386956885
3317343.417768.1358882292-424.735888229181
3419961.220333.2726807760-372.072680775973
3519932.120603.7597849267-671.659784926675
3619464.619950.7821744282-486.18217442815
3716165.416864.3359995047-698.935999504667
3817574.917716.0854931568-141.185493156827
3919795.420279.469928379-484.069928379002
4019439.519960.2057522545-520.705752254463
411717017306.0172476030-136.017247603034
4221072.420996.73406216275.6659378380214
4317751.817439.0535879910312.746412008982
4417515.517104.3496912935411.150308706476
4518040.317404.4721028072635.827897192845
4619090.118846.4058809619243.694119038091
4717746.517457.6158047607288.884195239263
4819202.119102.0989055187100.001094481345
4915141.615198.7778110373-57.1778110373246
5016258.116127.1093283980130.990671601967
5118586.519660.5327305952-1074.03273059515
5217209.416507.7336772543701.666322745671
5317838.717401.8456044323436.854395567707
5419123.517799.53539952371323.96460047632
5516583.615773.4953995237810.104600476323
5615991.215540.9008677709450.299132229090
5716704.416785.5349050233-81.1349050232993
5817420.417155.3203512584265.079648741617
591787218140.5730100222-268.573010022198
6017823.218891.5991675137-1068.39916751372

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 15836.8 & 15274.9565259715 & 561.843474028527 \tabularnewline
2 & 17570.4 & 18322.0573659354 & -751.657365935433 \tabularnewline
3 & 18252.1 & 18562.453748665 & -310.353748664989 \tabularnewline
4 & 16196.7 & 16660.4944158971 & -463.79441589712 \tabularnewline
5 & 16643 & 16941.9501534067 & -298.950153406699 \tabularnewline
6 & 17729 & 19152.0811762670 & -1423.08117626705 \tabularnewline
7 & 16446.1 & 16845.2404226690 & -399.140422669041 \tabularnewline
8 & 15993.8 & 16382.8998197906 & -389.099819790635 \tabularnewline
9 & 16373.5 & 16683.0222313043 & -309.522231304264 \tabularnewline
10 & 17842.2 & 17767.5732321525 & 74.6267678475399 \tabularnewline
11 & 22321.5 & 21280.0326732984 & 1041.46732670164 \tabularnewline
12 & 22786.7 & 21341.8206174130 & 1444.87938258705 \tabularnewline
13 & 18274.1 & 17566.1362291125 & 707.963770887464 \tabularnewline
14 & 22392.9 & 21302.4752824533 & 1090.42471754666 \tabularnewline
15 & 23899.3 & 21491.8169827105 & 2407.48301728947 \tabularnewline
16 & 21343.5 & 20636.4786406261 & 707.021359373852 \tabularnewline
17 & 22952.3 & 22424.0475110705 & 528.252488929496 \tabularnewline
18 & 21374.4 & 20422.1672299607 & 952.232770039286 \tabularnewline
19 & 21164.1 & 21408.3534958303 & -244.253495830269 \tabularnewline
20 & 20906.5 & 20971.5402341880 & -65.040234188046 \tabularnewline
21 & 17877.4 & 17697.8348726361 & 179.565127363899 \tabularnewline
22 & 20664.3 & 20875.6278548513 & -211.327854851277 \tabularnewline
23 & 22160 & 22550.1187269920 & -390.118726992027 \tabularnewline
24 & 19813.6 & 19803.8991351265 & 9.70086487347598 \tabularnewline
25 & 17735.4 & 18249.093434374 & -513.693434373999 \tabularnewline
26 & 19640.2 & 19968.7725300564 & -328.572530056371 \tabularnewline
27 & 20844.4 & 21383.4266096503 & -539.026609650327 \tabularnewline
28 & 19823.1 & 20247.2875139679 & -424.187513967941 \tabularnewline
29 & 18594.6 & 19124.7394834875 & -530.139483487471 \tabularnewline
30 & 21350.6 & 22279.3821320866 & -928.782132086583 \tabularnewline
31 & 18574.1 & 19053.557093986 & -479.457093985995 \tabularnewline
32 & 18924.2 & 19331.5093869569 & -407.309386956885 \tabularnewline
33 & 17343.4 & 17768.1358882292 & -424.735888229181 \tabularnewline
34 & 19961.2 & 20333.2726807760 & -372.072680775973 \tabularnewline
35 & 19932.1 & 20603.7597849267 & -671.659784926675 \tabularnewline
36 & 19464.6 & 19950.7821744282 & -486.18217442815 \tabularnewline
37 & 16165.4 & 16864.3359995047 & -698.935999504667 \tabularnewline
38 & 17574.9 & 17716.0854931568 & -141.185493156827 \tabularnewline
39 & 19795.4 & 20279.469928379 & -484.069928379002 \tabularnewline
40 & 19439.5 & 19960.2057522545 & -520.705752254463 \tabularnewline
41 & 17170 & 17306.0172476030 & -136.017247603034 \tabularnewline
42 & 21072.4 & 20996.734062162 & 75.6659378380214 \tabularnewline
43 & 17751.8 & 17439.0535879910 & 312.746412008982 \tabularnewline
44 & 17515.5 & 17104.3496912935 & 411.150308706476 \tabularnewline
45 & 18040.3 & 17404.4721028072 & 635.827897192845 \tabularnewline
46 & 19090.1 & 18846.4058809619 & 243.694119038091 \tabularnewline
47 & 17746.5 & 17457.6158047607 & 288.884195239263 \tabularnewline
48 & 19202.1 & 19102.0989055187 & 100.001094481345 \tabularnewline
49 & 15141.6 & 15198.7778110373 & -57.1778110373246 \tabularnewline
50 & 16258.1 & 16127.1093283980 & 130.990671601967 \tabularnewline
51 & 18586.5 & 19660.5327305952 & -1074.03273059515 \tabularnewline
52 & 17209.4 & 16507.7336772543 & 701.666322745671 \tabularnewline
53 & 17838.7 & 17401.8456044323 & 436.854395567707 \tabularnewline
54 & 19123.5 & 17799.5353995237 & 1323.96460047632 \tabularnewline
55 & 16583.6 & 15773.4953995237 & 810.104600476323 \tabularnewline
56 & 15991.2 & 15540.9008677709 & 450.299132229090 \tabularnewline
57 & 16704.4 & 16785.5349050233 & -81.1349050232993 \tabularnewline
58 & 17420.4 & 17155.3203512584 & 265.079648741617 \tabularnewline
59 & 17872 & 18140.5730100222 & -268.573010022198 \tabularnewline
60 & 17823.2 & 18891.5991675137 & -1068.39916751372 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57385&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]15836.8[/C][C]15274.9565259715[/C][C]561.843474028527[/C][/ROW]
[ROW][C]2[/C][C]17570.4[/C][C]18322.0573659354[/C][C]-751.657365935433[/C][/ROW]
[ROW][C]3[/C][C]18252.1[/C][C]18562.453748665[/C][C]-310.353748664989[/C][/ROW]
[ROW][C]4[/C][C]16196.7[/C][C]16660.4944158971[/C][C]-463.79441589712[/C][/ROW]
[ROW][C]5[/C][C]16643[/C][C]16941.9501534067[/C][C]-298.950153406699[/C][/ROW]
[ROW][C]6[/C][C]17729[/C][C]19152.0811762670[/C][C]-1423.08117626705[/C][/ROW]
[ROW][C]7[/C][C]16446.1[/C][C]16845.2404226690[/C][C]-399.140422669041[/C][/ROW]
[ROW][C]8[/C][C]15993.8[/C][C]16382.8998197906[/C][C]-389.099819790635[/C][/ROW]
[ROW][C]9[/C][C]16373.5[/C][C]16683.0222313043[/C][C]-309.522231304264[/C][/ROW]
[ROW][C]10[/C][C]17842.2[/C][C]17767.5732321525[/C][C]74.6267678475399[/C][/ROW]
[ROW][C]11[/C][C]22321.5[/C][C]21280.0326732984[/C][C]1041.46732670164[/C][/ROW]
[ROW][C]12[/C][C]22786.7[/C][C]21341.8206174130[/C][C]1444.87938258705[/C][/ROW]
[ROW][C]13[/C][C]18274.1[/C][C]17566.1362291125[/C][C]707.963770887464[/C][/ROW]
[ROW][C]14[/C][C]22392.9[/C][C]21302.4752824533[/C][C]1090.42471754666[/C][/ROW]
[ROW][C]15[/C][C]23899.3[/C][C]21491.8169827105[/C][C]2407.48301728947[/C][/ROW]
[ROW][C]16[/C][C]21343.5[/C][C]20636.4786406261[/C][C]707.021359373852[/C][/ROW]
[ROW][C]17[/C][C]22952.3[/C][C]22424.0475110705[/C][C]528.252488929496[/C][/ROW]
[ROW][C]18[/C][C]21374.4[/C][C]20422.1672299607[/C][C]952.232770039286[/C][/ROW]
[ROW][C]19[/C][C]21164.1[/C][C]21408.3534958303[/C][C]-244.253495830269[/C][/ROW]
[ROW][C]20[/C][C]20906.5[/C][C]20971.5402341880[/C][C]-65.040234188046[/C][/ROW]
[ROW][C]21[/C][C]17877.4[/C][C]17697.8348726361[/C][C]179.565127363899[/C][/ROW]
[ROW][C]22[/C][C]20664.3[/C][C]20875.6278548513[/C][C]-211.327854851277[/C][/ROW]
[ROW][C]23[/C][C]22160[/C][C]22550.1187269920[/C][C]-390.118726992027[/C][/ROW]
[ROW][C]24[/C][C]19813.6[/C][C]19803.8991351265[/C][C]9.70086487347598[/C][/ROW]
[ROW][C]25[/C][C]17735.4[/C][C]18249.093434374[/C][C]-513.693434373999[/C][/ROW]
[ROW][C]26[/C][C]19640.2[/C][C]19968.7725300564[/C][C]-328.572530056371[/C][/ROW]
[ROW][C]27[/C][C]20844.4[/C][C]21383.4266096503[/C][C]-539.026609650327[/C][/ROW]
[ROW][C]28[/C][C]19823.1[/C][C]20247.2875139679[/C][C]-424.187513967941[/C][/ROW]
[ROW][C]29[/C][C]18594.6[/C][C]19124.7394834875[/C][C]-530.139483487471[/C][/ROW]
[ROW][C]30[/C][C]21350.6[/C][C]22279.3821320866[/C][C]-928.782132086583[/C][/ROW]
[ROW][C]31[/C][C]18574.1[/C][C]19053.557093986[/C][C]-479.457093985995[/C][/ROW]
[ROW][C]32[/C][C]18924.2[/C][C]19331.5093869569[/C][C]-407.309386956885[/C][/ROW]
[ROW][C]33[/C][C]17343.4[/C][C]17768.1358882292[/C][C]-424.735888229181[/C][/ROW]
[ROW][C]34[/C][C]19961.2[/C][C]20333.2726807760[/C][C]-372.072680775973[/C][/ROW]
[ROW][C]35[/C][C]19932.1[/C][C]20603.7597849267[/C][C]-671.659784926675[/C][/ROW]
[ROW][C]36[/C][C]19464.6[/C][C]19950.7821744282[/C][C]-486.18217442815[/C][/ROW]
[ROW][C]37[/C][C]16165.4[/C][C]16864.3359995047[/C][C]-698.935999504667[/C][/ROW]
[ROW][C]38[/C][C]17574.9[/C][C]17716.0854931568[/C][C]-141.185493156827[/C][/ROW]
[ROW][C]39[/C][C]19795.4[/C][C]20279.469928379[/C][C]-484.069928379002[/C][/ROW]
[ROW][C]40[/C][C]19439.5[/C][C]19960.2057522545[/C][C]-520.705752254463[/C][/ROW]
[ROW][C]41[/C][C]17170[/C][C]17306.0172476030[/C][C]-136.017247603034[/C][/ROW]
[ROW][C]42[/C][C]21072.4[/C][C]20996.734062162[/C][C]75.6659378380214[/C][/ROW]
[ROW][C]43[/C][C]17751.8[/C][C]17439.0535879910[/C][C]312.746412008982[/C][/ROW]
[ROW][C]44[/C][C]17515.5[/C][C]17104.3496912935[/C][C]411.150308706476[/C][/ROW]
[ROW][C]45[/C][C]18040.3[/C][C]17404.4721028072[/C][C]635.827897192845[/C][/ROW]
[ROW][C]46[/C][C]19090.1[/C][C]18846.4058809619[/C][C]243.694119038091[/C][/ROW]
[ROW][C]47[/C][C]17746.5[/C][C]17457.6158047607[/C][C]288.884195239263[/C][/ROW]
[ROW][C]48[/C][C]19202.1[/C][C]19102.0989055187[/C][C]100.001094481345[/C][/ROW]
[ROW][C]49[/C][C]15141.6[/C][C]15198.7778110373[/C][C]-57.1778110373246[/C][/ROW]
[ROW][C]50[/C][C]16258.1[/C][C]16127.1093283980[/C][C]130.990671601967[/C][/ROW]
[ROW][C]51[/C][C]18586.5[/C][C]19660.5327305952[/C][C]-1074.03273059515[/C][/ROW]
[ROW][C]52[/C][C]17209.4[/C][C]16507.7336772543[/C][C]701.666322745671[/C][/ROW]
[ROW][C]53[/C][C]17838.7[/C][C]17401.8456044323[/C][C]436.854395567707[/C][/ROW]
[ROW][C]54[/C][C]19123.5[/C][C]17799.5353995237[/C][C]1323.96460047632[/C][/ROW]
[ROW][C]55[/C][C]16583.6[/C][C]15773.4953995237[/C][C]810.104600476323[/C][/ROW]
[ROW][C]56[/C][C]15991.2[/C][C]15540.9008677709[/C][C]450.299132229090[/C][/ROW]
[ROW][C]57[/C][C]16704.4[/C][C]16785.5349050233[/C][C]-81.1349050232993[/C][/ROW]
[ROW][C]58[/C][C]17420.4[/C][C]17155.3203512584[/C][C]265.079648741617[/C][/ROW]
[ROW][C]59[/C][C]17872[/C][C]18140.5730100222[/C][C]-268.573010022198[/C][/ROW]
[ROW][C]60[/C][C]17823.2[/C][C]18891.5991675137[/C][C]-1068.39916751372[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57385&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57385&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
115836.815274.9565259715561.843474028527
217570.418322.0573659354-751.657365935433
318252.118562.453748665-310.353748664989
416196.716660.4944158971-463.79441589712
51664316941.9501534067-298.950153406699
61772919152.0811762670-1423.08117626705
716446.116845.2404226690-399.140422669041
815993.816382.8998197906-389.099819790635
916373.516683.0222313043-309.522231304264
1017842.217767.573232152574.6267678475399
1122321.521280.03267329841041.46732670164
1222786.721341.82061741301444.87938258705
1318274.117566.1362291125707.963770887464
1422392.921302.47528245331090.42471754666
1523899.321491.81698271052407.48301728947
1621343.520636.4786406261707.021359373852
1722952.322424.0475110705528.252488929496
1821374.420422.1672299607952.232770039286
1921164.121408.3534958303-244.253495830269
2020906.520971.5402341880-65.040234188046
2117877.417697.8348726361179.565127363899
2220664.320875.6278548513-211.327854851277
232216022550.1187269920-390.118726992027
2419813.619803.89913512659.70086487347598
2517735.418249.093434374-513.693434373999
2619640.219968.7725300564-328.572530056371
2720844.421383.4266096503-539.026609650327
2819823.120247.2875139679-424.187513967941
2918594.619124.7394834875-530.139483487471
3021350.622279.3821320866-928.782132086583
3118574.119053.557093986-479.457093985995
3218924.219331.5093869569-407.309386956885
3317343.417768.1358882292-424.735888229181
3419961.220333.2726807760-372.072680775973
3519932.120603.7597849267-671.659784926675
3619464.619950.7821744282-486.18217442815
3716165.416864.3359995047-698.935999504667
3817574.917716.0854931568-141.185493156827
3919795.420279.469928379-484.069928379002
4019439.519960.2057522545-520.705752254463
411717017306.0172476030-136.017247603034
4221072.420996.73406216275.6659378380214
4317751.817439.0535879910312.746412008982
4417515.517104.3496912935411.150308706476
4518040.317404.4721028072635.827897192845
4619090.118846.4058809619243.694119038091
4717746.517457.6158047607288.884195239263
4819202.119102.0989055187100.001094481345
4915141.615198.7778110373-57.1778110373246
5016258.116127.1093283980130.990671601967
5118586.519660.5327305952-1074.03273059515
5217209.416507.7336772543701.666322745671
5317838.717401.8456044323436.854395567707
5419123.517799.53539952371323.96460047632
5516583.615773.4953995237810.104600476323
5615991.215540.9008677709450.299132229090
5716704.416785.5349050233-81.1349050232993
5817420.417155.3203512584265.079648741617
591787218140.5730100222-268.573010022198
6017823.218891.5991675137-1068.39916751372







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.9893878949124990.02122421017500230.0106121050875012
180.9819854601197620.0360290797604770.0180145398802385
190.9825938514366940.03481229712661240.0174061485633062
200.9785539942952680.04289201140946380.0214460057047319
210.9899804938441170.02003901231176590.0100195061558830
220.9937428193858070.01251436122838550.00625718061419276
230.999794791538860.0004104169222790490.000205208461139525
240.9997943426367750.0004113147264505980.000205657363225299
250.9998196701868370.0003606596263254720.000180329813162736
260.999749802524760.0005003949504791340.000250197475239567
270.9997935027057280.0004129945885433460.000206497294271673
280.9994658524745750.001068295050849220.00053414752542461
290.9988749595137170.002250080972566040.00112504048628302
300.9990984810741780.001803037851644020.000901518925822008
310.9986360240974670.002727951805066600.00136397590253330
320.9968866529201940.006226694159611140.00311334707980557
330.998568020351740.002863959296518350.00143197964825917
340.9966960828925730.006607834214853770.00330391710742689
350.9922388065247340.01552238695053280.00776119347526639
360.984933488432780.03013302313444160.0150665115672208
370.9727919055231920.05441618895361590.0272080944768080
380.9581845826884770.08363083462304610.0418154173115231
390.9294079838039770.1411840323920450.0705920161960226
400.8694617151264320.2610765697471360.130538284873568
410.9685392309589260.06292153808214690.0314607690410735
420.9384016658681790.1231966682636430.0615983341318215
430.9191998583710930.1616002832578140.0808001416289071

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.989387894912499 & 0.0212242101750023 & 0.0106121050875012 \tabularnewline
18 & 0.981985460119762 & 0.036029079760477 & 0.0180145398802385 \tabularnewline
19 & 0.982593851436694 & 0.0348122971266124 & 0.0174061485633062 \tabularnewline
20 & 0.978553994295268 & 0.0428920114094638 & 0.0214460057047319 \tabularnewline
21 & 0.989980493844117 & 0.0200390123117659 & 0.0100195061558830 \tabularnewline
22 & 0.993742819385807 & 0.0125143612283855 & 0.00625718061419276 \tabularnewline
23 & 0.99979479153886 & 0.000410416922279049 & 0.000205208461139525 \tabularnewline
24 & 0.999794342636775 & 0.000411314726450598 & 0.000205657363225299 \tabularnewline
25 & 0.999819670186837 & 0.000360659626325472 & 0.000180329813162736 \tabularnewline
26 & 0.99974980252476 & 0.000500394950479134 & 0.000250197475239567 \tabularnewline
27 & 0.999793502705728 & 0.000412994588543346 & 0.000206497294271673 \tabularnewline
28 & 0.999465852474575 & 0.00106829505084922 & 0.00053414752542461 \tabularnewline
29 & 0.998874959513717 & 0.00225008097256604 & 0.00112504048628302 \tabularnewline
30 & 0.999098481074178 & 0.00180303785164402 & 0.000901518925822008 \tabularnewline
31 & 0.998636024097467 & 0.00272795180506660 & 0.00136397590253330 \tabularnewline
32 & 0.996886652920194 & 0.00622669415961114 & 0.00311334707980557 \tabularnewline
33 & 0.99856802035174 & 0.00286395929651835 & 0.00143197964825917 \tabularnewline
34 & 0.996696082892573 & 0.00660783421485377 & 0.00330391710742689 \tabularnewline
35 & 0.992238806524734 & 0.0155223869505328 & 0.00776119347526639 \tabularnewline
36 & 0.98493348843278 & 0.0301330231344416 & 0.0150665115672208 \tabularnewline
37 & 0.972791905523192 & 0.0544161889536159 & 0.0272080944768080 \tabularnewline
38 & 0.958184582688477 & 0.0836308346230461 & 0.0418154173115231 \tabularnewline
39 & 0.929407983803977 & 0.141184032392045 & 0.0705920161960226 \tabularnewline
40 & 0.869461715126432 & 0.261076569747136 & 0.130538284873568 \tabularnewline
41 & 0.968539230958926 & 0.0629215380821469 & 0.0314607690410735 \tabularnewline
42 & 0.938401665868179 & 0.123196668263643 & 0.0615983341318215 \tabularnewline
43 & 0.919199858371093 & 0.161600283257814 & 0.0808001416289071 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57385&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]17[/C][C]0.989387894912499[/C][C]0.0212242101750023[/C][C]0.0106121050875012[/C][/ROW]
[ROW][C]18[/C][C]0.981985460119762[/C][C]0.036029079760477[/C][C]0.0180145398802385[/C][/ROW]
[ROW][C]19[/C][C]0.982593851436694[/C][C]0.0348122971266124[/C][C]0.0174061485633062[/C][/ROW]
[ROW][C]20[/C][C]0.978553994295268[/C][C]0.0428920114094638[/C][C]0.0214460057047319[/C][/ROW]
[ROW][C]21[/C][C]0.989980493844117[/C][C]0.0200390123117659[/C][C]0.0100195061558830[/C][/ROW]
[ROW][C]22[/C][C]0.993742819385807[/C][C]0.0125143612283855[/C][C]0.00625718061419276[/C][/ROW]
[ROW][C]23[/C][C]0.99979479153886[/C][C]0.000410416922279049[/C][C]0.000205208461139525[/C][/ROW]
[ROW][C]24[/C][C]0.999794342636775[/C][C]0.000411314726450598[/C][C]0.000205657363225299[/C][/ROW]
[ROW][C]25[/C][C]0.999819670186837[/C][C]0.000360659626325472[/C][C]0.000180329813162736[/C][/ROW]
[ROW][C]26[/C][C]0.99974980252476[/C][C]0.000500394950479134[/C][C]0.000250197475239567[/C][/ROW]
[ROW][C]27[/C][C]0.999793502705728[/C][C]0.000412994588543346[/C][C]0.000206497294271673[/C][/ROW]
[ROW][C]28[/C][C]0.999465852474575[/C][C]0.00106829505084922[/C][C]0.00053414752542461[/C][/ROW]
[ROW][C]29[/C][C]0.998874959513717[/C][C]0.00225008097256604[/C][C]0.00112504048628302[/C][/ROW]
[ROW][C]30[/C][C]0.999098481074178[/C][C]0.00180303785164402[/C][C]0.000901518925822008[/C][/ROW]
[ROW][C]31[/C][C]0.998636024097467[/C][C]0.00272795180506660[/C][C]0.00136397590253330[/C][/ROW]
[ROW][C]32[/C][C]0.996886652920194[/C][C]0.00622669415961114[/C][C]0.00311334707980557[/C][/ROW]
[ROW][C]33[/C][C]0.99856802035174[/C][C]0.00286395929651835[/C][C]0.00143197964825917[/C][/ROW]
[ROW][C]34[/C][C]0.996696082892573[/C][C]0.00660783421485377[/C][C]0.00330391710742689[/C][/ROW]
[ROW][C]35[/C][C]0.992238806524734[/C][C]0.0155223869505328[/C][C]0.00776119347526639[/C][/ROW]
[ROW][C]36[/C][C]0.98493348843278[/C][C]0.0301330231344416[/C][C]0.0150665115672208[/C][/ROW]
[ROW][C]37[/C][C]0.972791905523192[/C][C]0.0544161889536159[/C][C]0.0272080944768080[/C][/ROW]
[ROW][C]38[/C][C]0.958184582688477[/C][C]0.0836308346230461[/C][C]0.0418154173115231[/C][/ROW]
[ROW][C]39[/C][C]0.929407983803977[/C][C]0.141184032392045[/C][C]0.0705920161960226[/C][/ROW]
[ROW][C]40[/C][C]0.869461715126432[/C][C]0.261076569747136[/C][C]0.130538284873568[/C][/ROW]
[ROW][C]41[/C][C]0.968539230958926[/C][C]0.0629215380821469[/C][C]0.0314607690410735[/C][/ROW]
[ROW][C]42[/C][C]0.938401665868179[/C][C]0.123196668263643[/C][C]0.0615983341318215[/C][/ROW]
[ROW][C]43[/C][C]0.919199858371093[/C][C]0.161600283257814[/C][C]0.0808001416289071[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57385&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57385&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
170.9893878949124990.02122421017500230.0106121050875012
180.9819854601197620.0360290797604770.0180145398802385
190.9825938514366940.03481229712661240.0174061485633062
200.9785539942952680.04289201140946380.0214460057047319
210.9899804938441170.02003901231176590.0100195061558830
220.9937428193858070.01251436122838550.00625718061419276
230.999794791538860.0004104169222790490.000205208461139525
240.9997943426367750.0004113147264505980.000205657363225299
250.9998196701868370.0003606596263254720.000180329813162736
260.999749802524760.0005003949504791340.000250197475239567
270.9997935027057280.0004129945885433460.000206497294271673
280.9994658524745750.001068295050849220.00053414752542461
290.9988749595137170.002250080972566040.00112504048628302
300.9990984810741780.001803037851644020.000901518925822008
310.9986360240974670.002727951805066600.00136397590253330
320.9968866529201940.006226694159611140.00311334707980557
330.998568020351740.002863959296518350.00143197964825917
340.9966960828925730.006607834214853770.00330391710742689
350.9922388065247340.01552238695053280.00776119347526639
360.984933488432780.03013302313444160.0150665115672208
370.9727919055231920.05441618895361590.0272080944768080
380.9581845826884770.08363083462304610.0418154173115231
390.9294079838039770.1411840323920450.0705920161960226
400.8694617151264320.2610765697471360.130538284873568
410.9685392309589260.06292153808214690.0314607690410735
420.9384016658681790.1231966682636430.0615983341318215
430.9191998583710930.1616002832578140.0808001416289071







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level120.444444444444444NOK
5% type I error level200.740740740740741NOK
10% type I error level230.851851851851852NOK

\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 & 12 & 0.444444444444444 & NOK \tabularnewline
5% type I error level & 20 & 0.740740740740741 & NOK \tabularnewline
10% type I error level & 23 & 0.851851851851852 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57385&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]12[/C][C]0.444444444444444[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]20[/C][C]0.740740740740741[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]23[/C][C]0.851851851851852[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57385&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57385&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 level120.444444444444444NOK
5% type I error level200.740740740740741NOK
10% type I error level230.851851851851852NOK



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