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 computationFri, 20 Nov 2009 07:29:56 -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/20/t1258727547itcnn62f0infnb9.htm/, Retrieved Fri, 19 Apr 2024 04:07:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58211, Retrieved Fri, 19 Apr 2024 04:07:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact131
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]
F    D      [Multiple Regression] [] [2009-11-20 14:29:56] [27b6e36591879260e4dc6bb7e89a38fd] [Current]
-    D        [Multiple Regression] [] [2009-11-26 16:24:19] [58e1a7a2c10f1de09acf218271f55dfd]
-    D        [Multiple Regression] [] [2009-12-15 16:14:46] [e149fd9094b67af26551857fa83a9d9d]
Feedback Forum
2009-11-26 16:37:11 [c299e0eb981e6cab9be2a8b66230858e] [reply
Model 4 en 5 zijn naar mijn mening niet betrouwbaar en verkeerd samengesteld. Het is de bedoeling om de endogene variabele te vergelijken met het verleden. In model 4 wordt ervoor gekozen om tot 4 perioden terug te gaan. Hierdoor kan men voor de berekening met de endogene variabele pas starten bij periode 5. Bekijk via de link goed en bestudeer hoe de variabelen Y1-Y4 worden gevormd. Y1 gaat 1 periode terug tegenover de bekeken Y-waarde, Y2 gaat 2 perioden terug tegenover de bekeken Y-waarde, enz. Ik raad de student aan het nieuwe model 4 te interpreteren om indien nodig een nieuw model 5 samen te stellen.

http://www.freestatistics.org/blog/index.php?v=date/2009/Nov/26/t1259252853110m1bxt7v0fp0h.htm/

Post a new message
Dataseries X:
613	0	611	594	543	537
611	0	613	611	594	543
594	0	611	613	611	594
595	0	594	611	613	611
591	0	595	594	611	613
589	0	591	595	594	611
584	0	589	591	595	594
573	0	584	589	591	595
567	0	573	584	589	591
569	0	567	573	584	589
621	0	569	567	573	584
629	0	621	569	567	573
628	0	629	621	569	567
612	0	628	629	621	569
595	0	612	628	629	621
597	0	595	612	628	629
593	0	597	595	612	628
590	0	593	597	595	612
580	0	590	593	597	595
574	0	580	590	593	597
573	0	574	580	590	593
573	0	573	574	580	590
620	0	573	573	574	580
626	0	620	573	573	574
620	0	626	620	573	573
588	0	620	626	620	573
566	0	588	620	626	620
557	0	566	588	620	626
561	0	557	566	588	620
549	0	561	557	566	588
532	0	549	561	557	566
526	0	532	549	561	557
511	0	526	532	549	561
499	0	511	526	532	549
555	0	499	511	526	532
565	0	555	499	511	526
542	0	565	555	499	511
527	0	542	565	555	499
510	0	527	542	565	555
514	0	510	527	542	565
517	0	514	510	527	542
508	0	517	514	510	527
493	0	508	517	514	510
490	0	493	508	517	514
469	0	490	493	508	517
478	0	469	490	493	508
528	0	478	469	490	493
534	0	528	478	469	490
518	1	534	528	478	469
506	1	518	534	528	478
502	1	506	518	534	528
516	1	502	506	518	534
528	1	516	502	506	518
533	1	528	516	502	506
536	1	533	528	516	502
537	1	536	533	528	516
524	1	537	536	533	528
536	1	524	537	536	533
587	1	536	524	537	536
597	1	587	536	524	537
581	1	597	587	536	524




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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 79.3607618844651 + 12.4028527007149X[t] + 0.948720399414102Y1[t] + 0.0452222789877021Y2[t] -0.0408328304937311Y3[t] -0.0614850910601708Y4[t] -23.7371627758512M1[t] -27.9989333349529M2[t] -24.4920114941735M3[t] -6.19985693337634M4[t] -6.38345082070392M5[t] -13.9880587951269M6[t] -19.3849873747136M7[t] -15.2421114767019M8[t] -20.9699777464923M9[t] -8.16895780312471M10[t] + 41.071920254817M11[t] -0.36680636578864t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  79.3607618844651 +  12.4028527007149X[t] +  0.948720399414102Y1[t] +  0.0452222789877021Y2[t] -0.0408328304937311Y3[t] -0.0614850910601708Y4[t] -23.7371627758512M1[t] -27.9989333349529M2[t] -24.4920114941735M3[t] -6.19985693337634M4[t] -6.38345082070392M5[t] -13.9880587951269M6[t] -19.3849873747136M7[t] -15.2421114767019M8[t] -20.9699777464923M9[t] -8.16895780312471M10[t] +  41.071920254817M11[t] -0.36680636578864t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58211&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  79.3607618844651 +  12.4028527007149X[t] +  0.948720399414102Y1[t] +  0.0452222789877021Y2[t] -0.0408328304937311Y3[t] -0.0614850910601708Y4[t] -23.7371627758512M1[t] -27.9989333349529M2[t] -24.4920114941735M3[t] -6.19985693337634M4[t] -6.38345082070392M5[t] -13.9880587951269M6[t] -19.3849873747136M7[t] -15.2421114767019M8[t] -20.9699777464923M9[t] -8.16895780312471M10[t] +  41.071920254817M11[t] -0.36680636578864t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58211&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58211&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] = + 79.3607618844651 + 12.4028527007149X[t] + 0.948720399414102Y1[t] + 0.0452222789877021Y2[t] -0.0408328304937311Y3[t] -0.0614850910601708Y4[t] -23.7371627758512M1[t] -27.9989333349529M2[t] -24.4920114941735M3[t] -6.19985693337634M4[t] -6.38345082070392M5[t] -13.9880587951269M6[t] -19.3849873747136M7[t] -15.2421114767019M8[t] -20.9699777464923M9[t] -8.16895780312471M10[t] + 41.071920254817M11[t] -0.36680636578864t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)79.360761884465128.7518882.76020.0084560.004228
X12.40285270071494.1545242.98540.0046590.002329
Y10.9487203994141020.1471186.448700
Y20.04522227898770210.2057770.21980.8270950.413548
Y3-0.04083283049373110.20551-0.19870.8434410.421721
Y4-0.06148509106017080.147137-0.41790.6781160.339058
M1-23.737162775851210.356885-2.29190.0268680.013434
M2-27.998933334952913.536032-2.06850.0446430.022321
M3-24.492011494173511.115007-2.20350.0329640.016482
M4-6.1998569333763410.779711-0.57510.5681930.284097
M5-6.383450820703928.57903-0.74410.4608770.230439
M6-13.98805879512698.328297-1.67960.1002910.050146
M7-19.38498737471369.408562-2.06040.0454480.022724
M8-15.24211147670199.985531-1.52640.1342280.067114
M9-20.96997774649239.375399-2.23670.0305450.015272
M10-8.1689578031247110.069057-0.81130.4216650.210833
M1141.0719202548178.56494.79542e-051e-05
t-0.366806365788640.120071-3.05490.0038570.001928

\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) & 79.3607618844651 & 28.751888 & 2.7602 & 0.008456 & 0.004228 \tabularnewline
X & 12.4028527007149 & 4.154524 & 2.9854 & 0.004659 & 0.002329 \tabularnewline
Y1 & 0.948720399414102 & 0.147118 & 6.4487 & 0 & 0 \tabularnewline
Y2 & 0.0452222789877021 & 0.205777 & 0.2198 & 0.827095 & 0.413548 \tabularnewline
Y3 & -0.0408328304937311 & 0.20551 & -0.1987 & 0.843441 & 0.421721 \tabularnewline
Y4 & -0.0614850910601708 & 0.147137 & -0.4179 & 0.678116 & 0.339058 \tabularnewline
M1 & -23.7371627758512 & 10.356885 & -2.2919 & 0.026868 & 0.013434 \tabularnewline
M2 & -27.9989333349529 & 13.536032 & -2.0685 & 0.044643 & 0.022321 \tabularnewline
M3 & -24.4920114941735 & 11.115007 & -2.2035 & 0.032964 & 0.016482 \tabularnewline
M4 & -6.19985693337634 & 10.779711 & -0.5751 & 0.568193 & 0.284097 \tabularnewline
M5 & -6.38345082070392 & 8.57903 & -0.7441 & 0.460877 & 0.230439 \tabularnewline
M6 & -13.9880587951269 & 8.328297 & -1.6796 & 0.100291 & 0.050146 \tabularnewline
M7 & -19.3849873747136 & 9.408562 & -2.0604 & 0.045448 & 0.022724 \tabularnewline
M8 & -15.2421114767019 & 9.985531 & -1.5264 & 0.134228 & 0.067114 \tabularnewline
M9 & -20.9699777464923 & 9.375399 & -2.2367 & 0.030545 & 0.015272 \tabularnewline
M10 & -8.16895780312471 & 10.069057 & -0.8113 & 0.421665 & 0.210833 \tabularnewline
M11 & 41.071920254817 & 8.5649 & 4.7954 & 2e-05 & 1e-05 \tabularnewline
t & -0.36680636578864 & 0.120071 & -3.0549 & 0.003857 & 0.001928 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58211&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]79.3607618844651[/C][C]28.751888[/C][C]2.7602[/C][C]0.008456[/C][C]0.004228[/C][/ROW]
[ROW][C]X[/C][C]12.4028527007149[/C][C]4.154524[/C][C]2.9854[/C][C]0.004659[/C][C]0.002329[/C][/ROW]
[ROW][C]Y1[/C][C]0.948720399414102[/C][C]0.147118[/C][C]6.4487[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]0.0452222789877021[/C][C]0.205777[/C][C]0.2198[/C][C]0.827095[/C][C]0.413548[/C][/ROW]
[ROW][C]Y3[/C][C]-0.0408328304937311[/C][C]0.20551[/C][C]-0.1987[/C][C]0.843441[/C][C]0.421721[/C][/ROW]
[ROW][C]Y4[/C][C]-0.0614850910601708[/C][C]0.147137[/C][C]-0.4179[/C][C]0.678116[/C][C]0.339058[/C][/ROW]
[ROW][C]M1[/C][C]-23.7371627758512[/C][C]10.356885[/C][C]-2.2919[/C][C]0.026868[/C][C]0.013434[/C][/ROW]
[ROW][C]M2[/C][C]-27.9989333349529[/C][C]13.536032[/C][C]-2.0685[/C][C]0.044643[/C][C]0.022321[/C][/ROW]
[ROW][C]M3[/C][C]-24.4920114941735[/C][C]11.115007[/C][C]-2.2035[/C][C]0.032964[/C][C]0.016482[/C][/ROW]
[ROW][C]M4[/C][C]-6.19985693337634[/C][C]10.779711[/C][C]-0.5751[/C][C]0.568193[/C][C]0.284097[/C][/ROW]
[ROW][C]M5[/C][C]-6.38345082070392[/C][C]8.57903[/C][C]-0.7441[/C][C]0.460877[/C][C]0.230439[/C][/ROW]
[ROW][C]M6[/C][C]-13.9880587951269[/C][C]8.328297[/C][C]-1.6796[/C][C]0.100291[/C][C]0.050146[/C][/ROW]
[ROW][C]M7[/C][C]-19.3849873747136[/C][C]9.408562[/C][C]-2.0604[/C][C]0.045448[/C][C]0.022724[/C][/ROW]
[ROW][C]M8[/C][C]-15.2421114767019[/C][C]9.985531[/C][C]-1.5264[/C][C]0.134228[/C][C]0.067114[/C][/ROW]
[ROW][C]M9[/C][C]-20.9699777464923[/C][C]9.375399[/C][C]-2.2367[/C][C]0.030545[/C][C]0.015272[/C][/ROW]
[ROW][C]M10[/C][C]-8.16895780312471[/C][C]10.069057[/C][C]-0.8113[/C][C]0.421665[/C][C]0.210833[/C][/ROW]
[ROW][C]M11[/C][C]41.071920254817[/C][C]8.5649[/C][C]4.7954[/C][C]2e-05[/C][C]1e-05[/C][/ROW]
[ROW][C]t[/C][C]-0.36680636578864[/C][C]0.120071[/C][C]-3.0549[/C][C]0.003857[/C][C]0.001928[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58211&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58211&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)79.360761884465128.7518882.76020.0084560.004228
X12.40285270071494.1545242.98540.0046590.002329
Y10.9487203994141020.1471186.448700
Y20.04522227898770210.2057770.21980.8270950.413548
Y3-0.04083283049373110.20551-0.19870.8434410.421721
Y4-0.06148509106017080.147137-0.41790.6781160.339058
M1-23.737162775851210.356885-2.29190.0268680.013434
M2-27.998933334952913.536032-2.06850.0446430.022321
M3-24.492011494173511.115007-2.20350.0329640.016482
M4-6.1998569333763410.779711-0.57510.5681930.284097
M5-6.383450820703928.57903-0.74410.4608770.230439
M6-13.98805879512698.328297-1.67960.1002910.050146
M7-19.38498737471369.408562-2.06040.0454480.022724
M8-15.24211147670199.985531-1.52640.1342280.067114
M9-20.96997774649239.375399-2.23670.0305450.015272
M10-8.1689578031247110.069057-0.81130.4216650.210833
M1141.0719202548178.56494.79542e-051e-05
t-0.366806365788640.120071-3.05490.0038570.001928







Multiple Linear Regression - Regression Statistics
Multiple R0.991204866841592
R-squared0.98248708805046
Adjusted R-squared0.97556337867506
F-TEST (value)141.901838274907
F-TEST (DF numerator)17
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.5733111803007
Sum Squared Residuals1857.96205454184

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.991204866841592 \tabularnewline
R-squared & 0.98248708805046 \tabularnewline
Adjusted R-squared & 0.97556337867506 \tabularnewline
F-TEST (value) & 141.901838274907 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 43 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 6.5733111803007 \tabularnewline
Sum Squared Residuals & 1857.96205454184 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58211&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.991204866841592[/C][/ROW]
[ROW][C]R-squared[/C][C]0.98248708805046[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.97556337867506[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]141.901838274907[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]43[/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]6.5733111803007[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1857.96205454184[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58211&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58211&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.991204866841592
R-squared0.98248708805046
Adjusted R-squared0.97556337867506
F-TEST (value)141.901838274907
F-TEST (DF numerator)17
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.5733111803007
Sum Squared Residuals1857.96205454184







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1613606.597269646136.40273035387012
2611602.1835273613178.81647263868347
3594599.686748832992-5.68674883299231
4595600.266493470975-5.26649347097542
5591599.85473035335-8.85473035334952
6589588.9507849949830.0492150050170205
7584582.1131338523581.88686614764226
8573581.15700306045-8.15700306044966
9567564.7279006616052.27209933839482
10569571.299481108424-2.29948110842371
11621622.556246516211-1.55624651621067
12629631.462758207738-2.46275820773805
13628617.58735565414510.4126443458549
14612610.1255591939481.87444080605214
15595594.5170386202470.482961379753423
16597595.1395356634241.86046433657554
17593596.432607845305-3.43260784530546
18590586.4346760407693.565323959231
19580578.6074716682361.39252833176405
20574572.801031509211.19896849079054
21573560.93025254299112.0697474570093
22573572.7371956253470.262804374652884
23620622.425892932077-2.42589293207659
24626625.9867684607890.0132315392114816
25620609.76205391911510.2379460808845
26588597.793345238461-9.7933452384613
27566567.168277995484-1.16827799548417
28557562.650750912377-5.65075091237739
29561554.2425380489656.75746195103478
30549552.524849980308-3.52484998030826
31532537.277526835682-5.2775268356818
32526524.7727167275791.22728327242068
33511512.460996554409-1.46099655440884
34499511.825049677965-12.8250496779655
35555549.9263859233195.0736140766809
36565562.0547373258182.94526267418223
37542551.382690133458-9.38269013345761
38527523.8369493969933.16305060300701
39510507.8546530597482.14534694025179
40514509.2977244706564.7022755293444
41517513.8000766241953.19992337580525
42508510.472147082472-2.47214708247227
43493497.187510605381-4.18751060538104
44490485.9573347797814.04266522021862
45469476.521206962408-7.5212069624076
46478470.0624835922757.93751640772524
47528527.5701458777970.429854122203224
48534535.016384452334-1.01638445233443
49518532.192395795099-14.1923957950993
50506510.060618809281-4.06061880928134
51502497.7732814915294.22671850847127
52516511.6454954825674.35450451743287
53528525.6700471281852.32995287181495
54533530.6175419014672.38245809853252
55536529.8143570383436.18564296165652
56537535.311913922981.68808607701981
57524529.359643278588-5.35964327858768
58536529.0757899959896.92421000401108
59587588.521328750597-1.52132875059686
60597596.4793515533210.520648446678803
61581584.478234852053-3.47823485205266

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 613 & 606.59726964613 & 6.40273035387012 \tabularnewline
2 & 611 & 602.183527361317 & 8.81647263868347 \tabularnewline
3 & 594 & 599.686748832992 & -5.68674883299231 \tabularnewline
4 & 595 & 600.266493470975 & -5.26649347097542 \tabularnewline
5 & 591 & 599.85473035335 & -8.85473035334952 \tabularnewline
6 & 589 & 588.950784994983 & 0.0492150050170205 \tabularnewline
7 & 584 & 582.113133852358 & 1.88686614764226 \tabularnewline
8 & 573 & 581.15700306045 & -8.15700306044966 \tabularnewline
9 & 567 & 564.727900661605 & 2.27209933839482 \tabularnewline
10 & 569 & 571.299481108424 & -2.29948110842371 \tabularnewline
11 & 621 & 622.556246516211 & -1.55624651621067 \tabularnewline
12 & 629 & 631.462758207738 & -2.46275820773805 \tabularnewline
13 & 628 & 617.587355654145 & 10.4126443458549 \tabularnewline
14 & 612 & 610.125559193948 & 1.87444080605214 \tabularnewline
15 & 595 & 594.517038620247 & 0.482961379753423 \tabularnewline
16 & 597 & 595.139535663424 & 1.86046433657554 \tabularnewline
17 & 593 & 596.432607845305 & -3.43260784530546 \tabularnewline
18 & 590 & 586.434676040769 & 3.565323959231 \tabularnewline
19 & 580 & 578.607471668236 & 1.39252833176405 \tabularnewline
20 & 574 & 572.80103150921 & 1.19896849079054 \tabularnewline
21 & 573 & 560.930252542991 & 12.0697474570093 \tabularnewline
22 & 573 & 572.737195625347 & 0.262804374652884 \tabularnewline
23 & 620 & 622.425892932077 & -2.42589293207659 \tabularnewline
24 & 626 & 625.986768460789 & 0.0132315392114816 \tabularnewline
25 & 620 & 609.762053919115 & 10.2379460808845 \tabularnewline
26 & 588 & 597.793345238461 & -9.7933452384613 \tabularnewline
27 & 566 & 567.168277995484 & -1.16827799548417 \tabularnewline
28 & 557 & 562.650750912377 & -5.65075091237739 \tabularnewline
29 & 561 & 554.242538048965 & 6.75746195103478 \tabularnewline
30 & 549 & 552.524849980308 & -3.52484998030826 \tabularnewline
31 & 532 & 537.277526835682 & -5.2775268356818 \tabularnewline
32 & 526 & 524.772716727579 & 1.22728327242068 \tabularnewline
33 & 511 & 512.460996554409 & -1.46099655440884 \tabularnewline
34 & 499 & 511.825049677965 & -12.8250496779655 \tabularnewline
35 & 555 & 549.926385923319 & 5.0736140766809 \tabularnewline
36 & 565 & 562.054737325818 & 2.94526267418223 \tabularnewline
37 & 542 & 551.382690133458 & -9.38269013345761 \tabularnewline
38 & 527 & 523.836949396993 & 3.16305060300701 \tabularnewline
39 & 510 & 507.854653059748 & 2.14534694025179 \tabularnewline
40 & 514 & 509.297724470656 & 4.7022755293444 \tabularnewline
41 & 517 & 513.800076624195 & 3.19992337580525 \tabularnewline
42 & 508 & 510.472147082472 & -2.47214708247227 \tabularnewline
43 & 493 & 497.187510605381 & -4.18751060538104 \tabularnewline
44 & 490 & 485.957334779781 & 4.04266522021862 \tabularnewline
45 & 469 & 476.521206962408 & -7.5212069624076 \tabularnewline
46 & 478 & 470.062483592275 & 7.93751640772524 \tabularnewline
47 & 528 & 527.570145877797 & 0.429854122203224 \tabularnewline
48 & 534 & 535.016384452334 & -1.01638445233443 \tabularnewline
49 & 518 & 532.192395795099 & -14.1923957950993 \tabularnewline
50 & 506 & 510.060618809281 & -4.06061880928134 \tabularnewline
51 & 502 & 497.773281491529 & 4.22671850847127 \tabularnewline
52 & 516 & 511.645495482567 & 4.35450451743287 \tabularnewline
53 & 528 & 525.670047128185 & 2.32995287181495 \tabularnewline
54 & 533 & 530.617541901467 & 2.38245809853252 \tabularnewline
55 & 536 & 529.814357038343 & 6.18564296165652 \tabularnewline
56 & 537 & 535.31191392298 & 1.68808607701981 \tabularnewline
57 & 524 & 529.359643278588 & -5.35964327858768 \tabularnewline
58 & 536 & 529.075789995989 & 6.92421000401108 \tabularnewline
59 & 587 & 588.521328750597 & -1.52132875059686 \tabularnewline
60 & 597 & 596.479351553321 & 0.520648446678803 \tabularnewline
61 & 581 & 584.478234852053 & -3.47823485205266 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58211&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]613[/C][C]606.59726964613[/C][C]6.40273035387012[/C][/ROW]
[ROW][C]2[/C][C]611[/C][C]602.183527361317[/C][C]8.81647263868347[/C][/ROW]
[ROW][C]3[/C][C]594[/C][C]599.686748832992[/C][C]-5.68674883299231[/C][/ROW]
[ROW][C]4[/C][C]595[/C][C]600.266493470975[/C][C]-5.26649347097542[/C][/ROW]
[ROW][C]5[/C][C]591[/C][C]599.85473035335[/C][C]-8.85473035334952[/C][/ROW]
[ROW][C]6[/C][C]589[/C][C]588.950784994983[/C][C]0.0492150050170205[/C][/ROW]
[ROW][C]7[/C][C]584[/C][C]582.113133852358[/C][C]1.88686614764226[/C][/ROW]
[ROW][C]8[/C][C]573[/C][C]581.15700306045[/C][C]-8.15700306044966[/C][/ROW]
[ROW][C]9[/C][C]567[/C][C]564.727900661605[/C][C]2.27209933839482[/C][/ROW]
[ROW][C]10[/C][C]569[/C][C]571.299481108424[/C][C]-2.29948110842371[/C][/ROW]
[ROW][C]11[/C][C]621[/C][C]622.556246516211[/C][C]-1.55624651621067[/C][/ROW]
[ROW][C]12[/C][C]629[/C][C]631.462758207738[/C][C]-2.46275820773805[/C][/ROW]
[ROW][C]13[/C][C]628[/C][C]617.587355654145[/C][C]10.4126443458549[/C][/ROW]
[ROW][C]14[/C][C]612[/C][C]610.125559193948[/C][C]1.87444080605214[/C][/ROW]
[ROW][C]15[/C][C]595[/C][C]594.517038620247[/C][C]0.482961379753423[/C][/ROW]
[ROW][C]16[/C][C]597[/C][C]595.139535663424[/C][C]1.86046433657554[/C][/ROW]
[ROW][C]17[/C][C]593[/C][C]596.432607845305[/C][C]-3.43260784530546[/C][/ROW]
[ROW][C]18[/C][C]590[/C][C]586.434676040769[/C][C]3.565323959231[/C][/ROW]
[ROW][C]19[/C][C]580[/C][C]578.607471668236[/C][C]1.39252833176405[/C][/ROW]
[ROW][C]20[/C][C]574[/C][C]572.80103150921[/C][C]1.19896849079054[/C][/ROW]
[ROW][C]21[/C][C]573[/C][C]560.930252542991[/C][C]12.0697474570093[/C][/ROW]
[ROW][C]22[/C][C]573[/C][C]572.737195625347[/C][C]0.262804374652884[/C][/ROW]
[ROW][C]23[/C][C]620[/C][C]622.425892932077[/C][C]-2.42589293207659[/C][/ROW]
[ROW][C]24[/C][C]626[/C][C]625.986768460789[/C][C]0.0132315392114816[/C][/ROW]
[ROW][C]25[/C][C]620[/C][C]609.762053919115[/C][C]10.2379460808845[/C][/ROW]
[ROW][C]26[/C][C]588[/C][C]597.793345238461[/C][C]-9.7933452384613[/C][/ROW]
[ROW][C]27[/C][C]566[/C][C]567.168277995484[/C][C]-1.16827799548417[/C][/ROW]
[ROW][C]28[/C][C]557[/C][C]562.650750912377[/C][C]-5.65075091237739[/C][/ROW]
[ROW][C]29[/C][C]561[/C][C]554.242538048965[/C][C]6.75746195103478[/C][/ROW]
[ROW][C]30[/C][C]549[/C][C]552.524849980308[/C][C]-3.52484998030826[/C][/ROW]
[ROW][C]31[/C][C]532[/C][C]537.277526835682[/C][C]-5.2775268356818[/C][/ROW]
[ROW][C]32[/C][C]526[/C][C]524.772716727579[/C][C]1.22728327242068[/C][/ROW]
[ROW][C]33[/C][C]511[/C][C]512.460996554409[/C][C]-1.46099655440884[/C][/ROW]
[ROW][C]34[/C][C]499[/C][C]511.825049677965[/C][C]-12.8250496779655[/C][/ROW]
[ROW][C]35[/C][C]555[/C][C]549.926385923319[/C][C]5.0736140766809[/C][/ROW]
[ROW][C]36[/C][C]565[/C][C]562.054737325818[/C][C]2.94526267418223[/C][/ROW]
[ROW][C]37[/C][C]542[/C][C]551.382690133458[/C][C]-9.38269013345761[/C][/ROW]
[ROW][C]38[/C][C]527[/C][C]523.836949396993[/C][C]3.16305060300701[/C][/ROW]
[ROW][C]39[/C][C]510[/C][C]507.854653059748[/C][C]2.14534694025179[/C][/ROW]
[ROW][C]40[/C][C]514[/C][C]509.297724470656[/C][C]4.7022755293444[/C][/ROW]
[ROW][C]41[/C][C]517[/C][C]513.800076624195[/C][C]3.19992337580525[/C][/ROW]
[ROW][C]42[/C][C]508[/C][C]510.472147082472[/C][C]-2.47214708247227[/C][/ROW]
[ROW][C]43[/C][C]493[/C][C]497.187510605381[/C][C]-4.18751060538104[/C][/ROW]
[ROW][C]44[/C][C]490[/C][C]485.957334779781[/C][C]4.04266522021862[/C][/ROW]
[ROW][C]45[/C][C]469[/C][C]476.521206962408[/C][C]-7.5212069624076[/C][/ROW]
[ROW][C]46[/C][C]478[/C][C]470.062483592275[/C][C]7.93751640772524[/C][/ROW]
[ROW][C]47[/C][C]528[/C][C]527.570145877797[/C][C]0.429854122203224[/C][/ROW]
[ROW][C]48[/C][C]534[/C][C]535.016384452334[/C][C]-1.01638445233443[/C][/ROW]
[ROW][C]49[/C][C]518[/C][C]532.192395795099[/C][C]-14.1923957950993[/C][/ROW]
[ROW][C]50[/C][C]506[/C][C]510.060618809281[/C][C]-4.06061880928134[/C][/ROW]
[ROW][C]51[/C][C]502[/C][C]497.773281491529[/C][C]4.22671850847127[/C][/ROW]
[ROW][C]52[/C][C]516[/C][C]511.645495482567[/C][C]4.35450451743287[/C][/ROW]
[ROW][C]53[/C][C]528[/C][C]525.670047128185[/C][C]2.32995287181495[/C][/ROW]
[ROW][C]54[/C][C]533[/C][C]530.617541901467[/C][C]2.38245809853252[/C][/ROW]
[ROW][C]55[/C][C]536[/C][C]529.814357038343[/C][C]6.18564296165652[/C][/ROW]
[ROW][C]56[/C][C]537[/C][C]535.31191392298[/C][C]1.68808607701981[/C][/ROW]
[ROW][C]57[/C][C]524[/C][C]529.359643278588[/C][C]-5.35964327858768[/C][/ROW]
[ROW][C]58[/C][C]536[/C][C]529.075789995989[/C][C]6.92421000401108[/C][/ROW]
[ROW][C]59[/C][C]587[/C][C]588.521328750597[/C][C]-1.52132875059686[/C][/ROW]
[ROW][C]60[/C][C]597[/C][C]596.479351553321[/C][C]0.520648446678803[/C][/ROW]
[ROW][C]61[/C][C]581[/C][C]584.478234852053[/C][C]-3.47823485205266[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58211&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58211&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
1613606.597269646136.40273035387012
2611602.1835273613178.81647263868347
3594599.686748832992-5.68674883299231
4595600.266493470975-5.26649347097542
5591599.85473035335-8.85473035334952
6589588.9507849949830.0492150050170205
7584582.1131338523581.88686614764226
8573581.15700306045-8.15700306044966
9567564.7279006616052.27209933839482
10569571.299481108424-2.29948110842371
11621622.556246516211-1.55624651621067
12629631.462758207738-2.46275820773805
13628617.58735565414510.4126443458549
14612610.1255591939481.87444080605214
15595594.5170386202470.482961379753423
16597595.1395356634241.86046433657554
17593596.432607845305-3.43260784530546
18590586.4346760407693.565323959231
19580578.6074716682361.39252833176405
20574572.801031509211.19896849079054
21573560.93025254299112.0697474570093
22573572.7371956253470.262804374652884
23620622.425892932077-2.42589293207659
24626625.9867684607890.0132315392114816
25620609.76205391911510.2379460808845
26588597.793345238461-9.7933452384613
27566567.168277995484-1.16827799548417
28557562.650750912377-5.65075091237739
29561554.2425380489656.75746195103478
30549552.524849980308-3.52484998030826
31532537.277526835682-5.2775268356818
32526524.7727167275791.22728327242068
33511512.460996554409-1.46099655440884
34499511.825049677965-12.8250496779655
35555549.9263859233195.0736140766809
36565562.0547373258182.94526267418223
37542551.382690133458-9.38269013345761
38527523.8369493969933.16305060300701
39510507.8546530597482.14534694025179
40514509.2977244706564.7022755293444
41517513.8000766241953.19992337580525
42508510.472147082472-2.47214708247227
43493497.187510605381-4.18751060538104
44490485.9573347797814.04266522021862
45469476.521206962408-7.5212069624076
46478470.0624835922757.93751640772524
47528527.5701458777970.429854122203224
48534535.016384452334-1.01638445233443
49518532.192395795099-14.1923957950993
50506510.060618809281-4.06061880928134
51502497.7732814915294.22671850847127
52516511.6454954825674.35450451743287
53528525.6700471281852.32995287181495
54533530.6175419014672.38245809853252
55536529.8143570383436.18564296165652
56537535.311913922981.68808607701981
57524529.359643278588-5.35964327858768
58536529.0757899959896.92421000401108
59587588.521328750597-1.52132875059686
60597596.4793515533210.520648446678803
61581584.478234852053-3.47823485205266







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.3114618126124020.6229236252248030.688538187387598
220.1662125289295030.3324250578590070.833787471070497
230.08539045173692030.1707809034738410.91460954826308
240.03789656742094910.07579313484189810.96210343257905
250.09352743855327580.1870548771065520.906472561446724
260.718423788978110.5631524220437810.281576211021891
270.6152450256834280.7695099486331430.384754974316572
280.6328633990170750.734273201965850.367136600982925
290.5726496854434310.8547006291131380.427350314556569
300.5155105547721250.968978890455750.484489445227875
310.5128528733946080.9742942532107850.487147126605392
320.5071742754276380.9856514491447240.492825724572362
330.5673490857192580.8653018285614830.432650914280742
340.8997855044683280.2004289910633450.100214495531673
350.9359848009822080.1280303980355840.0640151990177919
360.9454792856207180.1090414287585640.054520714379282
370.9450387327905950.1099225344188090.0549612672094046
380.9232757107549930.1534485784900130.0767242892450066
390.8417618004078350.3164763991843310.158238199592165
400.7845296804507210.4309406390985570.215470319549279

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.311461812612402 & 0.622923625224803 & 0.688538187387598 \tabularnewline
22 & 0.166212528929503 & 0.332425057859007 & 0.833787471070497 \tabularnewline
23 & 0.0853904517369203 & 0.170780903473841 & 0.91460954826308 \tabularnewline
24 & 0.0378965674209491 & 0.0757931348418981 & 0.96210343257905 \tabularnewline
25 & 0.0935274385532758 & 0.187054877106552 & 0.906472561446724 \tabularnewline
26 & 0.71842378897811 & 0.563152422043781 & 0.281576211021891 \tabularnewline
27 & 0.615245025683428 & 0.769509948633143 & 0.384754974316572 \tabularnewline
28 & 0.632863399017075 & 0.73427320196585 & 0.367136600982925 \tabularnewline
29 & 0.572649685443431 & 0.854700629113138 & 0.427350314556569 \tabularnewline
30 & 0.515510554772125 & 0.96897889045575 & 0.484489445227875 \tabularnewline
31 & 0.512852873394608 & 0.974294253210785 & 0.487147126605392 \tabularnewline
32 & 0.507174275427638 & 0.985651449144724 & 0.492825724572362 \tabularnewline
33 & 0.567349085719258 & 0.865301828561483 & 0.432650914280742 \tabularnewline
34 & 0.899785504468328 & 0.200428991063345 & 0.100214495531673 \tabularnewline
35 & 0.935984800982208 & 0.128030398035584 & 0.0640151990177919 \tabularnewline
36 & 0.945479285620718 & 0.109041428758564 & 0.054520714379282 \tabularnewline
37 & 0.945038732790595 & 0.109922534418809 & 0.0549612672094046 \tabularnewline
38 & 0.923275710754993 & 0.153448578490013 & 0.0767242892450066 \tabularnewline
39 & 0.841761800407835 & 0.316476399184331 & 0.158238199592165 \tabularnewline
40 & 0.784529680450721 & 0.430940639098557 & 0.215470319549279 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58211&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]21[/C][C]0.311461812612402[/C][C]0.622923625224803[/C][C]0.688538187387598[/C][/ROW]
[ROW][C]22[/C][C]0.166212528929503[/C][C]0.332425057859007[/C][C]0.833787471070497[/C][/ROW]
[ROW][C]23[/C][C]0.0853904517369203[/C][C]0.170780903473841[/C][C]0.91460954826308[/C][/ROW]
[ROW][C]24[/C][C]0.0378965674209491[/C][C]0.0757931348418981[/C][C]0.96210343257905[/C][/ROW]
[ROW][C]25[/C][C]0.0935274385532758[/C][C]0.187054877106552[/C][C]0.906472561446724[/C][/ROW]
[ROW][C]26[/C][C]0.71842378897811[/C][C]0.563152422043781[/C][C]0.281576211021891[/C][/ROW]
[ROW][C]27[/C][C]0.615245025683428[/C][C]0.769509948633143[/C][C]0.384754974316572[/C][/ROW]
[ROW][C]28[/C][C]0.632863399017075[/C][C]0.73427320196585[/C][C]0.367136600982925[/C][/ROW]
[ROW][C]29[/C][C]0.572649685443431[/C][C]0.854700629113138[/C][C]0.427350314556569[/C][/ROW]
[ROW][C]30[/C][C]0.515510554772125[/C][C]0.96897889045575[/C][C]0.484489445227875[/C][/ROW]
[ROW][C]31[/C][C]0.512852873394608[/C][C]0.974294253210785[/C][C]0.487147126605392[/C][/ROW]
[ROW][C]32[/C][C]0.507174275427638[/C][C]0.985651449144724[/C][C]0.492825724572362[/C][/ROW]
[ROW][C]33[/C][C]0.567349085719258[/C][C]0.865301828561483[/C][C]0.432650914280742[/C][/ROW]
[ROW][C]34[/C][C]0.899785504468328[/C][C]0.200428991063345[/C][C]0.100214495531673[/C][/ROW]
[ROW][C]35[/C][C]0.935984800982208[/C][C]0.128030398035584[/C][C]0.0640151990177919[/C][/ROW]
[ROW][C]36[/C][C]0.945479285620718[/C][C]0.109041428758564[/C][C]0.054520714379282[/C][/ROW]
[ROW][C]37[/C][C]0.945038732790595[/C][C]0.109922534418809[/C][C]0.0549612672094046[/C][/ROW]
[ROW][C]38[/C][C]0.923275710754993[/C][C]0.153448578490013[/C][C]0.0767242892450066[/C][/ROW]
[ROW][C]39[/C][C]0.841761800407835[/C][C]0.316476399184331[/C][C]0.158238199592165[/C][/ROW]
[ROW][C]40[/C][C]0.784529680450721[/C][C]0.430940639098557[/C][C]0.215470319549279[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58211&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58211&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
210.3114618126124020.6229236252248030.688538187387598
220.1662125289295030.3324250578590070.833787471070497
230.08539045173692030.1707809034738410.91460954826308
240.03789656742094910.07579313484189810.96210343257905
250.09352743855327580.1870548771065520.906472561446724
260.718423788978110.5631524220437810.281576211021891
270.6152450256834280.7695099486331430.384754974316572
280.6328633990170750.734273201965850.367136600982925
290.5726496854434310.8547006291131380.427350314556569
300.5155105547721250.968978890455750.484489445227875
310.5128528733946080.9742942532107850.487147126605392
320.5071742754276380.9856514491447240.492825724572362
330.5673490857192580.8653018285614830.432650914280742
340.8997855044683280.2004289910633450.100214495531673
350.9359848009822080.1280303980355840.0640151990177919
360.9454792856207180.1090414287585640.054520714379282
370.9450387327905950.1099225344188090.0549612672094046
380.9232757107549930.1534485784900130.0767242892450066
390.8417618004078350.3164763991843310.158238199592165
400.7845296804507210.4309406390985570.215470319549279







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 level10.05OK

\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 & 1 & 0.05 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58211&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]1[/C][C]0.05[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58211&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58211&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 level10.05OK



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