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 computationMon, 23 Nov 2009 06:58:38 -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/23/t1258984761ifulxwhls059xuj.htm/, Retrieved Fri, 03 May 2024 14:20:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58749, Retrieved Fri, 03 May 2024 14:20:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact174
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2009-11-23 13:58:38] [21503129a47c64de7f80e1fde84c3a45] [Current]
- R PD    [Multiple Regression] [] [2009-12-13 13:53:10] [1eac2882020791f6c49a90a91c34285a]
Feedback Forum

Post a new message
Dataseries X:
99.9	98.8
98.6	100.5
107.2	110.4
95.7	96.4
93.7	101.9
106.7	106.2
86.7	81
95.3	94.7
99.3	101
101.8	109.4
96	102.3
91.7	90.7
95.3	96.2
96.6	96.1
107.2	106
108	103.1
98.4	102
103.1	104.7
81.1	86
96.6	92.1
103.7	106.9
106.6	112.6
97.6	101.7
87.6	92
99.4	97.4
98.5	97
105.2	105.4
104.6	102.7
97.5	98.1
108.9	104.5
86.8	87.4
88.9	89.9
110.3	109.8
114.8	111.7
94.6	98.6
92	96.9
93.8	95.1
93.8	97
107.6	112.7
101	102.9
95.4	97.4
96.5	111.4
89.2	87.4
87.1	96.8
110.5	114.1
110.8	110.3
104.2	103.9
88.9	101.6
89.8	94.6
90	95.9
93.9	104.7
91.3	102.8
87.8	98.1
99.7	113.9
73.5	80.9
79.2	95.7
96.9	113.2
95.2	105.9
95.6	108.8
89.7	102.3




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=58749&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=58749&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58749&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
TotProd[t] = + 39.1032602682758 + 0.58527352083724ProdMetal[t] + 4.07634027845658M1[t] + 3.5801665171541M2[t] + 6.29025054456396M3[t] + 6.01292972203943M4[t] + 1.82916558241524M5[t] + 5.35126929941585M6[t] -0.19740867179095M7[t] + 0.478414521457085M8[t] + 6.48453488259889M9[t] + 7.76983376921275M10[t] + 3.73879347044081M11[t] -0.158866937034356t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
TotProd[t] =  +  39.1032602682758 +  0.58527352083724ProdMetal[t] +  4.07634027845658M1[t] +  3.5801665171541M2[t] +  6.29025054456396M3[t] +  6.01292972203943M4[t] +  1.82916558241524M5[t] +  5.35126929941585M6[t] -0.19740867179095M7[t] +  0.478414521457085M8[t] +  6.48453488259889M9[t] +  7.76983376921275M10[t] +  3.73879347044081M11[t] -0.158866937034356t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58749&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]TotProd[t] =  +  39.1032602682758 +  0.58527352083724ProdMetal[t] +  4.07634027845658M1[t] +  3.5801665171541M2[t] +  6.29025054456396M3[t] +  6.01292972203943M4[t] +  1.82916558241524M5[t] +  5.35126929941585M6[t] -0.19740867179095M7[t] +  0.478414521457085M8[t] +  6.48453488259889M9[t] +  7.76983376921275M10[t] +  3.73879347044081M11[t] -0.158866937034356t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58749&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58749&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
TotProd[t] = + 39.1032602682758 + 0.58527352083724ProdMetal[t] + 4.07634027845658M1[t] + 3.5801665171541M2[t] + 6.29025054456396M3[t] + 6.01292972203943M4[t] + 1.82916558241524M5[t] + 5.35126929941585M6[t] -0.19740867179095M7[t] + 0.478414521457085M8[t] + 6.48453488259889M9[t] + 7.76983376921275M10[t] + 3.73879347044081M11[t] -0.158866937034356t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)39.103260268275818.9317422.06550.0445380.022269
ProdMetal0.585273520837240.1981992.9530.0049440.002472
M14.076340278456582.9265561.39290.1703520.085176
M23.58016651715412.930281.22180.2280140.114007
M36.290250544563963.7180931.69180.097450.048725
M46.012929722039433.0985271.94060.0584530.029226
M51.829165582415242.9783240.61420.5421360.271068
M65.351269299415853.7276561.43560.1578930.078947
M7-0.197408671790953.741121-0.05280.9581460.479073
M80.4784145214570852.9508180.16210.8719140.435957
M96.484534882598893.8113011.70140.095620.04781
M107.769833769212753.931921.97610.054160.02708
M113.738793470440813.1671651.18050.2438750.121938
t-0.1588669370343560.036511-4.35127.5e-053.7e-05

\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) & 39.1032602682758 & 18.931742 & 2.0655 & 0.044538 & 0.022269 \tabularnewline
ProdMetal & 0.58527352083724 & 0.198199 & 2.953 & 0.004944 & 0.002472 \tabularnewline
M1 & 4.07634027845658 & 2.926556 & 1.3929 & 0.170352 & 0.085176 \tabularnewline
M2 & 3.5801665171541 & 2.93028 & 1.2218 & 0.228014 & 0.114007 \tabularnewline
M3 & 6.29025054456396 & 3.718093 & 1.6918 & 0.09745 & 0.048725 \tabularnewline
M4 & 6.01292972203943 & 3.098527 & 1.9406 & 0.058453 & 0.029226 \tabularnewline
M5 & 1.82916558241524 & 2.978324 & 0.6142 & 0.542136 & 0.271068 \tabularnewline
M6 & 5.35126929941585 & 3.727656 & 1.4356 & 0.157893 & 0.078947 \tabularnewline
M7 & -0.19740867179095 & 3.741121 & -0.0528 & 0.958146 & 0.479073 \tabularnewline
M8 & 0.478414521457085 & 2.950818 & 0.1621 & 0.871914 & 0.435957 \tabularnewline
M9 & 6.48453488259889 & 3.811301 & 1.7014 & 0.09562 & 0.04781 \tabularnewline
M10 & 7.76983376921275 & 3.93192 & 1.9761 & 0.05416 & 0.02708 \tabularnewline
M11 & 3.73879347044081 & 3.167165 & 1.1805 & 0.243875 & 0.121938 \tabularnewline
t & -0.158866937034356 & 0.036511 & -4.3512 & 7.5e-05 & 3.7e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58749&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]39.1032602682758[/C][C]18.931742[/C][C]2.0655[/C][C]0.044538[/C][C]0.022269[/C][/ROW]
[ROW][C]ProdMetal[/C][C]0.58527352083724[/C][C]0.198199[/C][C]2.953[/C][C]0.004944[/C][C]0.002472[/C][/ROW]
[ROW][C]M1[/C][C]4.07634027845658[/C][C]2.926556[/C][C]1.3929[/C][C]0.170352[/C][C]0.085176[/C][/ROW]
[ROW][C]M2[/C][C]3.5801665171541[/C][C]2.93028[/C][C]1.2218[/C][C]0.228014[/C][C]0.114007[/C][/ROW]
[ROW][C]M3[/C][C]6.29025054456396[/C][C]3.718093[/C][C]1.6918[/C][C]0.09745[/C][C]0.048725[/C][/ROW]
[ROW][C]M4[/C][C]6.01292972203943[/C][C]3.098527[/C][C]1.9406[/C][C]0.058453[/C][C]0.029226[/C][/ROW]
[ROW][C]M5[/C][C]1.82916558241524[/C][C]2.978324[/C][C]0.6142[/C][C]0.542136[/C][C]0.271068[/C][/ROW]
[ROW][C]M6[/C][C]5.35126929941585[/C][C]3.727656[/C][C]1.4356[/C][C]0.157893[/C][C]0.078947[/C][/ROW]
[ROW][C]M7[/C][C]-0.19740867179095[/C][C]3.741121[/C][C]-0.0528[/C][C]0.958146[/C][C]0.479073[/C][/ROW]
[ROW][C]M8[/C][C]0.478414521457085[/C][C]2.950818[/C][C]0.1621[/C][C]0.871914[/C][C]0.435957[/C][/ROW]
[ROW][C]M9[/C][C]6.48453488259889[/C][C]3.811301[/C][C]1.7014[/C][C]0.09562[/C][C]0.04781[/C][/ROW]
[ROW][C]M10[/C][C]7.76983376921275[/C][C]3.93192[/C][C]1.9761[/C][C]0.05416[/C][C]0.02708[/C][/ROW]
[ROW][C]M11[/C][C]3.73879347044081[/C][C]3.167165[/C][C]1.1805[/C][C]0.243875[/C][C]0.121938[/C][/ROW]
[ROW][C]t[/C][C]-0.158866937034356[/C][C]0.036511[/C][C]-4.3512[/C][C]7.5e-05[/C][C]3.7e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58749&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58749&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)39.103260268275818.9317422.06550.0445380.022269
ProdMetal0.585273520837240.1981992.9530.0049440.002472
M14.076340278456582.9265561.39290.1703520.085176
M23.58016651715412.930281.22180.2280140.114007
M36.290250544563963.7180931.69180.097450.048725
M46.012929722039433.0985271.94060.0584530.029226
M51.829165582415242.9783240.61420.5421360.271068
M65.351269299415853.7276561.43560.1578930.078947
M7-0.197408671790953.741121-0.05280.9581460.479073
M80.4784145214570852.9508180.16210.8719140.435957
M96.484534882598893.8113011.70140.095620.04781
M107.769833769212753.931921.97610.054160.02708
M113.738793470440813.1671651.18050.2438750.121938
t-0.1588669370343560.036511-4.35127.5e-053.7e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.872950470352862
R-squared0.762042523689282
Adjusted R-squared0.694793671688427
F-TEST (value)11.3316807799127
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value2.42013076245939e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.58625403353776
Sum Squared Residuals967.551398766505

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.872950470352862 \tabularnewline
R-squared & 0.762042523689282 \tabularnewline
Adjusted R-squared & 0.694793671688427 \tabularnewline
F-TEST (value) & 11.3316807799127 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 2.42013076245939e-10 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.58625403353776 \tabularnewline
Sum Squared Residuals & 967.551398766505 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58749&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.872950470352862[/C][/ROW]
[ROW][C]R-squared[/C][C]0.762042523689282[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.694793671688427[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]11.3316807799127[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]2.42013076245939e-10[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4.58625403353776[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]967.551398766505[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58749&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58749&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.872950470352862
R-squared0.762042523689282
Adjusted R-squared0.694793671688427
F-TEST (value)11.3316807799127
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value2.42013076245939e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.58625403353776
Sum Squared Residuals967.551398766505







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
199.9100.845757468417-0.945757468416905
298.6101.185681755504-2.58568175550370
3107.2109.531106702168-2.33110670216788
495.7100.901089650888-5.20108965088764
593.799.777462938834-6.07746293883393
6106.7105.6573758584001.04262414159970
786.785.20093822506071.49906177493929
895.393.73614171674461.56385828325542
999.3103.270618322127-3.97061832212663
10101.8109.313347846739-7.51334784673896
1196100.967998612988-4.96799861298823
1291.790.28116536380111.41883463619889
1395.397.4176430698281-2.11764306982815
1496.696.7040750194076-0.104075019407587
15107.2105.0494999660722.15050003392825
16108102.9160189960855.08398100391512
1798.497.92958704650540.470412953494632
18103.1102.8730623327320.226937667267826
1981.186.2209025848346-5.12090258483465
2096.690.30802731815556.29197268184452
21103.7104.817328850654-1.11732885065408
22106.6109.279819869006-2.67981986900584
2397.698.7104312560736-1.11043125607363
2487.689.1356176964772-1.53561769647725
2599.496.21356805042063.18643194957944
2698.595.32441794374883.17558205625117
27105.2102.7919326091572.40806739084287
28104.6100.7755063433383.82449365666229
2997.593.74061707082793.75938292917214
30108.9100.8496043841528.05039561584756
3186.885.13388226959451.66611773040549
3288.987.11402232790131.78597767209873
33110.3104.6082188166705.6917811833302
34114.8106.846670455847.95332954415995
3594.694.989680097066-0.389680097065915
369290.09705470416741.90294529583255
3793.892.96103570808260.838964291917363
3893.893.41801469933660.381985300663441
39107.6105.1580260668572.44197393314328
4010198.98615780309292.01384219690711
4195.491.42452236182953.97547763817048
4296.5102.981588433517-6.48158843351713
4389.283.22747902518225.97252097481777
4487.189.246006377266-2.14600637726596
45110.5105.2184917118585.28150828814235
46110.8104.1208842822566.67911571774436
47104.296.1852265130918.014773486909
4888.990.9414370076902-2.04143700769019
4989.890.7619957032517-0.961995703251743
509090.8678105820033-0.867810582003323
5193.998.5694346557465-4.66943465574652
5291.397.0212272065969-5.72122720659689
5387.889.9278105820033-2.12781058200332
5499.7102.538368991198-2.83836899119795
5573.577.5167978953279-4.01679789532790
5679.286.6958022599327-7.49580225993271
5796.9102.785342298692-5.88534229869186
5895.299.6392775461595-4.43927754615951
5995.697.1466635207812-1.54666352078121
6089.789.4447252278640.255274772136011

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 99.9 & 100.845757468417 & -0.945757468416905 \tabularnewline
2 & 98.6 & 101.185681755504 & -2.58568175550370 \tabularnewline
3 & 107.2 & 109.531106702168 & -2.33110670216788 \tabularnewline
4 & 95.7 & 100.901089650888 & -5.20108965088764 \tabularnewline
5 & 93.7 & 99.777462938834 & -6.07746293883393 \tabularnewline
6 & 106.7 & 105.657375858400 & 1.04262414159970 \tabularnewline
7 & 86.7 & 85.2009382250607 & 1.49906177493929 \tabularnewline
8 & 95.3 & 93.7361417167446 & 1.56385828325542 \tabularnewline
9 & 99.3 & 103.270618322127 & -3.97061832212663 \tabularnewline
10 & 101.8 & 109.313347846739 & -7.51334784673896 \tabularnewline
11 & 96 & 100.967998612988 & -4.96799861298823 \tabularnewline
12 & 91.7 & 90.2811653638011 & 1.41883463619889 \tabularnewline
13 & 95.3 & 97.4176430698281 & -2.11764306982815 \tabularnewline
14 & 96.6 & 96.7040750194076 & -0.104075019407587 \tabularnewline
15 & 107.2 & 105.049499966072 & 2.15050003392825 \tabularnewline
16 & 108 & 102.916018996085 & 5.08398100391512 \tabularnewline
17 & 98.4 & 97.9295870465054 & 0.470412953494632 \tabularnewline
18 & 103.1 & 102.873062332732 & 0.226937667267826 \tabularnewline
19 & 81.1 & 86.2209025848346 & -5.12090258483465 \tabularnewline
20 & 96.6 & 90.3080273181555 & 6.29197268184452 \tabularnewline
21 & 103.7 & 104.817328850654 & -1.11732885065408 \tabularnewline
22 & 106.6 & 109.279819869006 & -2.67981986900584 \tabularnewline
23 & 97.6 & 98.7104312560736 & -1.11043125607363 \tabularnewline
24 & 87.6 & 89.1356176964772 & -1.53561769647725 \tabularnewline
25 & 99.4 & 96.2135680504206 & 3.18643194957944 \tabularnewline
26 & 98.5 & 95.3244179437488 & 3.17558205625117 \tabularnewline
27 & 105.2 & 102.791932609157 & 2.40806739084287 \tabularnewline
28 & 104.6 & 100.775506343338 & 3.82449365666229 \tabularnewline
29 & 97.5 & 93.7406170708279 & 3.75938292917214 \tabularnewline
30 & 108.9 & 100.849604384152 & 8.05039561584756 \tabularnewline
31 & 86.8 & 85.1338822695945 & 1.66611773040549 \tabularnewline
32 & 88.9 & 87.1140223279013 & 1.78597767209873 \tabularnewline
33 & 110.3 & 104.608218816670 & 5.6917811833302 \tabularnewline
34 & 114.8 & 106.84667045584 & 7.95332954415995 \tabularnewline
35 & 94.6 & 94.989680097066 & -0.389680097065915 \tabularnewline
36 & 92 & 90.0970547041674 & 1.90294529583255 \tabularnewline
37 & 93.8 & 92.9610357080826 & 0.838964291917363 \tabularnewline
38 & 93.8 & 93.4180146993366 & 0.381985300663441 \tabularnewline
39 & 107.6 & 105.158026066857 & 2.44197393314328 \tabularnewline
40 & 101 & 98.9861578030929 & 2.01384219690711 \tabularnewline
41 & 95.4 & 91.4245223618295 & 3.97547763817048 \tabularnewline
42 & 96.5 & 102.981588433517 & -6.48158843351713 \tabularnewline
43 & 89.2 & 83.2274790251822 & 5.97252097481777 \tabularnewline
44 & 87.1 & 89.246006377266 & -2.14600637726596 \tabularnewline
45 & 110.5 & 105.218491711858 & 5.28150828814235 \tabularnewline
46 & 110.8 & 104.120884282256 & 6.67911571774436 \tabularnewline
47 & 104.2 & 96.185226513091 & 8.014773486909 \tabularnewline
48 & 88.9 & 90.9414370076902 & -2.04143700769019 \tabularnewline
49 & 89.8 & 90.7619957032517 & -0.961995703251743 \tabularnewline
50 & 90 & 90.8678105820033 & -0.867810582003323 \tabularnewline
51 & 93.9 & 98.5694346557465 & -4.66943465574652 \tabularnewline
52 & 91.3 & 97.0212272065969 & -5.72122720659689 \tabularnewline
53 & 87.8 & 89.9278105820033 & -2.12781058200332 \tabularnewline
54 & 99.7 & 102.538368991198 & -2.83836899119795 \tabularnewline
55 & 73.5 & 77.5167978953279 & -4.01679789532790 \tabularnewline
56 & 79.2 & 86.6958022599327 & -7.49580225993271 \tabularnewline
57 & 96.9 & 102.785342298692 & -5.88534229869186 \tabularnewline
58 & 95.2 & 99.6392775461595 & -4.43927754615951 \tabularnewline
59 & 95.6 & 97.1466635207812 & -1.54666352078121 \tabularnewline
60 & 89.7 & 89.444725227864 & 0.255274772136011 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58749&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]99.9[/C][C]100.845757468417[/C][C]-0.945757468416905[/C][/ROW]
[ROW][C]2[/C][C]98.6[/C][C]101.185681755504[/C][C]-2.58568175550370[/C][/ROW]
[ROW][C]3[/C][C]107.2[/C][C]109.531106702168[/C][C]-2.33110670216788[/C][/ROW]
[ROW][C]4[/C][C]95.7[/C][C]100.901089650888[/C][C]-5.20108965088764[/C][/ROW]
[ROW][C]5[/C][C]93.7[/C][C]99.777462938834[/C][C]-6.07746293883393[/C][/ROW]
[ROW][C]6[/C][C]106.7[/C][C]105.657375858400[/C][C]1.04262414159970[/C][/ROW]
[ROW][C]7[/C][C]86.7[/C][C]85.2009382250607[/C][C]1.49906177493929[/C][/ROW]
[ROW][C]8[/C][C]95.3[/C][C]93.7361417167446[/C][C]1.56385828325542[/C][/ROW]
[ROW][C]9[/C][C]99.3[/C][C]103.270618322127[/C][C]-3.97061832212663[/C][/ROW]
[ROW][C]10[/C][C]101.8[/C][C]109.313347846739[/C][C]-7.51334784673896[/C][/ROW]
[ROW][C]11[/C][C]96[/C][C]100.967998612988[/C][C]-4.96799861298823[/C][/ROW]
[ROW][C]12[/C][C]91.7[/C][C]90.2811653638011[/C][C]1.41883463619889[/C][/ROW]
[ROW][C]13[/C][C]95.3[/C][C]97.4176430698281[/C][C]-2.11764306982815[/C][/ROW]
[ROW][C]14[/C][C]96.6[/C][C]96.7040750194076[/C][C]-0.104075019407587[/C][/ROW]
[ROW][C]15[/C][C]107.2[/C][C]105.049499966072[/C][C]2.15050003392825[/C][/ROW]
[ROW][C]16[/C][C]108[/C][C]102.916018996085[/C][C]5.08398100391512[/C][/ROW]
[ROW][C]17[/C][C]98.4[/C][C]97.9295870465054[/C][C]0.470412953494632[/C][/ROW]
[ROW][C]18[/C][C]103.1[/C][C]102.873062332732[/C][C]0.226937667267826[/C][/ROW]
[ROW][C]19[/C][C]81.1[/C][C]86.2209025848346[/C][C]-5.12090258483465[/C][/ROW]
[ROW][C]20[/C][C]96.6[/C][C]90.3080273181555[/C][C]6.29197268184452[/C][/ROW]
[ROW][C]21[/C][C]103.7[/C][C]104.817328850654[/C][C]-1.11732885065408[/C][/ROW]
[ROW][C]22[/C][C]106.6[/C][C]109.279819869006[/C][C]-2.67981986900584[/C][/ROW]
[ROW][C]23[/C][C]97.6[/C][C]98.7104312560736[/C][C]-1.11043125607363[/C][/ROW]
[ROW][C]24[/C][C]87.6[/C][C]89.1356176964772[/C][C]-1.53561769647725[/C][/ROW]
[ROW][C]25[/C][C]99.4[/C][C]96.2135680504206[/C][C]3.18643194957944[/C][/ROW]
[ROW][C]26[/C][C]98.5[/C][C]95.3244179437488[/C][C]3.17558205625117[/C][/ROW]
[ROW][C]27[/C][C]105.2[/C][C]102.791932609157[/C][C]2.40806739084287[/C][/ROW]
[ROW][C]28[/C][C]104.6[/C][C]100.775506343338[/C][C]3.82449365666229[/C][/ROW]
[ROW][C]29[/C][C]97.5[/C][C]93.7406170708279[/C][C]3.75938292917214[/C][/ROW]
[ROW][C]30[/C][C]108.9[/C][C]100.849604384152[/C][C]8.05039561584756[/C][/ROW]
[ROW][C]31[/C][C]86.8[/C][C]85.1338822695945[/C][C]1.66611773040549[/C][/ROW]
[ROW][C]32[/C][C]88.9[/C][C]87.1140223279013[/C][C]1.78597767209873[/C][/ROW]
[ROW][C]33[/C][C]110.3[/C][C]104.608218816670[/C][C]5.6917811833302[/C][/ROW]
[ROW][C]34[/C][C]114.8[/C][C]106.84667045584[/C][C]7.95332954415995[/C][/ROW]
[ROW][C]35[/C][C]94.6[/C][C]94.989680097066[/C][C]-0.389680097065915[/C][/ROW]
[ROW][C]36[/C][C]92[/C][C]90.0970547041674[/C][C]1.90294529583255[/C][/ROW]
[ROW][C]37[/C][C]93.8[/C][C]92.9610357080826[/C][C]0.838964291917363[/C][/ROW]
[ROW][C]38[/C][C]93.8[/C][C]93.4180146993366[/C][C]0.381985300663441[/C][/ROW]
[ROW][C]39[/C][C]107.6[/C][C]105.158026066857[/C][C]2.44197393314328[/C][/ROW]
[ROW][C]40[/C][C]101[/C][C]98.9861578030929[/C][C]2.01384219690711[/C][/ROW]
[ROW][C]41[/C][C]95.4[/C][C]91.4245223618295[/C][C]3.97547763817048[/C][/ROW]
[ROW][C]42[/C][C]96.5[/C][C]102.981588433517[/C][C]-6.48158843351713[/C][/ROW]
[ROW][C]43[/C][C]89.2[/C][C]83.2274790251822[/C][C]5.97252097481777[/C][/ROW]
[ROW][C]44[/C][C]87.1[/C][C]89.246006377266[/C][C]-2.14600637726596[/C][/ROW]
[ROW][C]45[/C][C]110.5[/C][C]105.218491711858[/C][C]5.28150828814235[/C][/ROW]
[ROW][C]46[/C][C]110.8[/C][C]104.120884282256[/C][C]6.67911571774436[/C][/ROW]
[ROW][C]47[/C][C]104.2[/C][C]96.185226513091[/C][C]8.014773486909[/C][/ROW]
[ROW][C]48[/C][C]88.9[/C][C]90.9414370076902[/C][C]-2.04143700769019[/C][/ROW]
[ROW][C]49[/C][C]89.8[/C][C]90.7619957032517[/C][C]-0.961995703251743[/C][/ROW]
[ROW][C]50[/C][C]90[/C][C]90.8678105820033[/C][C]-0.867810582003323[/C][/ROW]
[ROW][C]51[/C][C]93.9[/C][C]98.5694346557465[/C][C]-4.66943465574652[/C][/ROW]
[ROW][C]52[/C][C]91.3[/C][C]97.0212272065969[/C][C]-5.72122720659689[/C][/ROW]
[ROW][C]53[/C][C]87.8[/C][C]89.9278105820033[/C][C]-2.12781058200332[/C][/ROW]
[ROW][C]54[/C][C]99.7[/C][C]102.538368991198[/C][C]-2.83836899119795[/C][/ROW]
[ROW][C]55[/C][C]73.5[/C][C]77.5167978953279[/C][C]-4.01679789532790[/C][/ROW]
[ROW][C]56[/C][C]79.2[/C][C]86.6958022599327[/C][C]-7.49580225993271[/C][/ROW]
[ROW][C]57[/C][C]96.9[/C][C]102.785342298692[/C][C]-5.88534229869186[/C][/ROW]
[ROW][C]58[/C][C]95.2[/C][C]99.6392775461595[/C][C]-4.43927754615951[/C][/ROW]
[ROW][C]59[/C][C]95.6[/C][C]97.1466635207812[/C][C]-1.54666352078121[/C][/ROW]
[ROW][C]60[/C][C]89.7[/C][C]89.444725227864[/C][C]0.255274772136011[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58749&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58749&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
199.9100.845757468417-0.945757468416905
298.6101.185681755504-2.58568175550370
3107.2109.531106702168-2.33110670216788
495.7100.901089650888-5.20108965088764
593.799.777462938834-6.07746293883393
6106.7105.6573758584001.04262414159970
786.785.20093822506071.49906177493929
895.393.73614171674461.56385828325542
999.3103.270618322127-3.97061832212663
10101.8109.313347846739-7.51334784673896
1196100.967998612988-4.96799861298823
1291.790.28116536380111.41883463619889
1395.397.4176430698281-2.11764306982815
1496.696.7040750194076-0.104075019407587
15107.2105.0494999660722.15050003392825
16108102.9160189960855.08398100391512
1798.497.92958704650540.470412953494632
18103.1102.8730623327320.226937667267826
1981.186.2209025848346-5.12090258483465
2096.690.30802731815556.29197268184452
21103.7104.817328850654-1.11732885065408
22106.6109.279819869006-2.67981986900584
2397.698.7104312560736-1.11043125607363
2487.689.1356176964772-1.53561769647725
2599.496.21356805042063.18643194957944
2698.595.32441794374883.17558205625117
27105.2102.7919326091572.40806739084287
28104.6100.7755063433383.82449365666229
2997.593.74061707082793.75938292917214
30108.9100.8496043841528.05039561584756
3186.885.13388226959451.66611773040549
3288.987.11402232790131.78597767209873
33110.3104.6082188166705.6917811833302
34114.8106.846670455847.95332954415995
3594.694.989680097066-0.389680097065915
369290.09705470416741.90294529583255
3793.892.96103570808260.838964291917363
3893.893.41801469933660.381985300663441
39107.6105.1580260668572.44197393314328
4010198.98615780309292.01384219690711
4195.491.42452236182953.97547763817048
4296.5102.981588433517-6.48158843351713
4389.283.22747902518225.97252097481777
4487.189.246006377266-2.14600637726596
45110.5105.2184917118585.28150828814235
46110.8104.1208842822566.67911571774436
47104.296.1852265130918.014773486909
4888.990.9414370076902-2.04143700769019
4989.890.7619957032517-0.961995703251743
509090.8678105820033-0.867810582003323
5193.998.5694346557465-4.66943465574652
5291.397.0212272065969-5.72122720659689
5387.889.9278105820033-2.12781058200332
5499.7102.538368991198-2.83836899119795
5573.577.5167978953279-4.01679789532790
5679.286.6958022599327-7.49580225993271
5796.9102.785342298692-5.88534229869186
5895.299.6392775461595-4.43927754615951
5995.697.1466635207812-1.54666352078121
6089.789.4447252278640.255274772136011







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1233224651692630.2466449303385250.876677534830737
180.1137248599178820.2274497198357650.886275140082118
190.550261394685530.899477210628940.44973860531447
200.4529614110716140.9059228221432290.547038588928386
210.3558673344037420.7117346688074850.644132665596258
220.4034990401718520.8069980803437030.596500959828149
230.4034008697239360.8068017394478720.596599130276064
240.464009358110950.92801871622190.53599064188905
250.3749493921599770.7498987843199540.625050607840023
260.2887376336262890.5774752672525770.711262366373711
270.2120109717134620.4240219434269250.787989028286538
280.1436782892452820.2873565784905640.856321710754718
290.1170690003096210.2341380006192410.88293099969038
300.2119322918847650.4238645837695310.788067708115235
310.2514164529807420.5028329059614840.748583547019258
320.339438502990070.678877005980140.66056149700993
330.3099976738152720.6199953476305440.690002326184728
340.4130880996934920.8261761993869840.586911900306508
350.3939797005146260.7879594010292520.606020299485374
360.3267410968329560.6534821936659120.673258903167044
370.3019531858894290.6039063717788580.698046814110571
380.3052085837914020.6104171675828050.694791416208598
390.2590531129001520.5181062258003030.740946887099848
400.1954777046162830.3909554092325670.804522295383717
410.1201111103501020.2402222207002040.879888889649898
420.3789906962434420.7579813924868840.621009303756558
430.2431060615811060.4862121231622120.756893938418894

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.123322465169263 & 0.246644930338525 & 0.876677534830737 \tabularnewline
18 & 0.113724859917882 & 0.227449719835765 & 0.886275140082118 \tabularnewline
19 & 0.55026139468553 & 0.89947721062894 & 0.44973860531447 \tabularnewline
20 & 0.452961411071614 & 0.905922822143229 & 0.547038588928386 \tabularnewline
21 & 0.355867334403742 & 0.711734668807485 & 0.644132665596258 \tabularnewline
22 & 0.403499040171852 & 0.806998080343703 & 0.596500959828149 \tabularnewline
23 & 0.403400869723936 & 0.806801739447872 & 0.596599130276064 \tabularnewline
24 & 0.46400935811095 & 0.9280187162219 & 0.53599064188905 \tabularnewline
25 & 0.374949392159977 & 0.749898784319954 & 0.625050607840023 \tabularnewline
26 & 0.288737633626289 & 0.577475267252577 & 0.711262366373711 \tabularnewline
27 & 0.212010971713462 & 0.424021943426925 & 0.787989028286538 \tabularnewline
28 & 0.143678289245282 & 0.287356578490564 & 0.856321710754718 \tabularnewline
29 & 0.117069000309621 & 0.234138000619241 & 0.88293099969038 \tabularnewline
30 & 0.211932291884765 & 0.423864583769531 & 0.788067708115235 \tabularnewline
31 & 0.251416452980742 & 0.502832905961484 & 0.748583547019258 \tabularnewline
32 & 0.33943850299007 & 0.67887700598014 & 0.66056149700993 \tabularnewline
33 & 0.309997673815272 & 0.619995347630544 & 0.690002326184728 \tabularnewline
34 & 0.413088099693492 & 0.826176199386984 & 0.586911900306508 \tabularnewline
35 & 0.393979700514626 & 0.787959401029252 & 0.606020299485374 \tabularnewline
36 & 0.326741096832956 & 0.653482193665912 & 0.673258903167044 \tabularnewline
37 & 0.301953185889429 & 0.603906371778858 & 0.698046814110571 \tabularnewline
38 & 0.305208583791402 & 0.610417167582805 & 0.694791416208598 \tabularnewline
39 & 0.259053112900152 & 0.518106225800303 & 0.740946887099848 \tabularnewline
40 & 0.195477704616283 & 0.390955409232567 & 0.804522295383717 \tabularnewline
41 & 0.120111110350102 & 0.240222220700204 & 0.879888889649898 \tabularnewline
42 & 0.378990696243442 & 0.757981392486884 & 0.621009303756558 \tabularnewline
43 & 0.243106061581106 & 0.486212123162212 & 0.756893938418894 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58749&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.123322465169263[/C][C]0.246644930338525[/C][C]0.876677534830737[/C][/ROW]
[ROW][C]18[/C][C]0.113724859917882[/C][C]0.227449719835765[/C][C]0.886275140082118[/C][/ROW]
[ROW][C]19[/C][C]0.55026139468553[/C][C]0.89947721062894[/C][C]0.44973860531447[/C][/ROW]
[ROW][C]20[/C][C]0.452961411071614[/C][C]0.905922822143229[/C][C]0.547038588928386[/C][/ROW]
[ROW][C]21[/C][C]0.355867334403742[/C][C]0.711734668807485[/C][C]0.644132665596258[/C][/ROW]
[ROW][C]22[/C][C]0.403499040171852[/C][C]0.806998080343703[/C][C]0.596500959828149[/C][/ROW]
[ROW][C]23[/C][C]0.403400869723936[/C][C]0.806801739447872[/C][C]0.596599130276064[/C][/ROW]
[ROW][C]24[/C][C]0.46400935811095[/C][C]0.9280187162219[/C][C]0.53599064188905[/C][/ROW]
[ROW][C]25[/C][C]0.374949392159977[/C][C]0.749898784319954[/C][C]0.625050607840023[/C][/ROW]
[ROW][C]26[/C][C]0.288737633626289[/C][C]0.577475267252577[/C][C]0.711262366373711[/C][/ROW]
[ROW][C]27[/C][C]0.212010971713462[/C][C]0.424021943426925[/C][C]0.787989028286538[/C][/ROW]
[ROW][C]28[/C][C]0.143678289245282[/C][C]0.287356578490564[/C][C]0.856321710754718[/C][/ROW]
[ROW][C]29[/C][C]0.117069000309621[/C][C]0.234138000619241[/C][C]0.88293099969038[/C][/ROW]
[ROW][C]30[/C][C]0.211932291884765[/C][C]0.423864583769531[/C][C]0.788067708115235[/C][/ROW]
[ROW][C]31[/C][C]0.251416452980742[/C][C]0.502832905961484[/C][C]0.748583547019258[/C][/ROW]
[ROW][C]32[/C][C]0.33943850299007[/C][C]0.67887700598014[/C][C]0.66056149700993[/C][/ROW]
[ROW][C]33[/C][C]0.309997673815272[/C][C]0.619995347630544[/C][C]0.690002326184728[/C][/ROW]
[ROW][C]34[/C][C]0.413088099693492[/C][C]0.826176199386984[/C][C]0.586911900306508[/C][/ROW]
[ROW][C]35[/C][C]0.393979700514626[/C][C]0.787959401029252[/C][C]0.606020299485374[/C][/ROW]
[ROW][C]36[/C][C]0.326741096832956[/C][C]0.653482193665912[/C][C]0.673258903167044[/C][/ROW]
[ROW][C]37[/C][C]0.301953185889429[/C][C]0.603906371778858[/C][C]0.698046814110571[/C][/ROW]
[ROW][C]38[/C][C]0.305208583791402[/C][C]0.610417167582805[/C][C]0.694791416208598[/C][/ROW]
[ROW][C]39[/C][C]0.259053112900152[/C][C]0.518106225800303[/C][C]0.740946887099848[/C][/ROW]
[ROW][C]40[/C][C]0.195477704616283[/C][C]0.390955409232567[/C][C]0.804522295383717[/C][/ROW]
[ROW][C]41[/C][C]0.120111110350102[/C][C]0.240222220700204[/C][C]0.879888889649898[/C][/ROW]
[ROW][C]42[/C][C]0.378990696243442[/C][C]0.757981392486884[/C][C]0.621009303756558[/C][/ROW]
[ROW][C]43[/C][C]0.243106061581106[/C][C]0.486212123162212[/C][C]0.756893938418894[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58749&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58749&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.1233224651692630.2466449303385250.876677534830737
180.1137248599178820.2274497198357650.886275140082118
190.550261394685530.899477210628940.44973860531447
200.4529614110716140.9059228221432290.547038588928386
210.3558673344037420.7117346688074850.644132665596258
220.4034990401718520.8069980803437030.596500959828149
230.4034008697239360.8068017394478720.596599130276064
240.464009358110950.92801871622190.53599064188905
250.3749493921599770.7498987843199540.625050607840023
260.2887376336262890.5774752672525770.711262366373711
270.2120109717134620.4240219434269250.787989028286538
280.1436782892452820.2873565784905640.856321710754718
290.1170690003096210.2341380006192410.88293099969038
300.2119322918847650.4238645837695310.788067708115235
310.2514164529807420.5028329059614840.748583547019258
320.339438502990070.678877005980140.66056149700993
330.3099976738152720.6199953476305440.690002326184728
340.4130880996934920.8261761993869840.586911900306508
350.3939797005146260.7879594010292520.606020299485374
360.3267410968329560.6534821936659120.673258903167044
370.3019531858894290.6039063717788580.698046814110571
380.3052085837914020.6104171675828050.694791416208598
390.2590531129001520.5181062258003030.740946887099848
400.1954777046162830.3909554092325670.804522295383717
410.1201111103501020.2402222207002040.879888889649898
420.3789906962434420.7579813924868840.621009303756558
430.2431060615811060.4862121231622120.756893938418894







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

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

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



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