Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 19 Dec 2008 03:47:40 -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/Dec/19/t1229683786vhp733g7dy1dqe7.htm/, Retrieved Wed, 15 May 2024 09:46:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=35038, Retrieved Wed, 15 May 2024 09:46:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact249
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [WS 6 Q3 G6 eigen ...] [2007-11-15 11:12:24] [22f18fc6a98517db16300404be421f9a]
- R  D  [Multiple Regression] [dummie eenvoudig ...] [2008-12-19 10:30:26] [005293453b571dbccb80b45226e44173]
-   P     [Multiple Regression] [dummie seizoenale...] [2008-12-19 10:38:56] [005293453b571dbccb80b45226e44173]
-   P         [Multiple Regression] [dummie lineaire t...] [2008-12-19 10:47:40] [b0654df83a8a0e1de3ceb7bf60f0d58f] [Current]
Feedback Forum

Post a new message
Dataseries X:
565464	0
547344	0
554788	0
562325	0
560854	0
555332	0
543599	0
536662	0
542722	0
593530	0
610763	0
612613	0
611324	0
594167	0
595454	0
590865	0
589379	0
584428	0
573100	0
567456	0
569028	0
620735	0
628884	0
628232	0
612117	0
595404	0
597141	0
593408	0
590072	0
579799	0
574205	0
572775	0
572942	0
619567	0
625809	0
619916	0
587625	0
565742	0
557274	0
560576	1
548854	1
531673	1
525919	1
511038	1
498662	1
555362	1
564591	1
541657	1
527070	1
509846	1
514258	1
516922	1
507561	1
492622	1
490243	1
469357	1
477580	1
528379	1
533590	1
517945	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time9 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 9 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35038&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]9 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35038&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35038&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 time9 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 602426.375757576 -74774.9393939395X[t] -14776.5267676769M1[t] -33316.9323232323M2[t] -32355.5378787879M3[t] -16685.3555555555M4[t] -22481.5611111111M5[t] -33375.7666666666M6[t] -41054.3722222222M7[t] -51330.9777777778M8[t] -50922.7833333333M9[t] + 84.0111111111166M10[t] + 8975.80555555557M11[t] + 321.005555555559t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  602426.375757576 -74774.9393939395X[t] -14776.5267676769M1[t] -33316.9323232323M2[t] -32355.5378787879M3[t] -16685.3555555555M4[t] -22481.5611111111M5[t] -33375.7666666666M6[t] -41054.3722222222M7[t] -51330.9777777778M8[t] -50922.7833333333M9[t] +  84.0111111111166M10[t] +  8975.80555555557M11[t] +  321.005555555559t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35038&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  602426.375757576 -74774.9393939395X[t] -14776.5267676769M1[t] -33316.9323232323M2[t] -32355.5378787879M3[t] -16685.3555555555M4[t] -22481.5611111111M5[t] -33375.7666666666M6[t] -41054.3722222222M7[t] -51330.9777777778M8[t] -50922.7833333333M9[t] +  84.0111111111166M10[t] +  8975.80555555557M11[t] +  321.005555555559t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35038&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35038&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] = + 602426.375757576 -74774.9393939395X[t] -14776.5267676769M1[t] -33316.9323232323M2[t] -32355.5378787879M3[t] -16685.3555555555M4[t] -22481.5611111111M5[t] -33375.7666666666M6[t] -41054.3722222222M7[t] -51330.9777777778M8[t] -50922.7833333333M9[t] + 84.0111111111166M10[t] + 8975.80555555557M11[t] + 321.005555555559t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)602426.37575757610466.93646957.555200
X-74774.93939393959127.602355-8.192200
M1-14776.526767676911836.347374-1.24840.21820.1091
M2-33316.932323232311812.12688-2.82060.0070520.003526
M3-32355.537878787911793.254328-2.74360.0086350.004318
M4-16685.355555555511897.047615-1.40250.1674850.083743
M5-22481.561111111111856.859297-1.89610.0642410.03212
M6-33375.766666666611821.918913-2.82320.0070030.003501
M7-41054.372222222211792.27311-3.48150.0011040.000552
M8-51330.977777777811767.961904-4.36197.2e-053.6e-05
M9-50922.783333333311749.018409-4.33427.9e-053.9e-05
M1084.011111111116611735.468620.00720.9943190.49716
M118975.8055555555711727.3312320.76540.4479580.223979
t321.005555555559252.2736021.27250.2096080.104804

\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) & 602426.375757576 & 10466.936469 & 57.5552 & 0 & 0 \tabularnewline
X & -74774.9393939395 & 9127.602355 & -8.1922 & 0 & 0 \tabularnewline
M1 & -14776.5267676769 & 11836.347374 & -1.2484 & 0.2182 & 0.1091 \tabularnewline
M2 & -33316.9323232323 & 11812.12688 & -2.8206 & 0.007052 & 0.003526 \tabularnewline
M3 & -32355.5378787879 & 11793.254328 & -2.7436 & 0.008635 & 0.004318 \tabularnewline
M4 & -16685.3555555555 & 11897.047615 & -1.4025 & 0.167485 & 0.083743 \tabularnewline
M5 & -22481.5611111111 & 11856.859297 & -1.8961 & 0.064241 & 0.03212 \tabularnewline
M6 & -33375.7666666666 & 11821.918913 & -2.8232 & 0.007003 & 0.003501 \tabularnewline
M7 & -41054.3722222222 & 11792.27311 & -3.4815 & 0.001104 & 0.000552 \tabularnewline
M8 & -51330.9777777778 & 11767.961904 & -4.3619 & 7.2e-05 & 3.6e-05 \tabularnewline
M9 & -50922.7833333333 & 11749.018409 & -4.3342 & 7.9e-05 & 3.9e-05 \tabularnewline
M10 & 84.0111111111166 & 11735.46862 & 0.0072 & 0.994319 & 0.49716 \tabularnewline
M11 & 8975.80555555557 & 11727.331232 & 0.7654 & 0.447958 & 0.223979 \tabularnewline
t & 321.005555555559 & 252.273602 & 1.2725 & 0.209608 & 0.104804 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35038&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]602426.375757576[/C][C]10466.936469[/C][C]57.5552[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-74774.9393939395[/C][C]9127.602355[/C][C]-8.1922[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-14776.5267676769[/C][C]11836.347374[/C][C]-1.2484[/C][C]0.2182[/C][C]0.1091[/C][/ROW]
[ROW][C]M2[/C][C]-33316.9323232323[/C][C]11812.12688[/C][C]-2.8206[/C][C]0.007052[/C][C]0.003526[/C][/ROW]
[ROW][C]M3[/C][C]-32355.5378787879[/C][C]11793.254328[/C][C]-2.7436[/C][C]0.008635[/C][C]0.004318[/C][/ROW]
[ROW][C]M4[/C][C]-16685.3555555555[/C][C]11897.047615[/C][C]-1.4025[/C][C]0.167485[/C][C]0.083743[/C][/ROW]
[ROW][C]M5[/C][C]-22481.5611111111[/C][C]11856.859297[/C][C]-1.8961[/C][C]0.064241[/C][C]0.03212[/C][/ROW]
[ROW][C]M6[/C][C]-33375.7666666666[/C][C]11821.918913[/C][C]-2.8232[/C][C]0.007003[/C][C]0.003501[/C][/ROW]
[ROW][C]M7[/C][C]-41054.3722222222[/C][C]11792.27311[/C][C]-3.4815[/C][C]0.001104[/C][C]0.000552[/C][/ROW]
[ROW][C]M8[/C][C]-51330.9777777778[/C][C]11767.961904[/C][C]-4.3619[/C][C]7.2e-05[/C][C]3.6e-05[/C][/ROW]
[ROW][C]M9[/C][C]-50922.7833333333[/C][C]11749.018409[/C][C]-4.3342[/C][C]7.9e-05[/C][C]3.9e-05[/C][/ROW]
[ROW][C]M10[/C][C]84.0111111111166[/C][C]11735.46862[/C][C]0.0072[/C][C]0.994319[/C][C]0.49716[/C][/ROW]
[ROW][C]M11[/C][C]8975.80555555557[/C][C]11727.331232[/C][C]0.7654[/C][C]0.447958[/C][C]0.223979[/C][/ROW]
[ROW][C]t[/C][C]321.005555555559[/C][C]252.273602[/C][C]1.2725[/C][C]0.209608[/C][C]0.104804[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35038&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35038&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)602426.37575757610466.93646957.555200
X-74774.93939393959127.602355-8.192200
M1-14776.526767676911836.347374-1.24840.21820.1091
M2-33316.932323232311812.12688-2.82060.0070520.003526
M3-32355.537878787911793.254328-2.74360.0086350.004318
M4-16685.355555555511897.047615-1.40250.1674850.083743
M5-22481.561111111111856.859297-1.89610.0642410.03212
M6-33375.766666666611821.918913-2.82320.0070030.003501
M7-41054.372222222211792.27311-3.48150.0011040.000552
M8-51330.977777777811767.961904-4.36197.2e-053.6e-05
M9-50922.783333333311749.018409-4.33427.9e-053.9e-05
M1084.011111111116611735.468620.00720.9943190.49716
M118975.8055555555711727.3312320.76540.4479580.223979
t321.005555555559252.2736021.27250.2096080.104804







Multiple Linear Regression - Regression Statistics
Multiple R0.913774933820026
R-squared0.834984629677793
Adjusted R-squared0.788349851108473
F-TEST (value)17.904762396087
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value8.59312621059871e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation18538.2480190642
Sum Squared Residuals15808665422.3516

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.913774933820026 \tabularnewline
R-squared & 0.834984629677793 \tabularnewline
Adjusted R-squared & 0.788349851108473 \tabularnewline
F-TEST (value) & 17.904762396087 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 8.59312621059871e-14 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 18538.2480190642 \tabularnewline
Sum Squared Residuals & 15808665422.3516 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35038&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.913774933820026[/C][/ROW]
[ROW][C]R-squared[/C][C]0.834984629677793[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.788349851108473[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]17.904762396087[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]8.59312621059871e-14[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]18538.2480190642[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]15808665422.3516[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35038&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35038&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.913774933820026
R-squared0.834984629677793
Adjusted R-squared0.788349851108473
F-TEST (value)17.904762396087
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value8.59312621059871e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation18538.2480190642
Sum Squared Residuals15808665422.3516







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1565464587970.854545455-22506.8545454552
2547344569751.454545454-22407.4545454545
3554788571033.854545454-16245.8545454545
4562325587025.042424242-24700.0424242424
5560854581549.842424242-20695.8424242424
6555332570976.642424242-15644.6424242424
7543599563619.042424242-20020.0424242424
8536662553663.442424242-17001.4424242424
9542722554392.642424242-11670.6424242424
10593530605720.442424242-12190.4424242424
11610763614933.242424242-4170.24242424238
12612613606278.4424242426334.55757575763
13611324591822.92121212119501.078787879
14594167573603.52121212120563.4787878788
15595454574885.92121212120568.0787878788
16590865590877.109090909-12.1090909090864
17589379585401.9090909093977.09090909092
18584428574828.7090909099599.29090909092
19573100567471.1090909095628.89090909092
20567456557515.5090909099940.49090909092
21569028558244.70909090910783.2909090909
22620735609572.50909090911162.4909090909
23628884618785.30909090910098.6909090909
24628232610130.50909090918101.4909090909
25612117595674.98787878816442.0121212123
26595404577455.58787878817948.4121212121
27597141578737.98787878818403.0121212121
28593408594729.175757576-1321.17575757579
29590072589253.975757576818.02424242421
30579799578680.7757575761118.22424242421
31574205571323.1757575762881.82424242421
32572775561367.57575757611407.4242424242
33572942562096.77575757610845.2242424242
34619567613424.5757575766142.42424242422
35625809622637.3757575763171.62424242422
36619916613982.5757575765933.42424242422
37587625599527.054545454-11902.0545454544
38565742581307.654545455-15565.6545454546
39557274582590.054545455-25316.0545454546
40560576523806.30303030336769.696969697
41548854518331.10303030330522.896969697
42531673507757.90303030323915.096969697
43525919500400.30303030325518.696969697
44511038490444.70303030320593.296969697
45498662491173.9030303037488.09696969698
46555362542501.70303030312860.296969697
47564591551714.50303030312876.4969696970
48541657543059.703030303-1402.70303030301
49527070528604.181818182-1534.18181818165
50509846510384.781818182-538.781818181834
51514258511667.1818181822590.81818181816
52516922527658.36969697-10736.3696969697
53507561522183.16969697-14622.1696969697
54492622511609.96969697-18987.9696969697
55490243504252.36969697-14009.3696969697
56469357494296.76969697-24939.7696969697
57477580495025.96969697-17445.9696969697
58528379546353.76969697-17974.7696969697
59533590555566.56969697-21976.5696969697
60517945546911.76969697-28966.7696969697

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 565464 & 587970.854545455 & -22506.8545454552 \tabularnewline
2 & 547344 & 569751.454545454 & -22407.4545454545 \tabularnewline
3 & 554788 & 571033.854545454 & -16245.8545454545 \tabularnewline
4 & 562325 & 587025.042424242 & -24700.0424242424 \tabularnewline
5 & 560854 & 581549.842424242 & -20695.8424242424 \tabularnewline
6 & 555332 & 570976.642424242 & -15644.6424242424 \tabularnewline
7 & 543599 & 563619.042424242 & -20020.0424242424 \tabularnewline
8 & 536662 & 553663.442424242 & -17001.4424242424 \tabularnewline
9 & 542722 & 554392.642424242 & -11670.6424242424 \tabularnewline
10 & 593530 & 605720.442424242 & -12190.4424242424 \tabularnewline
11 & 610763 & 614933.242424242 & -4170.24242424238 \tabularnewline
12 & 612613 & 606278.442424242 & 6334.55757575763 \tabularnewline
13 & 611324 & 591822.921212121 & 19501.078787879 \tabularnewline
14 & 594167 & 573603.521212121 & 20563.4787878788 \tabularnewline
15 & 595454 & 574885.921212121 & 20568.0787878788 \tabularnewline
16 & 590865 & 590877.109090909 & -12.1090909090864 \tabularnewline
17 & 589379 & 585401.909090909 & 3977.09090909092 \tabularnewline
18 & 584428 & 574828.709090909 & 9599.29090909092 \tabularnewline
19 & 573100 & 567471.109090909 & 5628.89090909092 \tabularnewline
20 & 567456 & 557515.509090909 & 9940.49090909092 \tabularnewline
21 & 569028 & 558244.709090909 & 10783.2909090909 \tabularnewline
22 & 620735 & 609572.509090909 & 11162.4909090909 \tabularnewline
23 & 628884 & 618785.309090909 & 10098.6909090909 \tabularnewline
24 & 628232 & 610130.509090909 & 18101.4909090909 \tabularnewline
25 & 612117 & 595674.987878788 & 16442.0121212123 \tabularnewline
26 & 595404 & 577455.587878788 & 17948.4121212121 \tabularnewline
27 & 597141 & 578737.987878788 & 18403.0121212121 \tabularnewline
28 & 593408 & 594729.175757576 & -1321.17575757579 \tabularnewline
29 & 590072 & 589253.975757576 & 818.02424242421 \tabularnewline
30 & 579799 & 578680.775757576 & 1118.22424242421 \tabularnewline
31 & 574205 & 571323.175757576 & 2881.82424242421 \tabularnewline
32 & 572775 & 561367.575757576 & 11407.4242424242 \tabularnewline
33 & 572942 & 562096.775757576 & 10845.2242424242 \tabularnewline
34 & 619567 & 613424.575757576 & 6142.42424242422 \tabularnewline
35 & 625809 & 622637.375757576 & 3171.62424242422 \tabularnewline
36 & 619916 & 613982.575757576 & 5933.42424242422 \tabularnewline
37 & 587625 & 599527.054545454 & -11902.0545454544 \tabularnewline
38 & 565742 & 581307.654545455 & -15565.6545454546 \tabularnewline
39 & 557274 & 582590.054545455 & -25316.0545454546 \tabularnewline
40 & 560576 & 523806.303030303 & 36769.696969697 \tabularnewline
41 & 548854 & 518331.103030303 & 30522.896969697 \tabularnewline
42 & 531673 & 507757.903030303 & 23915.096969697 \tabularnewline
43 & 525919 & 500400.303030303 & 25518.696969697 \tabularnewline
44 & 511038 & 490444.703030303 & 20593.296969697 \tabularnewline
45 & 498662 & 491173.903030303 & 7488.09696969698 \tabularnewline
46 & 555362 & 542501.703030303 & 12860.296969697 \tabularnewline
47 & 564591 & 551714.503030303 & 12876.4969696970 \tabularnewline
48 & 541657 & 543059.703030303 & -1402.70303030301 \tabularnewline
49 & 527070 & 528604.181818182 & -1534.18181818165 \tabularnewline
50 & 509846 & 510384.781818182 & -538.781818181834 \tabularnewline
51 & 514258 & 511667.181818182 & 2590.81818181816 \tabularnewline
52 & 516922 & 527658.36969697 & -10736.3696969697 \tabularnewline
53 & 507561 & 522183.16969697 & -14622.1696969697 \tabularnewline
54 & 492622 & 511609.96969697 & -18987.9696969697 \tabularnewline
55 & 490243 & 504252.36969697 & -14009.3696969697 \tabularnewline
56 & 469357 & 494296.76969697 & -24939.7696969697 \tabularnewline
57 & 477580 & 495025.96969697 & -17445.9696969697 \tabularnewline
58 & 528379 & 546353.76969697 & -17974.7696969697 \tabularnewline
59 & 533590 & 555566.56969697 & -21976.5696969697 \tabularnewline
60 & 517945 & 546911.76969697 & -28966.7696969697 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35038&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]565464[/C][C]587970.854545455[/C][C]-22506.8545454552[/C][/ROW]
[ROW][C]2[/C][C]547344[/C][C]569751.454545454[/C][C]-22407.4545454545[/C][/ROW]
[ROW][C]3[/C][C]554788[/C][C]571033.854545454[/C][C]-16245.8545454545[/C][/ROW]
[ROW][C]4[/C][C]562325[/C][C]587025.042424242[/C][C]-24700.0424242424[/C][/ROW]
[ROW][C]5[/C][C]560854[/C][C]581549.842424242[/C][C]-20695.8424242424[/C][/ROW]
[ROW][C]6[/C][C]555332[/C][C]570976.642424242[/C][C]-15644.6424242424[/C][/ROW]
[ROW][C]7[/C][C]543599[/C][C]563619.042424242[/C][C]-20020.0424242424[/C][/ROW]
[ROW][C]8[/C][C]536662[/C][C]553663.442424242[/C][C]-17001.4424242424[/C][/ROW]
[ROW][C]9[/C][C]542722[/C][C]554392.642424242[/C][C]-11670.6424242424[/C][/ROW]
[ROW][C]10[/C][C]593530[/C][C]605720.442424242[/C][C]-12190.4424242424[/C][/ROW]
[ROW][C]11[/C][C]610763[/C][C]614933.242424242[/C][C]-4170.24242424238[/C][/ROW]
[ROW][C]12[/C][C]612613[/C][C]606278.442424242[/C][C]6334.55757575763[/C][/ROW]
[ROW][C]13[/C][C]611324[/C][C]591822.921212121[/C][C]19501.078787879[/C][/ROW]
[ROW][C]14[/C][C]594167[/C][C]573603.521212121[/C][C]20563.4787878788[/C][/ROW]
[ROW][C]15[/C][C]595454[/C][C]574885.921212121[/C][C]20568.0787878788[/C][/ROW]
[ROW][C]16[/C][C]590865[/C][C]590877.109090909[/C][C]-12.1090909090864[/C][/ROW]
[ROW][C]17[/C][C]589379[/C][C]585401.909090909[/C][C]3977.09090909092[/C][/ROW]
[ROW][C]18[/C][C]584428[/C][C]574828.709090909[/C][C]9599.29090909092[/C][/ROW]
[ROW][C]19[/C][C]573100[/C][C]567471.109090909[/C][C]5628.89090909092[/C][/ROW]
[ROW][C]20[/C][C]567456[/C][C]557515.509090909[/C][C]9940.49090909092[/C][/ROW]
[ROW][C]21[/C][C]569028[/C][C]558244.709090909[/C][C]10783.2909090909[/C][/ROW]
[ROW][C]22[/C][C]620735[/C][C]609572.509090909[/C][C]11162.4909090909[/C][/ROW]
[ROW][C]23[/C][C]628884[/C][C]618785.309090909[/C][C]10098.6909090909[/C][/ROW]
[ROW][C]24[/C][C]628232[/C][C]610130.509090909[/C][C]18101.4909090909[/C][/ROW]
[ROW][C]25[/C][C]612117[/C][C]595674.987878788[/C][C]16442.0121212123[/C][/ROW]
[ROW][C]26[/C][C]595404[/C][C]577455.587878788[/C][C]17948.4121212121[/C][/ROW]
[ROW][C]27[/C][C]597141[/C][C]578737.987878788[/C][C]18403.0121212121[/C][/ROW]
[ROW][C]28[/C][C]593408[/C][C]594729.175757576[/C][C]-1321.17575757579[/C][/ROW]
[ROW][C]29[/C][C]590072[/C][C]589253.975757576[/C][C]818.02424242421[/C][/ROW]
[ROW][C]30[/C][C]579799[/C][C]578680.775757576[/C][C]1118.22424242421[/C][/ROW]
[ROW][C]31[/C][C]574205[/C][C]571323.175757576[/C][C]2881.82424242421[/C][/ROW]
[ROW][C]32[/C][C]572775[/C][C]561367.575757576[/C][C]11407.4242424242[/C][/ROW]
[ROW][C]33[/C][C]572942[/C][C]562096.775757576[/C][C]10845.2242424242[/C][/ROW]
[ROW][C]34[/C][C]619567[/C][C]613424.575757576[/C][C]6142.42424242422[/C][/ROW]
[ROW][C]35[/C][C]625809[/C][C]622637.375757576[/C][C]3171.62424242422[/C][/ROW]
[ROW][C]36[/C][C]619916[/C][C]613982.575757576[/C][C]5933.42424242422[/C][/ROW]
[ROW][C]37[/C][C]587625[/C][C]599527.054545454[/C][C]-11902.0545454544[/C][/ROW]
[ROW][C]38[/C][C]565742[/C][C]581307.654545455[/C][C]-15565.6545454546[/C][/ROW]
[ROW][C]39[/C][C]557274[/C][C]582590.054545455[/C][C]-25316.0545454546[/C][/ROW]
[ROW][C]40[/C][C]560576[/C][C]523806.303030303[/C][C]36769.696969697[/C][/ROW]
[ROW][C]41[/C][C]548854[/C][C]518331.103030303[/C][C]30522.896969697[/C][/ROW]
[ROW][C]42[/C][C]531673[/C][C]507757.903030303[/C][C]23915.096969697[/C][/ROW]
[ROW][C]43[/C][C]525919[/C][C]500400.303030303[/C][C]25518.696969697[/C][/ROW]
[ROW][C]44[/C][C]511038[/C][C]490444.703030303[/C][C]20593.296969697[/C][/ROW]
[ROW][C]45[/C][C]498662[/C][C]491173.903030303[/C][C]7488.09696969698[/C][/ROW]
[ROW][C]46[/C][C]555362[/C][C]542501.703030303[/C][C]12860.296969697[/C][/ROW]
[ROW][C]47[/C][C]564591[/C][C]551714.503030303[/C][C]12876.4969696970[/C][/ROW]
[ROW][C]48[/C][C]541657[/C][C]543059.703030303[/C][C]-1402.70303030301[/C][/ROW]
[ROW][C]49[/C][C]527070[/C][C]528604.181818182[/C][C]-1534.18181818165[/C][/ROW]
[ROW][C]50[/C][C]509846[/C][C]510384.781818182[/C][C]-538.781818181834[/C][/ROW]
[ROW][C]51[/C][C]514258[/C][C]511667.181818182[/C][C]2590.81818181816[/C][/ROW]
[ROW][C]52[/C][C]516922[/C][C]527658.36969697[/C][C]-10736.3696969697[/C][/ROW]
[ROW][C]53[/C][C]507561[/C][C]522183.16969697[/C][C]-14622.1696969697[/C][/ROW]
[ROW][C]54[/C][C]492622[/C][C]511609.96969697[/C][C]-18987.9696969697[/C][/ROW]
[ROW][C]55[/C][C]490243[/C][C]504252.36969697[/C][C]-14009.3696969697[/C][/ROW]
[ROW][C]56[/C][C]469357[/C][C]494296.76969697[/C][C]-24939.7696969697[/C][/ROW]
[ROW][C]57[/C][C]477580[/C][C]495025.96969697[/C][C]-17445.9696969697[/C][/ROW]
[ROW][C]58[/C][C]528379[/C][C]546353.76969697[/C][C]-17974.7696969697[/C][/ROW]
[ROW][C]59[/C][C]533590[/C][C]555566.56969697[/C][C]-21976.5696969697[/C][/ROW]
[ROW][C]60[/C][C]517945[/C][C]546911.76969697[/C][C]-28966.7696969697[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35038&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35038&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
1565464587970.854545455-22506.8545454552
2547344569751.454545454-22407.4545454545
3554788571033.854545454-16245.8545454545
4562325587025.042424242-24700.0424242424
5560854581549.842424242-20695.8424242424
6555332570976.642424242-15644.6424242424
7543599563619.042424242-20020.0424242424
8536662553663.442424242-17001.4424242424
9542722554392.642424242-11670.6424242424
10593530605720.442424242-12190.4424242424
11610763614933.242424242-4170.24242424238
12612613606278.4424242426334.55757575763
13611324591822.92121212119501.078787879
14594167573603.52121212120563.4787878788
15595454574885.92121212120568.0787878788
16590865590877.109090909-12.1090909090864
17589379585401.9090909093977.09090909092
18584428574828.7090909099599.29090909092
19573100567471.1090909095628.89090909092
20567456557515.5090909099940.49090909092
21569028558244.70909090910783.2909090909
22620735609572.50909090911162.4909090909
23628884618785.30909090910098.6909090909
24628232610130.50909090918101.4909090909
25612117595674.98787878816442.0121212123
26595404577455.58787878817948.4121212121
27597141578737.98787878818403.0121212121
28593408594729.175757576-1321.17575757579
29590072589253.975757576818.02424242421
30579799578680.7757575761118.22424242421
31574205571323.1757575762881.82424242421
32572775561367.57575757611407.4242424242
33572942562096.77575757610845.2242424242
34619567613424.5757575766142.42424242422
35625809622637.3757575763171.62424242422
36619916613982.5757575765933.42424242422
37587625599527.054545454-11902.0545454544
38565742581307.654545455-15565.6545454546
39557274582590.054545455-25316.0545454546
40560576523806.30303030336769.696969697
41548854518331.10303030330522.896969697
42531673507757.90303030323915.096969697
43525919500400.30303030325518.696969697
44511038490444.70303030320593.296969697
45498662491173.9030303037488.09696969698
46555362542501.70303030312860.296969697
47564591551714.50303030312876.4969696970
48541657543059.703030303-1402.70303030301
49527070528604.181818182-1534.18181818165
50509846510384.781818182-538.781818181834
51514258511667.1818181822590.81818181816
52516922527658.36969697-10736.3696969697
53507561522183.16969697-14622.1696969697
54492622511609.96969697-18987.9696969697
55490243504252.36969697-14009.3696969697
56469357494296.76969697-24939.7696969697
57477580495025.96969697-17445.9696969697
58528379546353.76969697-17974.7696969697
59533590555566.56969697-21976.5696969697
60517945546911.76969697-28966.7696969697







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2912698809959300.5825397619918610.70873011900407
180.2174356138028690.4348712276057380.782564386197131
190.1833322971558320.3666645943116650.816667702844168
200.1416434633443830.2832869266887650.858356536655617
210.1436403955613420.2872807911226840.856359604438658
220.1588738204645740.3177476409291470.841126179535426
230.3692109586665290.7384219173330590.63078904133347
240.5095581681181610.9808836637636780.490441831881839
250.717071949622820.5658561007543610.282928050377180
260.7541049195348780.4917901609302440.245895080465122
270.7687048766497760.4625902467004480.231295123350224
280.9080727593776270.1838544812447450.0919272406223726
290.9513399980608830.09732000387823360.0486600019391168
300.9691039103255460.06179217934890820.0308960896744541
310.9764569665458290.04708606690834220.0235430334541711
320.9629437925267170.0741124149465660.037056207473283
330.9543284496516040.09134310069679150.0456715503483957
340.935906534063940.1281869318721200.0640934659360598
350.9223614482318470.1552771035363050.0776385517681527
360.9770899763043220.04582004739135670.0229100236956783
370.9889627559958030.02207448800839410.0110372440041971
380.992452007784230.01509598443154180.0075479922157709
390.991330673188570.01733865362286130.00866932681143063
400.9865340198373160.02693196032536890.0134659801626844
410.9769453358862390.0461093282275220.023054664113761
420.957202784944840.08559443011031980.0427972150551599
430.9018358446645260.1963283106709480.0981641553354742

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.291269880995930 & 0.582539761991861 & 0.70873011900407 \tabularnewline
18 & 0.217435613802869 & 0.434871227605738 & 0.782564386197131 \tabularnewline
19 & 0.183332297155832 & 0.366664594311665 & 0.816667702844168 \tabularnewline
20 & 0.141643463344383 & 0.283286926688765 & 0.858356536655617 \tabularnewline
21 & 0.143640395561342 & 0.287280791122684 & 0.856359604438658 \tabularnewline
22 & 0.158873820464574 & 0.317747640929147 & 0.841126179535426 \tabularnewline
23 & 0.369210958666529 & 0.738421917333059 & 0.63078904133347 \tabularnewline
24 & 0.509558168118161 & 0.980883663763678 & 0.490441831881839 \tabularnewline
25 & 0.71707194962282 & 0.565856100754361 & 0.282928050377180 \tabularnewline
26 & 0.754104919534878 & 0.491790160930244 & 0.245895080465122 \tabularnewline
27 & 0.768704876649776 & 0.462590246700448 & 0.231295123350224 \tabularnewline
28 & 0.908072759377627 & 0.183854481244745 & 0.0919272406223726 \tabularnewline
29 & 0.951339998060883 & 0.0973200038782336 & 0.0486600019391168 \tabularnewline
30 & 0.969103910325546 & 0.0617921793489082 & 0.0308960896744541 \tabularnewline
31 & 0.976456966545829 & 0.0470860669083422 & 0.0235430334541711 \tabularnewline
32 & 0.962943792526717 & 0.074112414946566 & 0.037056207473283 \tabularnewline
33 & 0.954328449651604 & 0.0913431006967915 & 0.0456715503483957 \tabularnewline
34 & 0.93590653406394 & 0.128186931872120 & 0.0640934659360598 \tabularnewline
35 & 0.922361448231847 & 0.155277103536305 & 0.0776385517681527 \tabularnewline
36 & 0.977089976304322 & 0.0458200473913567 & 0.0229100236956783 \tabularnewline
37 & 0.988962755995803 & 0.0220744880083941 & 0.0110372440041971 \tabularnewline
38 & 0.99245200778423 & 0.0150959844315418 & 0.0075479922157709 \tabularnewline
39 & 0.99133067318857 & 0.0173386536228613 & 0.00866932681143063 \tabularnewline
40 & 0.986534019837316 & 0.0269319603253689 & 0.0134659801626844 \tabularnewline
41 & 0.976945335886239 & 0.046109328227522 & 0.023054664113761 \tabularnewline
42 & 0.95720278494484 & 0.0855944301103198 & 0.0427972150551599 \tabularnewline
43 & 0.901835844664526 & 0.196328310670948 & 0.0981641553354742 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35038&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.291269880995930[/C][C]0.582539761991861[/C][C]0.70873011900407[/C][/ROW]
[ROW][C]18[/C][C]0.217435613802869[/C][C]0.434871227605738[/C][C]0.782564386197131[/C][/ROW]
[ROW][C]19[/C][C]0.183332297155832[/C][C]0.366664594311665[/C][C]0.816667702844168[/C][/ROW]
[ROW][C]20[/C][C]0.141643463344383[/C][C]0.283286926688765[/C][C]0.858356536655617[/C][/ROW]
[ROW][C]21[/C][C]0.143640395561342[/C][C]0.287280791122684[/C][C]0.856359604438658[/C][/ROW]
[ROW][C]22[/C][C]0.158873820464574[/C][C]0.317747640929147[/C][C]0.841126179535426[/C][/ROW]
[ROW][C]23[/C][C]0.369210958666529[/C][C]0.738421917333059[/C][C]0.63078904133347[/C][/ROW]
[ROW][C]24[/C][C]0.509558168118161[/C][C]0.980883663763678[/C][C]0.490441831881839[/C][/ROW]
[ROW][C]25[/C][C]0.71707194962282[/C][C]0.565856100754361[/C][C]0.282928050377180[/C][/ROW]
[ROW][C]26[/C][C]0.754104919534878[/C][C]0.491790160930244[/C][C]0.245895080465122[/C][/ROW]
[ROW][C]27[/C][C]0.768704876649776[/C][C]0.462590246700448[/C][C]0.231295123350224[/C][/ROW]
[ROW][C]28[/C][C]0.908072759377627[/C][C]0.183854481244745[/C][C]0.0919272406223726[/C][/ROW]
[ROW][C]29[/C][C]0.951339998060883[/C][C]0.0973200038782336[/C][C]0.0486600019391168[/C][/ROW]
[ROW][C]30[/C][C]0.969103910325546[/C][C]0.0617921793489082[/C][C]0.0308960896744541[/C][/ROW]
[ROW][C]31[/C][C]0.976456966545829[/C][C]0.0470860669083422[/C][C]0.0235430334541711[/C][/ROW]
[ROW][C]32[/C][C]0.962943792526717[/C][C]0.074112414946566[/C][C]0.037056207473283[/C][/ROW]
[ROW][C]33[/C][C]0.954328449651604[/C][C]0.0913431006967915[/C][C]0.0456715503483957[/C][/ROW]
[ROW][C]34[/C][C]0.93590653406394[/C][C]0.128186931872120[/C][C]0.0640934659360598[/C][/ROW]
[ROW][C]35[/C][C]0.922361448231847[/C][C]0.155277103536305[/C][C]0.0776385517681527[/C][/ROW]
[ROW][C]36[/C][C]0.977089976304322[/C][C]0.0458200473913567[/C][C]0.0229100236956783[/C][/ROW]
[ROW][C]37[/C][C]0.988962755995803[/C][C]0.0220744880083941[/C][C]0.0110372440041971[/C][/ROW]
[ROW][C]38[/C][C]0.99245200778423[/C][C]0.0150959844315418[/C][C]0.0075479922157709[/C][/ROW]
[ROW][C]39[/C][C]0.99133067318857[/C][C]0.0173386536228613[/C][C]0.00866932681143063[/C][/ROW]
[ROW][C]40[/C][C]0.986534019837316[/C][C]0.0269319603253689[/C][C]0.0134659801626844[/C][/ROW]
[ROW][C]41[/C][C]0.976945335886239[/C][C]0.046109328227522[/C][C]0.023054664113761[/C][/ROW]
[ROW][C]42[/C][C]0.95720278494484[/C][C]0.0855944301103198[/C][C]0.0427972150551599[/C][/ROW]
[ROW][C]43[/C][C]0.901835844664526[/C][C]0.196328310670948[/C][C]0.0981641553354742[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35038&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35038&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.2912698809959300.5825397619918610.70873011900407
180.2174356138028690.4348712276057380.782564386197131
190.1833322971558320.3666645943116650.816667702844168
200.1416434633443830.2832869266887650.858356536655617
210.1436403955613420.2872807911226840.856359604438658
220.1588738204645740.3177476409291470.841126179535426
230.3692109586665290.7384219173330590.63078904133347
240.5095581681181610.9808836637636780.490441831881839
250.717071949622820.5658561007543610.282928050377180
260.7541049195348780.4917901609302440.245895080465122
270.7687048766497760.4625902467004480.231295123350224
280.9080727593776270.1838544812447450.0919272406223726
290.9513399980608830.09732000387823360.0486600019391168
300.9691039103255460.06179217934890820.0308960896744541
310.9764569665458290.04708606690834220.0235430334541711
320.9629437925267170.0741124149465660.037056207473283
330.9543284496516040.09134310069679150.0456715503483957
340.935906534063940.1281869318721200.0640934659360598
350.9223614482318470.1552771035363050.0776385517681527
360.9770899763043220.04582004739135670.0229100236956783
370.9889627559958030.02207448800839410.0110372440041971
380.992452007784230.01509598443154180.0075479922157709
390.991330673188570.01733865362286130.00866932681143063
400.9865340198373160.02693196032536890.0134659801626844
410.9769453358862390.0461093282275220.023054664113761
420.957202784944840.08559443011031980.0427972150551599
430.9018358446645260.1963283106709480.0981641553354742







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

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

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



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