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 12:18:42 -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/t1258658424u60fyj2vz4drka2.htm/, Retrieved Fri, 19 Apr 2024 18:54:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57909, Retrieved Fri, 19 Apr 2024 18:54:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWorkshop 7 link 2
Estimated Impact146
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 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [Workshop 7] [2009-11-19 19:18:42] [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 time3 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 & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57909&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57909&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 464.210309278351 -36.5257731958763X[t] -1.53505154639171M1[t] -14.3051546391753M2[t] -19.1051546391753M3[t] -25.3051546391753M4[t] -19.7051546391753M5[t] -8.80000000000004M6[t] -10.0000000000000M7[t] -14.0000000000000M8[t] -16.2000000000000M9[t] -21.2000000000000M10[t] -20.4000000000000M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  464.210309278351 -36.5257731958763X[t] -1.53505154639171M1[t] -14.3051546391753M2[t] -19.1051546391753M3[t] -25.3051546391753M4[t] -19.7051546391753M5[t] -8.80000000000004M6[t] -10.0000000000000M7[t] -14.0000000000000M8[t] -16.2000000000000M9[t] -21.2000000000000M10[t] -20.4000000000000M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57909&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  464.210309278351 -36.5257731958763X[t] -1.53505154639171M1[t] -14.3051546391753M2[t] -19.1051546391753M3[t] -25.3051546391753M4[t] -19.7051546391753M5[t] -8.80000000000004M6[t] -10.0000000000000M7[t] -14.0000000000000M8[t] -16.2000000000000M9[t] -21.2000000000000M10[t] -20.4000000000000M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57909&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57909&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] = + 464.210309278351 -36.5257731958763X[t] -1.53505154639171M1[t] -14.3051546391753M2[t] -19.1051546391753M3[t] -25.3051546391753M4[t] -19.7051546391753M5[t] -8.80000000000004M6[t] -10.0000000000000M7[t] -14.0000000000000M8[t] -16.2000000000000M9[t] -21.2000000000000M10[t] -20.4000000000000M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)464.2103092783519.7041447.836300
X-36.52577319587635.855367-6.23800
M1-1.5350515463917112.756997-0.12030.9047240.452362
M2-14.305154639175313.369397-1.070.2899740.144987
M3-19.105154639175313.369397-1.4290.1594740.079737
M4-25.305154639175313.369397-1.89280.0644270.032214
M5-19.705154639175313.369397-1.47390.1470370.073519
M6-8.8000000000000413.318009-0.66080.5119260.255963
M7-10.000000000000013.318009-0.75090.4564010.2282
M8-14.000000000000013.318009-1.05120.2984270.149213
M9-16.200000000000013.318009-1.21640.2297810.114891
M10-21.200000000000013.318009-1.59180.1179880.058994
M11-20.400000000000013.318009-1.53180.1321460.066073

\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) & 464.210309278351 & 9.70414 & 47.8363 & 0 & 0 \tabularnewline
X & -36.5257731958763 & 5.855367 & -6.238 & 0 & 0 \tabularnewline
M1 & -1.53505154639171 & 12.756997 & -0.1203 & 0.904724 & 0.452362 \tabularnewline
M2 & -14.3051546391753 & 13.369397 & -1.07 & 0.289974 & 0.144987 \tabularnewline
M3 & -19.1051546391753 & 13.369397 & -1.429 & 0.159474 & 0.079737 \tabularnewline
M4 & -25.3051546391753 & 13.369397 & -1.8928 & 0.064427 & 0.032214 \tabularnewline
M5 & -19.7051546391753 & 13.369397 & -1.4739 & 0.147037 & 0.073519 \tabularnewline
M6 & -8.80000000000004 & 13.318009 & -0.6608 & 0.511926 & 0.255963 \tabularnewline
M7 & -10.0000000000000 & 13.318009 & -0.7509 & 0.456401 & 0.2282 \tabularnewline
M8 & -14.0000000000000 & 13.318009 & -1.0512 & 0.298427 & 0.149213 \tabularnewline
M9 & -16.2000000000000 & 13.318009 & -1.2164 & 0.229781 & 0.114891 \tabularnewline
M10 & -21.2000000000000 & 13.318009 & -1.5918 & 0.117988 & 0.058994 \tabularnewline
M11 & -20.4000000000000 & 13.318009 & -1.5318 & 0.132146 & 0.066073 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57909&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]464.210309278351[/C][C]9.70414[/C][C]47.8363[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-36.5257731958763[/C][C]5.855367[/C][C]-6.238[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-1.53505154639171[/C][C]12.756997[/C][C]-0.1203[/C][C]0.904724[/C][C]0.452362[/C][/ROW]
[ROW][C]M2[/C][C]-14.3051546391753[/C][C]13.369397[/C][C]-1.07[/C][C]0.289974[/C][C]0.144987[/C][/ROW]
[ROW][C]M3[/C][C]-19.1051546391753[/C][C]13.369397[/C][C]-1.429[/C][C]0.159474[/C][C]0.079737[/C][/ROW]
[ROW][C]M4[/C][C]-25.3051546391753[/C][C]13.369397[/C][C]-1.8928[/C][C]0.064427[/C][C]0.032214[/C][/ROW]
[ROW][C]M5[/C][C]-19.7051546391753[/C][C]13.369397[/C][C]-1.4739[/C][C]0.147037[/C][C]0.073519[/C][/ROW]
[ROW][C]M6[/C][C]-8.80000000000004[/C][C]13.318009[/C][C]-0.6608[/C][C]0.511926[/C][C]0.255963[/C][/ROW]
[ROW][C]M7[/C][C]-10.0000000000000[/C][C]13.318009[/C][C]-0.7509[/C][C]0.456401[/C][C]0.2282[/C][/ROW]
[ROW][C]M8[/C][C]-14.0000000000000[/C][C]13.318009[/C][C]-1.0512[/C][C]0.298427[/C][C]0.149213[/C][/ROW]
[ROW][C]M9[/C][C]-16.2000000000000[/C][C]13.318009[/C][C]-1.2164[/C][C]0.229781[/C][C]0.114891[/C][/ROW]
[ROW][C]M10[/C][C]-21.2000000000000[/C][C]13.318009[/C][C]-1.5918[/C][C]0.117988[/C][C]0.058994[/C][/ROW]
[ROW][C]M11[/C][C]-20.4000000000000[/C][C]13.318009[/C][C]-1.5318[/C][C]0.132146[/C][C]0.066073[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57909&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57909&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)464.2103092783519.7041447.836300
X-36.52577319587635.855367-6.23800
M1-1.5350515463917112.756997-0.12030.9047240.452362
M2-14.305154639175313.369397-1.070.2899740.144987
M3-19.105154639175313.369397-1.4290.1594740.079737
M4-25.305154639175313.369397-1.89280.0644270.032214
M5-19.705154639175313.369397-1.47390.1470370.073519
M6-8.8000000000000413.318009-0.66080.5119260.255963
M7-10.000000000000013.318009-0.75090.4564010.2282
M8-14.000000000000013.318009-1.05120.2984270.149213
M9-16.200000000000013.318009-1.21640.2297810.114891
M10-21.200000000000013.318009-1.59180.1179880.058994
M11-20.400000000000013.318009-1.53180.1321460.066073







Multiple Linear Regression - Regression Statistics
Multiple R0.697897034627074
R-squared0.487060270941264
Adjusted R-squared0.35882533867658
F-TEST (value)3.79818714245463
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.000447445226957166
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation21.0576217111663
Sum Squared Residuals21284.3247422680

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.697897034627074 \tabularnewline
R-squared & 0.487060270941264 \tabularnewline
Adjusted R-squared & 0.35882533867658 \tabularnewline
F-TEST (value) & 3.79818714245463 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 0.000447445226957166 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 21.0576217111663 \tabularnewline
Sum Squared Residuals & 21284.3247422680 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57909&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.697897034627074[/C][/ROW]
[ROW][C]R-squared[/C][C]0.487060270941264[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.35882533867658[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.79818714245463[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]0.000447445226957166[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]21.0576217111663[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]21284.3247422680[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57909&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57909&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.697897034627074
R-squared0.487060270941264
Adjusted R-squared0.35882533867658
F-TEST (value)3.79818714245463
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.000447445226957166
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation21.0576217111663
Sum Squared Residuals21284.3247422680







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1449462.675257731958-13.6752577319584
2452449.9051546391752.09484536082474
3462445.10515463917516.8948453608247
4455438.90515463917516.0948453608247
5461444.50515463917516.4948453608247
6461455.4103092783505.58969072164948
7463454.2103092783518.78969072164944
8462450.21030927835111.7896907216495
9456448.0103092783517.98969072164949
10455443.01030927835111.9896907216495
11456443.81030927835112.1896907216495
12472464.2103092783517.78969072164946
13472462.6752577319599.32474226804115
14471449.90515463917521.0948453608248
15465445.10515463917519.8948453608247
16459438.90515463917520.0948453608248
17465444.50515463917520.4948453608247
18468455.41030927835012.5896907216495
19467454.21030927835112.7896907216495
20463450.21030927835112.7896907216495
21460448.01030927835111.9896907216495
22462443.01030927835118.9896907216495
23461443.81030927835117.1896907216495
24476464.21030927835111.7896907216495
25476462.67525773195913.3247422680412
26471449.90515463917521.0948453608248
27453445.1051546391757.89484536082474
28443438.9051546391754.09484536082476
29442444.505154639175-2.50515463917525
30444455.410309278350-11.4103092783505
31438454.210309278351-16.2103092783505
32427450.210309278351-23.2103092783505
33424448.010309278351-24.0103092783505
34416443.010309278351-27.0103092783505
35406443.810309278351-37.8103092783505
36431464.210309278351-33.2103092783505
37434462.675257731959-28.6752577319588
38418449.905154639175-31.9051546391752
39412445.105154639175-33.1051546391753
40404438.905154639175-34.9051546391753
41409444.505154639175-35.5051546391753
42412418.884536082474-6.88453608247421
43406417.684536082474-11.6845360824742
44398413.684536082474-15.6845360824742
45397411.484536082474-14.4845360824742
46385406.484536082474-21.4845360824742
47390407.284536082474-17.2845360824742
48413427.684536082474-14.6845360824742
49413426.149484536083-13.1494845360825
50401413.379381443299-12.3793814432990
51397408.579381443299-11.5793814432990
52397402.379381443299-5.37938144329894
53409407.9793814432991.02061855670105
54419418.8845360824740.115463917525785
55424417.6845360824746.31546391752579
56428413.68453608247414.3154639175258
57430411.48453608247418.5154639175258
58424406.48453608247417.5154639175258
59433407.28453608247425.7154639175258
60456427.68453608247428.3154639175258
61459426.14948453608332.8505154639175

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 449 & 462.675257731958 & -13.6752577319584 \tabularnewline
2 & 452 & 449.905154639175 & 2.09484536082474 \tabularnewline
3 & 462 & 445.105154639175 & 16.8948453608247 \tabularnewline
4 & 455 & 438.905154639175 & 16.0948453608247 \tabularnewline
5 & 461 & 444.505154639175 & 16.4948453608247 \tabularnewline
6 & 461 & 455.410309278350 & 5.58969072164948 \tabularnewline
7 & 463 & 454.210309278351 & 8.78969072164944 \tabularnewline
8 & 462 & 450.210309278351 & 11.7896907216495 \tabularnewline
9 & 456 & 448.010309278351 & 7.98969072164949 \tabularnewline
10 & 455 & 443.010309278351 & 11.9896907216495 \tabularnewline
11 & 456 & 443.810309278351 & 12.1896907216495 \tabularnewline
12 & 472 & 464.210309278351 & 7.78969072164946 \tabularnewline
13 & 472 & 462.675257731959 & 9.32474226804115 \tabularnewline
14 & 471 & 449.905154639175 & 21.0948453608248 \tabularnewline
15 & 465 & 445.105154639175 & 19.8948453608247 \tabularnewline
16 & 459 & 438.905154639175 & 20.0948453608248 \tabularnewline
17 & 465 & 444.505154639175 & 20.4948453608247 \tabularnewline
18 & 468 & 455.410309278350 & 12.5896907216495 \tabularnewline
19 & 467 & 454.210309278351 & 12.7896907216495 \tabularnewline
20 & 463 & 450.210309278351 & 12.7896907216495 \tabularnewline
21 & 460 & 448.010309278351 & 11.9896907216495 \tabularnewline
22 & 462 & 443.010309278351 & 18.9896907216495 \tabularnewline
23 & 461 & 443.810309278351 & 17.1896907216495 \tabularnewline
24 & 476 & 464.210309278351 & 11.7896907216495 \tabularnewline
25 & 476 & 462.675257731959 & 13.3247422680412 \tabularnewline
26 & 471 & 449.905154639175 & 21.0948453608248 \tabularnewline
27 & 453 & 445.105154639175 & 7.89484536082474 \tabularnewline
28 & 443 & 438.905154639175 & 4.09484536082476 \tabularnewline
29 & 442 & 444.505154639175 & -2.50515463917525 \tabularnewline
30 & 444 & 455.410309278350 & -11.4103092783505 \tabularnewline
31 & 438 & 454.210309278351 & -16.2103092783505 \tabularnewline
32 & 427 & 450.210309278351 & -23.2103092783505 \tabularnewline
33 & 424 & 448.010309278351 & -24.0103092783505 \tabularnewline
34 & 416 & 443.010309278351 & -27.0103092783505 \tabularnewline
35 & 406 & 443.810309278351 & -37.8103092783505 \tabularnewline
36 & 431 & 464.210309278351 & -33.2103092783505 \tabularnewline
37 & 434 & 462.675257731959 & -28.6752577319588 \tabularnewline
38 & 418 & 449.905154639175 & -31.9051546391752 \tabularnewline
39 & 412 & 445.105154639175 & -33.1051546391753 \tabularnewline
40 & 404 & 438.905154639175 & -34.9051546391753 \tabularnewline
41 & 409 & 444.505154639175 & -35.5051546391753 \tabularnewline
42 & 412 & 418.884536082474 & -6.88453608247421 \tabularnewline
43 & 406 & 417.684536082474 & -11.6845360824742 \tabularnewline
44 & 398 & 413.684536082474 & -15.6845360824742 \tabularnewline
45 & 397 & 411.484536082474 & -14.4845360824742 \tabularnewline
46 & 385 & 406.484536082474 & -21.4845360824742 \tabularnewline
47 & 390 & 407.284536082474 & -17.2845360824742 \tabularnewline
48 & 413 & 427.684536082474 & -14.6845360824742 \tabularnewline
49 & 413 & 426.149484536083 & -13.1494845360825 \tabularnewline
50 & 401 & 413.379381443299 & -12.3793814432990 \tabularnewline
51 & 397 & 408.579381443299 & -11.5793814432990 \tabularnewline
52 & 397 & 402.379381443299 & -5.37938144329894 \tabularnewline
53 & 409 & 407.979381443299 & 1.02061855670105 \tabularnewline
54 & 419 & 418.884536082474 & 0.115463917525785 \tabularnewline
55 & 424 & 417.684536082474 & 6.31546391752579 \tabularnewline
56 & 428 & 413.684536082474 & 14.3154639175258 \tabularnewline
57 & 430 & 411.484536082474 & 18.5154639175258 \tabularnewline
58 & 424 & 406.484536082474 & 17.5154639175258 \tabularnewline
59 & 433 & 407.284536082474 & 25.7154639175258 \tabularnewline
60 & 456 & 427.684536082474 & 28.3154639175258 \tabularnewline
61 & 459 & 426.149484536083 & 32.8505154639175 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57909&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]462.675257731958[/C][C]-13.6752577319584[/C][/ROW]
[ROW][C]2[/C][C]452[/C][C]449.905154639175[/C][C]2.09484536082474[/C][/ROW]
[ROW][C]3[/C][C]462[/C][C]445.105154639175[/C][C]16.8948453608247[/C][/ROW]
[ROW][C]4[/C][C]455[/C][C]438.905154639175[/C][C]16.0948453608247[/C][/ROW]
[ROW][C]5[/C][C]461[/C][C]444.505154639175[/C][C]16.4948453608247[/C][/ROW]
[ROW][C]6[/C][C]461[/C][C]455.410309278350[/C][C]5.58969072164948[/C][/ROW]
[ROW][C]7[/C][C]463[/C][C]454.210309278351[/C][C]8.78969072164944[/C][/ROW]
[ROW][C]8[/C][C]462[/C][C]450.210309278351[/C][C]11.7896907216495[/C][/ROW]
[ROW][C]9[/C][C]456[/C][C]448.010309278351[/C][C]7.98969072164949[/C][/ROW]
[ROW][C]10[/C][C]455[/C][C]443.010309278351[/C][C]11.9896907216495[/C][/ROW]
[ROW][C]11[/C][C]456[/C][C]443.810309278351[/C][C]12.1896907216495[/C][/ROW]
[ROW][C]12[/C][C]472[/C][C]464.210309278351[/C][C]7.78969072164946[/C][/ROW]
[ROW][C]13[/C][C]472[/C][C]462.675257731959[/C][C]9.32474226804115[/C][/ROW]
[ROW][C]14[/C][C]471[/C][C]449.905154639175[/C][C]21.0948453608248[/C][/ROW]
[ROW][C]15[/C][C]465[/C][C]445.105154639175[/C][C]19.8948453608247[/C][/ROW]
[ROW][C]16[/C][C]459[/C][C]438.905154639175[/C][C]20.0948453608248[/C][/ROW]
[ROW][C]17[/C][C]465[/C][C]444.505154639175[/C][C]20.4948453608247[/C][/ROW]
[ROW][C]18[/C][C]468[/C][C]455.410309278350[/C][C]12.5896907216495[/C][/ROW]
[ROW][C]19[/C][C]467[/C][C]454.210309278351[/C][C]12.7896907216495[/C][/ROW]
[ROW][C]20[/C][C]463[/C][C]450.210309278351[/C][C]12.7896907216495[/C][/ROW]
[ROW][C]21[/C][C]460[/C][C]448.010309278351[/C][C]11.9896907216495[/C][/ROW]
[ROW][C]22[/C][C]462[/C][C]443.010309278351[/C][C]18.9896907216495[/C][/ROW]
[ROW][C]23[/C][C]461[/C][C]443.810309278351[/C][C]17.1896907216495[/C][/ROW]
[ROW][C]24[/C][C]476[/C][C]464.210309278351[/C][C]11.7896907216495[/C][/ROW]
[ROW][C]25[/C][C]476[/C][C]462.675257731959[/C][C]13.3247422680412[/C][/ROW]
[ROW][C]26[/C][C]471[/C][C]449.905154639175[/C][C]21.0948453608248[/C][/ROW]
[ROW][C]27[/C][C]453[/C][C]445.105154639175[/C][C]7.89484536082474[/C][/ROW]
[ROW][C]28[/C][C]443[/C][C]438.905154639175[/C][C]4.09484536082476[/C][/ROW]
[ROW][C]29[/C][C]442[/C][C]444.505154639175[/C][C]-2.50515463917525[/C][/ROW]
[ROW][C]30[/C][C]444[/C][C]455.410309278350[/C][C]-11.4103092783505[/C][/ROW]
[ROW][C]31[/C][C]438[/C][C]454.210309278351[/C][C]-16.2103092783505[/C][/ROW]
[ROW][C]32[/C][C]427[/C][C]450.210309278351[/C][C]-23.2103092783505[/C][/ROW]
[ROW][C]33[/C][C]424[/C][C]448.010309278351[/C][C]-24.0103092783505[/C][/ROW]
[ROW][C]34[/C][C]416[/C][C]443.010309278351[/C][C]-27.0103092783505[/C][/ROW]
[ROW][C]35[/C][C]406[/C][C]443.810309278351[/C][C]-37.8103092783505[/C][/ROW]
[ROW][C]36[/C][C]431[/C][C]464.210309278351[/C][C]-33.2103092783505[/C][/ROW]
[ROW][C]37[/C][C]434[/C][C]462.675257731959[/C][C]-28.6752577319588[/C][/ROW]
[ROW][C]38[/C][C]418[/C][C]449.905154639175[/C][C]-31.9051546391752[/C][/ROW]
[ROW][C]39[/C][C]412[/C][C]445.105154639175[/C][C]-33.1051546391753[/C][/ROW]
[ROW][C]40[/C][C]404[/C][C]438.905154639175[/C][C]-34.9051546391753[/C][/ROW]
[ROW][C]41[/C][C]409[/C][C]444.505154639175[/C][C]-35.5051546391753[/C][/ROW]
[ROW][C]42[/C][C]412[/C][C]418.884536082474[/C][C]-6.88453608247421[/C][/ROW]
[ROW][C]43[/C][C]406[/C][C]417.684536082474[/C][C]-11.6845360824742[/C][/ROW]
[ROW][C]44[/C][C]398[/C][C]413.684536082474[/C][C]-15.6845360824742[/C][/ROW]
[ROW][C]45[/C][C]397[/C][C]411.484536082474[/C][C]-14.4845360824742[/C][/ROW]
[ROW][C]46[/C][C]385[/C][C]406.484536082474[/C][C]-21.4845360824742[/C][/ROW]
[ROW][C]47[/C][C]390[/C][C]407.284536082474[/C][C]-17.2845360824742[/C][/ROW]
[ROW][C]48[/C][C]413[/C][C]427.684536082474[/C][C]-14.6845360824742[/C][/ROW]
[ROW][C]49[/C][C]413[/C][C]426.149484536083[/C][C]-13.1494845360825[/C][/ROW]
[ROW][C]50[/C][C]401[/C][C]413.379381443299[/C][C]-12.3793814432990[/C][/ROW]
[ROW][C]51[/C][C]397[/C][C]408.579381443299[/C][C]-11.5793814432990[/C][/ROW]
[ROW][C]52[/C][C]397[/C][C]402.379381443299[/C][C]-5.37938144329894[/C][/ROW]
[ROW][C]53[/C][C]409[/C][C]407.979381443299[/C][C]1.02061855670105[/C][/ROW]
[ROW][C]54[/C][C]419[/C][C]418.884536082474[/C][C]0.115463917525785[/C][/ROW]
[ROW][C]55[/C][C]424[/C][C]417.684536082474[/C][C]6.31546391752579[/C][/ROW]
[ROW][C]56[/C][C]428[/C][C]413.684536082474[/C][C]14.3154639175258[/C][/ROW]
[ROW][C]57[/C][C]430[/C][C]411.484536082474[/C][C]18.5154639175258[/C][/ROW]
[ROW][C]58[/C][C]424[/C][C]406.484536082474[/C][C]17.5154639175258[/C][/ROW]
[ROW][C]59[/C][C]433[/C][C]407.284536082474[/C][C]25.7154639175258[/C][/ROW]
[ROW][C]60[/C][C]456[/C][C]427.684536082474[/C][C]28.3154639175258[/C][/ROW]
[ROW][C]61[/C][C]459[/C][C]426.149484536083[/C][C]32.8505154639175[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57909&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57909&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
1449462.675257731958-13.6752577319584
2452449.9051546391752.09484536082474
3462445.10515463917516.8948453608247
4455438.90515463917516.0948453608247
5461444.50515463917516.4948453608247
6461455.4103092783505.58969072164948
7463454.2103092783518.78969072164944
8462450.21030927835111.7896907216495
9456448.0103092783517.98969072164949
10455443.01030927835111.9896907216495
11456443.81030927835112.1896907216495
12472464.2103092783517.78969072164946
13472462.6752577319599.32474226804115
14471449.90515463917521.0948453608248
15465445.10515463917519.8948453608247
16459438.90515463917520.0948453608248
17465444.50515463917520.4948453608247
18468455.41030927835012.5896907216495
19467454.21030927835112.7896907216495
20463450.21030927835112.7896907216495
21460448.01030927835111.9896907216495
22462443.01030927835118.9896907216495
23461443.81030927835117.1896907216495
24476464.21030927835111.7896907216495
25476462.67525773195913.3247422680412
26471449.90515463917521.0948453608248
27453445.1051546391757.89484536082474
28443438.9051546391754.09484536082476
29442444.505154639175-2.50515463917525
30444455.410309278350-11.4103092783505
31438454.210309278351-16.2103092783505
32427450.210309278351-23.2103092783505
33424448.010309278351-24.0103092783505
34416443.010309278351-27.0103092783505
35406443.810309278351-37.8103092783505
36431464.210309278351-33.2103092783505
37434462.675257731959-28.6752577319588
38418449.905154639175-31.9051546391752
39412445.105154639175-33.1051546391753
40404438.905154639175-34.9051546391753
41409444.505154639175-35.5051546391753
42412418.884536082474-6.88453608247421
43406417.684536082474-11.6845360824742
44398413.684536082474-15.6845360824742
45397411.484536082474-14.4845360824742
46385406.484536082474-21.4845360824742
47390407.284536082474-17.2845360824742
48413427.684536082474-14.6845360824742
49413426.149484536083-13.1494845360825
50401413.379381443299-12.3793814432990
51397408.579381443299-11.5793814432990
52397402.379381443299-5.37938144329894
53409407.9793814432991.02061855670105
54419418.8845360824740.115463917525785
55424417.6845360824746.31546391752579
56428413.68453608247414.3154639175258
57430411.48453608247418.5154639175258
58424406.48453608247417.5154639175258
59433407.28453608247425.7154639175258
60456427.68453608247428.3154639175258
61459426.14948453608332.8505154639175







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1711196892250420.3422393784500840.828880310774958
170.08099378727733740.1619875745546750.919006212722663
180.03723965247166440.07447930494332890.962760347528336
190.01556629251368090.03113258502736180.984433707486319
200.006104978506613680.01220995701322740.993895021493386
210.002406935107605850.00481387021521170.997593064892394
220.001261180511616650.00252236102323330.998738819488383
230.0006346859302991650.001269371860598330.9993653140697
240.0002795451195640170.0005590902391280330.999720454880436
250.0004266398641597390.0008532797283194780.99957336013584
260.0006733452786852450.001346690557370490.999326654721315
270.0009322064041809650.001864412808361930.999067793595819
280.001724562188985120.003449124377970230.998275437811015
290.005032534623501330.01006506924700270.994967465376499
300.008793407479739210.01758681495947840.99120659252026
310.02078747434589410.04157494869178830.979212525654106
320.0574138796236990.1148277592473980.9425861203763
330.09189190174173040.1837838034834610.90810809825827
340.1653760830832690.3307521661665390.83462391691673
350.2940104249011880.5880208498023750.705989575098812
360.3325765114052070.6651530228104140.667423488594793
370.3138184051339490.6276368102678980.686181594866051
380.3433571460953480.6867142921906970.656642853904652
390.3555866113220990.7111732226441970.644413388677901
400.3429288474917420.6858576949834840.657071152508258
410.3072759190997330.6145518381994670.692724080900267
420.2100596021050940.4201192042101890.789940397894906
430.1409363559485450.2818727118970910.859063644051455
440.1031873981816570.2063747963633150.896812601818343
450.07468605183641640.1493721036728330.925313948163584

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.171119689225042 & 0.342239378450084 & 0.828880310774958 \tabularnewline
17 & 0.0809937872773374 & 0.161987574554675 & 0.919006212722663 \tabularnewline
18 & 0.0372396524716644 & 0.0744793049433289 & 0.962760347528336 \tabularnewline
19 & 0.0155662925136809 & 0.0311325850273618 & 0.984433707486319 \tabularnewline
20 & 0.00610497850661368 & 0.0122099570132274 & 0.993895021493386 \tabularnewline
21 & 0.00240693510760585 & 0.0048138702152117 & 0.997593064892394 \tabularnewline
22 & 0.00126118051161665 & 0.0025223610232333 & 0.998738819488383 \tabularnewline
23 & 0.000634685930299165 & 0.00126937186059833 & 0.9993653140697 \tabularnewline
24 & 0.000279545119564017 & 0.000559090239128033 & 0.999720454880436 \tabularnewline
25 & 0.000426639864159739 & 0.000853279728319478 & 0.99957336013584 \tabularnewline
26 & 0.000673345278685245 & 0.00134669055737049 & 0.999326654721315 \tabularnewline
27 & 0.000932206404180965 & 0.00186441280836193 & 0.999067793595819 \tabularnewline
28 & 0.00172456218898512 & 0.00344912437797023 & 0.998275437811015 \tabularnewline
29 & 0.00503253462350133 & 0.0100650692470027 & 0.994967465376499 \tabularnewline
30 & 0.00879340747973921 & 0.0175868149594784 & 0.99120659252026 \tabularnewline
31 & 0.0207874743458941 & 0.0415749486917883 & 0.979212525654106 \tabularnewline
32 & 0.057413879623699 & 0.114827759247398 & 0.9425861203763 \tabularnewline
33 & 0.0918919017417304 & 0.183783803483461 & 0.90810809825827 \tabularnewline
34 & 0.165376083083269 & 0.330752166166539 & 0.83462391691673 \tabularnewline
35 & 0.294010424901188 & 0.588020849802375 & 0.705989575098812 \tabularnewline
36 & 0.332576511405207 & 0.665153022810414 & 0.667423488594793 \tabularnewline
37 & 0.313818405133949 & 0.627636810267898 & 0.686181594866051 \tabularnewline
38 & 0.343357146095348 & 0.686714292190697 & 0.656642853904652 \tabularnewline
39 & 0.355586611322099 & 0.711173222644197 & 0.644413388677901 \tabularnewline
40 & 0.342928847491742 & 0.685857694983484 & 0.657071152508258 \tabularnewline
41 & 0.307275919099733 & 0.614551838199467 & 0.692724080900267 \tabularnewline
42 & 0.210059602105094 & 0.420119204210189 & 0.789940397894906 \tabularnewline
43 & 0.140936355948545 & 0.281872711897091 & 0.859063644051455 \tabularnewline
44 & 0.103187398181657 & 0.206374796363315 & 0.896812601818343 \tabularnewline
45 & 0.0746860518364164 & 0.149372103672833 & 0.925313948163584 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57909&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.171119689225042[/C][C]0.342239378450084[/C][C]0.828880310774958[/C][/ROW]
[ROW][C]17[/C][C]0.0809937872773374[/C][C]0.161987574554675[/C][C]0.919006212722663[/C][/ROW]
[ROW][C]18[/C][C]0.0372396524716644[/C][C]0.0744793049433289[/C][C]0.962760347528336[/C][/ROW]
[ROW][C]19[/C][C]0.0155662925136809[/C][C]0.0311325850273618[/C][C]0.984433707486319[/C][/ROW]
[ROW][C]20[/C][C]0.00610497850661368[/C][C]0.0122099570132274[/C][C]0.993895021493386[/C][/ROW]
[ROW][C]21[/C][C]0.00240693510760585[/C][C]0.0048138702152117[/C][C]0.997593064892394[/C][/ROW]
[ROW][C]22[/C][C]0.00126118051161665[/C][C]0.0025223610232333[/C][C]0.998738819488383[/C][/ROW]
[ROW][C]23[/C][C]0.000634685930299165[/C][C]0.00126937186059833[/C][C]0.9993653140697[/C][/ROW]
[ROW][C]24[/C][C]0.000279545119564017[/C][C]0.000559090239128033[/C][C]0.999720454880436[/C][/ROW]
[ROW][C]25[/C][C]0.000426639864159739[/C][C]0.000853279728319478[/C][C]0.99957336013584[/C][/ROW]
[ROW][C]26[/C][C]0.000673345278685245[/C][C]0.00134669055737049[/C][C]0.999326654721315[/C][/ROW]
[ROW][C]27[/C][C]0.000932206404180965[/C][C]0.00186441280836193[/C][C]0.999067793595819[/C][/ROW]
[ROW][C]28[/C][C]0.00172456218898512[/C][C]0.00344912437797023[/C][C]0.998275437811015[/C][/ROW]
[ROW][C]29[/C][C]0.00503253462350133[/C][C]0.0100650692470027[/C][C]0.994967465376499[/C][/ROW]
[ROW][C]30[/C][C]0.00879340747973921[/C][C]0.0175868149594784[/C][C]0.99120659252026[/C][/ROW]
[ROW][C]31[/C][C]0.0207874743458941[/C][C]0.0415749486917883[/C][C]0.979212525654106[/C][/ROW]
[ROW][C]32[/C][C]0.057413879623699[/C][C]0.114827759247398[/C][C]0.9425861203763[/C][/ROW]
[ROW][C]33[/C][C]0.0918919017417304[/C][C]0.183783803483461[/C][C]0.90810809825827[/C][/ROW]
[ROW][C]34[/C][C]0.165376083083269[/C][C]0.330752166166539[/C][C]0.83462391691673[/C][/ROW]
[ROW][C]35[/C][C]0.294010424901188[/C][C]0.588020849802375[/C][C]0.705989575098812[/C][/ROW]
[ROW][C]36[/C][C]0.332576511405207[/C][C]0.665153022810414[/C][C]0.667423488594793[/C][/ROW]
[ROW][C]37[/C][C]0.313818405133949[/C][C]0.627636810267898[/C][C]0.686181594866051[/C][/ROW]
[ROW][C]38[/C][C]0.343357146095348[/C][C]0.686714292190697[/C][C]0.656642853904652[/C][/ROW]
[ROW][C]39[/C][C]0.355586611322099[/C][C]0.711173222644197[/C][C]0.644413388677901[/C][/ROW]
[ROW][C]40[/C][C]0.342928847491742[/C][C]0.685857694983484[/C][C]0.657071152508258[/C][/ROW]
[ROW][C]41[/C][C]0.307275919099733[/C][C]0.614551838199467[/C][C]0.692724080900267[/C][/ROW]
[ROW][C]42[/C][C]0.210059602105094[/C][C]0.420119204210189[/C][C]0.789940397894906[/C][/ROW]
[ROW][C]43[/C][C]0.140936355948545[/C][C]0.281872711897091[/C][C]0.859063644051455[/C][/ROW]
[ROW][C]44[/C][C]0.103187398181657[/C][C]0.206374796363315[/C][C]0.896812601818343[/C][/ROW]
[ROW][C]45[/C][C]0.0746860518364164[/C][C]0.149372103672833[/C][C]0.925313948163584[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57909&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1711196892250420.3422393784500840.828880310774958
170.08099378727733740.1619875745546750.919006212722663
180.03723965247166440.07447930494332890.962760347528336
190.01556629251368090.03113258502736180.984433707486319
200.006104978506613680.01220995701322740.993895021493386
210.002406935107605850.00481387021521170.997593064892394
220.001261180511616650.00252236102323330.998738819488383
230.0006346859302991650.001269371860598330.9993653140697
240.0002795451195640170.0005590902391280330.999720454880436
250.0004266398641597390.0008532797283194780.99957336013584
260.0006733452786852450.001346690557370490.999326654721315
270.0009322064041809650.001864412808361930.999067793595819
280.001724562188985120.003449124377970230.998275437811015
290.005032534623501330.01006506924700270.994967465376499
300.008793407479739210.01758681495947840.99120659252026
310.02078747434589410.04157494869178830.979212525654106
320.0574138796236990.1148277592473980.9425861203763
330.09189190174173040.1837838034834610.90810809825827
340.1653760830832690.3307521661665390.83462391691673
350.2940104249011880.5880208498023750.705989575098812
360.3325765114052070.6651530228104140.667423488594793
370.3138184051339490.6276368102678980.686181594866051
380.3433571460953480.6867142921906970.656642853904652
390.3555866113220990.7111732226441970.644413388677901
400.3429288474917420.6858576949834840.657071152508258
410.3072759190997330.6145518381994670.692724080900267
420.2100596021050940.4201192042101890.789940397894906
430.1409363559485450.2818727118970910.859063644051455
440.1031873981816570.2063747963633150.896812601818343
450.07468605183641640.1493721036728330.925313948163584







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.266666666666667NOK
5% type I error level130.433333333333333NOK
10% type I error level140.466666666666667NOK

\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 & 8 & 0.266666666666667 & NOK \tabularnewline
5% type I error level & 13 & 0.433333333333333 & NOK \tabularnewline
10% type I error level & 14 & 0.466666666666667 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57909&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]8[/C][C]0.266666666666667[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]13[/C][C]0.433333333333333[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]14[/C][C]0.466666666666667[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57909&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57909&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 level80.266666666666667NOK
5% type I error level130.433333333333333NOK
10% type I error level140.466666666666667NOK



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