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 computationWed, 16 Dec 2009 07:12:18 -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/Dec/16/t1260972798kbe2dsfajgi1rr2.htm/, Retrieved Tue, 30 Apr 2024 12:51:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68362, Retrieved Tue, 30 Apr 2024 12:51:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact115
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [] [2009-12-16 14:12:18] [54f12ba6dfaf5b88c7c2745223d9c32f] [Current]
Feedback Forum

Post a new message
Dataseries X:
13807	0	19169	22782	20366
29743	0	13807	19169	22782
25591	0	29743	13807	19169
29096	0	25591	29743	13807
26482	0	29096	25591	29743
22405	0	26482	29096	25591
27044	0	22405	26482	29096
17970	0	27044	22405	26482
18730	0	17970	27044	22405
19684	0	18730	17970	27044
19785	0	19684	18730	17970
18479	0	19785	19684	18730
10698	0	18479	19785	19684
31956	0	10698	18479	19785
29506	0	31956	10698	18479
34506	0	29506	31956	10698
27165	0	34506	29506	31956
26736	0	27165	34506	29506
23691	0	26736	27165	34506
18157	0	23691	26736	27165
17328	0	18157	23691	26736
18205	0	17328	18157	23691
20995	0	18205	17328	18157
17382	0	20995	18205	17328
9367	0	17382	20995	18205
31124	0	9367	17382	20995
26551	0	31124	9367	17382
30651	0	26551	31124	9367
25859	0	30651	26551	31124
25100	0	25859	30651	26551
25778	0	25100	25859	30651
20418	0	25778	25100	25859
18688	0	20418	25778	25100
20424	0	18688	20418	25778
24776	0	20424	18688	20418
19814	0	24776	20424	18688
12738	0	19814	24776	20424
31566	0	12738	19814	24776
30111	0	31566	12738	19814
30019	0	30111	31566	12738
31934	1	30019	30111	31566
25826	1	31934	30019	30111
26835	1	25826	31934	30019
20205	1	26835	25826	31934
17789	1	20205	26835	25826
20520	1	17789	20205	26835
22518	1	20520	17789	20205
15572	1	22518	20520	17789
11509	1	15572	22518	20520
25447	1	11509	15572	22518
24090	1	25447	11509	15572
27786	1	24090	25447	11509
26195	1	27786	24090	25447
20516	1	26195	27786	24090
22759	1	20516	26195	27786
19028	1	22759	20516	26195
16971	1	19028	22759	20516




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time10 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 & 10 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68362&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]10 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=68362&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 4707.37233564554 -889.595599244605X[t] + 0.153530771296594Y1[t] + 0.436558232697684Y2[t] + 0.0508654692781182Y3[t] -6720.22713821588M1[t] + 14266.9491999809M2[t] + 11667.1125103659M3[t] + 7644.99499046983M4[t] + 4714.7777808122M5[t] + 460.306602584105M6[t] + 3169.10551863843M7[t] -1444.75317412772M8[t] -2090.70678676465M9[t] + 2356.44218947412M10[t] + 5209.20853962815M11[t] + 14.0026261095115t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  4707.37233564554 -889.595599244605X[t] +  0.153530771296594Y1[t] +  0.436558232697684Y2[t] +  0.0508654692781182Y3[t] -6720.22713821588M1[t] +  14266.9491999809M2[t] +  11667.1125103659M3[t] +  7644.99499046983M4[t] +  4714.7777808122M5[t] +  460.306602584105M6[t] +  3169.10551863843M7[t] -1444.75317412772M8[t] -2090.70678676465M9[t] +  2356.44218947412M10[t] +  5209.20853962815M11[t] +  14.0026261095115t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68362&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  4707.37233564554 -889.595599244605X[t] +  0.153530771296594Y1[t] +  0.436558232697684Y2[t] +  0.0508654692781182Y3[t] -6720.22713821588M1[t] +  14266.9491999809M2[t] +  11667.1125103659M3[t] +  7644.99499046983M4[t] +  4714.7777808122M5[t] +  460.306602584105M6[t] +  3169.10551863843M7[t] -1444.75317412772M8[t] -2090.70678676465M9[t] +  2356.44218947412M10[t] +  5209.20853962815M11[t] +  14.0026261095115t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68362&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 4707.37233564554 -889.595599244605X[t] + 0.153530771296594Y1[t] + 0.436558232697684Y2[t] + 0.0508654692781182Y3[t] -6720.22713821588M1[t] + 14266.9491999809M2[t] + 11667.1125103659M3[t] + 7644.99499046983M4[t] + 4714.7777808122M5[t] + 460.306602584105M6[t] + 3169.10551863843M7[t] -1444.75317412772M8[t] -2090.70678676465M9[t] + 2356.44218947412M10[t] + 5209.20853962815M11[t] + 14.0026261095115t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)4707.372335645543579.1491321.31520.1959260.097963
X-889.595599244605889.524958-1.00010.3232840.161642
Y10.1535307712965940.159480.96270.3414830.170742
Y20.4365582326976840.1436083.03990.004160.00208
Y30.05086546927811820.159970.3180.7521620.376081
M1-6720.227138215881491.209035-4.50665.6e-052.8e-05
M214266.94919998092354.1565826.060300
M311667.11251036592236.8427515.21596e-063e-06
M47644.994990469832523.6609123.02930.004280.00214
M54714.77778081222035.2686522.31650.0257350.012867
M6460.3066025841051983.6055890.23210.8176780.408839
M73169.105518638432204.8526221.43730.1584010.0792
M8-1444.753174127721755.2875-0.82310.4153390.20767
M9-2090.706786764651833.958534-1.140.2610680.130534
M102356.442189474122051.7213781.14850.2575760.128788
M115209.208539628151359.8925163.83060.0004410.000221
t14.002626109511524.0847590.58140.564240.28212

\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) & 4707.37233564554 & 3579.149132 & 1.3152 & 0.195926 & 0.097963 \tabularnewline
X & -889.595599244605 & 889.524958 & -1.0001 & 0.323284 & 0.161642 \tabularnewline
Y1 & 0.153530771296594 & 0.15948 & 0.9627 & 0.341483 & 0.170742 \tabularnewline
Y2 & 0.436558232697684 & 0.143608 & 3.0399 & 0.00416 & 0.00208 \tabularnewline
Y3 & 0.0508654692781182 & 0.15997 & 0.318 & 0.752162 & 0.376081 \tabularnewline
M1 & -6720.22713821588 & 1491.209035 & -4.5066 & 5.6e-05 & 2.8e-05 \tabularnewline
M2 & 14266.9491999809 & 2354.156582 & 6.0603 & 0 & 0 \tabularnewline
M3 & 11667.1125103659 & 2236.842751 & 5.2159 & 6e-06 & 3e-06 \tabularnewline
M4 & 7644.99499046983 & 2523.660912 & 3.0293 & 0.00428 & 0.00214 \tabularnewline
M5 & 4714.7777808122 & 2035.268652 & 2.3165 & 0.025735 & 0.012867 \tabularnewline
M6 & 460.306602584105 & 1983.605589 & 0.2321 & 0.817678 & 0.408839 \tabularnewline
M7 & 3169.10551863843 & 2204.852622 & 1.4373 & 0.158401 & 0.0792 \tabularnewline
M8 & -1444.75317412772 & 1755.2875 & -0.8231 & 0.415339 & 0.20767 \tabularnewline
M9 & -2090.70678676465 & 1833.958534 & -1.14 & 0.261068 & 0.130534 \tabularnewline
M10 & 2356.44218947412 & 2051.721378 & 1.1485 & 0.257576 & 0.128788 \tabularnewline
M11 & 5209.20853962815 & 1359.892516 & 3.8306 & 0.000441 & 0.000221 \tabularnewline
t & 14.0026261095115 & 24.084759 & 0.5814 & 0.56424 & 0.28212 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68362&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]4707.37233564554[/C][C]3579.149132[/C][C]1.3152[/C][C]0.195926[/C][C]0.097963[/C][/ROW]
[ROW][C]X[/C][C]-889.595599244605[/C][C]889.524958[/C][C]-1.0001[/C][C]0.323284[/C][C]0.161642[/C][/ROW]
[ROW][C]Y1[/C][C]0.153530771296594[/C][C]0.15948[/C][C]0.9627[/C][C]0.341483[/C][C]0.170742[/C][/ROW]
[ROW][C]Y2[/C][C]0.436558232697684[/C][C]0.143608[/C][C]3.0399[/C][C]0.00416[/C][C]0.00208[/C][/ROW]
[ROW][C]Y3[/C][C]0.0508654692781182[/C][C]0.15997[/C][C]0.318[/C][C]0.752162[/C][C]0.376081[/C][/ROW]
[ROW][C]M1[/C][C]-6720.22713821588[/C][C]1491.209035[/C][C]-4.5066[/C][C]5.6e-05[/C][C]2.8e-05[/C][/ROW]
[ROW][C]M2[/C][C]14266.9491999809[/C][C]2354.156582[/C][C]6.0603[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]11667.1125103659[/C][C]2236.842751[/C][C]5.2159[/C][C]6e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M4[/C][C]7644.99499046983[/C][C]2523.660912[/C][C]3.0293[/C][C]0.00428[/C][C]0.00214[/C][/ROW]
[ROW][C]M5[/C][C]4714.7777808122[/C][C]2035.268652[/C][C]2.3165[/C][C]0.025735[/C][C]0.012867[/C][/ROW]
[ROW][C]M6[/C][C]460.306602584105[/C][C]1983.605589[/C][C]0.2321[/C][C]0.817678[/C][C]0.408839[/C][/ROW]
[ROW][C]M7[/C][C]3169.10551863843[/C][C]2204.852622[/C][C]1.4373[/C][C]0.158401[/C][C]0.0792[/C][/ROW]
[ROW][C]M8[/C][C]-1444.75317412772[/C][C]1755.2875[/C][C]-0.8231[/C][C]0.415339[/C][C]0.20767[/C][/ROW]
[ROW][C]M9[/C][C]-2090.70678676465[/C][C]1833.958534[/C][C]-1.14[/C][C]0.261068[/C][C]0.130534[/C][/ROW]
[ROW][C]M10[/C][C]2356.44218947412[/C][C]2051.721378[/C][C]1.1485[/C][C]0.257576[/C][C]0.128788[/C][/ROW]
[ROW][C]M11[/C][C]5209.20853962815[/C][C]1359.892516[/C][C]3.8306[/C][C]0.000441[/C][C]0.000221[/C][/ROW]
[ROW][C]t[/C][C]14.0026261095115[/C][C]24.084759[/C][C]0.5814[/C][C]0.56424[/C][C]0.28212[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68362&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68362&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)4707.372335645543579.1491321.31520.1959260.097963
X-889.595599244605889.524958-1.00010.3232840.161642
Y10.1535307712965940.159480.96270.3414830.170742
Y20.4365582326976840.1436083.03990.004160.00208
Y30.05086546927811820.159970.3180.7521620.376081
M1-6720.227138215881491.209035-4.50665.6e-052.8e-05
M214266.94919998092354.1565826.060300
M311667.11251036592236.8427515.21596e-063e-06
M47644.994990469832523.6609123.02930.004280.00214
M54714.77778081222035.2686522.31650.0257350.012867
M6460.3066025841051983.6055890.23210.8176780.408839
M73169.105518638432204.8526221.43730.1584010.0792
M8-1444.753174127721755.2875-0.82310.4153390.20767
M9-2090.706786764651833.958534-1.140.2610680.130534
M102356.442189474122051.7213781.14850.2575760.128788
M115209.208539628151359.8925163.83060.0004410.000221
t14.002626109511524.0847590.58140.564240.28212







Multiple Linear Regression - Regression Statistics
Multiple R0.966482294440936
R-squared0.934088025467816
Adjusted R-squared0.907723235654942
F-TEST (value)35.4293750148430
F-TEST (DF numerator)16
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1786.11048781796
Sum Squared Residuals127607626.987733

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.966482294440936 \tabularnewline
R-squared & 0.934088025467816 \tabularnewline
Adjusted R-squared & 0.907723235654942 \tabularnewline
F-TEST (value) & 35.4293750148430 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 40 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1786.11048781796 \tabularnewline
Sum Squared Residuals & 127607626.987733 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68362&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.966482294440936[/C][/ROW]
[ROW][C]R-squared[/C][C]0.934088025467816[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.907723235654942[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]35.4293750148430[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]40[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1786.11048781796[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]127607626.987733[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68362&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68362&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.966482294440936
R-squared0.934088025467816
Adjusted R-squared0.907723235654942
F-TEST (value)35.4293750148430
F-TEST (DF numerator)16
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1786.11048781796
Sum Squared Residuals127607626.987733







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11380711925.77498316041881.22501683961
22974330649.3280308136-906.328030813608
32559127985.5581544637-2394.55815446371
42909630024.2348482547-928.23484825475
52648226644.1479543565-162.147954356516
62240523321.2931432313-916.293143231263
72704424455.26998036692588.73001963306
81797018654.8329103538-684.832910353758
91873018447.5588283187282.441171681305
101968419300.0293253348383.970674665202
111978522183.4976460359-2398.49764603589
121847917458.93265106321020.06734893684
131069810644.814990837253.1850091627691
143195629886.36338417872069.63661582131
152950627100.99654539822405.00345460179
163450631601.30195616942904.69804383064
172716529464.4717049091-2299.47170490913
182673626155.1045244593580.895475540727
192369125861.5947258938-2170.59472589377
201815720233.5505688410-2076.55056884103
211732817400.8191890735-72.8191890734954
221820519163.8951683160-958.895168316047
232099521521.9143491152-526.91434911522
241738217095.7533835584286.246616441618
25936711097.4286805409-1730.42868054086
263112429432.68827745421691.31172254578
272655126504.432029474946.5679705251251
283065130884.7316510884-233.731651088411
292585927708.2924468138-1849.29244681385
302510024289.3854016936810.61459830635
312577825012.2184613964765.78153860364
322041819941.3612302805476.638769719473
331868818743.8649001903-55.8649001902982
342042420633.9429291065-209.94292910645
352477622739.35666644322036.64333355682
361981418882.1844997193931.815500280656
371273813402.3441838064-664.344183806407
383156631372.3039820705193.696017929485
393011128335.66676741041775.33323258962
403001931963.7589460073-1944.75894600734
413193428466.32675924863467.67324075139
422582624405.69701895521420.30298104484
432683527022.0620024819-187.062002481873
442020520008.0281724136196.971827586355
451778918487.9691426310-698.969142631017
462052019735.1325772427784.867422757295
472251821629.2313384057888.768661594281
481557217810.1294656591-2238.12946565911
491150911048.6371616551460.362838344891
502544728495.3163254830-3048.31632548296
512409025922.3465032528-1832.34650325282
522778627583.9725984801202.027401519862
532619525351.7611346719843.238865328108
542051622411.5199116607-1895.51991166066
552275923755.8548298611-996.85482986105
561902816940.22711811102087.77288188896
571697116425.7879397865545.212060213505

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 13807 & 11925.7749831604 & 1881.22501683961 \tabularnewline
2 & 29743 & 30649.3280308136 & -906.328030813608 \tabularnewline
3 & 25591 & 27985.5581544637 & -2394.55815446371 \tabularnewline
4 & 29096 & 30024.2348482547 & -928.23484825475 \tabularnewline
5 & 26482 & 26644.1479543565 & -162.147954356516 \tabularnewline
6 & 22405 & 23321.2931432313 & -916.293143231263 \tabularnewline
7 & 27044 & 24455.2699803669 & 2588.73001963306 \tabularnewline
8 & 17970 & 18654.8329103538 & -684.832910353758 \tabularnewline
9 & 18730 & 18447.5588283187 & 282.441171681305 \tabularnewline
10 & 19684 & 19300.0293253348 & 383.970674665202 \tabularnewline
11 & 19785 & 22183.4976460359 & -2398.49764603589 \tabularnewline
12 & 18479 & 17458.9326510632 & 1020.06734893684 \tabularnewline
13 & 10698 & 10644.8149908372 & 53.1850091627691 \tabularnewline
14 & 31956 & 29886.3633841787 & 2069.63661582131 \tabularnewline
15 & 29506 & 27100.9965453982 & 2405.00345460179 \tabularnewline
16 & 34506 & 31601.3019561694 & 2904.69804383064 \tabularnewline
17 & 27165 & 29464.4717049091 & -2299.47170490913 \tabularnewline
18 & 26736 & 26155.1045244593 & 580.895475540727 \tabularnewline
19 & 23691 & 25861.5947258938 & -2170.59472589377 \tabularnewline
20 & 18157 & 20233.5505688410 & -2076.55056884103 \tabularnewline
21 & 17328 & 17400.8191890735 & -72.8191890734954 \tabularnewline
22 & 18205 & 19163.8951683160 & -958.895168316047 \tabularnewline
23 & 20995 & 21521.9143491152 & -526.91434911522 \tabularnewline
24 & 17382 & 17095.7533835584 & 286.246616441618 \tabularnewline
25 & 9367 & 11097.4286805409 & -1730.42868054086 \tabularnewline
26 & 31124 & 29432.6882774542 & 1691.31172254578 \tabularnewline
27 & 26551 & 26504.4320294749 & 46.5679705251251 \tabularnewline
28 & 30651 & 30884.7316510884 & -233.731651088411 \tabularnewline
29 & 25859 & 27708.2924468138 & -1849.29244681385 \tabularnewline
30 & 25100 & 24289.3854016936 & 810.61459830635 \tabularnewline
31 & 25778 & 25012.2184613964 & 765.78153860364 \tabularnewline
32 & 20418 & 19941.3612302805 & 476.638769719473 \tabularnewline
33 & 18688 & 18743.8649001903 & -55.8649001902982 \tabularnewline
34 & 20424 & 20633.9429291065 & -209.94292910645 \tabularnewline
35 & 24776 & 22739.3566664432 & 2036.64333355682 \tabularnewline
36 & 19814 & 18882.1844997193 & 931.815500280656 \tabularnewline
37 & 12738 & 13402.3441838064 & -664.344183806407 \tabularnewline
38 & 31566 & 31372.3039820705 & 193.696017929485 \tabularnewline
39 & 30111 & 28335.6667674104 & 1775.33323258962 \tabularnewline
40 & 30019 & 31963.7589460073 & -1944.75894600734 \tabularnewline
41 & 31934 & 28466.3267592486 & 3467.67324075139 \tabularnewline
42 & 25826 & 24405.6970189552 & 1420.30298104484 \tabularnewline
43 & 26835 & 27022.0620024819 & -187.062002481873 \tabularnewline
44 & 20205 & 20008.0281724136 & 196.971827586355 \tabularnewline
45 & 17789 & 18487.9691426310 & -698.969142631017 \tabularnewline
46 & 20520 & 19735.1325772427 & 784.867422757295 \tabularnewline
47 & 22518 & 21629.2313384057 & 888.768661594281 \tabularnewline
48 & 15572 & 17810.1294656591 & -2238.12946565911 \tabularnewline
49 & 11509 & 11048.6371616551 & 460.362838344891 \tabularnewline
50 & 25447 & 28495.3163254830 & -3048.31632548296 \tabularnewline
51 & 24090 & 25922.3465032528 & -1832.34650325282 \tabularnewline
52 & 27786 & 27583.9725984801 & 202.027401519862 \tabularnewline
53 & 26195 & 25351.7611346719 & 843.238865328108 \tabularnewline
54 & 20516 & 22411.5199116607 & -1895.51991166066 \tabularnewline
55 & 22759 & 23755.8548298611 & -996.85482986105 \tabularnewline
56 & 19028 & 16940.2271181110 & 2087.77288188896 \tabularnewline
57 & 16971 & 16425.7879397865 & 545.212060213505 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68362&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]13807[/C][C]11925.7749831604[/C][C]1881.22501683961[/C][/ROW]
[ROW][C]2[/C][C]29743[/C][C]30649.3280308136[/C][C]-906.328030813608[/C][/ROW]
[ROW][C]3[/C][C]25591[/C][C]27985.5581544637[/C][C]-2394.55815446371[/C][/ROW]
[ROW][C]4[/C][C]29096[/C][C]30024.2348482547[/C][C]-928.23484825475[/C][/ROW]
[ROW][C]5[/C][C]26482[/C][C]26644.1479543565[/C][C]-162.147954356516[/C][/ROW]
[ROW][C]6[/C][C]22405[/C][C]23321.2931432313[/C][C]-916.293143231263[/C][/ROW]
[ROW][C]7[/C][C]27044[/C][C]24455.2699803669[/C][C]2588.73001963306[/C][/ROW]
[ROW][C]8[/C][C]17970[/C][C]18654.8329103538[/C][C]-684.832910353758[/C][/ROW]
[ROW][C]9[/C][C]18730[/C][C]18447.5588283187[/C][C]282.441171681305[/C][/ROW]
[ROW][C]10[/C][C]19684[/C][C]19300.0293253348[/C][C]383.970674665202[/C][/ROW]
[ROW][C]11[/C][C]19785[/C][C]22183.4976460359[/C][C]-2398.49764603589[/C][/ROW]
[ROW][C]12[/C][C]18479[/C][C]17458.9326510632[/C][C]1020.06734893684[/C][/ROW]
[ROW][C]13[/C][C]10698[/C][C]10644.8149908372[/C][C]53.1850091627691[/C][/ROW]
[ROW][C]14[/C][C]31956[/C][C]29886.3633841787[/C][C]2069.63661582131[/C][/ROW]
[ROW][C]15[/C][C]29506[/C][C]27100.9965453982[/C][C]2405.00345460179[/C][/ROW]
[ROW][C]16[/C][C]34506[/C][C]31601.3019561694[/C][C]2904.69804383064[/C][/ROW]
[ROW][C]17[/C][C]27165[/C][C]29464.4717049091[/C][C]-2299.47170490913[/C][/ROW]
[ROW][C]18[/C][C]26736[/C][C]26155.1045244593[/C][C]580.895475540727[/C][/ROW]
[ROW][C]19[/C][C]23691[/C][C]25861.5947258938[/C][C]-2170.59472589377[/C][/ROW]
[ROW][C]20[/C][C]18157[/C][C]20233.5505688410[/C][C]-2076.55056884103[/C][/ROW]
[ROW][C]21[/C][C]17328[/C][C]17400.8191890735[/C][C]-72.8191890734954[/C][/ROW]
[ROW][C]22[/C][C]18205[/C][C]19163.8951683160[/C][C]-958.895168316047[/C][/ROW]
[ROW][C]23[/C][C]20995[/C][C]21521.9143491152[/C][C]-526.91434911522[/C][/ROW]
[ROW][C]24[/C][C]17382[/C][C]17095.7533835584[/C][C]286.246616441618[/C][/ROW]
[ROW][C]25[/C][C]9367[/C][C]11097.4286805409[/C][C]-1730.42868054086[/C][/ROW]
[ROW][C]26[/C][C]31124[/C][C]29432.6882774542[/C][C]1691.31172254578[/C][/ROW]
[ROW][C]27[/C][C]26551[/C][C]26504.4320294749[/C][C]46.5679705251251[/C][/ROW]
[ROW][C]28[/C][C]30651[/C][C]30884.7316510884[/C][C]-233.731651088411[/C][/ROW]
[ROW][C]29[/C][C]25859[/C][C]27708.2924468138[/C][C]-1849.29244681385[/C][/ROW]
[ROW][C]30[/C][C]25100[/C][C]24289.3854016936[/C][C]810.61459830635[/C][/ROW]
[ROW][C]31[/C][C]25778[/C][C]25012.2184613964[/C][C]765.78153860364[/C][/ROW]
[ROW][C]32[/C][C]20418[/C][C]19941.3612302805[/C][C]476.638769719473[/C][/ROW]
[ROW][C]33[/C][C]18688[/C][C]18743.8649001903[/C][C]-55.8649001902982[/C][/ROW]
[ROW][C]34[/C][C]20424[/C][C]20633.9429291065[/C][C]-209.94292910645[/C][/ROW]
[ROW][C]35[/C][C]24776[/C][C]22739.3566664432[/C][C]2036.64333355682[/C][/ROW]
[ROW][C]36[/C][C]19814[/C][C]18882.1844997193[/C][C]931.815500280656[/C][/ROW]
[ROW][C]37[/C][C]12738[/C][C]13402.3441838064[/C][C]-664.344183806407[/C][/ROW]
[ROW][C]38[/C][C]31566[/C][C]31372.3039820705[/C][C]193.696017929485[/C][/ROW]
[ROW][C]39[/C][C]30111[/C][C]28335.6667674104[/C][C]1775.33323258962[/C][/ROW]
[ROW][C]40[/C][C]30019[/C][C]31963.7589460073[/C][C]-1944.75894600734[/C][/ROW]
[ROW][C]41[/C][C]31934[/C][C]28466.3267592486[/C][C]3467.67324075139[/C][/ROW]
[ROW][C]42[/C][C]25826[/C][C]24405.6970189552[/C][C]1420.30298104484[/C][/ROW]
[ROW][C]43[/C][C]26835[/C][C]27022.0620024819[/C][C]-187.062002481873[/C][/ROW]
[ROW][C]44[/C][C]20205[/C][C]20008.0281724136[/C][C]196.971827586355[/C][/ROW]
[ROW][C]45[/C][C]17789[/C][C]18487.9691426310[/C][C]-698.969142631017[/C][/ROW]
[ROW][C]46[/C][C]20520[/C][C]19735.1325772427[/C][C]784.867422757295[/C][/ROW]
[ROW][C]47[/C][C]22518[/C][C]21629.2313384057[/C][C]888.768661594281[/C][/ROW]
[ROW][C]48[/C][C]15572[/C][C]17810.1294656591[/C][C]-2238.12946565911[/C][/ROW]
[ROW][C]49[/C][C]11509[/C][C]11048.6371616551[/C][C]460.362838344891[/C][/ROW]
[ROW][C]50[/C][C]25447[/C][C]28495.3163254830[/C][C]-3048.31632548296[/C][/ROW]
[ROW][C]51[/C][C]24090[/C][C]25922.3465032528[/C][C]-1832.34650325282[/C][/ROW]
[ROW][C]52[/C][C]27786[/C][C]27583.9725984801[/C][C]202.027401519862[/C][/ROW]
[ROW][C]53[/C][C]26195[/C][C]25351.7611346719[/C][C]843.238865328108[/C][/ROW]
[ROW][C]54[/C][C]20516[/C][C]22411.5199116607[/C][C]-1895.51991166066[/C][/ROW]
[ROW][C]55[/C][C]22759[/C][C]23755.8548298611[/C][C]-996.85482986105[/C][/ROW]
[ROW][C]56[/C][C]19028[/C][C]16940.2271181110[/C][C]2087.77288188896[/C][/ROW]
[ROW][C]57[/C][C]16971[/C][C]16425.7879397865[/C][C]545.212060213505[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68362&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68362&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
11380711925.77498316041881.22501683961
22974330649.3280308136-906.328030813608
32559127985.5581544637-2394.55815446371
42909630024.2348482547-928.23484825475
52648226644.1479543565-162.147954356516
62240523321.2931432313-916.293143231263
72704424455.26998036692588.73001963306
81797018654.8329103538-684.832910353758
91873018447.5588283187282.441171681305
101968419300.0293253348383.970674665202
111978522183.4976460359-2398.49764603589
121847917458.93265106321020.06734893684
131069810644.814990837253.1850091627691
143195629886.36338417872069.63661582131
152950627100.99654539822405.00345460179
163450631601.30195616942904.69804383064
172716529464.4717049091-2299.47170490913
182673626155.1045244593580.895475540727
192369125861.5947258938-2170.59472589377
201815720233.5505688410-2076.55056884103
211732817400.8191890735-72.8191890734954
221820519163.8951683160-958.895168316047
232099521521.9143491152-526.91434911522
241738217095.7533835584286.246616441618
25936711097.4286805409-1730.42868054086
263112429432.68827745421691.31172254578
272655126504.432029474946.5679705251251
283065130884.7316510884-233.731651088411
292585927708.2924468138-1849.29244681385
302510024289.3854016936810.61459830635
312577825012.2184613964765.78153860364
322041819941.3612302805476.638769719473
331868818743.8649001903-55.8649001902982
342042420633.9429291065-209.94292910645
352477622739.35666644322036.64333355682
361981418882.1844997193931.815500280656
371273813402.3441838064-664.344183806407
383156631372.3039820705193.696017929485
393011128335.66676741041775.33323258962
403001931963.7589460073-1944.75894600734
413193428466.32675924863467.67324075139
422582624405.69701895521420.30298104484
432683527022.0620024819-187.062002481873
442020520008.0281724136196.971827586355
451778918487.9691426310-698.969142631017
462052019735.1325772427784.867422757295
472251821629.2313384057888.768661594281
481557217810.1294656591-2238.12946565911
491150911048.6371616551460.362838344891
502544728495.3163254830-3048.31632548296
512409025922.3465032528-1832.34650325282
522778627583.9725984801202.027401519862
532619525351.7611346719843.238865328108
542051622411.5199116607-1895.51991166066
552275923755.8548298611-996.85482986105
561902816940.22711811102087.77288188896
571697116425.7879397865545.212060213505







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.9091218553159530.1817562893680930.0908781446840466
210.8602757629444880.2794484741110240.139724237055512
220.871226839750940.257546320498120.12877316024906
230.8241656833224740.3516686333550530.175834316677526
240.7584010901873570.4831978196252850.241598909812643
250.7870890339080960.4258219321838080.212910966091904
260.7725637683718640.4548724632562720.227436231628136
270.6732450122822140.6535099754355710.326754987717786
280.6245444645744290.7509110708511420.375455535425571
290.8425172441452380.3149655117095250.157482755854762
300.7802936366012650.439412726797470.219706363398735
310.692407434535830.615185130928340.30759256546417
320.6390349007355570.7219301985288850.360965099264443
330.5398169435559050.920366112888190.460183056444095
340.452643955282090.905287910564180.54735604471791
350.4264831852291020.8529663704582040.573516814770898
360.2918475115798050.583695023159610.708152488420195
370.2330853311381730.4661706622763460.766914668861827

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
20 & 0.909121855315953 & 0.181756289368093 & 0.0908781446840466 \tabularnewline
21 & 0.860275762944488 & 0.279448474111024 & 0.139724237055512 \tabularnewline
22 & 0.87122683975094 & 0.25754632049812 & 0.12877316024906 \tabularnewline
23 & 0.824165683322474 & 0.351668633355053 & 0.175834316677526 \tabularnewline
24 & 0.758401090187357 & 0.483197819625285 & 0.241598909812643 \tabularnewline
25 & 0.787089033908096 & 0.425821932183808 & 0.212910966091904 \tabularnewline
26 & 0.772563768371864 & 0.454872463256272 & 0.227436231628136 \tabularnewline
27 & 0.673245012282214 & 0.653509975435571 & 0.326754987717786 \tabularnewline
28 & 0.624544464574429 & 0.750911070851142 & 0.375455535425571 \tabularnewline
29 & 0.842517244145238 & 0.314965511709525 & 0.157482755854762 \tabularnewline
30 & 0.780293636601265 & 0.43941272679747 & 0.219706363398735 \tabularnewline
31 & 0.69240743453583 & 0.61518513092834 & 0.30759256546417 \tabularnewline
32 & 0.639034900735557 & 0.721930198528885 & 0.360965099264443 \tabularnewline
33 & 0.539816943555905 & 0.92036611288819 & 0.460183056444095 \tabularnewline
34 & 0.45264395528209 & 0.90528791056418 & 0.54735604471791 \tabularnewline
35 & 0.426483185229102 & 0.852966370458204 & 0.573516814770898 \tabularnewline
36 & 0.291847511579805 & 0.58369502315961 & 0.708152488420195 \tabularnewline
37 & 0.233085331138173 & 0.466170662276346 & 0.766914668861827 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68362&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]20[/C][C]0.909121855315953[/C][C]0.181756289368093[/C][C]0.0908781446840466[/C][/ROW]
[ROW][C]21[/C][C]0.860275762944488[/C][C]0.279448474111024[/C][C]0.139724237055512[/C][/ROW]
[ROW][C]22[/C][C]0.87122683975094[/C][C]0.25754632049812[/C][C]0.12877316024906[/C][/ROW]
[ROW][C]23[/C][C]0.824165683322474[/C][C]0.351668633355053[/C][C]0.175834316677526[/C][/ROW]
[ROW][C]24[/C][C]0.758401090187357[/C][C]0.483197819625285[/C][C]0.241598909812643[/C][/ROW]
[ROW][C]25[/C][C]0.787089033908096[/C][C]0.425821932183808[/C][C]0.212910966091904[/C][/ROW]
[ROW][C]26[/C][C]0.772563768371864[/C][C]0.454872463256272[/C][C]0.227436231628136[/C][/ROW]
[ROW][C]27[/C][C]0.673245012282214[/C][C]0.653509975435571[/C][C]0.326754987717786[/C][/ROW]
[ROW][C]28[/C][C]0.624544464574429[/C][C]0.750911070851142[/C][C]0.375455535425571[/C][/ROW]
[ROW][C]29[/C][C]0.842517244145238[/C][C]0.314965511709525[/C][C]0.157482755854762[/C][/ROW]
[ROW][C]30[/C][C]0.780293636601265[/C][C]0.43941272679747[/C][C]0.219706363398735[/C][/ROW]
[ROW][C]31[/C][C]0.69240743453583[/C][C]0.61518513092834[/C][C]0.30759256546417[/C][/ROW]
[ROW][C]32[/C][C]0.639034900735557[/C][C]0.721930198528885[/C][C]0.360965099264443[/C][/ROW]
[ROW][C]33[/C][C]0.539816943555905[/C][C]0.92036611288819[/C][C]0.460183056444095[/C][/ROW]
[ROW][C]34[/C][C]0.45264395528209[/C][C]0.90528791056418[/C][C]0.54735604471791[/C][/ROW]
[ROW][C]35[/C][C]0.426483185229102[/C][C]0.852966370458204[/C][C]0.573516814770898[/C][/ROW]
[ROW][C]36[/C][C]0.291847511579805[/C][C]0.58369502315961[/C][C]0.708152488420195[/C][/ROW]
[ROW][C]37[/C][C]0.233085331138173[/C][C]0.466170662276346[/C][C]0.766914668861827[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68362&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68362&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
200.9091218553159530.1817562893680930.0908781446840466
210.8602757629444880.2794484741110240.139724237055512
220.871226839750940.257546320498120.12877316024906
230.8241656833224740.3516686333550530.175834316677526
240.7584010901873570.4831978196252850.241598909812643
250.7870890339080960.4258219321838080.212910966091904
260.7725637683718640.4548724632562720.227436231628136
270.6732450122822140.6535099754355710.326754987717786
280.6245444645744290.7509110708511420.375455535425571
290.8425172441452380.3149655117095250.157482755854762
300.7802936366012650.439412726797470.219706363398735
310.692407434535830.615185130928340.30759256546417
320.6390349007355570.7219301985288850.360965099264443
330.5398169435559050.920366112888190.460183056444095
340.452643955282090.905287910564180.54735604471791
350.4264831852291020.8529663704582040.573516814770898
360.2918475115798050.583695023159610.708152488420195
370.2330853311381730.4661706622763460.766914668861827







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=68362&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=68362&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68362&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 = 0 ; par2 = 36 ;
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')
}