Free Statistics

of Irreproducible Research!

Author's title

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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact178
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [Model 2] [2009-11-21 00:17:37] [7d2d29a9bcbcfc0ea3924e19a42d8563] [Current]
Feedback Forum

Post a new message
Dataseries X:
104.08	99.2
103.86	93.6
107.47	104.2
111.1	95.3
117.33	102.7
119.04	103.1
123.68	100
125.9	107.2
124.54	107
119.39	119
118.8	110.4
114.81	101.7
117.9	102.4
120.53	98.8
125.15	105.6
126.49	104.4
131.85	106.3
127.4	107.2
131.08	108.5
122.37	106.9
124.34	114.2
119.61	125.9
119.97	110.6
116.46	110.5
117.03	106.7
120.96	104.7
124.71	107.4
127.08	109.8
131.91	103.4
137.69	114.8
142.46	114.3
144.32	109.6
138.06	118.3
124.45	127.3
126.71	112.3
121.83	114.9
122.51	108.2
125.48	105.4
127.77	122.1
128.03	113.5
132.84	110
133.41	125.3
139.99	114.3
138.53	115.6
136.12	127.1
124.75	123
122.88	122.2
121.46	126.4
118.4	112.7
122.45	105.8
128.94	120.9
133.25	116.3
137.94	115.7
140.04	127.9
130.74	108.3
131.55	121.1
129.47	128.6
125.45	123.1
127.87	127.7
124.68	126.6




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 44.6238087674328 + 0.648372618794754X[t] + 2.73643325933069M1[t] + 8.11863080589267M2[t] + 5.54052302280312M3[t] + 10.6327205693652M4[t] + 15.9723299978759M5[t] + 11.9014141427661M6[t] + 18.2417059744356M7[t] + 15.2405881180513M8[t] + 8.69991469123985M9[t] -2.07156680759192M10[t] + 2.99600897634725M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  44.6238087674328 +  0.648372618794754X[t] +  2.73643325933069M1[t] +  8.11863080589267M2[t] +  5.54052302280312M3[t] +  10.6327205693652M4[t] +  15.9723299978759M5[t] +  11.9014141427661M6[t] +  18.2417059744356M7[t] +  15.2405881180513M8[t] +  8.69991469123985M9[t] -2.07156680759192M10[t] +  2.99600897634725M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58500&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  44.6238087674328 +  0.648372618794754X[t] +  2.73643325933069M1[t] +  8.11863080589267M2[t] +  5.54052302280312M3[t] +  10.6327205693652M4[t] +  15.9723299978759M5[t] +  11.9014141427661M6[t] +  18.2417059744356M7[t] +  15.2405881180513M8[t] +  8.69991469123985M9[t] -2.07156680759192M10[t] +  2.99600897634725M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58500&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58500&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] = + 44.6238087674328 + 0.648372618794754X[t] + 2.73643325933069M1[t] + 8.11863080589267M2[t] + 5.54052302280312M3[t] + 10.6327205693652M4[t] + 15.9723299978759M5[t] + 11.9014141427661M6[t] + 18.2417059744356M7[t] + 15.2405881180513M8[t] + 8.69991469123985M9[t] -2.07156680759192M10[t] + 2.99600897634725M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)44.623808767432811.9670913.72890.0005170.000258
X0.6483726187947540.1011026.41300
M12.736433259330693.5072640.78020.4391740.219587
M28.118630805892673.6536852.2220.0311320.015566
M35.540523022803123.3769091.64070.1075340.053767
M410.63272056936523.4528563.07940.0034590.00173
M515.97232999787593.4587344.6183e-051.5e-05
M611.90141414276613.3530473.54940.0008890.000444
M718.24170597443563.425485.32533e-061e-06
M815.24058811805133.376434.51384.3e-052.1e-05
M98.699914691239853.3667232.58410.0129310.006466
M10-2.071566807591923.440674-0.60210.5500130.275007
M112.996008976347253.3534360.89340.3761870.188094

\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) & 44.6238087674328 & 11.967091 & 3.7289 & 0.000517 & 0.000258 \tabularnewline
X & 0.648372618794754 & 0.101102 & 6.413 & 0 & 0 \tabularnewline
M1 & 2.73643325933069 & 3.507264 & 0.7802 & 0.439174 & 0.219587 \tabularnewline
M2 & 8.11863080589267 & 3.653685 & 2.222 & 0.031132 & 0.015566 \tabularnewline
M3 & 5.54052302280312 & 3.376909 & 1.6407 & 0.107534 & 0.053767 \tabularnewline
M4 & 10.6327205693652 & 3.452856 & 3.0794 & 0.003459 & 0.00173 \tabularnewline
M5 & 15.9723299978759 & 3.458734 & 4.618 & 3e-05 & 1.5e-05 \tabularnewline
M6 & 11.9014141427661 & 3.353047 & 3.5494 & 0.000889 & 0.000444 \tabularnewline
M7 & 18.2417059744356 & 3.42548 & 5.3253 & 3e-06 & 1e-06 \tabularnewline
M8 & 15.2405881180513 & 3.37643 & 4.5138 & 4.3e-05 & 2.1e-05 \tabularnewline
M9 & 8.69991469123985 & 3.366723 & 2.5841 & 0.012931 & 0.006466 \tabularnewline
M10 & -2.07156680759192 & 3.440674 & -0.6021 & 0.550013 & 0.275007 \tabularnewline
M11 & 2.99600897634725 & 3.353436 & 0.8934 & 0.376187 & 0.188094 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58500&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]44.6238087674328[/C][C]11.967091[/C][C]3.7289[/C][C]0.000517[/C][C]0.000258[/C][/ROW]
[ROW][C]X[/C][C]0.648372618794754[/C][C]0.101102[/C][C]6.413[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]2.73643325933069[/C][C]3.507264[/C][C]0.7802[/C][C]0.439174[/C][C]0.219587[/C][/ROW]
[ROW][C]M2[/C][C]8.11863080589267[/C][C]3.653685[/C][C]2.222[/C][C]0.031132[/C][C]0.015566[/C][/ROW]
[ROW][C]M3[/C][C]5.54052302280312[/C][C]3.376909[/C][C]1.6407[/C][C]0.107534[/C][C]0.053767[/C][/ROW]
[ROW][C]M4[/C][C]10.6327205693652[/C][C]3.452856[/C][C]3.0794[/C][C]0.003459[/C][C]0.00173[/C][/ROW]
[ROW][C]M5[/C][C]15.9723299978759[/C][C]3.458734[/C][C]4.618[/C][C]3e-05[/C][C]1.5e-05[/C][/ROW]
[ROW][C]M6[/C][C]11.9014141427661[/C][C]3.353047[/C][C]3.5494[/C][C]0.000889[/C][C]0.000444[/C][/ROW]
[ROW][C]M7[/C][C]18.2417059744356[/C][C]3.42548[/C][C]5.3253[/C][C]3e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M8[/C][C]15.2405881180513[/C][C]3.37643[/C][C]4.5138[/C][C]4.3e-05[/C][C]2.1e-05[/C][/ROW]
[ROW][C]M9[/C][C]8.69991469123985[/C][C]3.366723[/C][C]2.5841[/C][C]0.012931[/C][C]0.006466[/C][/ROW]
[ROW][C]M10[/C][C]-2.07156680759192[/C][C]3.440674[/C][C]-0.6021[/C][C]0.550013[/C][C]0.275007[/C][/ROW]
[ROW][C]M11[/C][C]2.99600897634725[/C][C]3.353436[/C][C]0.8934[/C][C]0.376187[/C][C]0.188094[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58500&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58500&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)44.623808767432811.9670913.72890.0005170.000258
X0.6483726187947540.1011026.41300
M12.736433259330693.5072640.78020.4391740.219587
M28.118630805892673.6536852.2220.0311320.015566
M35.540523022803123.3769091.64070.1075340.053767
M410.63272056936523.4528563.07940.0034590.00173
M515.97232999787593.4587344.6183e-051.5e-05
M611.90141414276613.3530473.54940.0008890.000444
M718.24170597443563.425485.32533e-061e-06
M815.24058811805133.376434.51384.3e-052.1e-05
M98.699914691239853.3667232.58410.0129310.006466
M10-2.071566807591923.440674-0.60210.5500130.275007
M112.996008976347253.3534360.89340.3761870.188094







Multiple Linear Regression - Regression Statistics
Multiple R0.837478632407121
R-squared0.701370459738502
Adjusted R-squared0.625124619671736
F-TEST (value)9.19880296583182
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value9.2879609558949e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.30132070747676
Sum Squared Residuals1320.88805844553

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.837478632407121 \tabularnewline
R-squared & 0.701370459738502 \tabularnewline
Adjusted R-squared & 0.625124619671736 \tabularnewline
F-TEST (value) & 9.19880296583182 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 9.2879609558949e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.30132070747676 \tabularnewline
Sum Squared Residuals & 1320.88805844553 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58500&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.837478632407121[/C][/ROW]
[ROW][C]R-squared[/C][C]0.701370459738502[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.625124619671736[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]9.19880296583182[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]9.2879609558949e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.30132070747676[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1320.88805844553[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58500&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58500&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.837478632407121
R-squared0.701370459738502
Adjusted R-squared0.625124619671736
F-TEST (value)9.19880296583182
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value9.2879609558949e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.30132070747676
Sum Squared Residuals1320.88805844553







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1104.08111.678805811202-7.59880581120246
2103.86113.430116692514-9.57011669251427
3107.47117.724758668649-10.2547586686491
4111.1117.046439907938-5.94643990793789
5117.33127.184006715530-9.85400671552983
6119.04123.372439907938-4.33243990793787
7123.68127.702776621344-4.02277662134366
8125.9129.369941620282-3.4699416202816
9124.54122.6995936697111.84040633028884
10119.39119.708583596416-0.318583596416448
11118.8119.200154858721-0.400154858720747
12114.81110.5633040988594.24669590114087
13117.9113.7535981913464.14640180865386
14120.53116.8016543102473.72834568975299
15125.15118.6324803349626.51751966503823
16126.49122.9466307389703.54336926102984
17131.85129.5181481431912.33185185680907
18127.4126.0307676449961.36923235500362
19131.08133.213943881099-2.13394388109904
20122.37129.175429834643-6.80542983464318
21124.34127.367876525033-3.0278765250334
22119.61124.182354666100-4.57235466610025
23119.97119.3298293824800.640170617520318
24116.46116.2689831442530.191016855747034
25117.03116.5416004521640.488399547836416
26120.96120.6270527611360.332947238863934
27124.71119.7995510487924.91044895120766
28127.08126.4478428804620.632157119538181
29131.91127.6378675486864.27213245131386
30137.69130.9583995478376.73160045216349
31142.46136.9745050701095.4854949298914
32144.32130.92603590538913.393964094611
33138.06130.0262042620928.03379573790812
34124.45125.090076332413-0.6400763324129
35126.71120.4320628344316.27793716556923
36121.83119.1218226669502.70817733305012
37122.51117.5141593803564.99584061964429
38125.48121.0809135942924.39908640570762
39127.77129.330628545075-1.56062854507522
40128.03128.846821570002-0.816821570002408
41132.84131.9171268327310.922873167268494
42133.41137.766312045181-4.35631204518143
43139.99136.9745050701093.01549492989139
44138.53134.8162716181583.71372838184247
45136.12135.7318833074860.388116692514287
46124.75122.3020740715952.44792592840454
47122.88126.850951760499-3.97095176049883
48121.46126.578107783090-5.11810778308955
49118.4120.431836164932-2.0318361649321
50122.45121.3402626418101.10973735818972
51128.94128.5525814025220.387418597478484
52133.25130.6622649026282.58773509737228
53137.94135.6128507598622.32714924013839
54140.04139.4520808540480.587919145952199
55130.74133.08426935734-2.34426935734009
56131.55138.382321021529-6.83232102152867
57129.47136.704442235678-7.23444223567785
58125.45122.3669113334753.08308866652507
59127.87130.41700116387-2.54700116386997
60124.68126.707782306848-2.02778230684848

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 104.08 & 111.678805811202 & -7.59880581120246 \tabularnewline
2 & 103.86 & 113.430116692514 & -9.57011669251427 \tabularnewline
3 & 107.47 & 117.724758668649 & -10.2547586686491 \tabularnewline
4 & 111.1 & 117.046439907938 & -5.94643990793789 \tabularnewline
5 & 117.33 & 127.184006715530 & -9.85400671552983 \tabularnewline
6 & 119.04 & 123.372439907938 & -4.33243990793787 \tabularnewline
7 & 123.68 & 127.702776621344 & -4.02277662134366 \tabularnewline
8 & 125.9 & 129.369941620282 & -3.4699416202816 \tabularnewline
9 & 124.54 & 122.699593669711 & 1.84040633028884 \tabularnewline
10 & 119.39 & 119.708583596416 & -0.318583596416448 \tabularnewline
11 & 118.8 & 119.200154858721 & -0.400154858720747 \tabularnewline
12 & 114.81 & 110.563304098859 & 4.24669590114087 \tabularnewline
13 & 117.9 & 113.753598191346 & 4.14640180865386 \tabularnewline
14 & 120.53 & 116.801654310247 & 3.72834568975299 \tabularnewline
15 & 125.15 & 118.632480334962 & 6.51751966503823 \tabularnewline
16 & 126.49 & 122.946630738970 & 3.54336926102984 \tabularnewline
17 & 131.85 & 129.518148143191 & 2.33185185680907 \tabularnewline
18 & 127.4 & 126.030767644996 & 1.36923235500362 \tabularnewline
19 & 131.08 & 133.213943881099 & -2.13394388109904 \tabularnewline
20 & 122.37 & 129.175429834643 & -6.80542983464318 \tabularnewline
21 & 124.34 & 127.367876525033 & -3.0278765250334 \tabularnewline
22 & 119.61 & 124.182354666100 & -4.57235466610025 \tabularnewline
23 & 119.97 & 119.329829382480 & 0.640170617520318 \tabularnewline
24 & 116.46 & 116.268983144253 & 0.191016855747034 \tabularnewline
25 & 117.03 & 116.541600452164 & 0.488399547836416 \tabularnewline
26 & 120.96 & 120.627052761136 & 0.332947238863934 \tabularnewline
27 & 124.71 & 119.799551048792 & 4.91044895120766 \tabularnewline
28 & 127.08 & 126.447842880462 & 0.632157119538181 \tabularnewline
29 & 131.91 & 127.637867548686 & 4.27213245131386 \tabularnewline
30 & 137.69 & 130.958399547837 & 6.73160045216349 \tabularnewline
31 & 142.46 & 136.974505070109 & 5.4854949298914 \tabularnewline
32 & 144.32 & 130.926035905389 & 13.393964094611 \tabularnewline
33 & 138.06 & 130.026204262092 & 8.03379573790812 \tabularnewline
34 & 124.45 & 125.090076332413 & -0.6400763324129 \tabularnewline
35 & 126.71 & 120.432062834431 & 6.27793716556923 \tabularnewline
36 & 121.83 & 119.121822666950 & 2.70817733305012 \tabularnewline
37 & 122.51 & 117.514159380356 & 4.99584061964429 \tabularnewline
38 & 125.48 & 121.080913594292 & 4.39908640570762 \tabularnewline
39 & 127.77 & 129.330628545075 & -1.56062854507522 \tabularnewline
40 & 128.03 & 128.846821570002 & -0.816821570002408 \tabularnewline
41 & 132.84 & 131.917126832731 & 0.922873167268494 \tabularnewline
42 & 133.41 & 137.766312045181 & -4.35631204518143 \tabularnewline
43 & 139.99 & 136.974505070109 & 3.01549492989139 \tabularnewline
44 & 138.53 & 134.816271618158 & 3.71372838184247 \tabularnewline
45 & 136.12 & 135.731883307486 & 0.388116692514287 \tabularnewline
46 & 124.75 & 122.302074071595 & 2.44792592840454 \tabularnewline
47 & 122.88 & 126.850951760499 & -3.97095176049883 \tabularnewline
48 & 121.46 & 126.578107783090 & -5.11810778308955 \tabularnewline
49 & 118.4 & 120.431836164932 & -2.0318361649321 \tabularnewline
50 & 122.45 & 121.340262641810 & 1.10973735818972 \tabularnewline
51 & 128.94 & 128.552581402522 & 0.387418597478484 \tabularnewline
52 & 133.25 & 130.662264902628 & 2.58773509737228 \tabularnewline
53 & 137.94 & 135.612850759862 & 2.32714924013839 \tabularnewline
54 & 140.04 & 139.452080854048 & 0.587919145952199 \tabularnewline
55 & 130.74 & 133.08426935734 & -2.34426935734009 \tabularnewline
56 & 131.55 & 138.382321021529 & -6.83232102152867 \tabularnewline
57 & 129.47 & 136.704442235678 & -7.23444223567785 \tabularnewline
58 & 125.45 & 122.366911333475 & 3.08308866652507 \tabularnewline
59 & 127.87 & 130.41700116387 & -2.54700116386997 \tabularnewline
60 & 124.68 & 126.707782306848 & -2.02778230684848 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58500&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]104.08[/C][C]111.678805811202[/C][C]-7.59880581120246[/C][/ROW]
[ROW][C]2[/C][C]103.86[/C][C]113.430116692514[/C][C]-9.57011669251427[/C][/ROW]
[ROW][C]3[/C][C]107.47[/C][C]117.724758668649[/C][C]-10.2547586686491[/C][/ROW]
[ROW][C]4[/C][C]111.1[/C][C]117.046439907938[/C][C]-5.94643990793789[/C][/ROW]
[ROW][C]5[/C][C]117.33[/C][C]127.184006715530[/C][C]-9.85400671552983[/C][/ROW]
[ROW][C]6[/C][C]119.04[/C][C]123.372439907938[/C][C]-4.33243990793787[/C][/ROW]
[ROW][C]7[/C][C]123.68[/C][C]127.702776621344[/C][C]-4.02277662134366[/C][/ROW]
[ROW][C]8[/C][C]125.9[/C][C]129.369941620282[/C][C]-3.4699416202816[/C][/ROW]
[ROW][C]9[/C][C]124.54[/C][C]122.699593669711[/C][C]1.84040633028884[/C][/ROW]
[ROW][C]10[/C][C]119.39[/C][C]119.708583596416[/C][C]-0.318583596416448[/C][/ROW]
[ROW][C]11[/C][C]118.8[/C][C]119.200154858721[/C][C]-0.400154858720747[/C][/ROW]
[ROW][C]12[/C][C]114.81[/C][C]110.563304098859[/C][C]4.24669590114087[/C][/ROW]
[ROW][C]13[/C][C]117.9[/C][C]113.753598191346[/C][C]4.14640180865386[/C][/ROW]
[ROW][C]14[/C][C]120.53[/C][C]116.801654310247[/C][C]3.72834568975299[/C][/ROW]
[ROW][C]15[/C][C]125.15[/C][C]118.632480334962[/C][C]6.51751966503823[/C][/ROW]
[ROW][C]16[/C][C]126.49[/C][C]122.946630738970[/C][C]3.54336926102984[/C][/ROW]
[ROW][C]17[/C][C]131.85[/C][C]129.518148143191[/C][C]2.33185185680907[/C][/ROW]
[ROW][C]18[/C][C]127.4[/C][C]126.030767644996[/C][C]1.36923235500362[/C][/ROW]
[ROW][C]19[/C][C]131.08[/C][C]133.213943881099[/C][C]-2.13394388109904[/C][/ROW]
[ROW][C]20[/C][C]122.37[/C][C]129.175429834643[/C][C]-6.80542983464318[/C][/ROW]
[ROW][C]21[/C][C]124.34[/C][C]127.367876525033[/C][C]-3.0278765250334[/C][/ROW]
[ROW][C]22[/C][C]119.61[/C][C]124.182354666100[/C][C]-4.57235466610025[/C][/ROW]
[ROW][C]23[/C][C]119.97[/C][C]119.329829382480[/C][C]0.640170617520318[/C][/ROW]
[ROW][C]24[/C][C]116.46[/C][C]116.268983144253[/C][C]0.191016855747034[/C][/ROW]
[ROW][C]25[/C][C]117.03[/C][C]116.541600452164[/C][C]0.488399547836416[/C][/ROW]
[ROW][C]26[/C][C]120.96[/C][C]120.627052761136[/C][C]0.332947238863934[/C][/ROW]
[ROW][C]27[/C][C]124.71[/C][C]119.799551048792[/C][C]4.91044895120766[/C][/ROW]
[ROW][C]28[/C][C]127.08[/C][C]126.447842880462[/C][C]0.632157119538181[/C][/ROW]
[ROW][C]29[/C][C]131.91[/C][C]127.637867548686[/C][C]4.27213245131386[/C][/ROW]
[ROW][C]30[/C][C]137.69[/C][C]130.958399547837[/C][C]6.73160045216349[/C][/ROW]
[ROW][C]31[/C][C]142.46[/C][C]136.974505070109[/C][C]5.4854949298914[/C][/ROW]
[ROW][C]32[/C][C]144.32[/C][C]130.926035905389[/C][C]13.393964094611[/C][/ROW]
[ROW][C]33[/C][C]138.06[/C][C]130.026204262092[/C][C]8.03379573790812[/C][/ROW]
[ROW][C]34[/C][C]124.45[/C][C]125.090076332413[/C][C]-0.6400763324129[/C][/ROW]
[ROW][C]35[/C][C]126.71[/C][C]120.432062834431[/C][C]6.27793716556923[/C][/ROW]
[ROW][C]36[/C][C]121.83[/C][C]119.121822666950[/C][C]2.70817733305012[/C][/ROW]
[ROW][C]37[/C][C]122.51[/C][C]117.514159380356[/C][C]4.99584061964429[/C][/ROW]
[ROW][C]38[/C][C]125.48[/C][C]121.080913594292[/C][C]4.39908640570762[/C][/ROW]
[ROW][C]39[/C][C]127.77[/C][C]129.330628545075[/C][C]-1.56062854507522[/C][/ROW]
[ROW][C]40[/C][C]128.03[/C][C]128.846821570002[/C][C]-0.816821570002408[/C][/ROW]
[ROW][C]41[/C][C]132.84[/C][C]131.917126832731[/C][C]0.922873167268494[/C][/ROW]
[ROW][C]42[/C][C]133.41[/C][C]137.766312045181[/C][C]-4.35631204518143[/C][/ROW]
[ROW][C]43[/C][C]139.99[/C][C]136.974505070109[/C][C]3.01549492989139[/C][/ROW]
[ROW][C]44[/C][C]138.53[/C][C]134.816271618158[/C][C]3.71372838184247[/C][/ROW]
[ROW][C]45[/C][C]136.12[/C][C]135.731883307486[/C][C]0.388116692514287[/C][/ROW]
[ROW][C]46[/C][C]124.75[/C][C]122.302074071595[/C][C]2.44792592840454[/C][/ROW]
[ROW][C]47[/C][C]122.88[/C][C]126.850951760499[/C][C]-3.97095176049883[/C][/ROW]
[ROW][C]48[/C][C]121.46[/C][C]126.578107783090[/C][C]-5.11810778308955[/C][/ROW]
[ROW][C]49[/C][C]118.4[/C][C]120.431836164932[/C][C]-2.0318361649321[/C][/ROW]
[ROW][C]50[/C][C]122.45[/C][C]121.340262641810[/C][C]1.10973735818972[/C][/ROW]
[ROW][C]51[/C][C]128.94[/C][C]128.552581402522[/C][C]0.387418597478484[/C][/ROW]
[ROW][C]52[/C][C]133.25[/C][C]130.662264902628[/C][C]2.58773509737228[/C][/ROW]
[ROW][C]53[/C][C]137.94[/C][C]135.612850759862[/C][C]2.32714924013839[/C][/ROW]
[ROW][C]54[/C][C]140.04[/C][C]139.452080854048[/C][C]0.587919145952199[/C][/ROW]
[ROW][C]55[/C][C]130.74[/C][C]133.08426935734[/C][C]-2.34426935734009[/C][/ROW]
[ROW][C]56[/C][C]131.55[/C][C]138.382321021529[/C][C]-6.83232102152867[/C][/ROW]
[ROW][C]57[/C][C]129.47[/C][C]136.704442235678[/C][C]-7.23444223567785[/C][/ROW]
[ROW][C]58[/C][C]125.45[/C][C]122.366911333475[/C][C]3.08308866652507[/C][/ROW]
[ROW][C]59[/C][C]127.87[/C][C]130.41700116387[/C][C]-2.54700116386997[/C][/ROW]
[ROW][C]60[/C][C]124.68[/C][C]126.707782306848[/C][C]-2.02778230684848[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58500&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58500&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
1104.08111.678805811202-7.59880581120246
2103.86113.430116692514-9.57011669251427
3107.47117.724758668649-10.2547586686491
4111.1117.046439907938-5.94643990793789
5117.33127.184006715530-9.85400671552983
6119.04123.372439907938-4.33243990793787
7123.68127.702776621344-4.02277662134366
8125.9129.369941620282-3.4699416202816
9124.54122.6995936697111.84040633028884
10119.39119.708583596416-0.318583596416448
11118.8119.200154858721-0.400154858720747
12114.81110.5633040988594.24669590114087
13117.9113.7535981913464.14640180865386
14120.53116.8016543102473.72834568975299
15125.15118.6324803349626.51751966503823
16126.49122.9466307389703.54336926102984
17131.85129.5181481431912.33185185680907
18127.4126.0307676449961.36923235500362
19131.08133.213943881099-2.13394388109904
20122.37129.175429834643-6.80542983464318
21124.34127.367876525033-3.0278765250334
22119.61124.182354666100-4.57235466610025
23119.97119.3298293824800.640170617520318
24116.46116.2689831442530.191016855747034
25117.03116.5416004521640.488399547836416
26120.96120.6270527611360.332947238863934
27124.71119.7995510487924.91044895120766
28127.08126.4478428804620.632157119538181
29131.91127.6378675486864.27213245131386
30137.69130.9583995478376.73160045216349
31142.46136.9745050701095.4854949298914
32144.32130.92603590538913.393964094611
33138.06130.0262042620928.03379573790812
34124.45125.090076332413-0.6400763324129
35126.71120.4320628344316.27793716556923
36121.83119.1218226669502.70817733305012
37122.51117.5141593803564.99584061964429
38125.48121.0809135942924.39908640570762
39127.77129.330628545075-1.56062854507522
40128.03128.846821570002-0.816821570002408
41132.84131.9171268327310.922873167268494
42133.41137.766312045181-4.35631204518143
43139.99136.9745050701093.01549492989139
44138.53134.8162716181583.71372838184247
45136.12135.7318833074860.388116692514287
46124.75122.3020740715952.44792592840454
47122.88126.850951760499-3.97095176049883
48121.46126.578107783090-5.11810778308955
49118.4120.431836164932-2.0318361649321
50122.45121.3402626418101.10973735818972
51128.94128.5525814025220.387418597478484
52133.25130.6622649026282.58773509737228
53137.94135.6128507598622.32714924013839
54140.04139.4520808540480.587919145952199
55130.74133.08426935734-2.34426935734009
56131.55138.382321021529-6.83232102152867
57129.47136.704442235678-7.23444223567785
58125.45122.3669113334753.08308866652507
59127.87130.41700116387-2.54700116386997
60124.68126.707782306848-2.02778230684848







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.9269419029083010.1461161941833980.073058097091699
170.887067684832010.2258646303359810.112932315167990
180.8202851157202620.3594297685594750.179714884279738
190.887410864065430.2251782718691410.112589135934571
200.9261916561972840.1476166876054320.0738083438027159
210.9772429729122320.04551405417553530.0227570270877676
220.9837022257030430.03259554859391440.0162977742969572
230.975332569240430.04933486151914160.0246674307595708
240.9802563243815560.03948735123688740.0197436756184437
250.9679694538648160.06406109227036730.0320305461351836
260.9495027967816310.1009944064367380.050497203218369
270.9385734261004550.1228531477990900.0614265738995452
280.9164459071005140.1671081857989730.0835540928994865
290.9219158568532620.1561682862934760.0780841431467381
300.8861766660313540.2276466679372910.113823333968646
310.897196989975480.2056060200490400.102803010024520
320.980343604516140.03931279096772230.0196563954838611
330.9796641713490140.04067165730197210.0203358286509860
340.9633328274788740.07333434504225130.0366671725211256
350.9512363193352840.09752736132943150.0487636806647158
360.9290582285022850.1418835429954290.0709417714977147
370.9247363076292980.1505273847414040.0752636923707021
380.8874019843530070.2251960312939870.112598015646993
390.8615321194752640.2769357610494720.138467880524736
400.805583192638710.388833614722580.19441680736129
410.7064965741891770.5870068516216460.293503425810823
420.6924895424519930.6150209150960130.307510457548007
430.7517858128220640.4964283743558730.248214187177936
440.7709296765602680.4581406468794650.229070323439732

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.926941902908301 & 0.146116194183398 & 0.073058097091699 \tabularnewline
17 & 0.88706768483201 & 0.225864630335981 & 0.112932315167990 \tabularnewline
18 & 0.820285115720262 & 0.359429768559475 & 0.179714884279738 \tabularnewline
19 & 0.88741086406543 & 0.225178271869141 & 0.112589135934571 \tabularnewline
20 & 0.926191656197284 & 0.147616687605432 & 0.0738083438027159 \tabularnewline
21 & 0.977242972912232 & 0.0455140541755353 & 0.0227570270877676 \tabularnewline
22 & 0.983702225703043 & 0.0325955485939144 & 0.0162977742969572 \tabularnewline
23 & 0.97533256924043 & 0.0493348615191416 & 0.0246674307595708 \tabularnewline
24 & 0.980256324381556 & 0.0394873512368874 & 0.0197436756184437 \tabularnewline
25 & 0.967969453864816 & 0.0640610922703673 & 0.0320305461351836 \tabularnewline
26 & 0.949502796781631 & 0.100994406436738 & 0.050497203218369 \tabularnewline
27 & 0.938573426100455 & 0.122853147799090 & 0.0614265738995452 \tabularnewline
28 & 0.916445907100514 & 0.167108185798973 & 0.0835540928994865 \tabularnewline
29 & 0.921915856853262 & 0.156168286293476 & 0.0780841431467381 \tabularnewline
30 & 0.886176666031354 & 0.227646667937291 & 0.113823333968646 \tabularnewline
31 & 0.89719698997548 & 0.205606020049040 & 0.102803010024520 \tabularnewline
32 & 0.98034360451614 & 0.0393127909677223 & 0.0196563954838611 \tabularnewline
33 & 0.979664171349014 & 0.0406716573019721 & 0.0203358286509860 \tabularnewline
34 & 0.963332827478874 & 0.0733343450422513 & 0.0366671725211256 \tabularnewline
35 & 0.951236319335284 & 0.0975273613294315 & 0.0487636806647158 \tabularnewline
36 & 0.929058228502285 & 0.141883542995429 & 0.0709417714977147 \tabularnewline
37 & 0.924736307629298 & 0.150527384741404 & 0.0752636923707021 \tabularnewline
38 & 0.887401984353007 & 0.225196031293987 & 0.112598015646993 \tabularnewline
39 & 0.861532119475264 & 0.276935761049472 & 0.138467880524736 \tabularnewline
40 & 0.80558319263871 & 0.38883361472258 & 0.19441680736129 \tabularnewline
41 & 0.706496574189177 & 0.587006851621646 & 0.293503425810823 \tabularnewline
42 & 0.692489542451993 & 0.615020915096013 & 0.307510457548007 \tabularnewline
43 & 0.751785812822064 & 0.496428374355873 & 0.248214187177936 \tabularnewline
44 & 0.770929676560268 & 0.458140646879465 & 0.229070323439732 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58500&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]16[/C][C]0.926941902908301[/C][C]0.146116194183398[/C][C]0.073058097091699[/C][/ROW]
[ROW][C]17[/C][C]0.88706768483201[/C][C]0.225864630335981[/C][C]0.112932315167990[/C][/ROW]
[ROW][C]18[/C][C]0.820285115720262[/C][C]0.359429768559475[/C][C]0.179714884279738[/C][/ROW]
[ROW][C]19[/C][C]0.88741086406543[/C][C]0.225178271869141[/C][C]0.112589135934571[/C][/ROW]
[ROW][C]20[/C][C]0.926191656197284[/C][C]0.147616687605432[/C][C]0.0738083438027159[/C][/ROW]
[ROW][C]21[/C][C]0.977242972912232[/C][C]0.0455140541755353[/C][C]0.0227570270877676[/C][/ROW]
[ROW][C]22[/C][C]0.983702225703043[/C][C]0.0325955485939144[/C][C]0.0162977742969572[/C][/ROW]
[ROW][C]23[/C][C]0.97533256924043[/C][C]0.0493348615191416[/C][C]0.0246674307595708[/C][/ROW]
[ROW][C]24[/C][C]0.980256324381556[/C][C]0.0394873512368874[/C][C]0.0197436756184437[/C][/ROW]
[ROW][C]25[/C][C]0.967969453864816[/C][C]0.0640610922703673[/C][C]0.0320305461351836[/C][/ROW]
[ROW][C]26[/C][C]0.949502796781631[/C][C]0.100994406436738[/C][C]0.050497203218369[/C][/ROW]
[ROW][C]27[/C][C]0.938573426100455[/C][C]0.122853147799090[/C][C]0.0614265738995452[/C][/ROW]
[ROW][C]28[/C][C]0.916445907100514[/C][C]0.167108185798973[/C][C]0.0835540928994865[/C][/ROW]
[ROW][C]29[/C][C]0.921915856853262[/C][C]0.156168286293476[/C][C]0.0780841431467381[/C][/ROW]
[ROW][C]30[/C][C]0.886176666031354[/C][C]0.227646667937291[/C][C]0.113823333968646[/C][/ROW]
[ROW][C]31[/C][C]0.89719698997548[/C][C]0.205606020049040[/C][C]0.102803010024520[/C][/ROW]
[ROW][C]32[/C][C]0.98034360451614[/C][C]0.0393127909677223[/C][C]0.0196563954838611[/C][/ROW]
[ROW][C]33[/C][C]0.979664171349014[/C][C]0.0406716573019721[/C][C]0.0203358286509860[/C][/ROW]
[ROW][C]34[/C][C]0.963332827478874[/C][C]0.0733343450422513[/C][C]0.0366671725211256[/C][/ROW]
[ROW][C]35[/C][C]0.951236319335284[/C][C]0.0975273613294315[/C][C]0.0487636806647158[/C][/ROW]
[ROW][C]36[/C][C]0.929058228502285[/C][C]0.141883542995429[/C][C]0.0709417714977147[/C][/ROW]
[ROW][C]37[/C][C]0.924736307629298[/C][C]0.150527384741404[/C][C]0.0752636923707021[/C][/ROW]
[ROW][C]38[/C][C]0.887401984353007[/C][C]0.225196031293987[/C][C]0.112598015646993[/C][/ROW]
[ROW][C]39[/C][C]0.861532119475264[/C][C]0.276935761049472[/C][C]0.138467880524736[/C][/ROW]
[ROW][C]40[/C][C]0.80558319263871[/C][C]0.38883361472258[/C][C]0.19441680736129[/C][/ROW]
[ROW][C]41[/C][C]0.706496574189177[/C][C]0.587006851621646[/C][C]0.293503425810823[/C][/ROW]
[ROW][C]42[/C][C]0.692489542451993[/C][C]0.615020915096013[/C][C]0.307510457548007[/C][/ROW]
[ROW][C]43[/C][C]0.751785812822064[/C][C]0.496428374355873[/C][C]0.248214187177936[/C][/ROW]
[ROW][C]44[/C][C]0.770929676560268[/C][C]0.458140646879465[/C][C]0.229070323439732[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58500&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58500&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
160.9269419029083010.1461161941833980.073058097091699
170.887067684832010.2258646303359810.112932315167990
180.8202851157202620.3594297685594750.179714884279738
190.887410864065430.2251782718691410.112589135934571
200.9261916561972840.1476166876054320.0738083438027159
210.9772429729122320.04551405417553530.0227570270877676
220.9837022257030430.03259554859391440.0162977742969572
230.975332569240430.04933486151914160.0246674307595708
240.9802563243815560.03948735123688740.0197436756184437
250.9679694538648160.06406109227036730.0320305461351836
260.9495027967816310.1009944064367380.050497203218369
270.9385734261004550.1228531477990900.0614265738995452
280.9164459071005140.1671081857989730.0835540928994865
290.9219158568532620.1561682862934760.0780841431467381
300.8861766660313540.2276466679372910.113823333968646
310.897196989975480.2056060200490400.102803010024520
320.980343604516140.03931279096772230.0196563954838611
330.9796641713490140.04067165730197210.0203358286509860
340.9633328274788740.07333434504225130.0366671725211256
350.9512363193352840.09752736132943150.0487636806647158
360.9290582285022850.1418835429954290.0709417714977147
370.9247363076292980.1505273847414040.0752636923707021
380.8874019843530070.2251960312939870.112598015646993
390.8615321194752640.2769357610494720.138467880524736
400.805583192638710.388833614722580.19441680736129
410.7064965741891770.5870068516216460.293503425810823
420.6924895424519930.6150209150960130.307510457548007
430.7517858128220640.4964283743558730.248214187177936
440.7709296765602680.4581406468794650.229070323439732







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

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

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



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}