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, 25 Dec 2009 11:52:49 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/25/t1261767259qfu9fkjqm57h8ub.htm/, Retrieved Sat, 04 May 2024 14:16:31 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70724, Retrieved Sat, 04 May 2024 14:16:31 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact165
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]
-    D    [Multiple Regression] [Workshop 7: Multi...] [2009-12-25 15:14:42] [74be16979710d4c4e7c6647856088456]
-   P       [Multiple Regression] [Workshop 7: Multi...] [2009-12-25 18:29:33] [74be16979710d4c4e7c6647856088456]
-   P           [Multiple Regression] [Workshop 7: Multi...] [2009-12-25 18:52:49] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
25.6	8.1
23.7	7.7
22	7.5
21.3	7.6
20.7	7.8
20.4	7.8
20.3	7.8
20.4	7.5
19.8	7.5
19.5	7.1
23.1	7.5
23.5	7.5
23.5	7.6
22.9	7.7
21.9	7.7
21.5	7.9
20.5	8.1
20.2	8.2
19.4	8.2
19.2	8.2
18.8	7.9
18.8	7.3
22.6	6.9
23.3	6.6
23	6.7
21.4	6.9
19.9	7
18.8	7.1
18.6	7.2
18.4	7.1
18.6	6.9
19.9	7
19.2	6.8
18.4	6.4
21.1	6.7
20.5	6.6
19.1	6.4
18.1	6.3
17	6.2
17.1	6.5
17.4	6.8
16.8	6.8
15.3	6.4
14.3	6.1
13.4	5.8
15.3	6.1
22.1	7.2
23.7	7.3
22.2	6.9
19.5	6.1
16.6	5.8
17.3	6.2
19.8	7.1
21.2	7.7
21.5	7.9
20.6	7.7
19.1	7.4
19.6	7.5
23.5	8
24	8.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=70724&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=70724&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 5.26942072945178 + 2.50007398091293X[t] -0.217758070084566M1[t] -1.26885563857858M2[t] -2.64996060516387M3[t] -3.47108924564129M4[t] -4.11222676382827M5[t] -4.4033480062144M6[t] -4.57445445241795M7[t] -4.35555645976671M8[t] -4.61665254864245M9[t] -3.84775011713644M10[t] -0.628890594559936M11[t] -0.00888763532341999t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  5.26942072945178 +  2.50007398091293X[t] -0.217758070084566M1[t] -1.26885563857858M2[t] -2.64996060516387M3[t] -3.47108924564129M4[t] -4.11222676382827M5[t] -4.4033480062144M6[t] -4.57445445241795M7[t] -4.35555645976671M8[t] -4.61665254864245M9[t] -3.84775011713644M10[t] -0.628890594559936M11[t] -0.00888763532341999t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70724&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  5.26942072945178 +  2.50007398091293X[t] -0.217758070084566M1[t] -1.26885563857858M2[t] -2.64996060516387M3[t] -3.47108924564129M4[t] -4.11222676382827M5[t] -4.4033480062144M6[t] -4.57445445241795M7[t] -4.35555645976671M8[t] -4.61665254864245M9[t] -3.84775011713644M10[t] -0.628890594559936M11[t] -0.00888763532341999t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70724&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70724&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] = + 5.26942072945178 + 2.50007398091293X[t] -0.217758070084566M1[t] -1.26885563857858M2[t] -2.64996060516387M3[t] -3.47108924564129M4[t] -4.11222676382827M5[t] -4.4033480062144M6[t] -4.57445445241795M7[t] -4.35555645976671M8[t] -4.61665254864245M9[t] -3.84775011713644M10[t] -0.628890594559936M11[t] -0.00888763532341999t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)5.269420729451782.0381762.58540.0129620.006481
X2.500073980912930.250389.985100
M1-0.2177580700845660.681393-0.31960.7507350.375368
M2-1.268855638578580.686395-1.84860.0709520.035476
M3-2.649960605163870.689209-3.84490.0003690.000184
M4-3.471089245641290.679409-5.1096e-063e-06
M5-4.112226763828270.674816-6.093900
M6-4.40334800621440.675837-6.515400
M7-4.574454452417950.674328-6.783700
M8-4.355556459766710.673047-6.471400
M9-4.616652548642450.674394-6.845600
M10-3.847750117136440.678941-5.66731e-060
M11-0.6288905945599360.672335-0.93540.3544760.177238
t-0.008887635323419990.009131-0.97330.3354950.167748

\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) & 5.26942072945178 & 2.038176 & 2.5854 & 0.012962 & 0.006481 \tabularnewline
X & 2.50007398091293 & 0.25038 & 9.9851 & 0 & 0 \tabularnewline
M1 & -0.217758070084566 & 0.681393 & -0.3196 & 0.750735 & 0.375368 \tabularnewline
M2 & -1.26885563857858 & 0.686395 & -1.8486 & 0.070952 & 0.035476 \tabularnewline
M3 & -2.64996060516387 & 0.689209 & -3.8449 & 0.000369 & 0.000184 \tabularnewline
M4 & -3.47108924564129 & 0.679409 & -5.109 & 6e-06 & 3e-06 \tabularnewline
M5 & -4.11222676382827 & 0.674816 & -6.0939 & 0 & 0 \tabularnewline
M6 & -4.4033480062144 & 0.675837 & -6.5154 & 0 & 0 \tabularnewline
M7 & -4.57445445241795 & 0.674328 & -6.7837 & 0 & 0 \tabularnewline
M8 & -4.35555645976671 & 0.673047 & -6.4714 & 0 & 0 \tabularnewline
M9 & -4.61665254864245 & 0.674394 & -6.8456 & 0 & 0 \tabularnewline
M10 & -3.84775011713644 & 0.678941 & -5.6673 & 1e-06 & 0 \tabularnewline
M11 & -0.628890594559936 & 0.672335 & -0.9354 & 0.354476 & 0.177238 \tabularnewline
t & -0.00888763532341999 & 0.009131 & -0.9733 & 0.335495 & 0.167748 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70724&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]5.26942072945178[/C][C]2.038176[/C][C]2.5854[/C][C]0.012962[/C][C]0.006481[/C][/ROW]
[ROW][C]X[/C][C]2.50007398091293[/C][C]0.25038[/C][C]9.9851[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.217758070084566[/C][C]0.681393[/C][C]-0.3196[/C][C]0.750735[/C][C]0.375368[/C][/ROW]
[ROW][C]M2[/C][C]-1.26885563857858[/C][C]0.686395[/C][C]-1.8486[/C][C]0.070952[/C][C]0.035476[/C][/ROW]
[ROW][C]M3[/C][C]-2.64996060516387[/C][C]0.689209[/C][C]-3.8449[/C][C]0.000369[/C][C]0.000184[/C][/ROW]
[ROW][C]M4[/C][C]-3.47108924564129[/C][C]0.679409[/C][C]-5.109[/C][C]6e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M5[/C][C]-4.11222676382827[/C][C]0.674816[/C][C]-6.0939[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]-4.4033480062144[/C][C]0.675837[/C][C]-6.5154[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-4.57445445241795[/C][C]0.674328[/C][C]-6.7837[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-4.35555645976671[/C][C]0.673047[/C][C]-6.4714[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-4.61665254864245[/C][C]0.674394[/C][C]-6.8456[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-3.84775011713644[/C][C]0.678941[/C][C]-5.6673[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]-0.628890594559936[/C][C]0.672335[/C][C]-0.9354[/C][C]0.354476[/C][C]0.177238[/C][/ROW]
[ROW][C]t[/C][C]-0.00888763532341999[/C][C]0.009131[/C][C]-0.9733[/C][C]0.335495[/C][C]0.167748[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70724&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70724&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)5.269420729451782.0381762.58540.0129620.006481
X2.500073980912930.250389.985100
M1-0.2177580700845660.681393-0.31960.7507350.375368
M2-1.268855638578580.686395-1.84860.0709520.035476
M3-2.649960605163870.689209-3.84490.0003690.000184
M4-3.471089245641290.679409-5.1096e-063e-06
M5-4.112226763828270.674816-6.093900
M6-4.40334800621440.675837-6.515400
M7-4.574454452417950.674328-6.783700
M8-4.355556459766710.673047-6.471400
M9-4.616652548642450.674394-6.845600
M10-3.847750117136440.678941-5.66731e-060
M11-0.6288905945599360.672335-0.93540.3544760.177238
t-0.008887635323419990.009131-0.97330.3354950.167748







Multiple Linear Regression - Regression Statistics
Multiple R0.929033635433186
R-squared0.863103495766201
Adjusted R-squared0.824415353265345
F-TEST (value)22.3092513616311
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.33226762955019e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.06293959262310
Sum Squared Residuals51.9726665680255

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.929033635433186 \tabularnewline
R-squared & 0.863103495766201 \tabularnewline
Adjusted R-squared & 0.824415353265345 \tabularnewline
F-TEST (value) & 22.3092513616311 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.33226762955019e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.06293959262310 \tabularnewline
Sum Squared Residuals & 51.9726665680255 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70724&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.929033635433186[/C][/ROW]
[ROW][C]R-squared[/C][C]0.863103495766201[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.824415353265345[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]22.3092513616311[/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]1.33226762955019e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1.06293959262310[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]51.9726665680255[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70724&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70724&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.929033635433186
R-squared0.863103495766201
Adjusted R-squared0.824415353265345
F-TEST (value)22.3092513616311
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.33226762955019e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.06293959262310
Sum Squared Residuals51.9726665680255







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
125.625.29337426943840.306625730561593
223.723.23335947325590.466640526744101
32221.34335207516460.656647924835388
421.320.76334319745510.53665680254494
520.720.61333284012720.086667159872749
620.420.31332396241770.0866760375822986
720.320.13332988089070.166670119109268
820.419.59331804394470.806681956055333
919.819.32333431974550.476665680254492
1019.519.08331952356290.416680476437076
1123.123.2933210031812-0.193321003181179
1223.523.9133239624177-0.4133239624177
1323.523.936685655101-0.436685655101007
1422.923.1267078493749-0.226707849374868
1521.921.73671524746620.163284752533841
1621.521.40671376784790.0932862321520993
1720.521.2567034105201-0.756703410520089
1820.221.2067019309018-1.00670193090183
1919.421.0267078493749-1.62670784937486
2019.221.2367182067027-2.03671820670267
2118.820.2167122882296-1.41671228822964
2218.819.4766826958645-0.67668269586447
2322.621.68662499075240.913375009247613
2423.321.55660575571501.74339424428498
252321.57996744839831.42003255160167
2621.421.01999704076350.380002959236514
2719.919.88001183694610.0199881630539311
2818.819.3000029592365-0.500002959236516
2918.618.8999852038174-0.299985203817415
3018.418.34996892801660.0500310719834287
3118.617.66996005030700.930039949692981
3219.918.12997780572611.77002219427388
3319.217.35997928534441.84002071465562
3418.417.11996448916181.28003551083820
3521.121.07995857068880.0200414293112387
3620.521.449954131834-0.949954131833985
3719.120.7232936302434-1.62329363024341
3818.119.4133010283347-1.31330102833469
391717.7733010283347-0.773301028334686
4017.117.6933069468077-0.59330694680772
4117.417.7933039875712-0.393303987571205
4216.817.4932951098617-0.69329510986165
4315.316.3132714359695-1.01327143596952
4414.315.7732595990234-1.47325959902345
4513.414.7532536805504-1.35325368055041
4615.316.2632906710069-0.963290671006876
4722.122.2233439372642-0.123343937264185
4823.723.0933542945920.606645705408005
4922.221.86667899681880.333321003181161
5019.518.80663460827110.693365391728939
5116.616.6666198120885-0.0666198120884735
5217.316.83663312865280.463366871347197
5319.818.43667455796401.36332544203596
5421.219.63671006880221.56328993119775
5521.519.95673078345791.54326921654213
5620.619.66672634460310.93327365539691
5719.118.64672042613010.453279573869943
5819.619.6567426204039-0.0567426204039348
5923.524.1167514981135-0.616751498113488
602424.9867618554413-0.986761855441295

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 25.6 & 25.2933742694384 & 0.306625730561593 \tabularnewline
2 & 23.7 & 23.2333594732559 & 0.466640526744101 \tabularnewline
3 & 22 & 21.3433520751646 & 0.656647924835388 \tabularnewline
4 & 21.3 & 20.7633431974551 & 0.53665680254494 \tabularnewline
5 & 20.7 & 20.6133328401272 & 0.086667159872749 \tabularnewline
6 & 20.4 & 20.3133239624177 & 0.0866760375822986 \tabularnewline
7 & 20.3 & 20.1333298808907 & 0.166670119109268 \tabularnewline
8 & 20.4 & 19.5933180439447 & 0.806681956055333 \tabularnewline
9 & 19.8 & 19.3233343197455 & 0.476665680254492 \tabularnewline
10 & 19.5 & 19.0833195235629 & 0.416680476437076 \tabularnewline
11 & 23.1 & 23.2933210031812 & -0.193321003181179 \tabularnewline
12 & 23.5 & 23.9133239624177 & -0.4133239624177 \tabularnewline
13 & 23.5 & 23.936685655101 & -0.436685655101007 \tabularnewline
14 & 22.9 & 23.1267078493749 & -0.226707849374868 \tabularnewline
15 & 21.9 & 21.7367152474662 & 0.163284752533841 \tabularnewline
16 & 21.5 & 21.4067137678479 & 0.0932862321520993 \tabularnewline
17 & 20.5 & 21.2567034105201 & -0.756703410520089 \tabularnewline
18 & 20.2 & 21.2067019309018 & -1.00670193090183 \tabularnewline
19 & 19.4 & 21.0267078493749 & -1.62670784937486 \tabularnewline
20 & 19.2 & 21.2367182067027 & -2.03671820670267 \tabularnewline
21 & 18.8 & 20.2167122882296 & -1.41671228822964 \tabularnewline
22 & 18.8 & 19.4766826958645 & -0.67668269586447 \tabularnewline
23 & 22.6 & 21.6866249907524 & 0.913375009247613 \tabularnewline
24 & 23.3 & 21.5566057557150 & 1.74339424428498 \tabularnewline
25 & 23 & 21.5799674483983 & 1.42003255160167 \tabularnewline
26 & 21.4 & 21.0199970407635 & 0.380002959236514 \tabularnewline
27 & 19.9 & 19.8800118369461 & 0.0199881630539311 \tabularnewline
28 & 18.8 & 19.3000029592365 & -0.500002959236516 \tabularnewline
29 & 18.6 & 18.8999852038174 & -0.299985203817415 \tabularnewline
30 & 18.4 & 18.3499689280166 & 0.0500310719834287 \tabularnewline
31 & 18.6 & 17.6699600503070 & 0.930039949692981 \tabularnewline
32 & 19.9 & 18.1299778057261 & 1.77002219427388 \tabularnewline
33 & 19.2 & 17.3599792853444 & 1.84002071465562 \tabularnewline
34 & 18.4 & 17.1199644891618 & 1.28003551083820 \tabularnewline
35 & 21.1 & 21.0799585706888 & 0.0200414293112387 \tabularnewline
36 & 20.5 & 21.449954131834 & -0.949954131833985 \tabularnewline
37 & 19.1 & 20.7232936302434 & -1.62329363024341 \tabularnewline
38 & 18.1 & 19.4133010283347 & -1.31330102833469 \tabularnewline
39 & 17 & 17.7733010283347 & -0.773301028334686 \tabularnewline
40 & 17.1 & 17.6933069468077 & -0.59330694680772 \tabularnewline
41 & 17.4 & 17.7933039875712 & -0.393303987571205 \tabularnewline
42 & 16.8 & 17.4932951098617 & -0.69329510986165 \tabularnewline
43 & 15.3 & 16.3132714359695 & -1.01327143596952 \tabularnewline
44 & 14.3 & 15.7732595990234 & -1.47325959902345 \tabularnewline
45 & 13.4 & 14.7532536805504 & -1.35325368055041 \tabularnewline
46 & 15.3 & 16.2632906710069 & -0.963290671006876 \tabularnewline
47 & 22.1 & 22.2233439372642 & -0.123343937264185 \tabularnewline
48 & 23.7 & 23.093354294592 & 0.606645705408005 \tabularnewline
49 & 22.2 & 21.8666789968188 & 0.333321003181161 \tabularnewline
50 & 19.5 & 18.8066346082711 & 0.693365391728939 \tabularnewline
51 & 16.6 & 16.6666198120885 & -0.0666198120884735 \tabularnewline
52 & 17.3 & 16.8366331286528 & 0.463366871347197 \tabularnewline
53 & 19.8 & 18.4366745579640 & 1.36332544203596 \tabularnewline
54 & 21.2 & 19.6367100688022 & 1.56328993119775 \tabularnewline
55 & 21.5 & 19.9567307834579 & 1.54326921654213 \tabularnewline
56 & 20.6 & 19.6667263446031 & 0.93327365539691 \tabularnewline
57 & 19.1 & 18.6467204261301 & 0.453279573869943 \tabularnewline
58 & 19.6 & 19.6567426204039 & -0.0567426204039348 \tabularnewline
59 & 23.5 & 24.1167514981135 & -0.616751498113488 \tabularnewline
60 & 24 & 24.9867618554413 & -0.986761855441295 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70724&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]25.6[/C][C]25.2933742694384[/C][C]0.306625730561593[/C][/ROW]
[ROW][C]2[/C][C]23.7[/C][C]23.2333594732559[/C][C]0.466640526744101[/C][/ROW]
[ROW][C]3[/C][C]22[/C][C]21.3433520751646[/C][C]0.656647924835388[/C][/ROW]
[ROW][C]4[/C][C]21.3[/C][C]20.7633431974551[/C][C]0.53665680254494[/C][/ROW]
[ROW][C]5[/C][C]20.7[/C][C]20.6133328401272[/C][C]0.086667159872749[/C][/ROW]
[ROW][C]6[/C][C]20.4[/C][C]20.3133239624177[/C][C]0.0866760375822986[/C][/ROW]
[ROW][C]7[/C][C]20.3[/C][C]20.1333298808907[/C][C]0.166670119109268[/C][/ROW]
[ROW][C]8[/C][C]20.4[/C][C]19.5933180439447[/C][C]0.806681956055333[/C][/ROW]
[ROW][C]9[/C][C]19.8[/C][C]19.3233343197455[/C][C]0.476665680254492[/C][/ROW]
[ROW][C]10[/C][C]19.5[/C][C]19.0833195235629[/C][C]0.416680476437076[/C][/ROW]
[ROW][C]11[/C][C]23.1[/C][C]23.2933210031812[/C][C]-0.193321003181179[/C][/ROW]
[ROW][C]12[/C][C]23.5[/C][C]23.9133239624177[/C][C]-0.4133239624177[/C][/ROW]
[ROW][C]13[/C][C]23.5[/C][C]23.936685655101[/C][C]-0.436685655101007[/C][/ROW]
[ROW][C]14[/C][C]22.9[/C][C]23.1267078493749[/C][C]-0.226707849374868[/C][/ROW]
[ROW][C]15[/C][C]21.9[/C][C]21.7367152474662[/C][C]0.163284752533841[/C][/ROW]
[ROW][C]16[/C][C]21.5[/C][C]21.4067137678479[/C][C]0.0932862321520993[/C][/ROW]
[ROW][C]17[/C][C]20.5[/C][C]21.2567034105201[/C][C]-0.756703410520089[/C][/ROW]
[ROW][C]18[/C][C]20.2[/C][C]21.2067019309018[/C][C]-1.00670193090183[/C][/ROW]
[ROW][C]19[/C][C]19.4[/C][C]21.0267078493749[/C][C]-1.62670784937486[/C][/ROW]
[ROW][C]20[/C][C]19.2[/C][C]21.2367182067027[/C][C]-2.03671820670267[/C][/ROW]
[ROW][C]21[/C][C]18.8[/C][C]20.2167122882296[/C][C]-1.41671228822964[/C][/ROW]
[ROW][C]22[/C][C]18.8[/C][C]19.4766826958645[/C][C]-0.67668269586447[/C][/ROW]
[ROW][C]23[/C][C]22.6[/C][C]21.6866249907524[/C][C]0.913375009247613[/C][/ROW]
[ROW][C]24[/C][C]23.3[/C][C]21.5566057557150[/C][C]1.74339424428498[/C][/ROW]
[ROW][C]25[/C][C]23[/C][C]21.5799674483983[/C][C]1.42003255160167[/C][/ROW]
[ROW][C]26[/C][C]21.4[/C][C]21.0199970407635[/C][C]0.380002959236514[/C][/ROW]
[ROW][C]27[/C][C]19.9[/C][C]19.8800118369461[/C][C]0.0199881630539311[/C][/ROW]
[ROW][C]28[/C][C]18.8[/C][C]19.3000029592365[/C][C]-0.500002959236516[/C][/ROW]
[ROW][C]29[/C][C]18.6[/C][C]18.8999852038174[/C][C]-0.299985203817415[/C][/ROW]
[ROW][C]30[/C][C]18.4[/C][C]18.3499689280166[/C][C]0.0500310719834287[/C][/ROW]
[ROW][C]31[/C][C]18.6[/C][C]17.6699600503070[/C][C]0.930039949692981[/C][/ROW]
[ROW][C]32[/C][C]19.9[/C][C]18.1299778057261[/C][C]1.77002219427388[/C][/ROW]
[ROW][C]33[/C][C]19.2[/C][C]17.3599792853444[/C][C]1.84002071465562[/C][/ROW]
[ROW][C]34[/C][C]18.4[/C][C]17.1199644891618[/C][C]1.28003551083820[/C][/ROW]
[ROW][C]35[/C][C]21.1[/C][C]21.0799585706888[/C][C]0.0200414293112387[/C][/ROW]
[ROW][C]36[/C][C]20.5[/C][C]21.449954131834[/C][C]-0.949954131833985[/C][/ROW]
[ROW][C]37[/C][C]19.1[/C][C]20.7232936302434[/C][C]-1.62329363024341[/C][/ROW]
[ROW][C]38[/C][C]18.1[/C][C]19.4133010283347[/C][C]-1.31330102833469[/C][/ROW]
[ROW][C]39[/C][C]17[/C][C]17.7733010283347[/C][C]-0.773301028334686[/C][/ROW]
[ROW][C]40[/C][C]17.1[/C][C]17.6933069468077[/C][C]-0.59330694680772[/C][/ROW]
[ROW][C]41[/C][C]17.4[/C][C]17.7933039875712[/C][C]-0.393303987571205[/C][/ROW]
[ROW][C]42[/C][C]16.8[/C][C]17.4932951098617[/C][C]-0.69329510986165[/C][/ROW]
[ROW][C]43[/C][C]15.3[/C][C]16.3132714359695[/C][C]-1.01327143596952[/C][/ROW]
[ROW][C]44[/C][C]14.3[/C][C]15.7732595990234[/C][C]-1.47325959902345[/C][/ROW]
[ROW][C]45[/C][C]13.4[/C][C]14.7532536805504[/C][C]-1.35325368055041[/C][/ROW]
[ROW][C]46[/C][C]15.3[/C][C]16.2632906710069[/C][C]-0.963290671006876[/C][/ROW]
[ROW][C]47[/C][C]22.1[/C][C]22.2233439372642[/C][C]-0.123343937264185[/C][/ROW]
[ROW][C]48[/C][C]23.7[/C][C]23.093354294592[/C][C]0.606645705408005[/C][/ROW]
[ROW][C]49[/C][C]22.2[/C][C]21.8666789968188[/C][C]0.333321003181161[/C][/ROW]
[ROW][C]50[/C][C]19.5[/C][C]18.8066346082711[/C][C]0.693365391728939[/C][/ROW]
[ROW][C]51[/C][C]16.6[/C][C]16.6666198120885[/C][C]-0.0666198120884735[/C][/ROW]
[ROW][C]52[/C][C]17.3[/C][C]16.8366331286528[/C][C]0.463366871347197[/C][/ROW]
[ROW][C]53[/C][C]19.8[/C][C]18.4366745579640[/C][C]1.36332544203596[/C][/ROW]
[ROW][C]54[/C][C]21.2[/C][C]19.6367100688022[/C][C]1.56328993119775[/C][/ROW]
[ROW][C]55[/C][C]21.5[/C][C]19.9567307834579[/C][C]1.54326921654213[/C][/ROW]
[ROW][C]56[/C][C]20.6[/C][C]19.6667263446031[/C][C]0.93327365539691[/C][/ROW]
[ROW][C]57[/C][C]19.1[/C][C]18.6467204261301[/C][C]0.453279573869943[/C][/ROW]
[ROW][C]58[/C][C]19.6[/C][C]19.6567426204039[/C][C]-0.0567426204039348[/C][/ROW]
[ROW][C]59[/C][C]23.5[/C][C]24.1167514981135[/C][C]-0.616751498113488[/C][/ROW]
[ROW][C]60[/C][C]24[/C][C]24.9867618554413[/C][C]-0.986761855441295[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70724&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70724&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
125.625.29337426943840.306625730561593
223.723.23335947325590.466640526744101
32221.34335207516460.656647924835388
421.320.76334319745510.53665680254494
520.720.61333284012720.086667159872749
620.420.31332396241770.0866760375822986
720.320.13332988089070.166670119109268
820.419.59331804394470.806681956055333
919.819.32333431974550.476665680254492
1019.519.08331952356290.416680476437076
1123.123.2933210031812-0.193321003181179
1223.523.9133239624177-0.4133239624177
1323.523.936685655101-0.436685655101007
1422.923.1267078493749-0.226707849374868
1521.921.73671524746620.163284752533841
1621.521.40671376784790.0932862321520993
1720.521.2567034105201-0.756703410520089
1820.221.2067019309018-1.00670193090183
1919.421.0267078493749-1.62670784937486
2019.221.2367182067027-2.03671820670267
2118.820.2167122882296-1.41671228822964
2218.819.4766826958645-0.67668269586447
2322.621.68662499075240.913375009247613
2423.321.55660575571501.74339424428498
252321.57996744839831.42003255160167
2621.421.01999704076350.380002959236514
2719.919.88001183694610.0199881630539311
2818.819.3000029592365-0.500002959236516
2918.618.8999852038174-0.299985203817415
3018.418.34996892801660.0500310719834287
3118.617.66996005030700.930039949692981
3219.918.12997780572611.77002219427388
3319.217.35997928534441.84002071465562
3418.417.11996448916181.28003551083820
3521.121.07995857068880.0200414293112387
3620.521.449954131834-0.949954131833985
3719.120.7232936302434-1.62329363024341
3818.119.4133010283347-1.31330102833469
391717.7733010283347-0.773301028334686
4017.117.6933069468077-0.59330694680772
4117.417.7933039875712-0.393303987571205
4216.817.4932951098617-0.69329510986165
4315.316.3132714359695-1.01327143596952
4414.315.7732595990234-1.47325959902345
4513.414.7532536805504-1.35325368055041
4615.316.2632906710069-0.963290671006876
4722.122.2233439372642-0.123343937264185
4823.723.0933542945920.606645705408005
4922.221.86667899681880.333321003181161
5019.518.80663460827110.693365391728939
5116.616.6666198120885-0.0666198120884735
5217.316.83663312865280.463366871347197
5319.818.43667455796401.36332544203596
5421.219.63671006880221.56328993119775
5521.519.95673078345791.54326921654213
5620.619.66672634460310.93327365539691
5719.118.64672042613010.453279573869943
5819.619.6567426204039-0.0567426204039348
5923.524.1167514981135-0.616751498113488
602424.9867618554413-0.986761855441295







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.001498137559700240.002996275119400490.9985018624403
180.0009408803211180320.001881760642236060.999059119678882
190.003822951355903950.007645902711807890.996177048644096
200.01674633177565230.03349266355130450.983253668224348
210.01133036287043340.02266072574086690.988669637129567
220.005184056616627780.01036811323325560.994815943383372
230.003578521802491660.007157043604983320.996421478197508
240.004035121065693590.008070242131387190.995964878934306
250.002642209300810470.005284418601620950.99735779069919
260.001555470425512210.003110940851024430.998444529574488
270.001053764028446480.002107528056892960.998946235971554
280.001878158791309630.003756317582619260.99812184120869
290.001244985965120140.002489971930240290.99875501403488
300.0005682749111443420.001136549822288680.999431725088856
310.0003426641910083920.0006853283820167840.999657335808992
320.002636495443692840.005272990887385670.997363504556307
330.008554316189494170.01710863237898830.991445683810506
340.02623970960911030.05247941921822060.97376029039089
350.04233057396304350.08466114792608710.957669426036956
360.07578242482137410.1515648496427480.924217575178626
370.2513027831579350.5026055663158710.748697216842065
380.3404475927233130.6808951854466250.659552407276687
390.2944974532823920.5889949065647830.705502546717608
400.2459298431280370.4918596862560740.754070156871963
410.4162511249020510.8325022498041020.583748875097949
420.8896398364677160.2207203270645690.110360163532284
430.8902807651189670.2194384697620660.109719234881033

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.00149813755970024 & 0.00299627511940049 & 0.9985018624403 \tabularnewline
18 & 0.000940880321118032 & 0.00188176064223606 & 0.999059119678882 \tabularnewline
19 & 0.00382295135590395 & 0.00764590271180789 & 0.996177048644096 \tabularnewline
20 & 0.0167463317756523 & 0.0334926635513045 & 0.983253668224348 \tabularnewline
21 & 0.0113303628704334 & 0.0226607257408669 & 0.988669637129567 \tabularnewline
22 & 0.00518405661662778 & 0.0103681132332556 & 0.994815943383372 \tabularnewline
23 & 0.00357852180249166 & 0.00715704360498332 & 0.996421478197508 \tabularnewline
24 & 0.00403512106569359 & 0.00807024213138719 & 0.995964878934306 \tabularnewline
25 & 0.00264220930081047 & 0.00528441860162095 & 0.99735779069919 \tabularnewline
26 & 0.00155547042551221 & 0.00311094085102443 & 0.998444529574488 \tabularnewline
27 & 0.00105376402844648 & 0.00210752805689296 & 0.998946235971554 \tabularnewline
28 & 0.00187815879130963 & 0.00375631758261926 & 0.99812184120869 \tabularnewline
29 & 0.00124498596512014 & 0.00248997193024029 & 0.99875501403488 \tabularnewline
30 & 0.000568274911144342 & 0.00113654982228868 & 0.999431725088856 \tabularnewline
31 & 0.000342664191008392 & 0.000685328382016784 & 0.999657335808992 \tabularnewline
32 & 0.00263649544369284 & 0.00527299088738567 & 0.997363504556307 \tabularnewline
33 & 0.00855431618949417 & 0.0171086323789883 & 0.991445683810506 \tabularnewline
34 & 0.0262397096091103 & 0.0524794192182206 & 0.97376029039089 \tabularnewline
35 & 0.0423305739630435 & 0.0846611479260871 & 0.957669426036956 \tabularnewline
36 & 0.0757824248213741 & 0.151564849642748 & 0.924217575178626 \tabularnewline
37 & 0.251302783157935 & 0.502605566315871 & 0.748697216842065 \tabularnewline
38 & 0.340447592723313 & 0.680895185446625 & 0.659552407276687 \tabularnewline
39 & 0.294497453282392 & 0.588994906564783 & 0.705502546717608 \tabularnewline
40 & 0.245929843128037 & 0.491859686256074 & 0.754070156871963 \tabularnewline
41 & 0.416251124902051 & 0.832502249804102 & 0.583748875097949 \tabularnewline
42 & 0.889639836467716 & 0.220720327064569 & 0.110360163532284 \tabularnewline
43 & 0.890280765118967 & 0.219438469762066 & 0.109719234881033 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70724&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.00149813755970024[/C][C]0.00299627511940049[/C][C]0.9985018624403[/C][/ROW]
[ROW][C]18[/C][C]0.000940880321118032[/C][C]0.00188176064223606[/C][C]0.999059119678882[/C][/ROW]
[ROW][C]19[/C][C]0.00382295135590395[/C][C]0.00764590271180789[/C][C]0.996177048644096[/C][/ROW]
[ROW][C]20[/C][C]0.0167463317756523[/C][C]0.0334926635513045[/C][C]0.983253668224348[/C][/ROW]
[ROW][C]21[/C][C]0.0113303628704334[/C][C]0.0226607257408669[/C][C]0.988669637129567[/C][/ROW]
[ROW][C]22[/C][C]0.00518405661662778[/C][C]0.0103681132332556[/C][C]0.994815943383372[/C][/ROW]
[ROW][C]23[/C][C]0.00357852180249166[/C][C]0.00715704360498332[/C][C]0.996421478197508[/C][/ROW]
[ROW][C]24[/C][C]0.00403512106569359[/C][C]0.00807024213138719[/C][C]0.995964878934306[/C][/ROW]
[ROW][C]25[/C][C]0.00264220930081047[/C][C]0.00528441860162095[/C][C]0.99735779069919[/C][/ROW]
[ROW][C]26[/C][C]0.00155547042551221[/C][C]0.00311094085102443[/C][C]0.998444529574488[/C][/ROW]
[ROW][C]27[/C][C]0.00105376402844648[/C][C]0.00210752805689296[/C][C]0.998946235971554[/C][/ROW]
[ROW][C]28[/C][C]0.00187815879130963[/C][C]0.00375631758261926[/C][C]0.99812184120869[/C][/ROW]
[ROW][C]29[/C][C]0.00124498596512014[/C][C]0.00248997193024029[/C][C]0.99875501403488[/C][/ROW]
[ROW][C]30[/C][C]0.000568274911144342[/C][C]0.00113654982228868[/C][C]0.999431725088856[/C][/ROW]
[ROW][C]31[/C][C]0.000342664191008392[/C][C]0.000685328382016784[/C][C]0.999657335808992[/C][/ROW]
[ROW][C]32[/C][C]0.00263649544369284[/C][C]0.00527299088738567[/C][C]0.997363504556307[/C][/ROW]
[ROW][C]33[/C][C]0.00855431618949417[/C][C]0.0171086323789883[/C][C]0.991445683810506[/C][/ROW]
[ROW][C]34[/C][C]0.0262397096091103[/C][C]0.0524794192182206[/C][C]0.97376029039089[/C][/ROW]
[ROW][C]35[/C][C]0.0423305739630435[/C][C]0.0846611479260871[/C][C]0.957669426036956[/C][/ROW]
[ROW][C]36[/C][C]0.0757824248213741[/C][C]0.151564849642748[/C][C]0.924217575178626[/C][/ROW]
[ROW][C]37[/C][C]0.251302783157935[/C][C]0.502605566315871[/C][C]0.748697216842065[/C][/ROW]
[ROW][C]38[/C][C]0.340447592723313[/C][C]0.680895185446625[/C][C]0.659552407276687[/C][/ROW]
[ROW][C]39[/C][C]0.294497453282392[/C][C]0.588994906564783[/C][C]0.705502546717608[/C][/ROW]
[ROW][C]40[/C][C]0.245929843128037[/C][C]0.491859686256074[/C][C]0.754070156871963[/C][/ROW]
[ROW][C]41[/C][C]0.416251124902051[/C][C]0.832502249804102[/C][C]0.583748875097949[/C][/ROW]
[ROW][C]42[/C][C]0.889639836467716[/C][C]0.220720327064569[/C][C]0.110360163532284[/C][/ROW]
[ROW][C]43[/C][C]0.890280765118967[/C][C]0.219438469762066[/C][C]0.109719234881033[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70724&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70724&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.001498137559700240.002996275119400490.9985018624403
180.0009408803211180320.001881760642236060.999059119678882
190.003822951355903950.007645902711807890.996177048644096
200.01674633177565230.03349266355130450.983253668224348
210.01133036287043340.02266072574086690.988669637129567
220.005184056616627780.01036811323325560.994815943383372
230.003578521802491660.007157043604983320.996421478197508
240.004035121065693590.008070242131387190.995964878934306
250.002642209300810470.005284418601620950.99735779069919
260.001555470425512210.003110940851024430.998444529574488
270.001053764028446480.002107528056892960.998946235971554
280.001878158791309630.003756317582619260.99812184120869
290.001244985965120140.002489971930240290.99875501403488
300.0005682749111443420.001136549822288680.999431725088856
310.0003426641910083920.0006853283820167840.999657335808992
320.002636495443692840.005272990887385670.997363504556307
330.008554316189494170.01710863237898830.991445683810506
340.02623970960911030.05247941921822060.97376029039089
350.04233057396304350.08466114792608710.957669426036956
360.07578242482137410.1515648496427480.924217575178626
370.2513027831579350.5026055663158710.748697216842065
380.3404475927233130.6808951854466250.659552407276687
390.2944974532823920.5889949065647830.705502546717608
400.2459298431280370.4918596862560740.754070156871963
410.4162511249020510.8325022498041020.583748875097949
420.8896398364677160.2207203270645690.110360163532284
430.8902807651189670.2194384697620660.109719234881033







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level130.481481481481481NOK
5% type I error level170.62962962962963NOK
10% type I error level190.703703703703704NOK

\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 & 13 & 0.481481481481481 & NOK \tabularnewline
5% type I error level & 17 & 0.62962962962963 & NOK \tabularnewline
10% type I error level & 19 & 0.703703703703704 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70724&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]13[/C][C]0.481481481481481[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]17[/C][C]0.62962962962963[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]19[/C][C]0.703703703703704[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70724&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70724&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 level130.481481481481481NOK
5% type I error level170.62962962962963NOK
10% type I error level190.703703703703704NOK



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