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 computationMon, 24 Nov 2008 07:26:32 -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/2008/Nov/24/t12275370213igt1jkb6p788zs.htm/, Retrieved Tue, 14 May 2024 12:10:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25439, Retrieved Tue, 14 May 2024 12:10:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsMultiple regression
Estimated Impact181
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Multiple Regressi...] [2008-11-21 15:51:01] [c96f3dce3a823a83b6ede18389e1cfd4]
-    D    [Multiple Regression] [Multiple regressi...] [2008-11-24 14:26:32] [3bdbbe597ac6c61989658933956ee6ac] [Current]
F   PD      [Multiple Regression] [Seatbelt law Q3 w...] [2008-11-25 15:34:51] [c96f3dce3a823a83b6ede18389e1cfd4]
-    D      [Multiple Regression] [Q3 Seatbelt law- ...] [2008-11-25 15:56:16] [c96f3dce3a823a83b6ede18389e1cfd4]
Feedback Forum

Post a new message
Dataseries X:
9,5	0
9,1	0
9	0
9,3	0
9,9	0
9,8	0
9,4	0
8,3	0
8	0
8,5	0
10,4	0
11,1	0
10,9	0
9,9	0
9,2	0
9,2	0
9,5	1
9,6	1
9,5	1
9,1	1
8,9	1
9	1
10,1	1
10,3	1
10,2	1
9,6	1
9,2	1
9,3	1
9,4	1
9,4	1
9,2	1
9	1
9	1
9	1
9,8	1
10	1
9,9	1
9,3	1
9	1
9	1
9,1	1
9,1	1
9,1	1
9,2	1
8,8	1
8,3	1
8,4	1
8,1	1
7,8	1
7,9	1
7,9	1
8	1
7,9	1
7,5	1
7,2	1
6,9	1
6,6	1
6,7	1
7,3	1
7,5	1
7,2	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25439&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]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25439&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25439&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'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
y[t] = + 10.6824503311258 + 1.14917218543046x[t] -0.302580941869024M1[t] -0.621773362766744M2[t] -0.860612582781459M3[t] -0.699451802796175M4[t] -0.668125459896984M5[t] -0.6869646799117M6[t] -0.825803899926419M7[t] -1.14464311994113M8[t] -1.32348233995585M9[t] -1.22232155997057M10[t] -0.261160779985284M11[t] -0.0611607799852832t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  10.6824503311258 +  1.14917218543046x[t] -0.302580941869024M1[t] -0.621773362766744M2[t] -0.860612582781459M3[t] -0.699451802796175M4[t] -0.668125459896984M5[t] -0.6869646799117M6[t] -0.825803899926419M7[t] -1.14464311994113M8[t] -1.32348233995585M9[t] -1.22232155997057M10[t] -0.261160779985284M11[t] -0.0611607799852832t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25439&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  10.6824503311258 +  1.14917218543046x[t] -0.302580941869024M1[t] -0.621773362766744M2[t] -0.860612582781459M3[t] -0.699451802796175M4[t] -0.668125459896984M5[t] -0.6869646799117M6[t] -0.825803899926419M7[t] -1.14464311994113M8[t] -1.32348233995585M9[t] -1.22232155997057M10[t] -0.261160779985284M11[t] -0.0611607799852832t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25439&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25439&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] = + 10.6824503311258 + 1.14917218543046x[t] -0.302580941869024M1[t] -0.621773362766744M2[t] -0.860612582781459M3[t] -0.699451802796175M4[t] -0.668125459896984M5[t] -0.6869646799117M6[t] -0.825803899926419M7[t] -1.14464311994113M8[t] -1.32348233995585M9[t] -1.22232155997057M10[t] -0.261160779985284M11[t] -0.0611607799852832t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)10.68245033112580.31769633.624800
x1.149172185430460.2791014.11740.0001547.7e-05
M1-0.3025809418690240.368681-0.82070.4159530.207977
M2-0.6217733627667440.386816-1.60740.1146610.057331
M3-0.8606125827814590.386398-2.22730.0307560.015378
M4-0.6994518027961750.386104-1.81160.0764460.038223
M5-0.6681254598969840.387252-1.72530.0910440.045522
M6-0.68696467991170.386444-1.77770.0819310.040965
M7-0.8258038999264190.385759-2.14070.0375140.018757
M8-1.144643119941130.385198-2.97160.0046580.002329
M9-1.323482339955850.38476-3.43980.0012310.000615
M10-1.222321559970570.384448-3.17940.0026120.001306
M11-0.2611607799852840.38426-0.67960.5000630.250031
t-0.06116077998528320.006934-8.8200

\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) & 10.6824503311258 & 0.317696 & 33.6248 & 0 & 0 \tabularnewline
x & 1.14917218543046 & 0.279101 & 4.1174 & 0.000154 & 7.7e-05 \tabularnewline
M1 & -0.302580941869024 & 0.368681 & -0.8207 & 0.415953 & 0.207977 \tabularnewline
M2 & -0.621773362766744 & 0.386816 & -1.6074 & 0.114661 & 0.057331 \tabularnewline
M3 & -0.860612582781459 & 0.386398 & -2.2273 & 0.030756 & 0.015378 \tabularnewline
M4 & -0.699451802796175 & 0.386104 & -1.8116 & 0.076446 & 0.038223 \tabularnewline
M5 & -0.668125459896984 & 0.387252 & -1.7253 & 0.091044 & 0.045522 \tabularnewline
M6 & -0.6869646799117 & 0.386444 & -1.7777 & 0.081931 & 0.040965 \tabularnewline
M7 & -0.825803899926419 & 0.385759 & -2.1407 & 0.037514 & 0.018757 \tabularnewline
M8 & -1.14464311994113 & 0.385198 & -2.9716 & 0.004658 & 0.002329 \tabularnewline
M9 & -1.32348233995585 & 0.38476 & -3.4398 & 0.001231 & 0.000615 \tabularnewline
M10 & -1.22232155997057 & 0.384448 & -3.1794 & 0.002612 & 0.001306 \tabularnewline
M11 & -0.261160779985284 & 0.38426 & -0.6796 & 0.500063 & 0.250031 \tabularnewline
t & -0.0611607799852832 & 0.006934 & -8.82 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25439&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]10.6824503311258[/C][C]0.317696[/C][C]33.6248[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]1.14917218543046[/C][C]0.279101[/C][C]4.1174[/C][C]0.000154[/C][C]7.7e-05[/C][/ROW]
[ROW][C]M1[/C][C]-0.302580941869024[/C][C]0.368681[/C][C]-0.8207[/C][C]0.415953[/C][C]0.207977[/C][/ROW]
[ROW][C]M2[/C][C]-0.621773362766744[/C][C]0.386816[/C][C]-1.6074[/C][C]0.114661[/C][C]0.057331[/C][/ROW]
[ROW][C]M3[/C][C]-0.860612582781459[/C][C]0.386398[/C][C]-2.2273[/C][C]0.030756[/C][C]0.015378[/C][/ROW]
[ROW][C]M4[/C][C]-0.699451802796175[/C][C]0.386104[/C][C]-1.8116[/C][C]0.076446[/C][C]0.038223[/C][/ROW]
[ROW][C]M5[/C][C]-0.668125459896984[/C][C]0.387252[/C][C]-1.7253[/C][C]0.091044[/C][C]0.045522[/C][/ROW]
[ROW][C]M6[/C][C]-0.6869646799117[/C][C]0.386444[/C][C]-1.7777[/C][C]0.081931[/C][C]0.040965[/C][/ROW]
[ROW][C]M7[/C][C]-0.825803899926419[/C][C]0.385759[/C][C]-2.1407[/C][C]0.037514[/C][C]0.018757[/C][/ROW]
[ROW][C]M8[/C][C]-1.14464311994113[/C][C]0.385198[/C][C]-2.9716[/C][C]0.004658[/C][C]0.002329[/C][/ROW]
[ROW][C]M9[/C][C]-1.32348233995585[/C][C]0.38476[/C][C]-3.4398[/C][C]0.001231[/C][C]0.000615[/C][/ROW]
[ROW][C]M10[/C][C]-1.22232155997057[/C][C]0.384448[/C][C]-3.1794[/C][C]0.002612[/C][C]0.001306[/C][/ROW]
[ROW][C]M11[/C][C]-0.261160779985284[/C][C]0.38426[/C][C]-0.6796[/C][C]0.500063[/C][C]0.250031[/C][/ROW]
[ROW][C]t[/C][C]-0.0611607799852832[/C][C]0.006934[/C][C]-8.82[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25439&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25439&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)10.68245033112580.31769633.624800
x1.149172185430460.2791014.11740.0001547.7e-05
M1-0.3025809418690240.368681-0.82070.4159530.207977
M2-0.6217733627667440.386816-1.60740.1146610.057331
M3-0.8606125827814590.386398-2.22730.0307560.015378
M4-0.6994518027961750.386104-1.81160.0764460.038223
M5-0.6681254598969840.387252-1.72530.0910440.045522
M6-0.68696467991170.386444-1.77770.0819310.040965
M7-0.8258038999264190.385759-2.14070.0375140.018757
M8-1.144643119941130.385198-2.97160.0046580.002329
M9-1.323482339955850.38476-3.43980.0012310.000615
M10-1.222321559970570.384448-3.17940.0026120.001306
M11-0.2611607799852840.38426-0.67960.5000630.250031
t-0.06116077998528320.006934-8.8200







Multiple Linear Regression - Regression Statistics
Multiple R0.843134768534354
R-squared0.710876237911478
Adjusted R-squared0.630905835631674
F-TEST (value)8.88924174001568
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value8.87170503727219e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.607469784246304
Sum Squared Residuals17.3439183222958

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.843134768534354 \tabularnewline
R-squared & 0.710876237911478 \tabularnewline
Adjusted R-squared & 0.630905835631674 \tabularnewline
F-TEST (value) & 8.88924174001568 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 8.87170503727219e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.607469784246304 \tabularnewline
Sum Squared Residuals & 17.3439183222958 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25439&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.843134768534354[/C][/ROW]
[ROW][C]R-squared[/C][C]0.710876237911478[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.630905835631674[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]8.88924174001568[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]8.87170503727219e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.607469784246304[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]17.3439183222958[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25439&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25439&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.843134768534354
R-squared0.710876237911478
Adjusted R-squared0.630905835631674
F-TEST (value)8.88924174001568
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value8.87170503727219e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.607469784246304
Sum Squared Residuals17.3439183222958







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
19.510.3187086092715-0.818708609271526
29.19.93835540838852-0.838355408388524
399.63835540838852-0.63835540838852
49.39.73835540838852-0.438355408388518
59.99.708520971302430.191479028697571
69.89.628520971302430.171479028697572
79.49.42852097130243-0.0285209713024277
88.39.04852097130243-0.748520971302428
988.80852097130243-0.808520971302427
108.58.84852097130243-0.348520971302430
1110.49.748520971302430.651479028697572
1211.19.948520971302431.15147902869757
1310.99.584779249448121.31522075055188
149.99.204426048565120.69557395143488
159.28.904426048565120.295573951434877
169.29.004426048565120.195573951434877
179.510.1237637969095-0.623763796909491
189.610.0437637969095-0.443763796909492
199.59.84376379690949-0.343763796909491
209.19.46376379690949-0.363763796909492
218.99.2237637969095-0.323763796909492
2299.26376379690949-0.263763796909491
2310.110.1637637969095-0.0637637969094924
2410.310.3637637969095-0.0637637969094917
2510.210.00002207505520.199977924944813
269.69.61966887417218-0.0196688741721843
279.29.31966887417218-0.119668874172185
289.39.41966887417219-0.119668874172184
299.49.38983443708610.0101655629139079
309.49.30983443708610.0901655629139079
319.29.109834437086090.0901655629139074
3298.72983443708610.270165562913908
3398.48983443708610.510165562913907
3498.52983443708610.470165562913908
359.89.42983443708610.370165562913908
36109.62983443708610.370165562913907
379.99.266092715231790.633907284768214
389.38.885739514348780.414260485651216
3998.585739514348790.414260485651215
4098.685739514348790.314260485651214
419.18.65590507726270.444094922737306
429.18.575905077262690.524094922737306
439.18.37590507726270.724094922737307
449.27.99590507726271.20409492273731
458.87.75590507726271.04409492273731
468.37.79590507726270.504094922737307
478.48.6959050772627-0.295905077262693
488.18.8959050772627-0.795905077262695
497.88.53216335540839-0.732163355408388
507.98.15181015452539-0.251810154525386
517.97.851810154525390.048189845474614
5287.951810154525390.0481898454746131
537.97.9219757174393-0.0219757174392934
547.57.8419757174393-0.341975717439294
557.27.6419757174393-0.441975717439294
566.97.2619757174393-0.361975717439294
576.67.0219757174393-0.421975717439295
586.77.0619757174393-0.361975717439294
597.37.9619757174393-0.661975717439295
607.58.1619757174393-0.661975717439296
617.27.79823399558499-0.598233995584989

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 9.5 & 10.3187086092715 & -0.818708609271526 \tabularnewline
2 & 9.1 & 9.93835540838852 & -0.838355408388524 \tabularnewline
3 & 9 & 9.63835540838852 & -0.63835540838852 \tabularnewline
4 & 9.3 & 9.73835540838852 & -0.438355408388518 \tabularnewline
5 & 9.9 & 9.70852097130243 & 0.191479028697571 \tabularnewline
6 & 9.8 & 9.62852097130243 & 0.171479028697572 \tabularnewline
7 & 9.4 & 9.42852097130243 & -0.0285209713024277 \tabularnewline
8 & 8.3 & 9.04852097130243 & -0.748520971302428 \tabularnewline
9 & 8 & 8.80852097130243 & -0.808520971302427 \tabularnewline
10 & 8.5 & 8.84852097130243 & -0.348520971302430 \tabularnewline
11 & 10.4 & 9.74852097130243 & 0.651479028697572 \tabularnewline
12 & 11.1 & 9.94852097130243 & 1.15147902869757 \tabularnewline
13 & 10.9 & 9.58477924944812 & 1.31522075055188 \tabularnewline
14 & 9.9 & 9.20442604856512 & 0.69557395143488 \tabularnewline
15 & 9.2 & 8.90442604856512 & 0.295573951434877 \tabularnewline
16 & 9.2 & 9.00442604856512 & 0.195573951434877 \tabularnewline
17 & 9.5 & 10.1237637969095 & -0.623763796909491 \tabularnewline
18 & 9.6 & 10.0437637969095 & -0.443763796909492 \tabularnewline
19 & 9.5 & 9.84376379690949 & -0.343763796909491 \tabularnewline
20 & 9.1 & 9.46376379690949 & -0.363763796909492 \tabularnewline
21 & 8.9 & 9.2237637969095 & -0.323763796909492 \tabularnewline
22 & 9 & 9.26376379690949 & -0.263763796909491 \tabularnewline
23 & 10.1 & 10.1637637969095 & -0.0637637969094924 \tabularnewline
24 & 10.3 & 10.3637637969095 & -0.0637637969094917 \tabularnewline
25 & 10.2 & 10.0000220750552 & 0.199977924944813 \tabularnewline
26 & 9.6 & 9.61966887417218 & -0.0196688741721843 \tabularnewline
27 & 9.2 & 9.31966887417218 & -0.119668874172185 \tabularnewline
28 & 9.3 & 9.41966887417219 & -0.119668874172184 \tabularnewline
29 & 9.4 & 9.3898344370861 & 0.0101655629139079 \tabularnewline
30 & 9.4 & 9.3098344370861 & 0.0901655629139079 \tabularnewline
31 & 9.2 & 9.10983443708609 & 0.0901655629139074 \tabularnewline
32 & 9 & 8.7298344370861 & 0.270165562913908 \tabularnewline
33 & 9 & 8.4898344370861 & 0.510165562913907 \tabularnewline
34 & 9 & 8.5298344370861 & 0.470165562913908 \tabularnewline
35 & 9.8 & 9.4298344370861 & 0.370165562913908 \tabularnewline
36 & 10 & 9.6298344370861 & 0.370165562913907 \tabularnewline
37 & 9.9 & 9.26609271523179 & 0.633907284768214 \tabularnewline
38 & 9.3 & 8.88573951434878 & 0.414260485651216 \tabularnewline
39 & 9 & 8.58573951434879 & 0.414260485651215 \tabularnewline
40 & 9 & 8.68573951434879 & 0.314260485651214 \tabularnewline
41 & 9.1 & 8.6559050772627 & 0.444094922737306 \tabularnewline
42 & 9.1 & 8.57590507726269 & 0.524094922737306 \tabularnewline
43 & 9.1 & 8.3759050772627 & 0.724094922737307 \tabularnewline
44 & 9.2 & 7.9959050772627 & 1.20409492273731 \tabularnewline
45 & 8.8 & 7.7559050772627 & 1.04409492273731 \tabularnewline
46 & 8.3 & 7.7959050772627 & 0.504094922737307 \tabularnewline
47 & 8.4 & 8.6959050772627 & -0.295905077262693 \tabularnewline
48 & 8.1 & 8.8959050772627 & -0.795905077262695 \tabularnewline
49 & 7.8 & 8.53216335540839 & -0.732163355408388 \tabularnewline
50 & 7.9 & 8.15181015452539 & -0.251810154525386 \tabularnewline
51 & 7.9 & 7.85181015452539 & 0.048189845474614 \tabularnewline
52 & 8 & 7.95181015452539 & 0.0481898454746131 \tabularnewline
53 & 7.9 & 7.9219757174393 & -0.0219757174392934 \tabularnewline
54 & 7.5 & 7.8419757174393 & -0.341975717439294 \tabularnewline
55 & 7.2 & 7.6419757174393 & -0.441975717439294 \tabularnewline
56 & 6.9 & 7.2619757174393 & -0.361975717439294 \tabularnewline
57 & 6.6 & 7.0219757174393 & -0.421975717439295 \tabularnewline
58 & 6.7 & 7.0619757174393 & -0.361975717439294 \tabularnewline
59 & 7.3 & 7.9619757174393 & -0.661975717439295 \tabularnewline
60 & 7.5 & 8.1619757174393 & -0.661975717439296 \tabularnewline
61 & 7.2 & 7.79823399558499 & -0.598233995584989 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25439&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]9.5[/C][C]10.3187086092715[/C][C]-0.818708609271526[/C][/ROW]
[ROW][C]2[/C][C]9.1[/C][C]9.93835540838852[/C][C]-0.838355408388524[/C][/ROW]
[ROW][C]3[/C][C]9[/C][C]9.63835540838852[/C][C]-0.63835540838852[/C][/ROW]
[ROW][C]4[/C][C]9.3[/C][C]9.73835540838852[/C][C]-0.438355408388518[/C][/ROW]
[ROW][C]5[/C][C]9.9[/C][C]9.70852097130243[/C][C]0.191479028697571[/C][/ROW]
[ROW][C]6[/C][C]9.8[/C][C]9.62852097130243[/C][C]0.171479028697572[/C][/ROW]
[ROW][C]7[/C][C]9.4[/C][C]9.42852097130243[/C][C]-0.0285209713024277[/C][/ROW]
[ROW][C]8[/C][C]8.3[/C][C]9.04852097130243[/C][C]-0.748520971302428[/C][/ROW]
[ROW][C]9[/C][C]8[/C][C]8.80852097130243[/C][C]-0.808520971302427[/C][/ROW]
[ROW][C]10[/C][C]8.5[/C][C]8.84852097130243[/C][C]-0.348520971302430[/C][/ROW]
[ROW][C]11[/C][C]10.4[/C][C]9.74852097130243[/C][C]0.651479028697572[/C][/ROW]
[ROW][C]12[/C][C]11.1[/C][C]9.94852097130243[/C][C]1.15147902869757[/C][/ROW]
[ROW][C]13[/C][C]10.9[/C][C]9.58477924944812[/C][C]1.31522075055188[/C][/ROW]
[ROW][C]14[/C][C]9.9[/C][C]9.20442604856512[/C][C]0.69557395143488[/C][/ROW]
[ROW][C]15[/C][C]9.2[/C][C]8.90442604856512[/C][C]0.295573951434877[/C][/ROW]
[ROW][C]16[/C][C]9.2[/C][C]9.00442604856512[/C][C]0.195573951434877[/C][/ROW]
[ROW][C]17[/C][C]9.5[/C][C]10.1237637969095[/C][C]-0.623763796909491[/C][/ROW]
[ROW][C]18[/C][C]9.6[/C][C]10.0437637969095[/C][C]-0.443763796909492[/C][/ROW]
[ROW][C]19[/C][C]9.5[/C][C]9.84376379690949[/C][C]-0.343763796909491[/C][/ROW]
[ROW][C]20[/C][C]9.1[/C][C]9.46376379690949[/C][C]-0.363763796909492[/C][/ROW]
[ROW][C]21[/C][C]8.9[/C][C]9.2237637969095[/C][C]-0.323763796909492[/C][/ROW]
[ROW][C]22[/C][C]9[/C][C]9.26376379690949[/C][C]-0.263763796909491[/C][/ROW]
[ROW][C]23[/C][C]10.1[/C][C]10.1637637969095[/C][C]-0.0637637969094924[/C][/ROW]
[ROW][C]24[/C][C]10.3[/C][C]10.3637637969095[/C][C]-0.0637637969094917[/C][/ROW]
[ROW][C]25[/C][C]10.2[/C][C]10.0000220750552[/C][C]0.199977924944813[/C][/ROW]
[ROW][C]26[/C][C]9.6[/C][C]9.61966887417218[/C][C]-0.0196688741721843[/C][/ROW]
[ROW][C]27[/C][C]9.2[/C][C]9.31966887417218[/C][C]-0.119668874172185[/C][/ROW]
[ROW][C]28[/C][C]9.3[/C][C]9.41966887417219[/C][C]-0.119668874172184[/C][/ROW]
[ROW][C]29[/C][C]9.4[/C][C]9.3898344370861[/C][C]0.0101655629139079[/C][/ROW]
[ROW][C]30[/C][C]9.4[/C][C]9.3098344370861[/C][C]0.0901655629139079[/C][/ROW]
[ROW][C]31[/C][C]9.2[/C][C]9.10983443708609[/C][C]0.0901655629139074[/C][/ROW]
[ROW][C]32[/C][C]9[/C][C]8.7298344370861[/C][C]0.270165562913908[/C][/ROW]
[ROW][C]33[/C][C]9[/C][C]8.4898344370861[/C][C]0.510165562913907[/C][/ROW]
[ROW][C]34[/C][C]9[/C][C]8.5298344370861[/C][C]0.470165562913908[/C][/ROW]
[ROW][C]35[/C][C]9.8[/C][C]9.4298344370861[/C][C]0.370165562913908[/C][/ROW]
[ROW][C]36[/C][C]10[/C][C]9.6298344370861[/C][C]0.370165562913907[/C][/ROW]
[ROW][C]37[/C][C]9.9[/C][C]9.26609271523179[/C][C]0.633907284768214[/C][/ROW]
[ROW][C]38[/C][C]9.3[/C][C]8.88573951434878[/C][C]0.414260485651216[/C][/ROW]
[ROW][C]39[/C][C]9[/C][C]8.58573951434879[/C][C]0.414260485651215[/C][/ROW]
[ROW][C]40[/C][C]9[/C][C]8.68573951434879[/C][C]0.314260485651214[/C][/ROW]
[ROW][C]41[/C][C]9.1[/C][C]8.6559050772627[/C][C]0.444094922737306[/C][/ROW]
[ROW][C]42[/C][C]9.1[/C][C]8.57590507726269[/C][C]0.524094922737306[/C][/ROW]
[ROW][C]43[/C][C]9.1[/C][C]8.3759050772627[/C][C]0.724094922737307[/C][/ROW]
[ROW][C]44[/C][C]9.2[/C][C]7.9959050772627[/C][C]1.20409492273731[/C][/ROW]
[ROW][C]45[/C][C]8.8[/C][C]7.7559050772627[/C][C]1.04409492273731[/C][/ROW]
[ROW][C]46[/C][C]8.3[/C][C]7.7959050772627[/C][C]0.504094922737307[/C][/ROW]
[ROW][C]47[/C][C]8.4[/C][C]8.6959050772627[/C][C]-0.295905077262693[/C][/ROW]
[ROW][C]48[/C][C]8.1[/C][C]8.8959050772627[/C][C]-0.795905077262695[/C][/ROW]
[ROW][C]49[/C][C]7.8[/C][C]8.53216335540839[/C][C]-0.732163355408388[/C][/ROW]
[ROW][C]50[/C][C]7.9[/C][C]8.15181015452539[/C][C]-0.251810154525386[/C][/ROW]
[ROW][C]51[/C][C]7.9[/C][C]7.85181015452539[/C][C]0.048189845474614[/C][/ROW]
[ROW][C]52[/C][C]8[/C][C]7.95181015452539[/C][C]0.0481898454746131[/C][/ROW]
[ROW][C]53[/C][C]7.9[/C][C]7.9219757174393[/C][C]-0.0219757174392934[/C][/ROW]
[ROW][C]54[/C][C]7.5[/C][C]7.8419757174393[/C][C]-0.341975717439294[/C][/ROW]
[ROW][C]55[/C][C]7.2[/C][C]7.6419757174393[/C][C]-0.441975717439294[/C][/ROW]
[ROW][C]56[/C][C]6.9[/C][C]7.2619757174393[/C][C]-0.361975717439294[/C][/ROW]
[ROW][C]57[/C][C]6.6[/C][C]7.0219757174393[/C][C]-0.421975717439295[/C][/ROW]
[ROW][C]58[/C][C]6.7[/C][C]7.0619757174393[/C][C]-0.361975717439294[/C][/ROW]
[ROW][C]59[/C][C]7.3[/C][C]7.9619757174393[/C][C]-0.661975717439295[/C][/ROW]
[ROW][C]60[/C][C]7.5[/C][C]8.1619757174393[/C][C]-0.661975717439296[/C][/ROW]
[ROW][C]61[/C][C]7.2[/C][C]7.79823399558499[/C][C]-0.598233995584989[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25439&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25439&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
19.510.3187086092715-0.818708609271526
29.19.93835540838852-0.838355408388524
399.63835540838852-0.63835540838852
49.39.73835540838852-0.438355408388518
59.99.708520971302430.191479028697571
69.89.628520971302430.171479028697572
79.49.42852097130243-0.0285209713024277
88.39.04852097130243-0.748520971302428
988.80852097130243-0.808520971302427
108.58.84852097130243-0.348520971302430
1110.49.748520971302430.651479028697572
1211.19.948520971302431.15147902869757
1310.99.584779249448121.31522075055188
149.99.204426048565120.69557395143488
159.28.904426048565120.295573951434877
169.29.004426048565120.195573951434877
179.510.1237637969095-0.623763796909491
189.610.0437637969095-0.443763796909492
199.59.84376379690949-0.343763796909491
209.19.46376379690949-0.363763796909492
218.99.2237637969095-0.323763796909492
2299.26376379690949-0.263763796909491
2310.110.1637637969095-0.0637637969094924
2410.310.3637637969095-0.0637637969094917
2510.210.00002207505520.199977924944813
269.69.61966887417218-0.0196688741721843
279.29.31966887417218-0.119668874172185
289.39.41966887417219-0.119668874172184
299.49.38983443708610.0101655629139079
309.49.30983443708610.0901655629139079
319.29.109834437086090.0901655629139074
3298.72983443708610.270165562913908
3398.48983443708610.510165562913907
3498.52983443708610.470165562913908
359.89.42983443708610.370165562913908
36109.62983443708610.370165562913907
379.99.266092715231790.633907284768214
389.38.885739514348780.414260485651216
3998.585739514348790.414260485651215
4098.685739514348790.314260485651214
419.18.65590507726270.444094922737306
429.18.575905077262690.524094922737306
439.18.37590507726270.724094922737307
449.27.99590507726271.20409492273731
458.87.75590507726271.04409492273731
468.37.79590507726270.504094922737307
478.48.6959050772627-0.295905077262693
488.18.8959050772627-0.795905077262695
497.88.53216335540839-0.732163355408388
507.98.15181015452539-0.251810154525386
517.97.851810154525390.048189845474614
5287.951810154525390.0481898454746131
537.97.9219757174393-0.0219757174392934
547.57.8419757174393-0.341975717439294
557.27.6419757174393-0.441975717439294
566.97.2619757174393-0.361975717439294
576.67.0219757174393-0.421975717439295
586.77.0619757174393-0.361975717439294
597.37.9619757174393-0.661975717439295
607.58.1619757174393-0.661975717439296
617.27.79823399558499-0.598233995584989







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.4980692561620710.9961385123241420.501930743837929
180.3474213454453230.6948426908906450.652578654554677
190.25560907955760.51121815911520.7443909204424
200.3596972831613920.7193945663227840.640302716838608
210.4384792424577440.8769584849154880.561520757542256
220.3987147222416360.7974294444832730.601285277758364
230.3616144352333140.7232288704666280.638385564766686
240.4272979003457290.8545958006914570.572702099654271
250.347444065009830.694888130019660.65255593499017
260.2821002622195800.5642005244391590.71789973778042
270.2578065907174680.5156131814349360.742193409282532
280.2462351589488680.4924703178977360.753764841051132
290.3231647258848380.6463294517696770.676835274115162
300.3497670496044330.6995340992088650.650232950395567
310.3830483835056030.7660967670112060.616951616494397
320.4693974264511380.9387948529022760.530602573548862
330.5119745858678980.9760508282642040.488025414132102
340.5020264250721970.9959471498556060.497973574927803
350.4768540109907960.9537080219815930.523145989009204
360.4731485802472880.9462971604945770.526851419752712
370.4115124614604940.8230249229209870.588487538539506
380.317202241163150.63440448232630.68279775883685
390.2397102863911920.4794205727823850.760289713608808
400.1900021532361010.3800043064722030.809997846763899
410.1399986711409200.2799973422818410.86000132885908
420.08819340941348020.1763868188269600.91180659058652
430.05756486251441750.1151297250288350.942435137485582
440.1044454372141470.2088908744282940.895554562785853

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.498069256162071 & 0.996138512324142 & 0.501930743837929 \tabularnewline
18 & 0.347421345445323 & 0.694842690890645 & 0.652578654554677 \tabularnewline
19 & 0.2556090795576 & 0.5112181591152 & 0.7443909204424 \tabularnewline
20 & 0.359697283161392 & 0.719394566322784 & 0.640302716838608 \tabularnewline
21 & 0.438479242457744 & 0.876958484915488 & 0.561520757542256 \tabularnewline
22 & 0.398714722241636 & 0.797429444483273 & 0.601285277758364 \tabularnewline
23 & 0.361614435233314 & 0.723228870466628 & 0.638385564766686 \tabularnewline
24 & 0.427297900345729 & 0.854595800691457 & 0.572702099654271 \tabularnewline
25 & 0.34744406500983 & 0.69488813001966 & 0.65255593499017 \tabularnewline
26 & 0.282100262219580 & 0.564200524439159 & 0.71789973778042 \tabularnewline
27 & 0.257806590717468 & 0.515613181434936 & 0.742193409282532 \tabularnewline
28 & 0.246235158948868 & 0.492470317897736 & 0.753764841051132 \tabularnewline
29 & 0.323164725884838 & 0.646329451769677 & 0.676835274115162 \tabularnewline
30 & 0.349767049604433 & 0.699534099208865 & 0.650232950395567 \tabularnewline
31 & 0.383048383505603 & 0.766096767011206 & 0.616951616494397 \tabularnewline
32 & 0.469397426451138 & 0.938794852902276 & 0.530602573548862 \tabularnewline
33 & 0.511974585867898 & 0.976050828264204 & 0.488025414132102 \tabularnewline
34 & 0.502026425072197 & 0.995947149855606 & 0.497973574927803 \tabularnewline
35 & 0.476854010990796 & 0.953708021981593 & 0.523145989009204 \tabularnewline
36 & 0.473148580247288 & 0.946297160494577 & 0.526851419752712 \tabularnewline
37 & 0.411512461460494 & 0.823024922920987 & 0.588487538539506 \tabularnewline
38 & 0.31720224116315 & 0.6344044823263 & 0.68279775883685 \tabularnewline
39 & 0.239710286391192 & 0.479420572782385 & 0.760289713608808 \tabularnewline
40 & 0.190002153236101 & 0.380004306472203 & 0.809997846763899 \tabularnewline
41 & 0.139998671140920 & 0.279997342281841 & 0.86000132885908 \tabularnewline
42 & 0.0881934094134802 & 0.176386818826960 & 0.91180659058652 \tabularnewline
43 & 0.0575648625144175 & 0.115129725028835 & 0.942435137485582 \tabularnewline
44 & 0.104445437214147 & 0.208890874428294 & 0.895554562785853 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25439&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.498069256162071[/C][C]0.996138512324142[/C][C]0.501930743837929[/C][/ROW]
[ROW][C]18[/C][C]0.347421345445323[/C][C]0.694842690890645[/C][C]0.652578654554677[/C][/ROW]
[ROW][C]19[/C][C]0.2556090795576[/C][C]0.5112181591152[/C][C]0.7443909204424[/C][/ROW]
[ROW][C]20[/C][C]0.359697283161392[/C][C]0.719394566322784[/C][C]0.640302716838608[/C][/ROW]
[ROW][C]21[/C][C]0.438479242457744[/C][C]0.876958484915488[/C][C]0.561520757542256[/C][/ROW]
[ROW][C]22[/C][C]0.398714722241636[/C][C]0.797429444483273[/C][C]0.601285277758364[/C][/ROW]
[ROW][C]23[/C][C]0.361614435233314[/C][C]0.723228870466628[/C][C]0.638385564766686[/C][/ROW]
[ROW][C]24[/C][C]0.427297900345729[/C][C]0.854595800691457[/C][C]0.572702099654271[/C][/ROW]
[ROW][C]25[/C][C]0.34744406500983[/C][C]0.69488813001966[/C][C]0.65255593499017[/C][/ROW]
[ROW][C]26[/C][C]0.282100262219580[/C][C]0.564200524439159[/C][C]0.71789973778042[/C][/ROW]
[ROW][C]27[/C][C]0.257806590717468[/C][C]0.515613181434936[/C][C]0.742193409282532[/C][/ROW]
[ROW][C]28[/C][C]0.246235158948868[/C][C]0.492470317897736[/C][C]0.753764841051132[/C][/ROW]
[ROW][C]29[/C][C]0.323164725884838[/C][C]0.646329451769677[/C][C]0.676835274115162[/C][/ROW]
[ROW][C]30[/C][C]0.349767049604433[/C][C]0.699534099208865[/C][C]0.650232950395567[/C][/ROW]
[ROW][C]31[/C][C]0.383048383505603[/C][C]0.766096767011206[/C][C]0.616951616494397[/C][/ROW]
[ROW][C]32[/C][C]0.469397426451138[/C][C]0.938794852902276[/C][C]0.530602573548862[/C][/ROW]
[ROW][C]33[/C][C]0.511974585867898[/C][C]0.976050828264204[/C][C]0.488025414132102[/C][/ROW]
[ROW][C]34[/C][C]0.502026425072197[/C][C]0.995947149855606[/C][C]0.497973574927803[/C][/ROW]
[ROW][C]35[/C][C]0.476854010990796[/C][C]0.953708021981593[/C][C]0.523145989009204[/C][/ROW]
[ROW][C]36[/C][C]0.473148580247288[/C][C]0.946297160494577[/C][C]0.526851419752712[/C][/ROW]
[ROW][C]37[/C][C]0.411512461460494[/C][C]0.823024922920987[/C][C]0.588487538539506[/C][/ROW]
[ROW][C]38[/C][C]0.31720224116315[/C][C]0.6344044823263[/C][C]0.68279775883685[/C][/ROW]
[ROW][C]39[/C][C]0.239710286391192[/C][C]0.479420572782385[/C][C]0.760289713608808[/C][/ROW]
[ROW][C]40[/C][C]0.190002153236101[/C][C]0.380004306472203[/C][C]0.809997846763899[/C][/ROW]
[ROW][C]41[/C][C]0.139998671140920[/C][C]0.279997342281841[/C][C]0.86000132885908[/C][/ROW]
[ROW][C]42[/C][C]0.0881934094134802[/C][C]0.176386818826960[/C][C]0.91180659058652[/C][/ROW]
[ROW][C]43[/C][C]0.0575648625144175[/C][C]0.115129725028835[/C][C]0.942435137485582[/C][/ROW]
[ROW][C]44[/C][C]0.104445437214147[/C][C]0.208890874428294[/C][C]0.895554562785853[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25439&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25439&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.4980692561620710.9961385123241420.501930743837929
180.3474213454453230.6948426908906450.652578654554677
190.25560907955760.51121815911520.7443909204424
200.3596972831613920.7193945663227840.640302716838608
210.4384792424577440.8769584849154880.561520757542256
220.3987147222416360.7974294444832730.601285277758364
230.3616144352333140.7232288704666280.638385564766686
240.4272979003457290.8545958006914570.572702099654271
250.347444065009830.694888130019660.65255593499017
260.2821002622195800.5642005244391590.71789973778042
270.2578065907174680.5156131814349360.742193409282532
280.2462351589488680.4924703178977360.753764841051132
290.3231647258848380.6463294517696770.676835274115162
300.3497670496044330.6995340992088650.650232950395567
310.3830483835056030.7660967670112060.616951616494397
320.4693974264511380.9387948529022760.530602573548862
330.5119745858678980.9760508282642040.488025414132102
340.5020264250721970.9959471498556060.497973574927803
350.4768540109907960.9537080219815930.523145989009204
360.4731485802472880.9462971604945770.526851419752712
370.4115124614604940.8230249229209870.588487538539506
380.317202241163150.63440448232630.68279775883685
390.2397102863911920.4794205727823850.760289713608808
400.1900021532361010.3800043064722030.809997846763899
410.1399986711409200.2799973422818410.86000132885908
420.08819340941348020.1763868188269600.91180659058652
430.05756486251441750.1151297250288350.942435137485582
440.1044454372141470.2088908744282940.895554562785853







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

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 0 & 0 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25439&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25439&T=6

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

As an alternative you can also use a QR Code:  

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

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



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}