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 computationSun, 23 Nov 2008 08:51:08 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Nov/23/t1227455514bt1r1nw5d88bojb.htm/, Retrieved Mon, 20 May 2024 03:04:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25290, Retrieved Mon, 20 May 2024 03:04:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [q3b] [2008-11-23 15:51:08] [b4fc5040f26b33db57f84cfb8d1d2b82] [Current]
-   PD    [Multiple Regression] [Q3 - 1 peak] [2008-11-23 18:09:24] [a0d819c22534897f04a2f0b92f1eb36a]
-    D    [Multiple Regression] [Q3 - b] [2008-11-23 18:10:56] [c5a66f1c8528a963efc2b82a8519f117]
F           [Multiple Regression] [Q3 - 5 peaks - b] [2008-11-23 19:40:55] [a0d819c22534897f04a2f0b92f1eb36a]
Feedback Forum

Post a new message
Dataseries X:
1515	0
1510	0
1225	0
1577	0
1417	0
1224	0
1693	0
1633	0
1639	0
1914	0
1586	0
1552	0
2081	0
1500	0
1437	0
1470	0
1849	0
1387	0
1592	0
1589	0
1798	0
1935	0
1887	0
2027	0
2080	0
1556	0
1682	0
1785	0
1869	0
1781	0
2082	0
2570	1
1862	1
1936	1
1504	1
1765	1
1607	1
1577	1
1493	1
1615	1
1700	1
1335	1
1523	1
1623	1
1540	1
1637	1
1524	1
1419	1
1821	1
1593	1
1357	1
1263	1
1750	1
1405	1
1393	1
1639	1
1679	1
1551	1
1744	1
1429	1
1784	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=25290&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=25290&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25290&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
Gebouwen[t] = + 1623.98461538462 -198.804487179487Dummy[t] + 174.955395299147M1[t] -93.8225427350426M2[t] -205.936378205128M3[t] -106.450213675214M4[t] + 64.8359508547011M5[t] -229.477884615384M6[t] -2.99172008546989M7[t] + 187.255341880342M8[t] + 76.3415064102565M9[t] + 163.627670940171M10[t] + 14.3138354700856M11[t] + 3.71383547008545t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Gebouwen[t] =  +  1623.98461538462 -198.804487179487Dummy[t] +  174.955395299147M1[t] -93.8225427350426M2[t] -205.936378205128M3[t] -106.450213675214M4[t] +  64.8359508547011M5[t] -229.477884615384M6[t] -2.99172008546989M7[t] +  187.255341880342M8[t] +  76.3415064102565M9[t] +  163.627670940171M10[t] +  14.3138354700856M11[t] +  3.71383547008545t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25290&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Gebouwen[t] =  +  1623.98461538462 -198.804487179487Dummy[t] +  174.955395299147M1[t] -93.8225427350426M2[t] -205.936378205128M3[t] -106.450213675214M4[t] +  64.8359508547011M5[t] -229.477884615384M6[t] -2.99172008546989M7[t] +  187.255341880342M8[t] +  76.3415064102565M9[t] +  163.627670940171M10[t] +  14.3138354700856M11[t] +  3.71383547008545t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25290&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25290&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
Gebouwen[t] = + 1623.98461538462 -198.804487179487Dummy[t] + 174.955395299147M1[t] -93.8225427350426M2[t] -205.936378205128M3[t] -106.450213675214M4[t] + 64.8359508547011M5[t] -229.477884615384M6[t] -2.99172008546989M7[t] + 187.255341880342M8[t] + 76.3415064102565M9[t] + 163.627670940171M10[t] + 14.3138354700856M11[t] + 3.71383547008545t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1623.98461538462118.46512313.708500
Dummy-198.804487179487114.36748-1.73830.0887070.044353
M1174.955395299147132.9513421.31590.1945780.097289
M2-93.8225427350426139.615548-0.6720.504870.252435
M3-205.936378205128139.36197-1.47770.1461560.073078
M4-106.450213675214139.183192-0.76480.4482020.224101
M564.8359508547011139.0795030.46620.6432410.32162
M6-229.477884615384139.051071-1.65030.1055470.052773
M7-2.99172008546989139.097942-0.02150.9829310.491466
M8187.255341880342139.1831921.34540.1849550.092478
M976.3415064102565138.9195930.54950.5852390.292619
M10163.627670940171138.7310021.17950.2441510.122076
M1114.3138354700856138.6177240.10330.9181950.459098
t3.713835470085453.2361221.14760.2569340.128467

\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) & 1623.98461538462 & 118.465123 & 13.7085 & 0 & 0 \tabularnewline
Dummy & -198.804487179487 & 114.36748 & -1.7383 & 0.088707 & 0.044353 \tabularnewline
M1 & 174.955395299147 & 132.951342 & 1.3159 & 0.194578 & 0.097289 \tabularnewline
M2 & -93.8225427350426 & 139.615548 & -0.672 & 0.50487 & 0.252435 \tabularnewline
M3 & -205.936378205128 & 139.36197 & -1.4777 & 0.146156 & 0.073078 \tabularnewline
M4 & -106.450213675214 & 139.183192 & -0.7648 & 0.448202 & 0.224101 \tabularnewline
M5 & 64.8359508547011 & 139.079503 & 0.4662 & 0.643241 & 0.32162 \tabularnewline
M6 & -229.477884615384 & 139.051071 & -1.6503 & 0.105547 & 0.052773 \tabularnewline
M7 & -2.99172008546989 & 139.097942 & -0.0215 & 0.982931 & 0.491466 \tabularnewline
M8 & 187.255341880342 & 139.183192 & 1.3454 & 0.184955 & 0.092478 \tabularnewline
M9 & 76.3415064102565 & 138.919593 & 0.5495 & 0.585239 & 0.292619 \tabularnewline
M10 & 163.627670940171 & 138.731002 & 1.1795 & 0.244151 & 0.122076 \tabularnewline
M11 & 14.3138354700856 & 138.617724 & 0.1033 & 0.918195 & 0.459098 \tabularnewline
t & 3.71383547008545 & 3.236122 & 1.1476 & 0.256934 & 0.128467 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25290&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]1623.98461538462[/C][C]118.465123[/C][C]13.7085[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]-198.804487179487[/C][C]114.36748[/C][C]-1.7383[/C][C]0.088707[/C][C]0.044353[/C][/ROW]
[ROW][C]M1[/C][C]174.955395299147[/C][C]132.951342[/C][C]1.3159[/C][C]0.194578[/C][C]0.097289[/C][/ROW]
[ROW][C]M2[/C][C]-93.8225427350426[/C][C]139.615548[/C][C]-0.672[/C][C]0.50487[/C][C]0.252435[/C][/ROW]
[ROW][C]M3[/C][C]-205.936378205128[/C][C]139.36197[/C][C]-1.4777[/C][C]0.146156[/C][C]0.073078[/C][/ROW]
[ROW][C]M4[/C][C]-106.450213675214[/C][C]139.183192[/C][C]-0.7648[/C][C]0.448202[/C][C]0.224101[/C][/ROW]
[ROW][C]M5[/C][C]64.8359508547011[/C][C]139.079503[/C][C]0.4662[/C][C]0.643241[/C][C]0.32162[/C][/ROW]
[ROW][C]M6[/C][C]-229.477884615384[/C][C]139.051071[/C][C]-1.6503[/C][C]0.105547[/C][C]0.052773[/C][/ROW]
[ROW][C]M7[/C][C]-2.99172008546989[/C][C]139.097942[/C][C]-0.0215[/C][C]0.982931[/C][C]0.491466[/C][/ROW]
[ROW][C]M8[/C][C]187.255341880342[/C][C]139.183192[/C][C]1.3454[/C][C]0.184955[/C][C]0.092478[/C][/ROW]
[ROW][C]M9[/C][C]76.3415064102565[/C][C]138.919593[/C][C]0.5495[/C][C]0.585239[/C][C]0.292619[/C][/ROW]
[ROW][C]M10[/C][C]163.627670940171[/C][C]138.731002[/C][C]1.1795[/C][C]0.244151[/C][C]0.122076[/C][/ROW]
[ROW][C]M11[/C][C]14.3138354700856[/C][C]138.617724[/C][C]0.1033[/C][C]0.918195[/C][C]0.459098[/C][/ROW]
[ROW][C]t[/C][C]3.71383547008545[/C][C]3.236122[/C][C]1.1476[/C][C]0.256934[/C][C]0.128467[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25290&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25290&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)1623.98461538462118.46512313.708500
Dummy-198.804487179487114.36748-1.73830.0887070.044353
M1174.955395299147132.9513421.31590.1945780.097289
M2-93.8225427350426139.615548-0.6720.504870.252435
M3-205.936378205128139.36197-1.47770.1461560.073078
M4-106.450213675214139.183192-0.76480.4482020.224101
M564.8359508547011139.0795030.46620.6432410.32162
M6-229.477884615384139.051071-1.65030.1055470.052773
M7-2.99172008546989139.097942-0.02150.9829310.491466
M8187.255341880342139.1831921.34540.1849550.092478
M976.3415064102565138.9195930.54950.5852390.292619
M10163.627670940171138.7310021.17950.2441510.122076
M1114.3138354700856138.6177240.10330.9181950.459098
t3.713835470085453.2361221.14760.2569340.128467







Multiple Linear Regression - Regression Statistics
Multiple R0.587246615212185
R-squared0.344858587078168
Adjusted R-squared0.163649260099789
F-TEST (value)1.90309512666153
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.0543609535741828
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation219.114131458971
Sum Squared Residuals2256517.12243589

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.587246615212185 \tabularnewline
R-squared & 0.344858587078168 \tabularnewline
Adjusted R-squared & 0.163649260099789 \tabularnewline
F-TEST (value) & 1.90309512666153 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.0543609535741828 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 219.114131458971 \tabularnewline
Sum Squared Residuals & 2256517.12243589 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25290&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.587246615212185[/C][/ROW]
[ROW][C]R-squared[/C][C]0.344858587078168[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.163649260099789[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.90309512666153[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.0543609535741828[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]219.114131458971[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2256517.12243589[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25290&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25290&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.587246615212185
R-squared0.344858587078168
Adjusted R-squared0.163649260099789
F-TEST (value)1.90309512666153
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.0543609535741828
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation219.114131458971
Sum Squared Residuals2256517.12243589







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
115151802.65384615384-287.65384615384
215101537.58974358974-27.5897435897437
312251429.18974358974-204.189743589744
415771532.3897435897444.6102564102563
514171707.38974358974-290.389743589744
612241416.78974358974-192.789743589744
716931646.9897435897446.0102564102561
816331840.95064102564-207.950641025642
916391733.75064102564-94.7506410256413
1019141824.7506410256489.2493589743588
1115861679.15064102564-93.1506410256412
1215521668.55064102564-116.550641025641
1320811847.21987179487233.780128205127
1415001582.15576923077-82.1557692307694
1514371473.75576923077-36.7557692307694
1614701576.95576923077-106.955769230769
1718491751.9557692307797.0442307692306
1813871461.35576923077-74.3557692307694
1915921691.55576923077-99.5557692307693
2015891885.51666666667-296.516666666667
2117981778.3166666666719.6833333333333
2219351869.3166666666765.6833333333333
2318871723.71666666667163.283333333333
2420271713.11666666667313.883333333333
2520801891.7858974359188.214102564101
2615561626.72179487179-70.7217948717949
2716821518.32179487179163.678205128205
2817851621.52179487179163.478205128205
2918691796.5217948717972.4782051282052
3017811505.92179487179275.078205128205
3120821736.12179487179345.878205128205
3225701731.27820512821838.721794871795
3318621624.07820512821237.921794871795
3419361715.07820512821220.921794871795
3515041569.47820512821-65.4782051282053
3617651558.87820512821206.121794871795
3716071737.54743589744-130.547435897437
3815771472.48333333333104.516666666667
3914931364.08333333333128.916666666667
4016151467.28333333333147.716666666667
4117001642.2833333333357.7166666666666
4213351351.68333333333-16.6833333333334
4315231581.88333333333-58.8833333333333
4416231775.84423076923-152.844230769231
4515401668.64423076923-128.644230769231
4616371759.64423076923-122.644230769231
4715241614.04423076923-90.0442307692307
4814191603.44423076923-184.444230769231
4918211782.1134615384638.8865384615373
5015931517.0493589743675.9506410256412
5113571408.64935897436-51.6493589743588
5212631511.84935897436-248.849358974359
5317501686.8493589743663.1506410256412
5414051396.249358974368.75064102564123
5513931626.44935897436-233.449358974359
5616391820.41025641026-181.410256410256
5716791713.21025641026-34.2102564102561
5815511804.21025641026-253.210256410256
5917441658.6102564102685.389743589744
6014291648.01025641026-219.010256410256
6117841826.67948717949-42.6794871794881

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 1515 & 1802.65384615384 & -287.65384615384 \tabularnewline
2 & 1510 & 1537.58974358974 & -27.5897435897437 \tabularnewline
3 & 1225 & 1429.18974358974 & -204.189743589744 \tabularnewline
4 & 1577 & 1532.38974358974 & 44.6102564102563 \tabularnewline
5 & 1417 & 1707.38974358974 & -290.389743589744 \tabularnewline
6 & 1224 & 1416.78974358974 & -192.789743589744 \tabularnewline
7 & 1693 & 1646.98974358974 & 46.0102564102561 \tabularnewline
8 & 1633 & 1840.95064102564 & -207.950641025642 \tabularnewline
9 & 1639 & 1733.75064102564 & -94.7506410256413 \tabularnewline
10 & 1914 & 1824.75064102564 & 89.2493589743588 \tabularnewline
11 & 1586 & 1679.15064102564 & -93.1506410256412 \tabularnewline
12 & 1552 & 1668.55064102564 & -116.550641025641 \tabularnewline
13 & 2081 & 1847.21987179487 & 233.780128205127 \tabularnewline
14 & 1500 & 1582.15576923077 & -82.1557692307694 \tabularnewline
15 & 1437 & 1473.75576923077 & -36.7557692307694 \tabularnewline
16 & 1470 & 1576.95576923077 & -106.955769230769 \tabularnewline
17 & 1849 & 1751.95576923077 & 97.0442307692306 \tabularnewline
18 & 1387 & 1461.35576923077 & -74.3557692307694 \tabularnewline
19 & 1592 & 1691.55576923077 & -99.5557692307693 \tabularnewline
20 & 1589 & 1885.51666666667 & -296.516666666667 \tabularnewline
21 & 1798 & 1778.31666666667 & 19.6833333333333 \tabularnewline
22 & 1935 & 1869.31666666667 & 65.6833333333333 \tabularnewline
23 & 1887 & 1723.71666666667 & 163.283333333333 \tabularnewline
24 & 2027 & 1713.11666666667 & 313.883333333333 \tabularnewline
25 & 2080 & 1891.7858974359 & 188.214102564101 \tabularnewline
26 & 1556 & 1626.72179487179 & -70.7217948717949 \tabularnewline
27 & 1682 & 1518.32179487179 & 163.678205128205 \tabularnewline
28 & 1785 & 1621.52179487179 & 163.478205128205 \tabularnewline
29 & 1869 & 1796.52179487179 & 72.4782051282052 \tabularnewline
30 & 1781 & 1505.92179487179 & 275.078205128205 \tabularnewline
31 & 2082 & 1736.12179487179 & 345.878205128205 \tabularnewline
32 & 2570 & 1731.27820512821 & 838.721794871795 \tabularnewline
33 & 1862 & 1624.07820512821 & 237.921794871795 \tabularnewline
34 & 1936 & 1715.07820512821 & 220.921794871795 \tabularnewline
35 & 1504 & 1569.47820512821 & -65.4782051282053 \tabularnewline
36 & 1765 & 1558.87820512821 & 206.121794871795 \tabularnewline
37 & 1607 & 1737.54743589744 & -130.547435897437 \tabularnewline
38 & 1577 & 1472.48333333333 & 104.516666666667 \tabularnewline
39 & 1493 & 1364.08333333333 & 128.916666666667 \tabularnewline
40 & 1615 & 1467.28333333333 & 147.716666666667 \tabularnewline
41 & 1700 & 1642.28333333333 & 57.7166666666666 \tabularnewline
42 & 1335 & 1351.68333333333 & -16.6833333333334 \tabularnewline
43 & 1523 & 1581.88333333333 & -58.8833333333333 \tabularnewline
44 & 1623 & 1775.84423076923 & -152.844230769231 \tabularnewline
45 & 1540 & 1668.64423076923 & -128.644230769231 \tabularnewline
46 & 1637 & 1759.64423076923 & -122.644230769231 \tabularnewline
47 & 1524 & 1614.04423076923 & -90.0442307692307 \tabularnewline
48 & 1419 & 1603.44423076923 & -184.444230769231 \tabularnewline
49 & 1821 & 1782.11346153846 & 38.8865384615373 \tabularnewline
50 & 1593 & 1517.04935897436 & 75.9506410256412 \tabularnewline
51 & 1357 & 1408.64935897436 & -51.6493589743588 \tabularnewline
52 & 1263 & 1511.84935897436 & -248.849358974359 \tabularnewline
53 & 1750 & 1686.84935897436 & 63.1506410256412 \tabularnewline
54 & 1405 & 1396.24935897436 & 8.75064102564123 \tabularnewline
55 & 1393 & 1626.44935897436 & -233.449358974359 \tabularnewline
56 & 1639 & 1820.41025641026 & -181.410256410256 \tabularnewline
57 & 1679 & 1713.21025641026 & -34.2102564102561 \tabularnewline
58 & 1551 & 1804.21025641026 & -253.210256410256 \tabularnewline
59 & 1744 & 1658.61025641026 & 85.389743589744 \tabularnewline
60 & 1429 & 1648.01025641026 & -219.010256410256 \tabularnewline
61 & 1784 & 1826.67948717949 & -42.6794871794881 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25290&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]1515[/C][C]1802.65384615384[/C][C]-287.65384615384[/C][/ROW]
[ROW][C]2[/C][C]1510[/C][C]1537.58974358974[/C][C]-27.5897435897437[/C][/ROW]
[ROW][C]3[/C][C]1225[/C][C]1429.18974358974[/C][C]-204.189743589744[/C][/ROW]
[ROW][C]4[/C][C]1577[/C][C]1532.38974358974[/C][C]44.6102564102563[/C][/ROW]
[ROW][C]5[/C][C]1417[/C][C]1707.38974358974[/C][C]-290.389743589744[/C][/ROW]
[ROW][C]6[/C][C]1224[/C][C]1416.78974358974[/C][C]-192.789743589744[/C][/ROW]
[ROW][C]7[/C][C]1693[/C][C]1646.98974358974[/C][C]46.0102564102561[/C][/ROW]
[ROW][C]8[/C][C]1633[/C][C]1840.95064102564[/C][C]-207.950641025642[/C][/ROW]
[ROW][C]9[/C][C]1639[/C][C]1733.75064102564[/C][C]-94.7506410256413[/C][/ROW]
[ROW][C]10[/C][C]1914[/C][C]1824.75064102564[/C][C]89.2493589743588[/C][/ROW]
[ROW][C]11[/C][C]1586[/C][C]1679.15064102564[/C][C]-93.1506410256412[/C][/ROW]
[ROW][C]12[/C][C]1552[/C][C]1668.55064102564[/C][C]-116.550641025641[/C][/ROW]
[ROW][C]13[/C][C]2081[/C][C]1847.21987179487[/C][C]233.780128205127[/C][/ROW]
[ROW][C]14[/C][C]1500[/C][C]1582.15576923077[/C][C]-82.1557692307694[/C][/ROW]
[ROW][C]15[/C][C]1437[/C][C]1473.75576923077[/C][C]-36.7557692307694[/C][/ROW]
[ROW][C]16[/C][C]1470[/C][C]1576.95576923077[/C][C]-106.955769230769[/C][/ROW]
[ROW][C]17[/C][C]1849[/C][C]1751.95576923077[/C][C]97.0442307692306[/C][/ROW]
[ROW][C]18[/C][C]1387[/C][C]1461.35576923077[/C][C]-74.3557692307694[/C][/ROW]
[ROW][C]19[/C][C]1592[/C][C]1691.55576923077[/C][C]-99.5557692307693[/C][/ROW]
[ROW][C]20[/C][C]1589[/C][C]1885.51666666667[/C][C]-296.516666666667[/C][/ROW]
[ROW][C]21[/C][C]1798[/C][C]1778.31666666667[/C][C]19.6833333333333[/C][/ROW]
[ROW][C]22[/C][C]1935[/C][C]1869.31666666667[/C][C]65.6833333333333[/C][/ROW]
[ROW][C]23[/C][C]1887[/C][C]1723.71666666667[/C][C]163.283333333333[/C][/ROW]
[ROW][C]24[/C][C]2027[/C][C]1713.11666666667[/C][C]313.883333333333[/C][/ROW]
[ROW][C]25[/C][C]2080[/C][C]1891.7858974359[/C][C]188.214102564101[/C][/ROW]
[ROW][C]26[/C][C]1556[/C][C]1626.72179487179[/C][C]-70.7217948717949[/C][/ROW]
[ROW][C]27[/C][C]1682[/C][C]1518.32179487179[/C][C]163.678205128205[/C][/ROW]
[ROW][C]28[/C][C]1785[/C][C]1621.52179487179[/C][C]163.478205128205[/C][/ROW]
[ROW][C]29[/C][C]1869[/C][C]1796.52179487179[/C][C]72.4782051282052[/C][/ROW]
[ROW][C]30[/C][C]1781[/C][C]1505.92179487179[/C][C]275.078205128205[/C][/ROW]
[ROW][C]31[/C][C]2082[/C][C]1736.12179487179[/C][C]345.878205128205[/C][/ROW]
[ROW][C]32[/C][C]2570[/C][C]1731.27820512821[/C][C]838.721794871795[/C][/ROW]
[ROW][C]33[/C][C]1862[/C][C]1624.07820512821[/C][C]237.921794871795[/C][/ROW]
[ROW][C]34[/C][C]1936[/C][C]1715.07820512821[/C][C]220.921794871795[/C][/ROW]
[ROW][C]35[/C][C]1504[/C][C]1569.47820512821[/C][C]-65.4782051282053[/C][/ROW]
[ROW][C]36[/C][C]1765[/C][C]1558.87820512821[/C][C]206.121794871795[/C][/ROW]
[ROW][C]37[/C][C]1607[/C][C]1737.54743589744[/C][C]-130.547435897437[/C][/ROW]
[ROW][C]38[/C][C]1577[/C][C]1472.48333333333[/C][C]104.516666666667[/C][/ROW]
[ROW][C]39[/C][C]1493[/C][C]1364.08333333333[/C][C]128.916666666667[/C][/ROW]
[ROW][C]40[/C][C]1615[/C][C]1467.28333333333[/C][C]147.716666666667[/C][/ROW]
[ROW][C]41[/C][C]1700[/C][C]1642.28333333333[/C][C]57.7166666666666[/C][/ROW]
[ROW][C]42[/C][C]1335[/C][C]1351.68333333333[/C][C]-16.6833333333334[/C][/ROW]
[ROW][C]43[/C][C]1523[/C][C]1581.88333333333[/C][C]-58.8833333333333[/C][/ROW]
[ROW][C]44[/C][C]1623[/C][C]1775.84423076923[/C][C]-152.844230769231[/C][/ROW]
[ROW][C]45[/C][C]1540[/C][C]1668.64423076923[/C][C]-128.644230769231[/C][/ROW]
[ROW][C]46[/C][C]1637[/C][C]1759.64423076923[/C][C]-122.644230769231[/C][/ROW]
[ROW][C]47[/C][C]1524[/C][C]1614.04423076923[/C][C]-90.0442307692307[/C][/ROW]
[ROW][C]48[/C][C]1419[/C][C]1603.44423076923[/C][C]-184.444230769231[/C][/ROW]
[ROW][C]49[/C][C]1821[/C][C]1782.11346153846[/C][C]38.8865384615373[/C][/ROW]
[ROW][C]50[/C][C]1593[/C][C]1517.04935897436[/C][C]75.9506410256412[/C][/ROW]
[ROW][C]51[/C][C]1357[/C][C]1408.64935897436[/C][C]-51.6493589743588[/C][/ROW]
[ROW][C]52[/C][C]1263[/C][C]1511.84935897436[/C][C]-248.849358974359[/C][/ROW]
[ROW][C]53[/C][C]1750[/C][C]1686.84935897436[/C][C]63.1506410256412[/C][/ROW]
[ROW][C]54[/C][C]1405[/C][C]1396.24935897436[/C][C]8.75064102564123[/C][/ROW]
[ROW][C]55[/C][C]1393[/C][C]1626.44935897436[/C][C]-233.449358974359[/C][/ROW]
[ROW][C]56[/C][C]1639[/C][C]1820.41025641026[/C][C]-181.410256410256[/C][/ROW]
[ROW][C]57[/C][C]1679[/C][C]1713.21025641026[/C][C]-34.2102564102561[/C][/ROW]
[ROW][C]58[/C][C]1551[/C][C]1804.21025641026[/C][C]-253.210256410256[/C][/ROW]
[ROW][C]59[/C][C]1744[/C][C]1658.61025641026[/C][C]85.389743589744[/C][/ROW]
[ROW][C]60[/C][C]1429[/C][C]1648.01025641026[/C][C]-219.010256410256[/C][/ROW]
[ROW][C]61[/C][C]1784[/C][C]1826.67948717949[/C][C]-42.6794871794881[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25290&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25290&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
115151802.65384615384-287.65384615384
215101537.58974358974-27.5897435897437
312251429.18974358974-204.189743589744
415771532.3897435897444.6102564102563
514171707.38974358974-290.389743589744
612241416.78974358974-192.789743589744
716931646.9897435897446.0102564102561
816331840.95064102564-207.950641025642
916391733.75064102564-94.7506410256413
1019141824.7506410256489.2493589743588
1115861679.15064102564-93.1506410256412
1215521668.55064102564-116.550641025641
1320811847.21987179487233.780128205127
1415001582.15576923077-82.1557692307694
1514371473.75576923077-36.7557692307694
1614701576.95576923077-106.955769230769
1718491751.9557692307797.0442307692306
1813871461.35576923077-74.3557692307694
1915921691.55576923077-99.5557692307693
2015891885.51666666667-296.516666666667
2117981778.3166666666719.6833333333333
2219351869.3166666666765.6833333333333
2318871723.71666666667163.283333333333
2420271713.11666666667313.883333333333
2520801891.7858974359188.214102564101
2615561626.72179487179-70.7217948717949
2716821518.32179487179163.678205128205
2817851621.52179487179163.478205128205
2918691796.5217948717972.4782051282052
3017811505.92179487179275.078205128205
3120821736.12179487179345.878205128205
3225701731.27820512821838.721794871795
3318621624.07820512821237.921794871795
3419361715.07820512821220.921794871795
3515041569.47820512821-65.4782051282053
3617651558.87820512821206.121794871795
3716071737.54743589744-130.547435897437
3815771472.48333333333104.516666666667
3914931364.08333333333128.916666666667
4016151467.28333333333147.716666666667
4117001642.2833333333357.7166666666666
4213351351.68333333333-16.6833333333334
4315231581.88333333333-58.8833333333333
4416231775.84423076923-152.844230769231
4515401668.64423076923-128.644230769231
4616371759.64423076923-122.644230769231
4715241614.04423076923-90.0442307692307
4814191603.44423076923-184.444230769231
4918211782.1134615384638.8865384615373
5015931517.0493589743675.9506410256412
5113571408.64935897436-51.6493589743588
5212631511.84935897436-248.849358974359
5317501686.8493589743663.1506410256412
5414051396.249358974368.75064102564123
5513931626.44935897436-233.449358974359
5616391820.41025641026-181.410256410256
5716791713.21025641026-34.2102564102561
5815511804.21025641026-253.210256410256
5917441658.6102564102685.389743589744
6014291648.01025641026-219.010256410256
6117841826.67948717949-42.6794871794881







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.6415154220765260.7169691558469480.358484577923474
180.5018352735703950.996329452859210.498164726429605
190.4913146050392230.9826292100784450.508685394960777
200.5612800782821790.877439843435640.43871992171782
210.4566583027595540.9133166055191080.543341697240446
220.3611671282994870.7223342565989740.638832871700513
230.2890743751238230.5781487502476460.710925624876177
240.3081333108083880.6162666216167760.691866689191612
250.2179800324568070.4359600649136130.782019967543193
260.2306180537283800.4612361074567600.76938194627162
270.1746321931009770.3492643862019530.825367806899023
280.1158706808947810.2317413617895620.884129319105219
290.0950242538158620.1900485076317240.904975746184138
300.0878893470905560.1757786941811120.912110652909444
310.06470363971709560.1294072794341910.935296360282904
320.4846089663762830.9692179327525650.515391033623717
330.774892501574850.4502149968502990.225107498425150
340.901746294997660.1965074100046800.0982537050023398
350.9390430716190040.1219138567619920.0609569283809961
360.9756525094292950.04869498114141010.0243474905707051
370.9874423869209660.02511522615806740.0125576130790337
380.9739072858352260.05218542832954850.0260927141647743
390.956271096673110.08745780665378180.0437289033268909
400.9922712128083370.01545757438332590.00772878719166293
410.9796268168899450.04074636622010970.0203731831100549
420.953949375255680.09210124948864080.0460506247443204
430.9441125095455430.1117749809089140.0558874904544569
440.8771003947072060.2457992105855870.122899605292794

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.641515422076526 & 0.716969155846948 & 0.358484577923474 \tabularnewline
18 & 0.501835273570395 & 0.99632945285921 & 0.498164726429605 \tabularnewline
19 & 0.491314605039223 & 0.982629210078445 & 0.508685394960777 \tabularnewline
20 & 0.561280078282179 & 0.87743984343564 & 0.43871992171782 \tabularnewline
21 & 0.456658302759554 & 0.913316605519108 & 0.543341697240446 \tabularnewline
22 & 0.361167128299487 & 0.722334256598974 & 0.638832871700513 \tabularnewline
23 & 0.289074375123823 & 0.578148750247646 & 0.710925624876177 \tabularnewline
24 & 0.308133310808388 & 0.616266621616776 & 0.691866689191612 \tabularnewline
25 & 0.217980032456807 & 0.435960064913613 & 0.782019967543193 \tabularnewline
26 & 0.230618053728380 & 0.461236107456760 & 0.76938194627162 \tabularnewline
27 & 0.174632193100977 & 0.349264386201953 & 0.825367806899023 \tabularnewline
28 & 0.115870680894781 & 0.231741361789562 & 0.884129319105219 \tabularnewline
29 & 0.095024253815862 & 0.190048507631724 & 0.904975746184138 \tabularnewline
30 & 0.087889347090556 & 0.175778694181112 & 0.912110652909444 \tabularnewline
31 & 0.0647036397170956 & 0.129407279434191 & 0.935296360282904 \tabularnewline
32 & 0.484608966376283 & 0.969217932752565 & 0.515391033623717 \tabularnewline
33 & 0.77489250157485 & 0.450214996850299 & 0.225107498425150 \tabularnewline
34 & 0.90174629499766 & 0.196507410004680 & 0.0982537050023398 \tabularnewline
35 & 0.939043071619004 & 0.121913856761992 & 0.0609569283809961 \tabularnewline
36 & 0.975652509429295 & 0.0486949811414101 & 0.0243474905707051 \tabularnewline
37 & 0.987442386920966 & 0.0251152261580674 & 0.0125576130790337 \tabularnewline
38 & 0.973907285835226 & 0.0521854283295485 & 0.0260927141647743 \tabularnewline
39 & 0.95627109667311 & 0.0874578066537818 & 0.0437289033268909 \tabularnewline
40 & 0.992271212808337 & 0.0154575743833259 & 0.00772878719166293 \tabularnewline
41 & 0.979626816889945 & 0.0407463662201097 & 0.0203731831100549 \tabularnewline
42 & 0.95394937525568 & 0.0921012494886408 & 0.0460506247443204 \tabularnewline
43 & 0.944112509545543 & 0.111774980908914 & 0.0558874904544569 \tabularnewline
44 & 0.877100394707206 & 0.245799210585587 & 0.122899605292794 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25290&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.641515422076526[/C][C]0.716969155846948[/C][C]0.358484577923474[/C][/ROW]
[ROW][C]18[/C][C]0.501835273570395[/C][C]0.99632945285921[/C][C]0.498164726429605[/C][/ROW]
[ROW][C]19[/C][C]0.491314605039223[/C][C]0.982629210078445[/C][C]0.508685394960777[/C][/ROW]
[ROW][C]20[/C][C]0.561280078282179[/C][C]0.87743984343564[/C][C]0.43871992171782[/C][/ROW]
[ROW][C]21[/C][C]0.456658302759554[/C][C]0.913316605519108[/C][C]0.543341697240446[/C][/ROW]
[ROW][C]22[/C][C]0.361167128299487[/C][C]0.722334256598974[/C][C]0.638832871700513[/C][/ROW]
[ROW][C]23[/C][C]0.289074375123823[/C][C]0.578148750247646[/C][C]0.710925624876177[/C][/ROW]
[ROW][C]24[/C][C]0.308133310808388[/C][C]0.616266621616776[/C][C]0.691866689191612[/C][/ROW]
[ROW][C]25[/C][C]0.217980032456807[/C][C]0.435960064913613[/C][C]0.782019967543193[/C][/ROW]
[ROW][C]26[/C][C]0.230618053728380[/C][C]0.461236107456760[/C][C]0.76938194627162[/C][/ROW]
[ROW][C]27[/C][C]0.174632193100977[/C][C]0.349264386201953[/C][C]0.825367806899023[/C][/ROW]
[ROW][C]28[/C][C]0.115870680894781[/C][C]0.231741361789562[/C][C]0.884129319105219[/C][/ROW]
[ROW][C]29[/C][C]0.095024253815862[/C][C]0.190048507631724[/C][C]0.904975746184138[/C][/ROW]
[ROW][C]30[/C][C]0.087889347090556[/C][C]0.175778694181112[/C][C]0.912110652909444[/C][/ROW]
[ROW][C]31[/C][C]0.0647036397170956[/C][C]0.129407279434191[/C][C]0.935296360282904[/C][/ROW]
[ROW][C]32[/C][C]0.484608966376283[/C][C]0.969217932752565[/C][C]0.515391033623717[/C][/ROW]
[ROW][C]33[/C][C]0.77489250157485[/C][C]0.450214996850299[/C][C]0.225107498425150[/C][/ROW]
[ROW][C]34[/C][C]0.90174629499766[/C][C]0.196507410004680[/C][C]0.0982537050023398[/C][/ROW]
[ROW][C]35[/C][C]0.939043071619004[/C][C]0.121913856761992[/C][C]0.0609569283809961[/C][/ROW]
[ROW][C]36[/C][C]0.975652509429295[/C][C]0.0486949811414101[/C][C]0.0243474905707051[/C][/ROW]
[ROW][C]37[/C][C]0.987442386920966[/C][C]0.0251152261580674[/C][C]0.0125576130790337[/C][/ROW]
[ROW][C]38[/C][C]0.973907285835226[/C][C]0.0521854283295485[/C][C]0.0260927141647743[/C][/ROW]
[ROW][C]39[/C][C]0.95627109667311[/C][C]0.0874578066537818[/C][C]0.0437289033268909[/C][/ROW]
[ROW][C]40[/C][C]0.992271212808337[/C][C]0.0154575743833259[/C][C]0.00772878719166293[/C][/ROW]
[ROW][C]41[/C][C]0.979626816889945[/C][C]0.0407463662201097[/C][C]0.0203731831100549[/C][/ROW]
[ROW][C]42[/C][C]0.95394937525568[/C][C]0.0921012494886408[/C][C]0.0460506247443204[/C][/ROW]
[ROW][C]43[/C][C]0.944112509545543[/C][C]0.111774980908914[/C][C]0.0558874904544569[/C][/ROW]
[ROW][C]44[/C][C]0.877100394707206[/C][C]0.245799210585587[/C][C]0.122899605292794[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25290&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.6415154220765260.7169691558469480.358484577923474
180.5018352735703950.996329452859210.498164726429605
190.4913146050392230.9826292100784450.508685394960777
200.5612800782821790.877439843435640.43871992171782
210.4566583027595540.9133166055191080.543341697240446
220.3611671282994870.7223342565989740.638832871700513
230.2890743751238230.5781487502476460.710925624876177
240.3081333108083880.6162666216167760.691866689191612
250.2179800324568070.4359600649136130.782019967543193
260.2306180537283800.4612361074567600.76938194627162
270.1746321931009770.3492643862019530.825367806899023
280.1158706808947810.2317413617895620.884129319105219
290.0950242538158620.1900485076317240.904975746184138
300.0878893470905560.1757786941811120.912110652909444
310.06470363971709560.1294072794341910.935296360282904
320.4846089663762830.9692179327525650.515391033623717
330.774892501574850.4502149968502990.225107498425150
340.901746294997660.1965074100046800.0982537050023398
350.9390430716190040.1219138567619920.0609569283809961
360.9756525094292950.04869498114141010.0243474905707051
370.9874423869209660.02511522615806740.0125576130790337
380.9739072858352260.05218542832954850.0260927141647743
390.956271096673110.08745780665378180.0437289033268909
400.9922712128083370.01545757438332590.00772878719166293
410.9796268168899450.04074636622010970.0203731831100549
420.953949375255680.09210124948864080.0460506247443204
430.9441125095455430.1117749809089140.0558874904544569
440.8771003947072060.2457992105855870.122899605292794







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



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