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 computationThu, 19 Nov 2009 11:27:50 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/19/t1258655661wqqcw85b65x5r9h.htm/, Retrieved Fri, 19 Apr 2024 13:52:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57882, Retrieved Fri, 19 Apr 2024 13:52:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWorkshop 7 link 1
Estimated Impact152
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [Workshop 7] [2009-11-19 18:27:50] [100339cefec36dfa6f2b82a1c918e250] [Current]
Feedback Forum

Post a new message
Dataseries X:
449	0
452	0
462	0
455	0
461	0
461	0
463	0
462	0
456	0
455	0
456	0
472	0
472	0
471	0
465	0
459	0
465	0
468	0
467	0
463	0
460	0
462	0
461	0
476	0
476	0
471	0
453	0
443	0
442	0
444	0
438	0
427	0
424	0
416	0
406	0
431	0
434	0
418	0
412	0
404	0
409	0
412	1
406	1
398	1
397	1
385	1
390	1
413	1
413	1
401	1
397	1
397	1
409	1
419	1
424	1
428	1
430	1
424	1
433	1
456	1
459	1




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 9 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57882&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57882&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57882&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'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 449.780487804878 -35.2304878048781X[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  449.780487804878 -35.2304878048781X[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57882&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  449.780487804878 -35.2304878048781X[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57882&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57882&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] = + 449.780487804878 -35.2304878048781X[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)449.7804878048783.202545140.444700
X-35.23048780487815.593004-6.29900

\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) & 449.780487804878 & 3.202545 & 140.4447 & 0 & 0 \tabularnewline
X & -35.2304878048781 & 5.593004 & -6.299 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57882&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]449.780487804878[/C][C]3.202545[/C][C]140.4447[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-35.2304878048781[/C][C]5.593004[/C][C]-6.299[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57882&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57882&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)449.7804878048783.202545140.444700
X-35.23048780487815.593004-6.29900







Multiple Linear Regression - Regression Statistics
Multiple R0.634108968973948
R-squared0.402094184533203
Adjusted R-squared0.391960187660885
F-TEST (value)39.6777490263036
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value4.10346300272479e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation20.5062927052310
Sum Squared Residuals24809.9743902439

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.634108968973948 \tabularnewline
R-squared & 0.402094184533203 \tabularnewline
Adjusted R-squared & 0.391960187660885 \tabularnewline
F-TEST (value) & 39.6777490263036 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 59 \tabularnewline
p-value & 4.10346300272479e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 20.5062927052310 \tabularnewline
Sum Squared Residuals & 24809.9743902439 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57882&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.634108968973948[/C][/ROW]
[ROW][C]R-squared[/C][C]0.402094184533203[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.391960187660885[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]39.6777490263036[/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]4.10346300272479e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]20.5062927052310[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]24809.9743902439[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57882&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57882&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.634108968973948
R-squared0.402094184533203
Adjusted R-squared0.391960187660885
F-TEST (value)39.6777490263036
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value4.10346300272479e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation20.5062927052310
Sum Squared Residuals24809.9743902439







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1449449.780487804878-0.780487804877668
2452449.7804878048782.21951219512193
3462449.78048780487812.2195121951219
4455449.7804878048785.21951219512194
5461449.78048780487811.2195121951219
6461449.78048780487811.2195121951219
7463449.78048780487813.2195121951219
8462449.78048780487812.2195121951219
9456449.7804878048786.21951219512194
10455449.7804878048785.21951219512194
11456449.7804878048786.21951219512194
12472449.78048780487822.2195121951219
13472449.78048780487822.2195121951219
14471449.78048780487821.2195121951219
15465449.78048780487815.2195121951219
16459449.7804878048789.21951219512194
17465449.78048780487815.2195121951219
18468449.78048780487818.2195121951219
19467449.78048780487817.2195121951219
20463449.78048780487813.2195121951219
21460449.78048780487810.2195121951219
22462449.78048780487812.2195121951219
23461449.78048780487811.2195121951219
24476449.78048780487826.2195121951219
25476449.78048780487826.2195121951219
26471449.78048780487821.2195121951219
27453449.7804878048783.21951219512194
28443449.780487804878-6.78048780487806
29442449.780487804878-7.78048780487806
30444449.780487804878-5.78048780487806
31438449.780487804878-11.7804878048781
32427449.780487804878-22.7804878048781
33424449.780487804878-25.7804878048781
34416449.780487804878-33.7804878048781
35406449.780487804878-43.7804878048781
36431449.780487804878-18.7804878048781
37434449.780487804878-15.7804878048781
38418449.780487804878-31.7804878048781
39412449.780487804878-37.7804878048781
40404449.780487804878-45.7804878048781
41409449.780487804878-40.7804878048781
42412414.55-2.55
43406414.55-8.55
44398414.55-16.55
45397414.55-17.55
46385414.55-29.55
47390414.55-24.55
48413414.55-1.55
49413414.55-1.55
50401414.55-13.55
51397414.55-17.55
52397414.55-17.55
53409414.55-5.55
54419414.554.45
55424414.559.45
56428414.5513.45
57430414.5515.45
58424414.559.45
59433414.5518.45
60456414.5541.45
61459414.5544.45

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 449 & 449.780487804878 & -0.780487804877668 \tabularnewline
2 & 452 & 449.780487804878 & 2.21951219512193 \tabularnewline
3 & 462 & 449.780487804878 & 12.2195121951219 \tabularnewline
4 & 455 & 449.780487804878 & 5.21951219512194 \tabularnewline
5 & 461 & 449.780487804878 & 11.2195121951219 \tabularnewline
6 & 461 & 449.780487804878 & 11.2195121951219 \tabularnewline
7 & 463 & 449.780487804878 & 13.2195121951219 \tabularnewline
8 & 462 & 449.780487804878 & 12.2195121951219 \tabularnewline
9 & 456 & 449.780487804878 & 6.21951219512194 \tabularnewline
10 & 455 & 449.780487804878 & 5.21951219512194 \tabularnewline
11 & 456 & 449.780487804878 & 6.21951219512194 \tabularnewline
12 & 472 & 449.780487804878 & 22.2195121951219 \tabularnewline
13 & 472 & 449.780487804878 & 22.2195121951219 \tabularnewline
14 & 471 & 449.780487804878 & 21.2195121951219 \tabularnewline
15 & 465 & 449.780487804878 & 15.2195121951219 \tabularnewline
16 & 459 & 449.780487804878 & 9.21951219512194 \tabularnewline
17 & 465 & 449.780487804878 & 15.2195121951219 \tabularnewline
18 & 468 & 449.780487804878 & 18.2195121951219 \tabularnewline
19 & 467 & 449.780487804878 & 17.2195121951219 \tabularnewline
20 & 463 & 449.780487804878 & 13.2195121951219 \tabularnewline
21 & 460 & 449.780487804878 & 10.2195121951219 \tabularnewline
22 & 462 & 449.780487804878 & 12.2195121951219 \tabularnewline
23 & 461 & 449.780487804878 & 11.2195121951219 \tabularnewline
24 & 476 & 449.780487804878 & 26.2195121951219 \tabularnewline
25 & 476 & 449.780487804878 & 26.2195121951219 \tabularnewline
26 & 471 & 449.780487804878 & 21.2195121951219 \tabularnewline
27 & 453 & 449.780487804878 & 3.21951219512194 \tabularnewline
28 & 443 & 449.780487804878 & -6.78048780487806 \tabularnewline
29 & 442 & 449.780487804878 & -7.78048780487806 \tabularnewline
30 & 444 & 449.780487804878 & -5.78048780487806 \tabularnewline
31 & 438 & 449.780487804878 & -11.7804878048781 \tabularnewline
32 & 427 & 449.780487804878 & -22.7804878048781 \tabularnewline
33 & 424 & 449.780487804878 & -25.7804878048781 \tabularnewline
34 & 416 & 449.780487804878 & -33.7804878048781 \tabularnewline
35 & 406 & 449.780487804878 & -43.7804878048781 \tabularnewline
36 & 431 & 449.780487804878 & -18.7804878048781 \tabularnewline
37 & 434 & 449.780487804878 & -15.7804878048781 \tabularnewline
38 & 418 & 449.780487804878 & -31.7804878048781 \tabularnewline
39 & 412 & 449.780487804878 & -37.7804878048781 \tabularnewline
40 & 404 & 449.780487804878 & -45.7804878048781 \tabularnewline
41 & 409 & 449.780487804878 & -40.7804878048781 \tabularnewline
42 & 412 & 414.55 & -2.55 \tabularnewline
43 & 406 & 414.55 & -8.55 \tabularnewline
44 & 398 & 414.55 & -16.55 \tabularnewline
45 & 397 & 414.55 & -17.55 \tabularnewline
46 & 385 & 414.55 & -29.55 \tabularnewline
47 & 390 & 414.55 & -24.55 \tabularnewline
48 & 413 & 414.55 & -1.55 \tabularnewline
49 & 413 & 414.55 & -1.55 \tabularnewline
50 & 401 & 414.55 & -13.55 \tabularnewline
51 & 397 & 414.55 & -17.55 \tabularnewline
52 & 397 & 414.55 & -17.55 \tabularnewline
53 & 409 & 414.55 & -5.55 \tabularnewline
54 & 419 & 414.55 & 4.45 \tabularnewline
55 & 424 & 414.55 & 9.45 \tabularnewline
56 & 428 & 414.55 & 13.45 \tabularnewline
57 & 430 & 414.55 & 15.45 \tabularnewline
58 & 424 & 414.55 & 9.45 \tabularnewline
59 & 433 & 414.55 & 18.45 \tabularnewline
60 & 456 & 414.55 & 41.45 \tabularnewline
61 & 459 & 414.55 & 44.45 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57882&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]449[/C][C]449.780487804878[/C][C]-0.780487804877668[/C][/ROW]
[ROW][C]2[/C][C]452[/C][C]449.780487804878[/C][C]2.21951219512193[/C][/ROW]
[ROW][C]3[/C][C]462[/C][C]449.780487804878[/C][C]12.2195121951219[/C][/ROW]
[ROW][C]4[/C][C]455[/C][C]449.780487804878[/C][C]5.21951219512194[/C][/ROW]
[ROW][C]5[/C][C]461[/C][C]449.780487804878[/C][C]11.2195121951219[/C][/ROW]
[ROW][C]6[/C][C]461[/C][C]449.780487804878[/C][C]11.2195121951219[/C][/ROW]
[ROW][C]7[/C][C]463[/C][C]449.780487804878[/C][C]13.2195121951219[/C][/ROW]
[ROW][C]8[/C][C]462[/C][C]449.780487804878[/C][C]12.2195121951219[/C][/ROW]
[ROW][C]9[/C][C]456[/C][C]449.780487804878[/C][C]6.21951219512194[/C][/ROW]
[ROW][C]10[/C][C]455[/C][C]449.780487804878[/C][C]5.21951219512194[/C][/ROW]
[ROW][C]11[/C][C]456[/C][C]449.780487804878[/C][C]6.21951219512194[/C][/ROW]
[ROW][C]12[/C][C]472[/C][C]449.780487804878[/C][C]22.2195121951219[/C][/ROW]
[ROW][C]13[/C][C]472[/C][C]449.780487804878[/C][C]22.2195121951219[/C][/ROW]
[ROW][C]14[/C][C]471[/C][C]449.780487804878[/C][C]21.2195121951219[/C][/ROW]
[ROW][C]15[/C][C]465[/C][C]449.780487804878[/C][C]15.2195121951219[/C][/ROW]
[ROW][C]16[/C][C]459[/C][C]449.780487804878[/C][C]9.21951219512194[/C][/ROW]
[ROW][C]17[/C][C]465[/C][C]449.780487804878[/C][C]15.2195121951219[/C][/ROW]
[ROW][C]18[/C][C]468[/C][C]449.780487804878[/C][C]18.2195121951219[/C][/ROW]
[ROW][C]19[/C][C]467[/C][C]449.780487804878[/C][C]17.2195121951219[/C][/ROW]
[ROW][C]20[/C][C]463[/C][C]449.780487804878[/C][C]13.2195121951219[/C][/ROW]
[ROW][C]21[/C][C]460[/C][C]449.780487804878[/C][C]10.2195121951219[/C][/ROW]
[ROW][C]22[/C][C]462[/C][C]449.780487804878[/C][C]12.2195121951219[/C][/ROW]
[ROW][C]23[/C][C]461[/C][C]449.780487804878[/C][C]11.2195121951219[/C][/ROW]
[ROW][C]24[/C][C]476[/C][C]449.780487804878[/C][C]26.2195121951219[/C][/ROW]
[ROW][C]25[/C][C]476[/C][C]449.780487804878[/C][C]26.2195121951219[/C][/ROW]
[ROW][C]26[/C][C]471[/C][C]449.780487804878[/C][C]21.2195121951219[/C][/ROW]
[ROW][C]27[/C][C]453[/C][C]449.780487804878[/C][C]3.21951219512194[/C][/ROW]
[ROW][C]28[/C][C]443[/C][C]449.780487804878[/C][C]-6.78048780487806[/C][/ROW]
[ROW][C]29[/C][C]442[/C][C]449.780487804878[/C][C]-7.78048780487806[/C][/ROW]
[ROW][C]30[/C][C]444[/C][C]449.780487804878[/C][C]-5.78048780487806[/C][/ROW]
[ROW][C]31[/C][C]438[/C][C]449.780487804878[/C][C]-11.7804878048781[/C][/ROW]
[ROW][C]32[/C][C]427[/C][C]449.780487804878[/C][C]-22.7804878048781[/C][/ROW]
[ROW][C]33[/C][C]424[/C][C]449.780487804878[/C][C]-25.7804878048781[/C][/ROW]
[ROW][C]34[/C][C]416[/C][C]449.780487804878[/C][C]-33.7804878048781[/C][/ROW]
[ROW][C]35[/C][C]406[/C][C]449.780487804878[/C][C]-43.7804878048781[/C][/ROW]
[ROW][C]36[/C][C]431[/C][C]449.780487804878[/C][C]-18.7804878048781[/C][/ROW]
[ROW][C]37[/C][C]434[/C][C]449.780487804878[/C][C]-15.7804878048781[/C][/ROW]
[ROW][C]38[/C][C]418[/C][C]449.780487804878[/C][C]-31.7804878048781[/C][/ROW]
[ROW][C]39[/C][C]412[/C][C]449.780487804878[/C][C]-37.7804878048781[/C][/ROW]
[ROW][C]40[/C][C]404[/C][C]449.780487804878[/C][C]-45.7804878048781[/C][/ROW]
[ROW][C]41[/C][C]409[/C][C]449.780487804878[/C][C]-40.7804878048781[/C][/ROW]
[ROW][C]42[/C][C]412[/C][C]414.55[/C][C]-2.55[/C][/ROW]
[ROW][C]43[/C][C]406[/C][C]414.55[/C][C]-8.55[/C][/ROW]
[ROW][C]44[/C][C]398[/C][C]414.55[/C][C]-16.55[/C][/ROW]
[ROW][C]45[/C][C]397[/C][C]414.55[/C][C]-17.55[/C][/ROW]
[ROW][C]46[/C][C]385[/C][C]414.55[/C][C]-29.55[/C][/ROW]
[ROW][C]47[/C][C]390[/C][C]414.55[/C][C]-24.55[/C][/ROW]
[ROW][C]48[/C][C]413[/C][C]414.55[/C][C]-1.55[/C][/ROW]
[ROW][C]49[/C][C]413[/C][C]414.55[/C][C]-1.55[/C][/ROW]
[ROW][C]50[/C][C]401[/C][C]414.55[/C][C]-13.55[/C][/ROW]
[ROW][C]51[/C][C]397[/C][C]414.55[/C][C]-17.55[/C][/ROW]
[ROW][C]52[/C][C]397[/C][C]414.55[/C][C]-17.55[/C][/ROW]
[ROW][C]53[/C][C]409[/C][C]414.55[/C][C]-5.55[/C][/ROW]
[ROW][C]54[/C][C]419[/C][C]414.55[/C][C]4.45[/C][/ROW]
[ROW][C]55[/C][C]424[/C][C]414.55[/C][C]9.45[/C][/ROW]
[ROW][C]56[/C][C]428[/C][C]414.55[/C][C]13.45[/C][/ROW]
[ROW][C]57[/C][C]430[/C][C]414.55[/C][C]15.45[/C][/ROW]
[ROW][C]58[/C][C]424[/C][C]414.55[/C][C]9.45[/C][/ROW]
[ROW][C]59[/C][C]433[/C][C]414.55[/C][C]18.45[/C][/ROW]
[ROW][C]60[/C][C]456[/C][C]414.55[/C][C]41.45[/C][/ROW]
[ROW][C]61[/C][C]459[/C][C]414.55[/C][C]44.45[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57882&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57882&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
1449449.780487804878-0.780487804877668
2452449.7804878048782.21951219512193
3462449.78048780487812.2195121951219
4455449.7804878048785.21951219512194
5461449.78048780487811.2195121951219
6461449.78048780487811.2195121951219
7463449.78048780487813.2195121951219
8462449.78048780487812.2195121951219
9456449.7804878048786.21951219512194
10455449.7804878048785.21951219512194
11456449.7804878048786.21951219512194
12472449.78048780487822.2195121951219
13472449.78048780487822.2195121951219
14471449.78048780487821.2195121951219
15465449.78048780487815.2195121951219
16459449.7804878048789.21951219512194
17465449.78048780487815.2195121951219
18468449.78048780487818.2195121951219
19467449.78048780487817.2195121951219
20463449.78048780487813.2195121951219
21460449.78048780487810.2195121951219
22462449.78048780487812.2195121951219
23461449.78048780487811.2195121951219
24476449.78048780487826.2195121951219
25476449.78048780487826.2195121951219
26471449.78048780487821.2195121951219
27453449.7804878048783.21951219512194
28443449.780487804878-6.78048780487806
29442449.780487804878-7.78048780487806
30444449.780487804878-5.78048780487806
31438449.780487804878-11.7804878048781
32427449.780487804878-22.7804878048781
33424449.780487804878-25.7804878048781
34416449.780487804878-33.7804878048781
35406449.780487804878-43.7804878048781
36431449.780487804878-18.7804878048781
37434449.780487804878-15.7804878048781
38418449.780487804878-31.7804878048781
39412449.780487804878-37.7804878048781
40404449.780487804878-45.7804878048781
41409449.780487804878-40.7804878048781
42412414.55-2.55
43406414.55-8.55
44398414.55-16.55
45397414.55-17.55
46385414.55-29.55
47390414.55-24.55
48413414.55-1.55
49413414.55-1.55
50401414.55-13.55
51397414.55-17.55
52397414.55-17.55
53409414.55-5.55
54419414.554.45
55424414.559.45
56428414.5513.45
57430414.5515.45
58424414.559.45
59433414.5518.45
60456414.5541.45
61459414.5544.45







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.03654574948909230.07309149897818450.963454250510908
60.01223223075536520.02446446151073040.987767769244635
70.004835016173830410.009670032347660820.99516498382617
80.001535981427401050.003071962854802110.9984640185726
90.0003868651715359130.0007737303430718250.999613134828464
109.85118513328107e-050.0001970237026656210.999901488148667
112.20062579253031e-054.40125158506062e-050.999977993742075
120.0001028636508153650.0002057273016307310.999897136349185
130.0001703818651785360.0003407637303570720.999829618134821
140.0001644566477335040.0003289132954670090.999835543352267
156.87033687295073e-050.0001374067374590150.99993129663127
162.35871625770702e-054.71743251541404e-050.999976412837423
179.79013755920998e-061.95802751184200e-050.99999020986244
185.75944391306233e-061.15188878261247e-050.999994240556087
193.00640034926704e-066.01280069853408e-060.99999699359965
201.15355885451280e-062.30711770902559e-060.999998846441146
214.29430240532961e-078.58860481065923e-070.99999957056976
221.67359084995566e-073.34718169991133e-070.999999832640915
236.67136756015768e-081.33427351203154e-070.999999933286324
244.41801586339043e-078.83603172678087e-070.999999558198414
252.74269899978629e-065.48539799957258e-060.999997257301
266.96312430953272e-061.39262486190654e-050.99999303687569
271.04245235985521e-052.08490471971042e-050.999989575476401
285.74433731216712e-050.0001148867462433420.999942556626878
290.0002216320149863710.0004432640299727420.999778367985014
300.000532462817882670.001064925635765340.999467537182117
310.001814080114952410.003628160229904830.998185919885048
320.01084948925361730.02169897850723460.989150510746383
330.03651897023725320.07303794047450640.963481029762747
340.1091589630816230.2183179261632450.890841036918377
350.2865272858809890.5730545717619770.713472714119011
360.2961616049507930.5923232099015870.703838395049207
370.3154562859917370.6309125719834740.684543714008263
380.3619227917325310.7238455834650620.638077208267469
390.4187811803306790.8375623606613570.581218819669321
400.4972017651703750.994403530340750.502798234829625
410.5187113981610750.962577203677850.481288601838925
420.4373670617148880.8747341234297770.562632938285112
430.3673148753754520.7346297507509030.632685124624548
440.3303753512001150.660750702400230.669624648799885
450.3026210930850240.6052421861700490.697378906914976
460.3846254110155900.7692508220311810.615374588984410
470.4520494784532190.9040989569064380.547950521546781
480.3824388815650080.7648777631300150.617561118434993
490.3140131541406930.6280263082813870.685986845859307
500.3130089361227820.6260178722455640.686991063877218
510.386211805295330.772423610590660.61378819470467
520.5520010671907110.8959978656185780.447998932809289
530.6163476625742560.7673046748514890.383652337425744
540.5903536918948030.8192926162103930.409646308105197
550.5246996713052050.9506006573895890.475300328694795
560.4226973015744830.8453946031489660.577302698425517

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.0365457494890923 & 0.0730914989781845 & 0.963454250510908 \tabularnewline
6 & 0.0122322307553652 & 0.0244644615107304 & 0.987767769244635 \tabularnewline
7 & 0.00483501617383041 & 0.00967003234766082 & 0.99516498382617 \tabularnewline
8 & 0.00153598142740105 & 0.00307196285480211 & 0.9984640185726 \tabularnewline
9 & 0.000386865171535913 & 0.000773730343071825 & 0.999613134828464 \tabularnewline
10 & 9.85118513328107e-05 & 0.000197023702665621 & 0.999901488148667 \tabularnewline
11 & 2.20062579253031e-05 & 4.40125158506062e-05 & 0.999977993742075 \tabularnewline
12 & 0.000102863650815365 & 0.000205727301630731 & 0.999897136349185 \tabularnewline
13 & 0.000170381865178536 & 0.000340763730357072 & 0.999829618134821 \tabularnewline
14 & 0.000164456647733504 & 0.000328913295467009 & 0.999835543352267 \tabularnewline
15 & 6.87033687295073e-05 & 0.000137406737459015 & 0.99993129663127 \tabularnewline
16 & 2.35871625770702e-05 & 4.71743251541404e-05 & 0.999976412837423 \tabularnewline
17 & 9.79013755920998e-06 & 1.95802751184200e-05 & 0.99999020986244 \tabularnewline
18 & 5.75944391306233e-06 & 1.15188878261247e-05 & 0.999994240556087 \tabularnewline
19 & 3.00640034926704e-06 & 6.01280069853408e-06 & 0.99999699359965 \tabularnewline
20 & 1.15355885451280e-06 & 2.30711770902559e-06 & 0.999998846441146 \tabularnewline
21 & 4.29430240532961e-07 & 8.58860481065923e-07 & 0.99999957056976 \tabularnewline
22 & 1.67359084995566e-07 & 3.34718169991133e-07 & 0.999999832640915 \tabularnewline
23 & 6.67136756015768e-08 & 1.33427351203154e-07 & 0.999999933286324 \tabularnewline
24 & 4.41801586339043e-07 & 8.83603172678087e-07 & 0.999999558198414 \tabularnewline
25 & 2.74269899978629e-06 & 5.48539799957258e-06 & 0.999997257301 \tabularnewline
26 & 6.96312430953272e-06 & 1.39262486190654e-05 & 0.99999303687569 \tabularnewline
27 & 1.04245235985521e-05 & 2.08490471971042e-05 & 0.999989575476401 \tabularnewline
28 & 5.74433731216712e-05 & 0.000114886746243342 & 0.999942556626878 \tabularnewline
29 & 0.000221632014986371 & 0.000443264029972742 & 0.999778367985014 \tabularnewline
30 & 0.00053246281788267 & 0.00106492563576534 & 0.999467537182117 \tabularnewline
31 & 0.00181408011495241 & 0.00362816022990483 & 0.998185919885048 \tabularnewline
32 & 0.0108494892536173 & 0.0216989785072346 & 0.989150510746383 \tabularnewline
33 & 0.0365189702372532 & 0.0730379404745064 & 0.963481029762747 \tabularnewline
34 & 0.109158963081623 & 0.218317926163245 & 0.890841036918377 \tabularnewline
35 & 0.286527285880989 & 0.573054571761977 & 0.713472714119011 \tabularnewline
36 & 0.296161604950793 & 0.592323209901587 & 0.703838395049207 \tabularnewline
37 & 0.315456285991737 & 0.630912571983474 & 0.684543714008263 \tabularnewline
38 & 0.361922791732531 & 0.723845583465062 & 0.638077208267469 \tabularnewline
39 & 0.418781180330679 & 0.837562360661357 & 0.581218819669321 \tabularnewline
40 & 0.497201765170375 & 0.99440353034075 & 0.502798234829625 \tabularnewline
41 & 0.518711398161075 & 0.96257720367785 & 0.481288601838925 \tabularnewline
42 & 0.437367061714888 & 0.874734123429777 & 0.562632938285112 \tabularnewline
43 & 0.367314875375452 & 0.734629750750903 & 0.632685124624548 \tabularnewline
44 & 0.330375351200115 & 0.66075070240023 & 0.669624648799885 \tabularnewline
45 & 0.302621093085024 & 0.605242186170049 & 0.697378906914976 \tabularnewline
46 & 0.384625411015590 & 0.769250822031181 & 0.615374588984410 \tabularnewline
47 & 0.452049478453219 & 0.904098956906438 & 0.547950521546781 \tabularnewline
48 & 0.382438881565008 & 0.764877763130015 & 0.617561118434993 \tabularnewline
49 & 0.314013154140693 & 0.628026308281387 & 0.685986845859307 \tabularnewline
50 & 0.313008936122782 & 0.626017872245564 & 0.686991063877218 \tabularnewline
51 & 0.38621180529533 & 0.77242361059066 & 0.61378819470467 \tabularnewline
52 & 0.552001067190711 & 0.895997865618578 & 0.447998932809289 \tabularnewline
53 & 0.616347662574256 & 0.767304674851489 & 0.383652337425744 \tabularnewline
54 & 0.590353691894803 & 0.819292616210393 & 0.409646308105197 \tabularnewline
55 & 0.524699671305205 & 0.950600657389589 & 0.475300328694795 \tabularnewline
56 & 0.422697301574483 & 0.845394603148966 & 0.577302698425517 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57882&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.0365457494890923[/C][C]0.0730914989781845[/C][C]0.963454250510908[/C][/ROW]
[ROW][C]6[/C][C]0.0122322307553652[/C][C]0.0244644615107304[/C][C]0.987767769244635[/C][/ROW]
[ROW][C]7[/C][C]0.00483501617383041[/C][C]0.00967003234766082[/C][C]0.99516498382617[/C][/ROW]
[ROW][C]8[/C][C]0.00153598142740105[/C][C]0.00307196285480211[/C][C]0.9984640185726[/C][/ROW]
[ROW][C]9[/C][C]0.000386865171535913[/C][C]0.000773730343071825[/C][C]0.999613134828464[/C][/ROW]
[ROW][C]10[/C][C]9.85118513328107e-05[/C][C]0.000197023702665621[/C][C]0.999901488148667[/C][/ROW]
[ROW][C]11[/C][C]2.20062579253031e-05[/C][C]4.40125158506062e-05[/C][C]0.999977993742075[/C][/ROW]
[ROW][C]12[/C][C]0.000102863650815365[/C][C]0.000205727301630731[/C][C]0.999897136349185[/C][/ROW]
[ROW][C]13[/C][C]0.000170381865178536[/C][C]0.000340763730357072[/C][C]0.999829618134821[/C][/ROW]
[ROW][C]14[/C][C]0.000164456647733504[/C][C]0.000328913295467009[/C][C]0.999835543352267[/C][/ROW]
[ROW][C]15[/C][C]6.87033687295073e-05[/C][C]0.000137406737459015[/C][C]0.99993129663127[/C][/ROW]
[ROW][C]16[/C][C]2.35871625770702e-05[/C][C]4.71743251541404e-05[/C][C]0.999976412837423[/C][/ROW]
[ROW][C]17[/C][C]9.79013755920998e-06[/C][C]1.95802751184200e-05[/C][C]0.99999020986244[/C][/ROW]
[ROW][C]18[/C][C]5.75944391306233e-06[/C][C]1.15188878261247e-05[/C][C]0.999994240556087[/C][/ROW]
[ROW][C]19[/C][C]3.00640034926704e-06[/C][C]6.01280069853408e-06[/C][C]0.99999699359965[/C][/ROW]
[ROW][C]20[/C][C]1.15355885451280e-06[/C][C]2.30711770902559e-06[/C][C]0.999998846441146[/C][/ROW]
[ROW][C]21[/C][C]4.29430240532961e-07[/C][C]8.58860481065923e-07[/C][C]0.99999957056976[/C][/ROW]
[ROW][C]22[/C][C]1.67359084995566e-07[/C][C]3.34718169991133e-07[/C][C]0.999999832640915[/C][/ROW]
[ROW][C]23[/C][C]6.67136756015768e-08[/C][C]1.33427351203154e-07[/C][C]0.999999933286324[/C][/ROW]
[ROW][C]24[/C][C]4.41801586339043e-07[/C][C]8.83603172678087e-07[/C][C]0.999999558198414[/C][/ROW]
[ROW][C]25[/C][C]2.74269899978629e-06[/C][C]5.48539799957258e-06[/C][C]0.999997257301[/C][/ROW]
[ROW][C]26[/C][C]6.96312430953272e-06[/C][C]1.39262486190654e-05[/C][C]0.99999303687569[/C][/ROW]
[ROW][C]27[/C][C]1.04245235985521e-05[/C][C]2.08490471971042e-05[/C][C]0.999989575476401[/C][/ROW]
[ROW][C]28[/C][C]5.74433731216712e-05[/C][C]0.000114886746243342[/C][C]0.999942556626878[/C][/ROW]
[ROW][C]29[/C][C]0.000221632014986371[/C][C]0.000443264029972742[/C][C]0.999778367985014[/C][/ROW]
[ROW][C]30[/C][C]0.00053246281788267[/C][C]0.00106492563576534[/C][C]0.999467537182117[/C][/ROW]
[ROW][C]31[/C][C]0.00181408011495241[/C][C]0.00362816022990483[/C][C]0.998185919885048[/C][/ROW]
[ROW][C]32[/C][C]0.0108494892536173[/C][C]0.0216989785072346[/C][C]0.989150510746383[/C][/ROW]
[ROW][C]33[/C][C]0.0365189702372532[/C][C]0.0730379404745064[/C][C]0.963481029762747[/C][/ROW]
[ROW][C]34[/C][C]0.109158963081623[/C][C]0.218317926163245[/C][C]0.890841036918377[/C][/ROW]
[ROW][C]35[/C][C]0.286527285880989[/C][C]0.573054571761977[/C][C]0.713472714119011[/C][/ROW]
[ROW][C]36[/C][C]0.296161604950793[/C][C]0.592323209901587[/C][C]0.703838395049207[/C][/ROW]
[ROW][C]37[/C][C]0.315456285991737[/C][C]0.630912571983474[/C][C]0.684543714008263[/C][/ROW]
[ROW][C]38[/C][C]0.361922791732531[/C][C]0.723845583465062[/C][C]0.638077208267469[/C][/ROW]
[ROW][C]39[/C][C]0.418781180330679[/C][C]0.837562360661357[/C][C]0.581218819669321[/C][/ROW]
[ROW][C]40[/C][C]0.497201765170375[/C][C]0.99440353034075[/C][C]0.502798234829625[/C][/ROW]
[ROW][C]41[/C][C]0.518711398161075[/C][C]0.96257720367785[/C][C]0.481288601838925[/C][/ROW]
[ROW][C]42[/C][C]0.437367061714888[/C][C]0.874734123429777[/C][C]0.562632938285112[/C][/ROW]
[ROW][C]43[/C][C]0.367314875375452[/C][C]0.734629750750903[/C][C]0.632685124624548[/C][/ROW]
[ROW][C]44[/C][C]0.330375351200115[/C][C]0.66075070240023[/C][C]0.669624648799885[/C][/ROW]
[ROW][C]45[/C][C]0.302621093085024[/C][C]0.605242186170049[/C][C]0.697378906914976[/C][/ROW]
[ROW][C]46[/C][C]0.384625411015590[/C][C]0.769250822031181[/C][C]0.615374588984410[/C][/ROW]
[ROW][C]47[/C][C]0.452049478453219[/C][C]0.904098956906438[/C][C]0.547950521546781[/C][/ROW]
[ROW][C]48[/C][C]0.382438881565008[/C][C]0.764877763130015[/C][C]0.617561118434993[/C][/ROW]
[ROW][C]49[/C][C]0.314013154140693[/C][C]0.628026308281387[/C][C]0.685986845859307[/C][/ROW]
[ROW][C]50[/C][C]0.313008936122782[/C][C]0.626017872245564[/C][C]0.686991063877218[/C][/ROW]
[ROW][C]51[/C][C]0.38621180529533[/C][C]0.77242361059066[/C][C]0.61378819470467[/C][/ROW]
[ROW][C]52[/C][C]0.552001067190711[/C][C]0.895997865618578[/C][C]0.447998932809289[/C][/ROW]
[ROW][C]53[/C][C]0.616347662574256[/C][C]0.767304674851489[/C][C]0.383652337425744[/C][/ROW]
[ROW][C]54[/C][C]0.590353691894803[/C][C]0.819292616210393[/C][C]0.409646308105197[/C][/ROW]
[ROW][C]55[/C][C]0.524699671305205[/C][C]0.950600657389589[/C][C]0.475300328694795[/C][/ROW]
[ROW][C]56[/C][C]0.422697301574483[/C][C]0.845394603148966[/C][C]0.577302698425517[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57882&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57882&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.03654574948909230.07309149897818450.963454250510908
60.01223223075536520.02446446151073040.987767769244635
70.004835016173830410.009670032347660820.99516498382617
80.001535981427401050.003071962854802110.9984640185726
90.0003868651715359130.0007737303430718250.999613134828464
109.85118513328107e-050.0001970237026656210.999901488148667
112.20062579253031e-054.40125158506062e-050.999977993742075
120.0001028636508153650.0002057273016307310.999897136349185
130.0001703818651785360.0003407637303570720.999829618134821
140.0001644566477335040.0003289132954670090.999835543352267
156.87033687295073e-050.0001374067374590150.99993129663127
162.35871625770702e-054.71743251541404e-050.999976412837423
179.79013755920998e-061.95802751184200e-050.99999020986244
185.75944391306233e-061.15188878261247e-050.999994240556087
193.00640034926704e-066.01280069853408e-060.99999699359965
201.15355885451280e-062.30711770902559e-060.999998846441146
214.29430240532961e-078.58860481065923e-070.99999957056976
221.67359084995566e-073.34718169991133e-070.999999832640915
236.67136756015768e-081.33427351203154e-070.999999933286324
244.41801586339043e-078.83603172678087e-070.999999558198414
252.74269899978629e-065.48539799957258e-060.999997257301
266.96312430953272e-061.39262486190654e-050.99999303687569
271.04245235985521e-052.08490471971042e-050.999989575476401
285.74433731216712e-050.0001148867462433420.999942556626878
290.0002216320149863710.0004432640299727420.999778367985014
300.000532462817882670.001064925635765340.999467537182117
310.001814080114952410.003628160229904830.998185919885048
320.01084948925361730.02169897850723460.989150510746383
330.03651897023725320.07303794047450640.963481029762747
340.1091589630816230.2183179261632450.890841036918377
350.2865272858809890.5730545717619770.713472714119011
360.2961616049507930.5923232099015870.703838395049207
370.3154562859917370.6309125719834740.684543714008263
380.3619227917325310.7238455834650620.638077208267469
390.4187811803306790.8375623606613570.581218819669321
400.4972017651703750.994403530340750.502798234829625
410.5187113981610750.962577203677850.481288601838925
420.4373670617148880.8747341234297770.562632938285112
430.3673148753754520.7346297507509030.632685124624548
440.3303753512001150.660750702400230.669624648799885
450.3026210930850240.6052421861700490.697378906914976
460.3846254110155900.7692508220311810.615374588984410
470.4520494784532190.9040989569064380.547950521546781
480.3824388815650080.7648777631300150.617561118434993
490.3140131541406930.6280263082813870.685986845859307
500.3130089361227820.6260178722455640.686991063877218
510.386211805295330.772423610590660.61378819470467
520.5520010671907110.8959978656185780.447998932809289
530.6163476625742560.7673046748514890.383652337425744
540.5903536918948030.8192926162103930.409646308105197
550.5246996713052050.9506006573895890.475300328694795
560.4226973015744830.8453946031489660.577302698425517







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level250.480769230769231NOK
5% type I error level270.519230769230769NOK
10% type I error level290.557692307692308NOK

\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 & 25 & 0.480769230769231 & NOK \tabularnewline
5% type I error level & 27 & 0.519230769230769 & NOK \tabularnewline
10% type I error level & 29 & 0.557692307692308 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57882&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]25[/C][C]0.480769230769231[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]27[/C][C]0.519230769230769[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]29[/C][C]0.557692307692308[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57882&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57882&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 level250.480769230769231NOK
5% type I error level270.519230769230769NOK
10% type I error level290.557692307692308NOK



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