Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 26 Nov 2008 11:19:41 -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/26/t1227723650ebu64qh8kxxdj9u.htm/, Retrieved Sun, 19 May 2024 05:02:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25689, Retrieved Sun, 19 May 2024 05:02:34 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact116
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2008-11-26 18:19:41] [962e6c9020896982bc8283b8971710a9] [Current]
Feedback Forum

Post a new message
Dataseries X:
147768	0
137507	0
136919	0
136151	1
133001	1
125554	1
119647	0
114158	0
116193	0
152803	0
161761	0
160942	0
149470	0
139208	0
134588	0
130322	1
126611	1
122401	1
117352	0
112135	0
112879	0
148729	0
157230	0
157221	0
146681	0
136524	0
132111	0
125326	1
122716	1
116615	1
113719	0
110737	0
112093	0
143565	0
149946	0
149147	0
134339	0
122683	0
115614	0
116566	1
111272	1
104609	1
101802	0
94542	0
93051	0
124129	0
130374	0
123946	0
114971	0
105531	0
104919	0
104782	1
101281	1
94545	1
93248	0
84031	0
87486	0
115867	0
120327	0
117008	0
108811	0




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 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 & 3 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25689&T=0

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
jonger_dan_25[t] = + 125298.086956522 -7181.28695652175winter[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
jonger_dan_25[t] =  +  125298.086956522 -7181.28695652175winter[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25689&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]jonger_dan_25[t] =  +  125298.086956522 -7181.28695652175winter[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25689&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25689&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
jonger_dan_25[t] = + 125298.086956522 -7181.28695652175winter[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)125298.0869565222803.34413444.695900
winter-7181.286956521755653.2176-1.27030.2089640.104482

\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) & 125298.086956522 & 2803.344134 & 44.6959 & 0 & 0 \tabularnewline
winter & -7181.28695652175 & 5653.2176 & -1.2703 & 0.208964 & 0.104482 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25689&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]125298.086956522[/C][C]2803.344134[/C][C]44.6959[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]winter[/C][C]-7181.28695652175[/C][C]5653.2176[/C][C]-1.2703[/C][C]0.208964[/C][C]0.104482[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25689&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25689&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)125298.0869565222803.34413444.695900
winter-7181.286956521755653.2176-1.27030.2089640.104482







Multiple Linear Regression - Regression Statistics
Multiple R0.163162860071836
R-squared0.0266221189068215
Adjusted R-squared0.0101241887188016
F-TEST (value)1.61366417504623
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.208964207845363
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19013.2049750854
Sum Squared Residuals21328615842.0522

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.163162860071836 \tabularnewline
R-squared & 0.0266221189068215 \tabularnewline
Adjusted R-squared & 0.0101241887188016 \tabularnewline
F-TEST (value) & 1.61366417504623 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 59 \tabularnewline
p-value & 0.208964207845363 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 19013.2049750854 \tabularnewline
Sum Squared Residuals & 21328615842.0522 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25689&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.163162860071836[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0266221189068215[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0101241887188016[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.61366417504623[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]59[/C][/ROW]
[ROW][C]p-value[/C][C]0.208964207845363[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]19013.2049750854[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]21328615842.0522[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25689&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25689&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.163162860071836
R-squared0.0266221189068215
Adjusted R-squared0.0101241887188016
F-TEST (value)1.61366417504623
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.208964207845363
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19013.2049750854
Sum Squared Residuals21328615842.0522







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1147768125298.08695652122469.9130434787
2137507125298.08695652212208.9130434782
3136919125298.08695652211620.9130434782
4136151118116.818034.2
5133001118116.814884.2
6125554118116.87437.2
7119647125298.086956522-5651.08695652175
8114158125298.086956522-11140.0869565218
9116193125298.086956522-9105.08695652175
10152803125298.08695652227504.9130434783
11161761125298.08695652236462.9130434782
12160942125298.08695652235643.9130434782
13149470125298.08695652224171.9130434783
14139208125298.08695652213909.9130434782
15134588125298.0869565229289.91304347825
16130322118116.812205.2
17126611118116.88494.2
18122401118116.84284.2
19117352125298.086956522-7946.08695652175
20112135125298.086956522-13163.0869565218
21112879125298.086956522-12419.0869565218
22148729125298.08695652223430.9130434783
23157230125298.08695652231931.9130434783
24157221125298.08695652231922.9130434783
25146681125298.08695652221382.9130434783
26136524125298.08695652211225.9130434782
27132111125298.0869565226812.91304347825
28125326118116.87209.2
29122716118116.84599.2
30116615118116.8-1501.80000000000
31113719125298.086956522-11579.0869565218
32110737125298.086956522-14561.0869565217
33112093125298.086956522-13205.0869565218
34143565125298.08695652218266.9130434782
35149946125298.08695652224647.9130434783
36149147125298.08695652223848.9130434783
37134339125298.0869565229040.91304347825
38122683125298.086956522-2615.08695652175
39115614125298.086956522-9684.08695652175
40116566118116.8-1550.80000000000
41111272118116.8-6844.8
42104609118116.8-13507.8
43101802125298.086956522-23496.0869565217
4494542125298.086956522-30756.0869565218
4593051125298.086956522-32247.0869565218
46124129125298.086956522-1169.08695652175
47130374125298.0869565225075.91304347825
48123946125298.086956522-1352.08695652175
49114971125298.086956522-10327.0869565218
50105531125298.086956522-19767.0869565217
51104919125298.086956522-20379.0869565217
52104782118116.8-13334.8
53101281118116.8-16835.8
5494545118116.8-23571.8
5593248125298.086956522-32050.0869565218
5684031125298.086956522-41267.0869565218
5787486125298.086956522-37812.0869565218
58115867125298.086956522-9431.08695652175
59120327125298.086956522-4971.08695652175
60117008125298.086956522-8290.08695652175
61108811125298.086956522-16487.0869565217

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 147768 & 125298.086956521 & 22469.9130434787 \tabularnewline
2 & 137507 & 125298.086956522 & 12208.9130434782 \tabularnewline
3 & 136919 & 125298.086956522 & 11620.9130434782 \tabularnewline
4 & 136151 & 118116.8 & 18034.2 \tabularnewline
5 & 133001 & 118116.8 & 14884.2 \tabularnewline
6 & 125554 & 118116.8 & 7437.2 \tabularnewline
7 & 119647 & 125298.086956522 & -5651.08695652175 \tabularnewline
8 & 114158 & 125298.086956522 & -11140.0869565218 \tabularnewline
9 & 116193 & 125298.086956522 & -9105.08695652175 \tabularnewline
10 & 152803 & 125298.086956522 & 27504.9130434783 \tabularnewline
11 & 161761 & 125298.086956522 & 36462.9130434782 \tabularnewline
12 & 160942 & 125298.086956522 & 35643.9130434782 \tabularnewline
13 & 149470 & 125298.086956522 & 24171.9130434783 \tabularnewline
14 & 139208 & 125298.086956522 & 13909.9130434782 \tabularnewline
15 & 134588 & 125298.086956522 & 9289.91304347825 \tabularnewline
16 & 130322 & 118116.8 & 12205.2 \tabularnewline
17 & 126611 & 118116.8 & 8494.2 \tabularnewline
18 & 122401 & 118116.8 & 4284.2 \tabularnewline
19 & 117352 & 125298.086956522 & -7946.08695652175 \tabularnewline
20 & 112135 & 125298.086956522 & -13163.0869565218 \tabularnewline
21 & 112879 & 125298.086956522 & -12419.0869565218 \tabularnewline
22 & 148729 & 125298.086956522 & 23430.9130434783 \tabularnewline
23 & 157230 & 125298.086956522 & 31931.9130434783 \tabularnewline
24 & 157221 & 125298.086956522 & 31922.9130434783 \tabularnewline
25 & 146681 & 125298.086956522 & 21382.9130434783 \tabularnewline
26 & 136524 & 125298.086956522 & 11225.9130434782 \tabularnewline
27 & 132111 & 125298.086956522 & 6812.91304347825 \tabularnewline
28 & 125326 & 118116.8 & 7209.2 \tabularnewline
29 & 122716 & 118116.8 & 4599.2 \tabularnewline
30 & 116615 & 118116.8 & -1501.80000000000 \tabularnewline
31 & 113719 & 125298.086956522 & -11579.0869565218 \tabularnewline
32 & 110737 & 125298.086956522 & -14561.0869565217 \tabularnewline
33 & 112093 & 125298.086956522 & -13205.0869565218 \tabularnewline
34 & 143565 & 125298.086956522 & 18266.9130434782 \tabularnewline
35 & 149946 & 125298.086956522 & 24647.9130434783 \tabularnewline
36 & 149147 & 125298.086956522 & 23848.9130434783 \tabularnewline
37 & 134339 & 125298.086956522 & 9040.91304347825 \tabularnewline
38 & 122683 & 125298.086956522 & -2615.08695652175 \tabularnewline
39 & 115614 & 125298.086956522 & -9684.08695652175 \tabularnewline
40 & 116566 & 118116.8 & -1550.80000000000 \tabularnewline
41 & 111272 & 118116.8 & -6844.8 \tabularnewline
42 & 104609 & 118116.8 & -13507.8 \tabularnewline
43 & 101802 & 125298.086956522 & -23496.0869565217 \tabularnewline
44 & 94542 & 125298.086956522 & -30756.0869565218 \tabularnewline
45 & 93051 & 125298.086956522 & -32247.0869565218 \tabularnewline
46 & 124129 & 125298.086956522 & -1169.08695652175 \tabularnewline
47 & 130374 & 125298.086956522 & 5075.91304347825 \tabularnewline
48 & 123946 & 125298.086956522 & -1352.08695652175 \tabularnewline
49 & 114971 & 125298.086956522 & -10327.0869565218 \tabularnewline
50 & 105531 & 125298.086956522 & -19767.0869565217 \tabularnewline
51 & 104919 & 125298.086956522 & -20379.0869565217 \tabularnewline
52 & 104782 & 118116.8 & -13334.8 \tabularnewline
53 & 101281 & 118116.8 & -16835.8 \tabularnewline
54 & 94545 & 118116.8 & -23571.8 \tabularnewline
55 & 93248 & 125298.086956522 & -32050.0869565218 \tabularnewline
56 & 84031 & 125298.086956522 & -41267.0869565218 \tabularnewline
57 & 87486 & 125298.086956522 & -37812.0869565218 \tabularnewline
58 & 115867 & 125298.086956522 & -9431.08695652175 \tabularnewline
59 & 120327 & 125298.086956522 & -4971.08695652175 \tabularnewline
60 & 117008 & 125298.086956522 & -8290.08695652175 \tabularnewline
61 & 108811 & 125298.086956522 & -16487.0869565217 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25689&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]147768[/C][C]125298.086956521[/C][C]22469.9130434787[/C][/ROW]
[ROW][C]2[/C][C]137507[/C][C]125298.086956522[/C][C]12208.9130434782[/C][/ROW]
[ROW][C]3[/C][C]136919[/C][C]125298.086956522[/C][C]11620.9130434782[/C][/ROW]
[ROW][C]4[/C][C]136151[/C][C]118116.8[/C][C]18034.2[/C][/ROW]
[ROW][C]5[/C][C]133001[/C][C]118116.8[/C][C]14884.2[/C][/ROW]
[ROW][C]6[/C][C]125554[/C][C]118116.8[/C][C]7437.2[/C][/ROW]
[ROW][C]7[/C][C]119647[/C][C]125298.086956522[/C][C]-5651.08695652175[/C][/ROW]
[ROW][C]8[/C][C]114158[/C][C]125298.086956522[/C][C]-11140.0869565218[/C][/ROW]
[ROW][C]9[/C][C]116193[/C][C]125298.086956522[/C][C]-9105.08695652175[/C][/ROW]
[ROW][C]10[/C][C]152803[/C][C]125298.086956522[/C][C]27504.9130434783[/C][/ROW]
[ROW][C]11[/C][C]161761[/C][C]125298.086956522[/C][C]36462.9130434782[/C][/ROW]
[ROW][C]12[/C][C]160942[/C][C]125298.086956522[/C][C]35643.9130434782[/C][/ROW]
[ROW][C]13[/C][C]149470[/C][C]125298.086956522[/C][C]24171.9130434783[/C][/ROW]
[ROW][C]14[/C][C]139208[/C][C]125298.086956522[/C][C]13909.9130434782[/C][/ROW]
[ROW][C]15[/C][C]134588[/C][C]125298.086956522[/C][C]9289.91304347825[/C][/ROW]
[ROW][C]16[/C][C]130322[/C][C]118116.8[/C][C]12205.2[/C][/ROW]
[ROW][C]17[/C][C]126611[/C][C]118116.8[/C][C]8494.2[/C][/ROW]
[ROW][C]18[/C][C]122401[/C][C]118116.8[/C][C]4284.2[/C][/ROW]
[ROW][C]19[/C][C]117352[/C][C]125298.086956522[/C][C]-7946.08695652175[/C][/ROW]
[ROW][C]20[/C][C]112135[/C][C]125298.086956522[/C][C]-13163.0869565218[/C][/ROW]
[ROW][C]21[/C][C]112879[/C][C]125298.086956522[/C][C]-12419.0869565218[/C][/ROW]
[ROW][C]22[/C][C]148729[/C][C]125298.086956522[/C][C]23430.9130434783[/C][/ROW]
[ROW][C]23[/C][C]157230[/C][C]125298.086956522[/C][C]31931.9130434783[/C][/ROW]
[ROW][C]24[/C][C]157221[/C][C]125298.086956522[/C][C]31922.9130434783[/C][/ROW]
[ROW][C]25[/C][C]146681[/C][C]125298.086956522[/C][C]21382.9130434783[/C][/ROW]
[ROW][C]26[/C][C]136524[/C][C]125298.086956522[/C][C]11225.9130434782[/C][/ROW]
[ROW][C]27[/C][C]132111[/C][C]125298.086956522[/C][C]6812.91304347825[/C][/ROW]
[ROW][C]28[/C][C]125326[/C][C]118116.8[/C][C]7209.2[/C][/ROW]
[ROW][C]29[/C][C]122716[/C][C]118116.8[/C][C]4599.2[/C][/ROW]
[ROW][C]30[/C][C]116615[/C][C]118116.8[/C][C]-1501.80000000000[/C][/ROW]
[ROW][C]31[/C][C]113719[/C][C]125298.086956522[/C][C]-11579.0869565218[/C][/ROW]
[ROW][C]32[/C][C]110737[/C][C]125298.086956522[/C][C]-14561.0869565217[/C][/ROW]
[ROW][C]33[/C][C]112093[/C][C]125298.086956522[/C][C]-13205.0869565218[/C][/ROW]
[ROW][C]34[/C][C]143565[/C][C]125298.086956522[/C][C]18266.9130434782[/C][/ROW]
[ROW][C]35[/C][C]149946[/C][C]125298.086956522[/C][C]24647.9130434783[/C][/ROW]
[ROW][C]36[/C][C]149147[/C][C]125298.086956522[/C][C]23848.9130434783[/C][/ROW]
[ROW][C]37[/C][C]134339[/C][C]125298.086956522[/C][C]9040.91304347825[/C][/ROW]
[ROW][C]38[/C][C]122683[/C][C]125298.086956522[/C][C]-2615.08695652175[/C][/ROW]
[ROW][C]39[/C][C]115614[/C][C]125298.086956522[/C][C]-9684.08695652175[/C][/ROW]
[ROW][C]40[/C][C]116566[/C][C]118116.8[/C][C]-1550.80000000000[/C][/ROW]
[ROW][C]41[/C][C]111272[/C][C]118116.8[/C][C]-6844.8[/C][/ROW]
[ROW][C]42[/C][C]104609[/C][C]118116.8[/C][C]-13507.8[/C][/ROW]
[ROW][C]43[/C][C]101802[/C][C]125298.086956522[/C][C]-23496.0869565217[/C][/ROW]
[ROW][C]44[/C][C]94542[/C][C]125298.086956522[/C][C]-30756.0869565218[/C][/ROW]
[ROW][C]45[/C][C]93051[/C][C]125298.086956522[/C][C]-32247.0869565218[/C][/ROW]
[ROW][C]46[/C][C]124129[/C][C]125298.086956522[/C][C]-1169.08695652175[/C][/ROW]
[ROW][C]47[/C][C]130374[/C][C]125298.086956522[/C][C]5075.91304347825[/C][/ROW]
[ROW][C]48[/C][C]123946[/C][C]125298.086956522[/C][C]-1352.08695652175[/C][/ROW]
[ROW][C]49[/C][C]114971[/C][C]125298.086956522[/C][C]-10327.0869565218[/C][/ROW]
[ROW][C]50[/C][C]105531[/C][C]125298.086956522[/C][C]-19767.0869565217[/C][/ROW]
[ROW][C]51[/C][C]104919[/C][C]125298.086956522[/C][C]-20379.0869565217[/C][/ROW]
[ROW][C]52[/C][C]104782[/C][C]118116.8[/C][C]-13334.8[/C][/ROW]
[ROW][C]53[/C][C]101281[/C][C]118116.8[/C][C]-16835.8[/C][/ROW]
[ROW][C]54[/C][C]94545[/C][C]118116.8[/C][C]-23571.8[/C][/ROW]
[ROW][C]55[/C][C]93248[/C][C]125298.086956522[/C][C]-32050.0869565218[/C][/ROW]
[ROW][C]56[/C][C]84031[/C][C]125298.086956522[/C][C]-41267.0869565218[/C][/ROW]
[ROW][C]57[/C][C]87486[/C][C]125298.086956522[/C][C]-37812.0869565218[/C][/ROW]
[ROW][C]58[/C][C]115867[/C][C]125298.086956522[/C][C]-9431.08695652175[/C][/ROW]
[ROW][C]59[/C][C]120327[/C][C]125298.086956522[/C][C]-4971.08695652175[/C][/ROW]
[ROW][C]60[/C][C]117008[/C][C]125298.086956522[/C][C]-8290.08695652175[/C][/ROW]
[ROW][C]61[/C][C]108811[/C][C]125298.086956522[/C][C]-16487.0869565217[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25689&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25689&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
1147768125298.08695652122469.9130434787
2137507125298.08695652212208.9130434782
3136919125298.08695652211620.9130434782
4136151118116.818034.2
5133001118116.814884.2
6125554118116.87437.2
7119647125298.086956522-5651.08695652175
8114158125298.086956522-11140.0869565218
9116193125298.086956522-9105.08695652175
10152803125298.08695652227504.9130434783
11161761125298.08695652236462.9130434782
12160942125298.08695652235643.9130434782
13149470125298.08695652224171.9130434783
14139208125298.08695652213909.9130434782
15134588125298.0869565229289.91304347825
16130322118116.812205.2
17126611118116.88494.2
18122401118116.84284.2
19117352125298.086956522-7946.08695652175
20112135125298.086956522-13163.0869565218
21112879125298.086956522-12419.0869565218
22148729125298.08695652223430.9130434783
23157230125298.08695652231931.9130434783
24157221125298.08695652231922.9130434783
25146681125298.08695652221382.9130434783
26136524125298.08695652211225.9130434782
27132111125298.0869565226812.91304347825
28125326118116.87209.2
29122716118116.84599.2
30116615118116.8-1501.80000000000
31113719125298.086956522-11579.0869565218
32110737125298.086956522-14561.0869565217
33112093125298.086956522-13205.0869565218
34143565125298.08695652218266.9130434782
35149946125298.08695652224647.9130434783
36149147125298.08695652223848.9130434783
37134339125298.0869565229040.91304347825
38122683125298.086956522-2615.08695652175
39115614125298.086956522-9684.08695652175
40116566118116.8-1550.80000000000
41111272118116.8-6844.8
42104609118116.8-13507.8
43101802125298.086956522-23496.0869565217
4494542125298.086956522-30756.0869565218
4593051125298.086956522-32247.0869565218
46124129125298.086956522-1169.08695652175
47130374125298.0869565225075.91304347825
48123946125298.086956522-1352.08695652175
49114971125298.086956522-10327.0869565218
50105531125298.086956522-19767.0869565217
51104919125298.086956522-20379.0869565217
52104782118116.8-13334.8
53101281118116.8-16835.8
5494545118116.8-23571.8
5593248125298.086956522-32050.0869565218
5684031125298.086956522-41267.0869565218
5787486125298.086956522-37812.0869565218
58115867125298.086956522-9431.08695652175
59120327125298.086956522-4971.08695652175
60117008125298.086956522-8290.08695652175
61108811125298.086956522-16487.0869565217







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.02527748682459570.05055497364919140.974722513175404
60.01469422615059280.02938845230118560.985305773849407
70.06013770912702390.1202754182540480.939862290872976
80.09902374528668270.1980474905733650.900976254713317
90.08556506530023790.1711301306004760.914434934699762
100.1463019221838520.2926038443677040.853698077816148
110.2982459368716770.5964918737433540.701754063128323
120.4110359624515860.8220719249031730.588964037548414
130.3790367521370940.7580735042741880.620963247862906
140.30553060312290.61106120624580.6944693968771
150.2407454269189220.4814908538378450.759254573081078
160.1844096026489460.3688192052978920.815590397351054
170.1385990732789130.2771981465578260.861400926721087
180.104582123180890.209164246361780.89541787681911
190.1196761301150150.2393522602300300.880323869884985
200.1541531248853710.3083062497707410.84584687511463
210.1700576180564080.3401152361128170.829942381943592
220.1796075132383820.3592150264767650.820392486761618
230.2716559567517950.5433119135035910.728344043248205
240.3979884429281980.7959768858563960.602011557071802
250.4284353942802290.8568707885604590.571564605719771
260.401208623747560.802417247495120.59879137625244
270.3664178043156490.7328356086312980.633582195684351
280.3249282372376580.6498564744753150.675071762762342
290.2867717431799400.5735434863598810.71322825682006
300.2517720672497330.5035441344994670.748227932750267
310.2662017472438480.5324034944876960.733798252756152
320.2883333996020410.5766667992040830.711666600397959
330.2888825924132860.5777651848265720.711117407586714
340.3367516512072660.6735033024145330.663248348792734
350.5113137363244110.9773725273511790.488686263675589
360.7434881610837630.5130236778324740.256511838916237
370.8045481861631470.3909036276737070.195451813836853
380.8035562483080950.392887503383810.196443751691905
390.790241560429310.4195168791413820.209758439570691
400.7691955236784640.4616089526430720.230804476321536
410.7385314813523530.5229370372952950.261468518647647
420.702108542217720.5957829155645610.297891457782280
430.7223055824522930.5553888350954130.277694417547707
440.7917099363329080.4165801273341840.208290063667092
450.8527617713979390.2944764572041220.147238228602061
460.8404183393859050.3191633212281900.159581660614095
470.887895182334870.2242096353302600.112104817665130
480.9044568759758930.1910862480482150.0955431240241075
490.883719834094090.2325603318118210.116280165905910
500.83892970830510.32214058338980.1610702916949
510.7787244919097420.4425510161805150.221275508090258
520.7015098316049840.5969803367900320.298490168395016
530.605796559594260.788406880811480.39420344040574
540.4922135403089830.9844270806179670.507786459691017
550.4388098743080410.8776197486160820.561190125691959
560.5855446670398530.8289106659202950.414455332960148

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.0252774868245957 & 0.0505549736491914 & 0.974722513175404 \tabularnewline
6 & 0.0146942261505928 & 0.0293884523011856 & 0.985305773849407 \tabularnewline
7 & 0.0601377091270239 & 0.120275418254048 & 0.939862290872976 \tabularnewline
8 & 0.0990237452866827 & 0.198047490573365 & 0.900976254713317 \tabularnewline
9 & 0.0855650653002379 & 0.171130130600476 & 0.914434934699762 \tabularnewline
10 & 0.146301922183852 & 0.292603844367704 & 0.853698077816148 \tabularnewline
11 & 0.298245936871677 & 0.596491873743354 & 0.701754063128323 \tabularnewline
12 & 0.411035962451586 & 0.822071924903173 & 0.588964037548414 \tabularnewline
13 & 0.379036752137094 & 0.758073504274188 & 0.620963247862906 \tabularnewline
14 & 0.3055306031229 & 0.6110612062458 & 0.6944693968771 \tabularnewline
15 & 0.240745426918922 & 0.481490853837845 & 0.759254573081078 \tabularnewline
16 & 0.184409602648946 & 0.368819205297892 & 0.815590397351054 \tabularnewline
17 & 0.138599073278913 & 0.277198146557826 & 0.861400926721087 \tabularnewline
18 & 0.10458212318089 & 0.20916424636178 & 0.89541787681911 \tabularnewline
19 & 0.119676130115015 & 0.239352260230030 & 0.880323869884985 \tabularnewline
20 & 0.154153124885371 & 0.308306249770741 & 0.84584687511463 \tabularnewline
21 & 0.170057618056408 & 0.340115236112817 & 0.829942381943592 \tabularnewline
22 & 0.179607513238382 & 0.359215026476765 & 0.820392486761618 \tabularnewline
23 & 0.271655956751795 & 0.543311913503591 & 0.728344043248205 \tabularnewline
24 & 0.397988442928198 & 0.795976885856396 & 0.602011557071802 \tabularnewline
25 & 0.428435394280229 & 0.856870788560459 & 0.571564605719771 \tabularnewline
26 & 0.40120862374756 & 0.80241724749512 & 0.59879137625244 \tabularnewline
27 & 0.366417804315649 & 0.732835608631298 & 0.633582195684351 \tabularnewline
28 & 0.324928237237658 & 0.649856474475315 & 0.675071762762342 \tabularnewline
29 & 0.286771743179940 & 0.573543486359881 & 0.71322825682006 \tabularnewline
30 & 0.251772067249733 & 0.503544134499467 & 0.748227932750267 \tabularnewline
31 & 0.266201747243848 & 0.532403494487696 & 0.733798252756152 \tabularnewline
32 & 0.288333399602041 & 0.576666799204083 & 0.711666600397959 \tabularnewline
33 & 0.288882592413286 & 0.577765184826572 & 0.711117407586714 \tabularnewline
34 & 0.336751651207266 & 0.673503302414533 & 0.663248348792734 \tabularnewline
35 & 0.511313736324411 & 0.977372527351179 & 0.488686263675589 \tabularnewline
36 & 0.743488161083763 & 0.513023677832474 & 0.256511838916237 \tabularnewline
37 & 0.804548186163147 & 0.390903627673707 & 0.195451813836853 \tabularnewline
38 & 0.803556248308095 & 0.39288750338381 & 0.196443751691905 \tabularnewline
39 & 0.79024156042931 & 0.419516879141382 & 0.209758439570691 \tabularnewline
40 & 0.769195523678464 & 0.461608952643072 & 0.230804476321536 \tabularnewline
41 & 0.738531481352353 & 0.522937037295295 & 0.261468518647647 \tabularnewline
42 & 0.70210854221772 & 0.595782915564561 & 0.297891457782280 \tabularnewline
43 & 0.722305582452293 & 0.555388835095413 & 0.277694417547707 \tabularnewline
44 & 0.791709936332908 & 0.416580127334184 & 0.208290063667092 \tabularnewline
45 & 0.852761771397939 & 0.294476457204122 & 0.147238228602061 \tabularnewline
46 & 0.840418339385905 & 0.319163321228190 & 0.159581660614095 \tabularnewline
47 & 0.88789518233487 & 0.224209635330260 & 0.112104817665130 \tabularnewline
48 & 0.904456875975893 & 0.191086248048215 & 0.0955431240241075 \tabularnewline
49 & 0.88371983409409 & 0.232560331811821 & 0.116280165905910 \tabularnewline
50 & 0.8389297083051 & 0.3221405833898 & 0.1610702916949 \tabularnewline
51 & 0.778724491909742 & 0.442551016180515 & 0.221275508090258 \tabularnewline
52 & 0.701509831604984 & 0.596980336790032 & 0.298490168395016 \tabularnewline
53 & 0.60579655959426 & 0.78840688081148 & 0.39420344040574 \tabularnewline
54 & 0.492213540308983 & 0.984427080617967 & 0.507786459691017 \tabularnewline
55 & 0.438809874308041 & 0.877619748616082 & 0.561190125691959 \tabularnewline
56 & 0.585544667039853 & 0.828910665920295 & 0.414455332960148 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25689&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]5[/C][C]0.0252774868245957[/C][C]0.0505549736491914[/C][C]0.974722513175404[/C][/ROW]
[ROW][C]6[/C][C]0.0146942261505928[/C][C]0.0293884523011856[/C][C]0.985305773849407[/C][/ROW]
[ROW][C]7[/C][C]0.0601377091270239[/C][C]0.120275418254048[/C][C]0.939862290872976[/C][/ROW]
[ROW][C]8[/C][C]0.0990237452866827[/C][C]0.198047490573365[/C][C]0.900976254713317[/C][/ROW]
[ROW][C]9[/C][C]0.0855650653002379[/C][C]0.171130130600476[/C][C]0.914434934699762[/C][/ROW]
[ROW][C]10[/C][C]0.146301922183852[/C][C]0.292603844367704[/C][C]0.853698077816148[/C][/ROW]
[ROW][C]11[/C][C]0.298245936871677[/C][C]0.596491873743354[/C][C]0.701754063128323[/C][/ROW]
[ROW][C]12[/C][C]0.411035962451586[/C][C]0.822071924903173[/C][C]0.588964037548414[/C][/ROW]
[ROW][C]13[/C][C]0.379036752137094[/C][C]0.758073504274188[/C][C]0.620963247862906[/C][/ROW]
[ROW][C]14[/C][C]0.3055306031229[/C][C]0.6110612062458[/C][C]0.6944693968771[/C][/ROW]
[ROW][C]15[/C][C]0.240745426918922[/C][C]0.481490853837845[/C][C]0.759254573081078[/C][/ROW]
[ROW][C]16[/C][C]0.184409602648946[/C][C]0.368819205297892[/C][C]0.815590397351054[/C][/ROW]
[ROW][C]17[/C][C]0.138599073278913[/C][C]0.277198146557826[/C][C]0.861400926721087[/C][/ROW]
[ROW][C]18[/C][C]0.10458212318089[/C][C]0.20916424636178[/C][C]0.89541787681911[/C][/ROW]
[ROW][C]19[/C][C]0.119676130115015[/C][C]0.239352260230030[/C][C]0.880323869884985[/C][/ROW]
[ROW][C]20[/C][C]0.154153124885371[/C][C]0.308306249770741[/C][C]0.84584687511463[/C][/ROW]
[ROW][C]21[/C][C]0.170057618056408[/C][C]0.340115236112817[/C][C]0.829942381943592[/C][/ROW]
[ROW][C]22[/C][C]0.179607513238382[/C][C]0.359215026476765[/C][C]0.820392486761618[/C][/ROW]
[ROW][C]23[/C][C]0.271655956751795[/C][C]0.543311913503591[/C][C]0.728344043248205[/C][/ROW]
[ROW][C]24[/C][C]0.397988442928198[/C][C]0.795976885856396[/C][C]0.602011557071802[/C][/ROW]
[ROW][C]25[/C][C]0.428435394280229[/C][C]0.856870788560459[/C][C]0.571564605719771[/C][/ROW]
[ROW][C]26[/C][C]0.40120862374756[/C][C]0.80241724749512[/C][C]0.59879137625244[/C][/ROW]
[ROW][C]27[/C][C]0.366417804315649[/C][C]0.732835608631298[/C][C]0.633582195684351[/C][/ROW]
[ROW][C]28[/C][C]0.324928237237658[/C][C]0.649856474475315[/C][C]0.675071762762342[/C][/ROW]
[ROW][C]29[/C][C]0.286771743179940[/C][C]0.573543486359881[/C][C]0.71322825682006[/C][/ROW]
[ROW][C]30[/C][C]0.251772067249733[/C][C]0.503544134499467[/C][C]0.748227932750267[/C][/ROW]
[ROW][C]31[/C][C]0.266201747243848[/C][C]0.532403494487696[/C][C]0.733798252756152[/C][/ROW]
[ROW][C]32[/C][C]0.288333399602041[/C][C]0.576666799204083[/C][C]0.711666600397959[/C][/ROW]
[ROW][C]33[/C][C]0.288882592413286[/C][C]0.577765184826572[/C][C]0.711117407586714[/C][/ROW]
[ROW][C]34[/C][C]0.336751651207266[/C][C]0.673503302414533[/C][C]0.663248348792734[/C][/ROW]
[ROW][C]35[/C][C]0.511313736324411[/C][C]0.977372527351179[/C][C]0.488686263675589[/C][/ROW]
[ROW][C]36[/C][C]0.743488161083763[/C][C]0.513023677832474[/C][C]0.256511838916237[/C][/ROW]
[ROW][C]37[/C][C]0.804548186163147[/C][C]0.390903627673707[/C][C]0.195451813836853[/C][/ROW]
[ROW][C]38[/C][C]0.803556248308095[/C][C]0.39288750338381[/C][C]0.196443751691905[/C][/ROW]
[ROW][C]39[/C][C]0.79024156042931[/C][C]0.419516879141382[/C][C]0.209758439570691[/C][/ROW]
[ROW][C]40[/C][C]0.769195523678464[/C][C]0.461608952643072[/C][C]0.230804476321536[/C][/ROW]
[ROW][C]41[/C][C]0.738531481352353[/C][C]0.522937037295295[/C][C]0.261468518647647[/C][/ROW]
[ROW][C]42[/C][C]0.70210854221772[/C][C]0.595782915564561[/C][C]0.297891457782280[/C][/ROW]
[ROW][C]43[/C][C]0.722305582452293[/C][C]0.555388835095413[/C][C]0.277694417547707[/C][/ROW]
[ROW][C]44[/C][C]0.791709936332908[/C][C]0.416580127334184[/C][C]0.208290063667092[/C][/ROW]
[ROW][C]45[/C][C]0.852761771397939[/C][C]0.294476457204122[/C][C]0.147238228602061[/C][/ROW]
[ROW][C]46[/C][C]0.840418339385905[/C][C]0.319163321228190[/C][C]0.159581660614095[/C][/ROW]
[ROW][C]47[/C][C]0.88789518233487[/C][C]0.224209635330260[/C][C]0.112104817665130[/C][/ROW]
[ROW][C]48[/C][C]0.904456875975893[/C][C]0.191086248048215[/C][C]0.0955431240241075[/C][/ROW]
[ROW][C]49[/C][C]0.88371983409409[/C][C]0.232560331811821[/C][C]0.116280165905910[/C][/ROW]
[ROW][C]50[/C][C]0.8389297083051[/C][C]0.3221405833898[/C][C]0.1610702916949[/C][/ROW]
[ROW][C]51[/C][C]0.778724491909742[/C][C]0.442551016180515[/C][C]0.221275508090258[/C][/ROW]
[ROW][C]52[/C][C]0.701509831604984[/C][C]0.596980336790032[/C][C]0.298490168395016[/C][/ROW]
[ROW][C]53[/C][C]0.60579655959426[/C][C]0.78840688081148[/C][C]0.39420344040574[/C][/ROW]
[ROW][C]54[/C][C]0.492213540308983[/C][C]0.984427080617967[/C][C]0.507786459691017[/C][/ROW]
[ROW][C]55[/C][C]0.438809874308041[/C][C]0.877619748616082[/C][C]0.561190125691959[/C][/ROW]
[ROW][C]56[/C][C]0.585544667039853[/C][C]0.828910665920295[/C][C]0.414455332960148[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25689&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25689&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
50.02527748682459570.05055497364919140.974722513175404
60.01469422615059280.02938845230118560.985305773849407
70.06013770912702390.1202754182540480.939862290872976
80.09902374528668270.1980474905733650.900976254713317
90.08556506530023790.1711301306004760.914434934699762
100.1463019221838520.2926038443677040.853698077816148
110.2982459368716770.5964918737433540.701754063128323
120.4110359624515860.8220719249031730.588964037548414
130.3790367521370940.7580735042741880.620963247862906
140.30553060312290.61106120624580.6944693968771
150.2407454269189220.4814908538378450.759254573081078
160.1844096026489460.3688192052978920.815590397351054
170.1385990732789130.2771981465578260.861400926721087
180.104582123180890.209164246361780.89541787681911
190.1196761301150150.2393522602300300.880323869884985
200.1541531248853710.3083062497707410.84584687511463
210.1700576180564080.3401152361128170.829942381943592
220.1796075132383820.3592150264767650.820392486761618
230.2716559567517950.5433119135035910.728344043248205
240.3979884429281980.7959768858563960.602011557071802
250.4284353942802290.8568707885604590.571564605719771
260.401208623747560.802417247495120.59879137625244
270.3664178043156490.7328356086312980.633582195684351
280.3249282372376580.6498564744753150.675071762762342
290.2867717431799400.5735434863598810.71322825682006
300.2517720672497330.5035441344994670.748227932750267
310.2662017472438480.5324034944876960.733798252756152
320.2883333996020410.5766667992040830.711666600397959
330.2888825924132860.5777651848265720.711117407586714
340.3367516512072660.6735033024145330.663248348792734
350.5113137363244110.9773725273511790.488686263675589
360.7434881610837630.5130236778324740.256511838916237
370.8045481861631470.3909036276737070.195451813836853
380.8035562483080950.392887503383810.196443751691905
390.790241560429310.4195168791413820.209758439570691
400.7691955236784640.4616089526430720.230804476321536
410.7385314813523530.5229370372952950.261468518647647
420.702108542217720.5957829155645610.297891457782280
430.7223055824522930.5553888350954130.277694417547707
440.7917099363329080.4165801273341840.208290063667092
450.8527617713979390.2944764572041220.147238228602061
460.8404183393859050.3191633212281900.159581660614095
470.887895182334870.2242096353302600.112104817665130
480.9044568759758930.1910862480482150.0955431240241075
490.883719834094090.2325603318118210.116280165905910
500.83892970830510.32214058338980.1610702916949
510.7787244919097420.4425510161805150.221275508090258
520.7015098316049840.5969803367900320.298490168395016
530.605796559594260.788406880811480.39420344040574
540.4922135403089830.9844270806179670.507786459691017
550.4388098743080410.8776197486160820.561190125691959
560.5855446670398530.8289106659202950.414455332960148







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

\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 & 1 & 0.0192307692307692 & OK \tabularnewline
10% type I error level & 2 & 0.0384615384615385 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25689&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]1[/C][C]0.0192307692307692[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]2[/C][C]0.0384615384615385[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25689&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25689&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 level10.0192307692307692OK
10% type I error level20.0384615384615385OK



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