Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationTue, 17 Nov 2009 12:32:14 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/17/t125848638546rf8la7uk61vn2.htm/, Retrieved Thu, 02 May 2024 03:50:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57409, Retrieved Thu, 02 May 2024 03:50:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsJSSHWWS7P2
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] [Multiple regressi...] [2009-11-17 19:32:14] [c8fd62404619100d8e91184019148412] [Current]
Feedback Forum

Post a new message
Dataseries X:
8	11.1
8.1	10.9
7.7	10
7.5	9.2
7.6	9.2
7.8	9.5
7.8	9.6
7.8	9.5
7.5	9.1
7.5	8.9
7.1	9
7.5	10.1
7.5	10.3
7.6	10.2
7.7	9.6
7.7	9.2
7.9	9.3
8.1	9.4
8.2	9.4
8.2	9.2
8.2	9
7.9	9
7.3	9
6.9	9.8
6.6	10
6.7	9.8
6.9	9.3
7	9
7.1	9
7.2	9.1
7.1	9.1
6.9	9.1
7	9.2
6.8	8.8
6.4	8.3
6.7	8.4
6.6	8.1
6.4	7.7
6.3	7.9
6.2	7.9
6.5	8
6.8	7.9
6.8	7.6
6.4	7.1
6.1	6.8
5.8	6.5
6.1	6.9
7.2	8.2
7.3	8.7
6.9	8.3
6.1	7.9
5.8	7.5
6.2	7.8
7.1	8.3
7.7	8.4
7.9	8.2
7.7	7.7
7.4	7.2
7.5	7.3
8	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=57409&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=57409&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57409&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] = + 1.81400771388499 + 0.978786816269285X[t] + 0.778727208976158M1[t] + 0.577454417952314M2[t] + 0.333211781206171M3[t] + 0.0510904628330994M4[t] -0.0642426367461433M5[t] -0.2170301542777M6[t] -0.354484572230014M7[t] -0.476181626928472M8[t] -0.599151472650772M9[t] -0.663818373071529M10[t] -0.448061009817672M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  1.81400771388499 +  0.978786816269285X[t] +  0.778727208976158M1[t] +  0.577454417952314M2[t] +  0.333211781206171M3[t] +  0.0510904628330994M4[t] -0.0642426367461433M5[t] -0.2170301542777M6[t] -0.354484572230014M7[t] -0.476181626928472M8[t] -0.599151472650772M9[t] -0.663818373071529M10[t] -0.448061009817672M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57409&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  1.81400771388499 +  0.978786816269285X[t] +  0.778727208976158M1[t] +  0.577454417952314M2[t] +  0.333211781206171M3[t] +  0.0510904628330994M4[t] -0.0642426367461433M5[t] -0.2170301542777M6[t] -0.354484572230014M7[t] -0.476181626928472M8[t] -0.599151472650772M9[t] -0.663818373071529M10[t] -0.448061009817672M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57409&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57409&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] = + 1.81400771388499 + 0.978786816269285X[t] + 0.778727208976158M1[t] + 0.577454417952314M2[t] + 0.333211781206171M3[t] + 0.0510904628330994M4[t] -0.0642426367461433M5[t] -0.2170301542777M6[t] -0.354484572230014M7[t] -0.476181626928472M8[t] -0.599151472650772M9[t] -0.663818373071529M10[t] -0.448061009817672M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1.814007713884991.16411.55830.1258730.062936
X0.9787868162692850.1538246.36300
M10.7787272089761580.4647921.67540.1004910.050246
M20.5774544179523140.4650671.24170.2205240.110262
M30.3332117812061710.46730.71310.4793360.239668
M40.05109046283309940.469170.10890.9137490.456875
M5-0.06424263674614330.465718-0.13790.8908750.445437
M6-0.21703015427770.465199-0.46650.642990.321495
M7-0.3544845722300140.466418-0.760.4510420.225521
M8-0.4761816269284720.465525-1.02290.3115950.155798
M9-0.5991514726507720.464741-1.28920.2036320.101816
M10-0.6638183730715290.465525-1.4260.1604890.080245
M11-0.4480610098176720.468362-0.95670.3436370.171818

\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) & 1.81400771388499 & 1.1641 & 1.5583 & 0.125873 & 0.062936 \tabularnewline
X & 0.978786816269285 & 0.153824 & 6.363 & 0 & 0 \tabularnewline
M1 & 0.778727208976158 & 0.464792 & 1.6754 & 0.100491 & 0.050246 \tabularnewline
M2 & 0.577454417952314 & 0.465067 & 1.2417 & 0.220524 & 0.110262 \tabularnewline
M3 & 0.333211781206171 & 0.4673 & 0.7131 & 0.479336 & 0.239668 \tabularnewline
M4 & 0.0510904628330994 & 0.46917 & 0.1089 & 0.913749 & 0.456875 \tabularnewline
M5 & -0.0642426367461433 & 0.465718 & -0.1379 & 0.890875 & 0.445437 \tabularnewline
M6 & -0.2170301542777 & 0.465199 & -0.4665 & 0.64299 & 0.321495 \tabularnewline
M7 & -0.354484572230014 & 0.466418 & -0.76 & 0.451042 & 0.225521 \tabularnewline
M8 & -0.476181626928472 & 0.465525 & -1.0229 & 0.311595 & 0.155798 \tabularnewline
M9 & -0.599151472650772 & 0.464741 & -1.2892 & 0.203632 & 0.101816 \tabularnewline
M10 & -0.663818373071529 & 0.465525 & -1.426 & 0.160489 & 0.080245 \tabularnewline
M11 & -0.448061009817672 & 0.468362 & -0.9567 & 0.343637 & 0.171818 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57409&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]1.81400771388499[/C][C]1.1641[/C][C]1.5583[/C][C]0.125873[/C][C]0.062936[/C][/ROW]
[ROW][C]X[/C][C]0.978786816269285[/C][C]0.153824[/C][C]6.363[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.778727208976158[/C][C]0.464792[/C][C]1.6754[/C][C]0.100491[/C][C]0.050246[/C][/ROW]
[ROW][C]M2[/C][C]0.577454417952314[/C][C]0.465067[/C][C]1.2417[/C][C]0.220524[/C][C]0.110262[/C][/ROW]
[ROW][C]M3[/C][C]0.333211781206171[/C][C]0.4673[/C][C]0.7131[/C][C]0.479336[/C][C]0.239668[/C][/ROW]
[ROW][C]M4[/C][C]0.0510904628330994[/C][C]0.46917[/C][C]0.1089[/C][C]0.913749[/C][C]0.456875[/C][/ROW]
[ROW][C]M5[/C][C]-0.0642426367461433[/C][C]0.465718[/C][C]-0.1379[/C][C]0.890875[/C][C]0.445437[/C][/ROW]
[ROW][C]M6[/C][C]-0.2170301542777[/C][C]0.465199[/C][C]-0.4665[/C][C]0.64299[/C][C]0.321495[/C][/ROW]
[ROW][C]M7[/C][C]-0.354484572230014[/C][C]0.466418[/C][C]-0.76[/C][C]0.451042[/C][C]0.225521[/C][/ROW]
[ROW][C]M8[/C][C]-0.476181626928472[/C][C]0.465525[/C][C]-1.0229[/C][C]0.311595[/C][C]0.155798[/C][/ROW]
[ROW][C]M9[/C][C]-0.599151472650772[/C][C]0.464741[/C][C]-1.2892[/C][C]0.203632[/C][C]0.101816[/C][/ROW]
[ROW][C]M10[/C][C]-0.663818373071529[/C][C]0.465525[/C][C]-1.426[/C][C]0.160489[/C][C]0.080245[/C][/ROW]
[ROW][C]M11[/C][C]-0.448061009817672[/C][C]0.468362[/C][C]-0.9567[/C][C]0.343637[/C][C]0.171818[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57409&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57409&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)1.814007713884991.16411.55830.1258730.062936
X0.9787868162692850.1538246.36300
M10.7787272089761580.4647921.67540.1004910.050246
M20.5774544179523140.4650671.24170.2205240.110262
M30.3332117812061710.46730.71310.4793360.239668
M40.05109046283309940.469170.10890.9137490.456875
M5-0.06424263674614330.465718-0.13790.8908750.445437
M6-0.21703015427770.465199-0.46650.642990.321495
M7-0.3544845722300140.466418-0.760.4510420.225521
M8-0.4761816269284720.465525-1.02290.3115950.155798
M9-0.5991514726507720.464741-1.28920.2036320.101816
M10-0.6638183730715290.465525-1.4260.1604890.080245
M11-0.4480610098176720.468362-0.95670.3436370.171818







Multiple Linear Regression - Regression Statistics
Multiple R0.75488037601094
R-squared0.569844382086419
Adjusted R-squared0.460017415810612
F-TEST (value)5.18856526233614
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value1.87317418973709e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.734756187946033
Sum Squared Residuals25.3737328190743

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.75488037601094 \tabularnewline
R-squared & 0.569844382086419 \tabularnewline
Adjusted R-squared & 0.460017415810612 \tabularnewline
F-TEST (value) & 5.18856526233614 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 1.87317418973709e-05 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.734756187946033 \tabularnewline
Sum Squared Residuals & 25.3737328190743 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57409&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.75488037601094[/C][/ROW]
[ROW][C]R-squared[/C][C]0.569844382086419[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.460017415810612[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5.18856526233614[/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]1.87317418973709e-05[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.734756187946033[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]25.3737328190743[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57409&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57409&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.75488037601094
R-squared0.569844382086419
Adjusted R-squared0.460017415810612
F-TEST (value)5.18856526233614
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value1.87317418973709e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.734756187946033
Sum Squared Residuals25.3737328190743







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
111.110.42302945301540.676970546984578
210.910.31963534361850.580364656381486
3109.683877980364660.316122019635345
49.29.20599929873773-0.00599929873772784
59.29.188544880785410.0114551192145857
69.59.231514726507710.268485273492286
79.69.09406030855540.5059396914446
89.58.972363253856940.527636746143058
99.18.555757363253860.544242636746143
108.98.49109046283310.4089095371669
1198.315333099579240.684666900420758
1210.19.154908835904630.94509116409537
1310.39.933636044880790.366363955119214
1410.29.830241935483870.369758064516129
159.69.68387798036466-0.0838779803646572
169.29.40175666199159-0.201756661991586
179.39.4821809256662-0.182180925666199
189.49.5251507713885-0.125150771388499
199.49.48557503506311-0.0855750350631127
209.29.36387798036466-0.163877980364656
2199.24090813464236-0.240908134642356
2298.882605189340810.117394810659186
2398.51109046283310.4889095371669
249.88.567636746143061.23236325385694
25109.052727910238430.94727208976157
269.88.949333800841520.850666199158486
279.38.900848527349230.399151472650771
2898.716605890603090.283394109396914
2998.699151472650770.300848527349229
309.18.644242636746140.455757363253856
319.18.40890953716690.691090462833099
329.18.091455119214591.00854488078541
339.28.066363955119211.13363604488078
348.87.80593969144460.9940603085554
358.37.630182328190740.669817671809257
368.48.37187938288920.0281206171107995
378.19.05272791023843-0.95272791023843
387.78.65569775596073-0.955697755960729
397.98.31357643758766-0.413576437587657
407.97.93357643758766-0.0335764375876577
4188.1118793828892-0.111879382889200
427.98.25272791023843-0.352727910238429
437.68.11527349228611-0.515273492286115
447.17.60206171107994-0.502061711079944
456.87.18545582047686-0.385455820476858
466.56.82715287517532-0.327152875175315
476.97.33654628330996-0.436546283309958
488.28.86127279102384-0.661272791023844
498.79.73787868162693-1.03787868162693
508.39.14509116409537-0.845091164095371
517.98.1178190743338-0.217819074333801
527.57.54206171107994-0.0420617110799438
537.87.81824333800841-0.0182433380084153
548.38.54636395511922-0.246363955119214
558.48.99618162692847-0.596181626928471
568.29.07024193548387-0.870241935483872
577.78.75151472650771-1.05151472650771
587.28.39321178120617-1.19321178120617
597.38.70684782608696-1.40684782608696
608.19.64430224403927-1.54430224403927

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 11.1 & 10.4230294530154 & 0.676970546984578 \tabularnewline
2 & 10.9 & 10.3196353436185 & 0.580364656381486 \tabularnewline
3 & 10 & 9.68387798036466 & 0.316122019635345 \tabularnewline
4 & 9.2 & 9.20599929873773 & -0.00599929873772784 \tabularnewline
5 & 9.2 & 9.18854488078541 & 0.0114551192145857 \tabularnewline
6 & 9.5 & 9.23151472650771 & 0.268485273492286 \tabularnewline
7 & 9.6 & 9.0940603085554 & 0.5059396914446 \tabularnewline
8 & 9.5 & 8.97236325385694 & 0.527636746143058 \tabularnewline
9 & 9.1 & 8.55575736325386 & 0.544242636746143 \tabularnewline
10 & 8.9 & 8.4910904628331 & 0.4089095371669 \tabularnewline
11 & 9 & 8.31533309957924 & 0.684666900420758 \tabularnewline
12 & 10.1 & 9.15490883590463 & 0.94509116409537 \tabularnewline
13 & 10.3 & 9.93363604488079 & 0.366363955119214 \tabularnewline
14 & 10.2 & 9.83024193548387 & 0.369758064516129 \tabularnewline
15 & 9.6 & 9.68387798036466 & -0.0838779803646572 \tabularnewline
16 & 9.2 & 9.40175666199159 & -0.201756661991586 \tabularnewline
17 & 9.3 & 9.4821809256662 & -0.182180925666199 \tabularnewline
18 & 9.4 & 9.5251507713885 & -0.125150771388499 \tabularnewline
19 & 9.4 & 9.48557503506311 & -0.0855750350631127 \tabularnewline
20 & 9.2 & 9.36387798036466 & -0.163877980364656 \tabularnewline
21 & 9 & 9.24090813464236 & -0.240908134642356 \tabularnewline
22 & 9 & 8.88260518934081 & 0.117394810659186 \tabularnewline
23 & 9 & 8.5110904628331 & 0.4889095371669 \tabularnewline
24 & 9.8 & 8.56763674614306 & 1.23236325385694 \tabularnewline
25 & 10 & 9.05272791023843 & 0.94727208976157 \tabularnewline
26 & 9.8 & 8.94933380084152 & 0.850666199158486 \tabularnewline
27 & 9.3 & 8.90084852734923 & 0.399151472650771 \tabularnewline
28 & 9 & 8.71660589060309 & 0.283394109396914 \tabularnewline
29 & 9 & 8.69915147265077 & 0.300848527349229 \tabularnewline
30 & 9.1 & 8.64424263674614 & 0.455757363253856 \tabularnewline
31 & 9.1 & 8.4089095371669 & 0.691090462833099 \tabularnewline
32 & 9.1 & 8.09145511921459 & 1.00854488078541 \tabularnewline
33 & 9.2 & 8.06636395511921 & 1.13363604488078 \tabularnewline
34 & 8.8 & 7.8059396914446 & 0.9940603085554 \tabularnewline
35 & 8.3 & 7.63018232819074 & 0.669817671809257 \tabularnewline
36 & 8.4 & 8.3718793828892 & 0.0281206171107995 \tabularnewline
37 & 8.1 & 9.05272791023843 & -0.95272791023843 \tabularnewline
38 & 7.7 & 8.65569775596073 & -0.955697755960729 \tabularnewline
39 & 7.9 & 8.31357643758766 & -0.413576437587657 \tabularnewline
40 & 7.9 & 7.93357643758766 & -0.0335764375876577 \tabularnewline
41 & 8 & 8.1118793828892 & -0.111879382889200 \tabularnewline
42 & 7.9 & 8.25272791023843 & -0.352727910238429 \tabularnewline
43 & 7.6 & 8.11527349228611 & -0.515273492286115 \tabularnewline
44 & 7.1 & 7.60206171107994 & -0.502061711079944 \tabularnewline
45 & 6.8 & 7.18545582047686 & -0.385455820476858 \tabularnewline
46 & 6.5 & 6.82715287517532 & -0.327152875175315 \tabularnewline
47 & 6.9 & 7.33654628330996 & -0.436546283309958 \tabularnewline
48 & 8.2 & 8.86127279102384 & -0.661272791023844 \tabularnewline
49 & 8.7 & 9.73787868162693 & -1.03787868162693 \tabularnewline
50 & 8.3 & 9.14509116409537 & -0.845091164095371 \tabularnewline
51 & 7.9 & 8.1178190743338 & -0.217819074333801 \tabularnewline
52 & 7.5 & 7.54206171107994 & -0.0420617110799438 \tabularnewline
53 & 7.8 & 7.81824333800841 & -0.0182433380084153 \tabularnewline
54 & 8.3 & 8.54636395511922 & -0.246363955119214 \tabularnewline
55 & 8.4 & 8.99618162692847 & -0.596181626928471 \tabularnewline
56 & 8.2 & 9.07024193548387 & -0.870241935483872 \tabularnewline
57 & 7.7 & 8.75151472650771 & -1.05151472650771 \tabularnewline
58 & 7.2 & 8.39321178120617 & -1.19321178120617 \tabularnewline
59 & 7.3 & 8.70684782608696 & -1.40684782608696 \tabularnewline
60 & 8.1 & 9.64430224403927 & -1.54430224403927 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57409&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]11.1[/C][C]10.4230294530154[/C][C]0.676970546984578[/C][/ROW]
[ROW][C]2[/C][C]10.9[/C][C]10.3196353436185[/C][C]0.580364656381486[/C][/ROW]
[ROW][C]3[/C][C]10[/C][C]9.68387798036466[/C][C]0.316122019635345[/C][/ROW]
[ROW][C]4[/C][C]9.2[/C][C]9.20599929873773[/C][C]-0.00599929873772784[/C][/ROW]
[ROW][C]5[/C][C]9.2[/C][C]9.18854488078541[/C][C]0.0114551192145857[/C][/ROW]
[ROW][C]6[/C][C]9.5[/C][C]9.23151472650771[/C][C]0.268485273492286[/C][/ROW]
[ROW][C]7[/C][C]9.6[/C][C]9.0940603085554[/C][C]0.5059396914446[/C][/ROW]
[ROW][C]8[/C][C]9.5[/C][C]8.97236325385694[/C][C]0.527636746143058[/C][/ROW]
[ROW][C]9[/C][C]9.1[/C][C]8.55575736325386[/C][C]0.544242636746143[/C][/ROW]
[ROW][C]10[/C][C]8.9[/C][C]8.4910904628331[/C][C]0.4089095371669[/C][/ROW]
[ROW][C]11[/C][C]9[/C][C]8.31533309957924[/C][C]0.684666900420758[/C][/ROW]
[ROW][C]12[/C][C]10.1[/C][C]9.15490883590463[/C][C]0.94509116409537[/C][/ROW]
[ROW][C]13[/C][C]10.3[/C][C]9.93363604488079[/C][C]0.366363955119214[/C][/ROW]
[ROW][C]14[/C][C]10.2[/C][C]9.83024193548387[/C][C]0.369758064516129[/C][/ROW]
[ROW][C]15[/C][C]9.6[/C][C]9.68387798036466[/C][C]-0.0838779803646572[/C][/ROW]
[ROW][C]16[/C][C]9.2[/C][C]9.40175666199159[/C][C]-0.201756661991586[/C][/ROW]
[ROW][C]17[/C][C]9.3[/C][C]9.4821809256662[/C][C]-0.182180925666199[/C][/ROW]
[ROW][C]18[/C][C]9.4[/C][C]9.5251507713885[/C][C]-0.125150771388499[/C][/ROW]
[ROW][C]19[/C][C]9.4[/C][C]9.48557503506311[/C][C]-0.0855750350631127[/C][/ROW]
[ROW][C]20[/C][C]9.2[/C][C]9.36387798036466[/C][C]-0.163877980364656[/C][/ROW]
[ROW][C]21[/C][C]9[/C][C]9.24090813464236[/C][C]-0.240908134642356[/C][/ROW]
[ROW][C]22[/C][C]9[/C][C]8.88260518934081[/C][C]0.117394810659186[/C][/ROW]
[ROW][C]23[/C][C]9[/C][C]8.5110904628331[/C][C]0.4889095371669[/C][/ROW]
[ROW][C]24[/C][C]9.8[/C][C]8.56763674614306[/C][C]1.23236325385694[/C][/ROW]
[ROW][C]25[/C][C]10[/C][C]9.05272791023843[/C][C]0.94727208976157[/C][/ROW]
[ROW][C]26[/C][C]9.8[/C][C]8.94933380084152[/C][C]0.850666199158486[/C][/ROW]
[ROW][C]27[/C][C]9.3[/C][C]8.90084852734923[/C][C]0.399151472650771[/C][/ROW]
[ROW][C]28[/C][C]9[/C][C]8.71660589060309[/C][C]0.283394109396914[/C][/ROW]
[ROW][C]29[/C][C]9[/C][C]8.69915147265077[/C][C]0.300848527349229[/C][/ROW]
[ROW][C]30[/C][C]9.1[/C][C]8.64424263674614[/C][C]0.455757363253856[/C][/ROW]
[ROW][C]31[/C][C]9.1[/C][C]8.4089095371669[/C][C]0.691090462833099[/C][/ROW]
[ROW][C]32[/C][C]9.1[/C][C]8.09145511921459[/C][C]1.00854488078541[/C][/ROW]
[ROW][C]33[/C][C]9.2[/C][C]8.06636395511921[/C][C]1.13363604488078[/C][/ROW]
[ROW][C]34[/C][C]8.8[/C][C]7.8059396914446[/C][C]0.9940603085554[/C][/ROW]
[ROW][C]35[/C][C]8.3[/C][C]7.63018232819074[/C][C]0.669817671809257[/C][/ROW]
[ROW][C]36[/C][C]8.4[/C][C]8.3718793828892[/C][C]0.0281206171107995[/C][/ROW]
[ROW][C]37[/C][C]8.1[/C][C]9.05272791023843[/C][C]-0.95272791023843[/C][/ROW]
[ROW][C]38[/C][C]7.7[/C][C]8.65569775596073[/C][C]-0.955697755960729[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]8.31357643758766[/C][C]-0.413576437587657[/C][/ROW]
[ROW][C]40[/C][C]7.9[/C][C]7.93357643758766[/C][C]-0.0335764375876577[/C][/ROW]
[ROW][C]41[/C][C]8[/C][C]8.1118793828892[/C][C]-0.111879382889200[/C][/ROW]
[ROW][C]42[/C][C]7.9[/C][C]8.25272791023843[/C][C]-0.352727910238429[/C][/ROW]
[ROW][C]43[/C][C]7.6[/C][C]8.11527349228611[/C][C]-0.515273492286115[/C][/ROW]
[ROW][C]44[/C][C]7.1[/C][C]7.60206171107994[/C][C]-0.502061711079944[/C][/ROW]
[ROW][C]45[/C][C]6.8[/C][C]7.18545582047686[/C][C]-0.385455820476858[/C][/ROW]
[ROW][C]46[/C][C]6.5[/C][C]6.82715287517532[/C][C]-0.327152875175315[/C][/ROW]
[ROW][C]47[/C][C]6.9[/C][C]7.33654628330996[/C][C]-0.436546283309958[/C][/ROW]
[ROW][C]48[/C][C]8.2[/C][C]8.86127279102384[/C][C]-0.661272791023844[/C][/ROW]
[ROW][C]49[/C][C]8.7[/C][C]9.73787868162693[/C][C]-1.03787868162693[/C][/ROW]
[ROW][C]50[/C][C]8.3[/C][C]9.14509116409537[/C][C]-0.845091164095371[/C][/ROW]
[ROW][C]51[/C][C]7.9[/C][C]8.1178190743338[/C][C]-0.217819074333801[/C][/ROW]
[ROW][C]52[/C][C]7.5[/C][C]7.54206171107994[/C][C]-0.0420617110799438[/C][/ROW]
[ROW][C]53[/C][C]7.8[/C][C]7.81824333800841[/C][C]-0.0182433380084153[/C][/ROW]
[ROW][C]54[/C][C]8.3[/C][C]8.54636395511922[/C][C]-0.246363955119214[/C][/ROW]
[ROW][C]55[/C][C]8.4[/C][C]8.99618162692847[/C][C]-0.596181626928471[/C][/ROW]
[ROW][C]56[/C][C]8.2[/C][C]9.07024193548387[/C][C]-0.870241935483872[/C][/ROW]
[ROW][C]57[/C][C]7.7[/C][C]8.75151472650771[/C][C]-1.05151472650771[/C][/ROW]
[ROW][C]58[/C][C]7.2[/C][C]8.39321178120617[/C][C]-1.19321178120617[/C][/ROW]
[ROW][C]59[/C][C]7.3[/C][C]8.70684782608696[/C][C]-1.40684782608696[/C][/ROW]
[ROW][C]60[/C][C]8.1[/C][C]9.64430224403927[/C][C]-1.54430224403927[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57409&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57409&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
111.110.42302945301540.676970546984578
210.910.31963534361850.580364656381486
3109.683877980364660.316122019635345
49.29.20599929873773-0.00599929873772784
59.29.188544880785410.0114551192145857
69.59.231514726507710.268485273492286
79.69.09406030855540.5059396914446
89.58.972363253856940.527636746143058
99.18.555757363253860.544242636746143
108.98.49109046283310.4089095371669
1198.315333099579240.684666900420758
1210.19.154908835904630.94509116409537
1310.39.933636044880790.366363955119214
1410.29.830241935483870.369758064516129
159.69.68387798036466-0.0838779803646572
169.29.40175666199159-0.201756661991586
179.39.4821809256662-0.182180925666199
189.49.5251507713885-0.125150771388499
199.49.48557503506311-0.0855750350631127
209.29.36387798036466-0.163877980364656
2199.24090813464236-0.240908134642356
2298.882605189340810.117394810659186
2398.51109046283310.4889095371669
249.88.567636746143061.23236325385694
25109.052727910238430.94727208976157
269.88.949333800841520.850666199158486
279.38.900848527349230.399151472650771
2898.716605890603090.283394109396914
2998.699151472650770.300848527349229
309.18.644242636746140.455757363253856
319.18.40890953716690.691090462833099
329.18.091455119214591.00854488078541
339.28.066363955119211.13363604488078
348.87.80593969144460.9940603085554
358.37.630182328190740.669817671809257
368.48.37187938288920.0281206171107995
378.19.05272791023843-0.95272791023843
387.78.65569775596073-0.955697755960729
397.98.31357643758766-0.413576437587657
407.97.93357643758766-0.0335764375876577
4188.1118793828892-0.111879382889200
427.98.25272791023843-0.352727910238429
437.68.11527349228611-0.515273492286115
447.17.60206171107994-0.502061711079944
456.87.18545582047686-0.385455820476858
466.56.82715287517532-0.327152875175315
476.97.33654628330996-0.436546283309958
488.28.86127279102384-0.661272791023844
498.79.73787868162693-1.03787868162693
508.39.14509116409537-0.845091164095371
517.98.1178190743338-0.217819074333801
527.57.54206171107994-0.0420617110799438
537.87.81824333800841-0.0182433380084153
548.38.54636395511922-0.246363955119214
558.48.99618162692847-0.596181626928471
568.29.07024193548387-0.870241935483872
577.78.75151472650771-1.05151472650771
587.28.39321178120617-1.19321178120617
597.38.70684782608696-1.40684782608696
608.19.64430224403927-1.54430224403927







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.02231807330842640.04463614661685280.977681926691574
170.007975155774410080.01595031154882020.99202484422559
180.004951862456761040.009903724913522080.995048137543239
190.004310933969645330.008621867939290650.995689066030355
200.003220398373624350.006440796747248710.996779601626376
210.001488596206892480.002977192413784960.998511403793108
220.000473656507944820.000947313015889640.999526343492055
230.0001684730806064980.0003369461612129970.999831526919393
249.48392211469318e-050.0001896784422938640.999905160778853
257.60179189020013e-050.0001520358378040030.999923982081098
266.69114849297619e-050.0001338229698595240.99993308851507
272.87649992461353e-055.75299984922706e-050.999971235000754
281.12762543146486e-052.25525086292971e-050.999988723745685
294.17865511147363e-068.35731022294727e-060.999995821344889
301.67117340492875e-063.3423468098575e-060.999998328826595
319.68147344373713e-071.93629468874743e-060.999999031852656
322.41655043075104e-064.83310086150207e-060.99999758344957
330.000105973577598220.000211947155196440.999894026422402
340.00715576712408560.01431153424817120.992844232875914
350.2838111529100540.5676223058201070.716188847089946
360.9378330411876470.1243339176247050.0621669588123527
370.9946582599077060.01068348018458720.00534174009229360
380.9983123427439360.003375314512128860.00168765725606443
390.9961536221036380.007692755792723770.00384637789636188
400.9909155488177430.01816890236451310.00908445118225655
410.9762772100428180.04744557991436320.0237227899571816
420.9552750649846450.08944987003071020.0447249350153551
430.936794290050190.1264114198996200.0632057099498102
440.9300106963470680.1399786073058640.0699893036529321

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0223180733084264 & 0.0446361466168528 & 0.977681926691574 \tabularnewline
17 & 0.00797515577441008 & 0.0159503115488202 & 0.99202484422559 \tabularnewline
18 & 0.00495186245676104 & 0.00990372491352208 & 0.995048137543239 \tabularnewline
19 & 0.00431093396964533 & 0.00862186793929065 & 0.995689066030355 \tabularnewline
20 & 0.00322039837362435 & 0.00644079674724871 & 0.996779601626376 \tabularnewline
21 & 0.00148859620689248 & 0.00297719241378496 & 0.998511403793108 \tabularnewline
22 & 0.00047365650794482 & 0.00094731301588964 & 0.999526343492055 \tabularnewline
23 & 0.000168473080606498 & 0.000336946161212997 & 0.999831526919393 \tabularnewline
24 & 9.48392211469318e-05 & 0.000189678442293864 & 0.999905160778853 \tabularnewline
25 & 7.60179189020013e-05 & 0.000152035837804003 & 0.999923982081098 \tabularnewline
26 & 6.69114849297619e-05 & 0.000133822969859524 & 0.99993308851507 \tabularnewline
27 & 2.87649992461353e-05 & 5.75299984922706e-05 & 0.999971235000754 \tabularnewline
28 & 1.12762543146486e-05 & 2.25525086292971e-05 & 0.999988723745685 \tabularnewline
29 & 4.17865511147363e-06 & 8.35731022294727e-06 & 0.999995821344889 \tabularnewline
30 & 1.67117340492875e-06 & 3.3423468098575e-06 & 0.999998328826595 \tabularnewline
31 & 9.68147344373713e-07 & 1.93629468874743e-06 & 0.999999031852656 \tabularnewline
32 & 2.41655043075104e-06 & 4.83310086150207e-06 & 0.99999758344957 \tabularnewline
33 & 0.00010597357759822 & 0.00021194715519644 & 0.999894026422402 \tabularnewline
34 & 0.0071557671240856 & 0.0143115342481712 & 0.992844232875914 \tabularnewline
35 & 0.283811152910054 & 0.567622305820107 & 0.716188847089946 \tabularnewline
36 & 0.937833041187647 & 0.124333917624705 & 0.0621669588123527 \tabularnewline
37 & 0.994658259907706 & 0.0106834801845872 & 0.00534174009229360 \tabularnewline
38 & 0.998312342743936 & 0.00337531451212886 & 0.00168765725606443 \tabularnewline
39 & 0.996153622103638 & 0.00769275579272377 & 0.00384637789636188 \tabularnewline
40 & 0.990915548817743 & 0.0181689023645131 & 0.00908445118225655 \tabularnewline
41 & 0.976277210042818 & 0.0474455799143632 & 0.0237227899571816 \tabularnewline
42 & 0.955275064984645 & 0.0894498700307102 & 0.0447249350153551 \tabularnewline
43 & 0.93679429005019 & 0.126411419899620 & 0.0632057099498102 \tabularnewline
44 & 0.930010696347068 & 0.139978607305864 & 0.0699893036529321 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57409&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.0223180733084264[/C][C]0.0446361466168528[/C][C]0.977681926691574[/C][/ROW]
[ROW][C]17[/C][C]0.00797515577441008[/C][C]0.0159503115488202[/C][C]0.99202484422559[/C][/ROW]
[ROW][C]18[/C][C]0.00495186245676104[/C][C]0.00990372491352208[/C][C]0.995048137543239[/C][/ROW]
[ROW][C]19[/C][C]0.00431093396964533[/C][C]0.00862186793929065[/C][C]0.995689066030355[/C][/ROW]
[ROW][C]20[/C][C]0.00322039837362435[/C][C]0.00644079674724871[/C][C]0.996779601626376[/C][/ROW]
[ROW][C]21[/C][C]0.00148859620689248[/C][C]0.00297719241378496[/C][C]0.998511403793108[/C][/ROW]
[ROW][C]22[/C][C]0.00047365650794482[/C][C]0.00094731301588964[/C][C]0.999526343492055[/C][/ROW]
[ROW][C]23[/C][C]0.000168473080606498[/C][C]0.000336946161212997[/C][C]0.999831526919393[/C][/ROW]
[ROW][C]24[/C][C]9.48392211469318e-05[/C][C]0.000189678442293864[/C][C]0.999905160778853[/C][/ROW]
[ROW][C]25[/C][C]7.60179189020013e-05[/C][C]0.000152035837804003[/C][C]0.999923982081098[/C][/ROW]
[ROW][C]26[/C][C]6.69114849297619e-05[/C][C]0.000133822969859524[/C][C]0.99993308851507[/C][/ROW]
[ROW][C]27[/C][C]2.87649992461353e-05[/C][C]5.75299984922706e-05[/C][C]0.999971235000754[/C][/ROW]
[ROW][C]28[/C][C]1.12762543146486e-05[/C][C]2.25525086292971e-05[/C][C]0.999988723745685[/C][/ROW]
[ROW][C]29[/C][C]4.17865511147363e-06[/C][C]8.35731022294727e-06[/C][C]0.999995821344889[/C][/ROW]
[ROW][C]30[/C][C]1.67117340492875e-06[/C][C]3.3423468098575e-06[/C][C]0.999998328826595[/C][/ROW]
[ROW][C]31[/C][C]9.68147344373713e-07[/C][C]1.93629468874743e-06[/C][C]0.999999031852656[/C][/ROW]
[ROW][C]32[/C][C]2.41655043075104e-06[/C][C]4.83310086150207e-06[/C][C]0.99999758344957[/C][/ROW]
[ROW][C]33[/C][C]0.00010597357759822[/C][C]0.00021194715519644[/C][C]0.999894026422402[/C][/ROW]
[ROW][C]34[/C][C]0.0071557671240856[/C][C]0.0143115342481712[/C][C]0.992844232875914[/C][/ROW]
[ROW][C]35[/C][C]0.283811152910054[/C][C]0.567622305820107[/C][C]0.716188847089946[/C][/ROW]
[ROW][C]36[/C][C]0.937833041187647[/C][C]0.124333917624705[/C][C]0.0621669588123527[/C][/ROW]
[ROW][C]37[/C][C]0.994658259907706[/C][C]0.0106834801845872[/C][C]0.00534174009229360[/C][/ROW]
[ROW][C]38[/C][C]0.998312342743936[/C][C]0.00337531451212886[/C][C]0.00168765725606443[/C][/ROW]
[ROW][C]39[/C][C]0.996153622103638[/C][C]0.00769275579272377[/C][C]0.00384637789636188[/C][/ROW]
[ROW][C]40[/C][C]0.990915548817743[/C][C]0.0181689023645131[/C][C]0.00908445118225655[/C][/ROW]
[ROW][C]41[/C][C]0.976277210042818[/C][C]0.0474455799143632[/C][C]0.0237227899571816[/C][/ROW]
[ROW][C]42[/C][C]0.955275064984645[/C][C]0.0894498700307102[/C][C]0.0447249350153551[/C][/ROW]
[ROW][C]43[/C][C]0.93679429005019[/C][C]0.126411419899620[/C][C]0.0632057099498102[/C][/ROW]
[ROW][C]44[/C][C]0.930010696347068[/C][C]0.139978607305864[/C][C]0.0699893036529321[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57409&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57409&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.02231807330842640.04463614661685280.977681926691574
170.007975155774410080.01595031154882020.99202484422559
180.004951862456761040.009903724913522080.995048137543239
190.004310933969645330.008621867939290650.995689066030355
200.003220398373624350.006440796747248710.996779601626376
210.001488596206892480.002977192413784960.998511403793108
220.000473656507944820.000947313015889640.999526343492055
230.0001684730806064980.0003369461612129970.999831526919393
249.48392211469318e-050.0001896784422938640.999905160778853
257.60179189020013e-050.0001520358378040030.999923982081098
266.69114849297619e-050.0001338229698595240.99993308851507
272.87649992461353e-055.75299984922706e-050.999971235000754
281.12762543146486e-052.25525086292971e-050.999988723745685
294.17865511147363e-068.35731022294727e-060.999995821344889
301.67117340492875e-063.3423468098575e-060.999998328826595
319.68147344373713e-071.93629468874743e-060.999999031852656
322.41655043075104e-064.83310086150207e-060.99999758344957
330.000105973577598220.000211947155196440.999894026422402
340.00715576712408560.01431153424817120.992844232875914
350.2838111529100540.5676223058201070.716188847089946
360.9378330411876470.1243339176247050.0621669588123527
370.9946582599077060.01068348018458720.00534174009229360
380.9983123427439360.003375314512128860.00168765725606443
390.9961536221036380.007692755792723770.00384637789636188
400.9909155488177430.01816890236451310.00908445118225655
410.9762772100428180.04744557991436320.0237227899571816
420.9552750649846450.08944987003071020.0447249350153551
430.936794290050190.1264114198996200.0632057099498102
440.9300106963470680.1399786073058640.0699893036529321







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level180.620689655172414NOK
5% type I error level240.827586206896552NOK
10% type I error level250.862068965517241NOK

\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 & 18 & 0.620689655172414 & NOK \tabularnewline
5% type I error level & 24 & 0.827586206896552 & NOK \tabularnewline
10% type I error level & 25 & 0.862068965517241 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57409&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]18[/C][C]0.620689655172414[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]24[/C][C]0.827586206896552[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]25[/C][C]0.862068965517241[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57409&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57409&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 level180.620689655172414NOK
5% type I error level240.827586206896552NOK
10% type I error level250.862068965517241NOK



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