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 16:04:12 -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/21/t1258758384vlb06yj9dniay4u.htm/, Retrieved Sun, 28 Apr 2024 00:25:16 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58489, Retrieved Sun, 28 Apr 2024 00:25:16 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact195
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [] [2009-11-20 07:36:00] [5d885a68c2332cc44f6191ec94766bfa]
-   PD        [Multiple Regression] [Model4] [2009-11-20 23:04:12] [82f29a5d509ab8039aab37a0145f886d] [Current]
Feedback Forum

Post a new message
Dataseries X:
537	20,1	544	555	561	562
543	19,9	537	544	555	561
594	20	543	537	544	555
611	22,6	594	543	537	544
613	20,6	611	594	543	537
611	20,1	613	611	594	543
594	20,2	611	613	611	594
595	21,8	594	611	613	611
591	22	595	594	611	613
589	19,5	591	595	594	611
584	17,5	589	591	595	594
573	18,2	584	589	591	595
567	18,8	573	584	589	591
569	19,7	567	573	584	589
621	18,8	569	567	573	584
629	18,5	621	569	567	573
628	18,7	629	621	569	567
612	18,5	628	629	621	569
595	19,3	612	628	629	621
597	18,9	595	612	628	629
593	21,4	597	595	612	628
590	22,5	593	597	595	612
580	25	590	593	597	595
574	22,9	580	590	593	597
573	22,9	574	580	590	593
573	21,3	573	574	580	590
620	22,3	573	573	574	580
626	20,9	620	573	573	574
620	19,9	626	620	573	573
588	20,2	620	626	620	573
566	19,8	588	620	626	620
557	17,7	566	588	620	626
561	18,1	557	566	588	620
549	17,6	561	557	566	588
532	18,2	549	561	557	566
526	16	532	549	561	557
511	16,3	526	532	549	561
499	17,3	511	526	532	549
555	19	499	511	526	532
565	18,6	555	499	511	526
542	18	565	555	499	511
527	17,9	542	565	555	499
510	17,8	527	542	565	555
514	18,5	510	527	542	565
517	17,4	514	510	527	542
508	19	517	514	510	527
493	17,4	508	517	514	510
490	20,6	493	508	517	514
469	18,5	490	493	508	517
478	20	469	490	493	508
528	18,8	478	469	490	493
534	18,8	528	478	469	490
518	19,7	534	528	478	469
506	15,3	518	534	528	478
502	10,6	506	518	534	528
516	6,1	502	506	518	534
528	0,9	516	502	506	518




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 58.2998057129362 -0.668637279101902X[t] + 0.961166527491067Y1[t] + 0.0391683255838521Y2[t] + 0.0478769811627857Y3[t] -0.127097092762909Y4[t] -4.4972676862563M1[t] + 6.69352067183267M2[t] + 56.6788489417115M3[t] + 16.6872113068170M4[t] -4.55219702469572M5[t] -14.5874408744148M6[t] -9.10435377427196M7[t] + 9.94245587206924M8[t] + 9.88391350018948M9[t] + 2.43364712654867M10[t] -5.18399963045349M11[t] -0.254141845139373t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  58.2998057129362 -0.668637279101902X[t] +  0.961166527491067Y1[t] +  0.0391683255838521Y2[t] +  0.0478769811627857Y3[t] -0.127097092762909Y4[t] -4.4972676862563M1[t] +  6.69352067183267M2[t] +  56.6788489417115M3[t] +  16.6872113068170M4[t] -4.55219702469572M5[t] -14.5874408744148M6[t] -9.10435377427196M7[t] +  9.94245587206924M8[t] +  9.88391350018948M9[t] +  2.43364712654867M10[t] -5.18399963045349M11[t] -0.254141845139373t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58489&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  58.2998057129362 -0.668637279101902X[t] +  0.961166527491067Y1[t] +  0.0391683255838521Y2[t] +  0.0478769811627857Y3[t] -0.127097092762909Y4[t] -4.4972676862563M1[t] +  6.69352067183267M2[t] +  56.6788489417115M3[t] +  16.6872113068170M4[t] -4.55219702469572M5[t] -14.5874408744148M6[t] -9.10435377427196M7[t] +  9.94245587206924M8[t] +  9.88391350018948M9[t] +  2.43364712654867M10[t] -5.18399963045349M11[t] -0.254141845139373t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58489&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58489&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] = + 58.2998057129362 -0.668637279101902X[t] + 0.961166527491067Y1[t] + 0.0391683255838521Y2[t] + 0.0478769811627857Y3[t] -0.127097092762909Y4[t] -4.4972676862563M1[t] + 6.69352067183267M2[t] + 56.6788489417115M3[t] + 16.6872113068170M4[t] -4.55219702469572M5[t] -14.5874408744148M6[t] -9.10435377427196M7[t] + 9.94245587206924M8[t] + 9.88391350018948M9[t] + 2.43364712654867M10[t] -5.18399963045349M11[t] -0.254141845139373t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)58.299805712936227.4585052.12320.0401370.020069
X-0.6686372791019020.344845-1.9390.0597670.029884
Y10.9611665274910670.1613955.95541e-060
Y20.03916832558385210.2244540.17450.8623710.431186
Y30.04787698116278570.2229870.21470.8311140.415557
Y4-0.1270970927629090.165009-0.77020.4457970.222898
M1-4.49726768625634.845255-0.92820.3590240.179512
M26.693520671832675.0633931.32190.1938890.096944
M356.67884894171155.33530210.623400
M416.687211306817011.2126491.48820.1447270.072364
M5-4.5521970246957210.654938-0.42720.6715550.335778
M6-14.587440874414810.20374-1.42960.1607890.080395
M7-9.104353774271965.147178-1.76880.0847470.042374
M89.942455872069245.1801071.91940.0622780.031139
M99.883913500189485.871441.68340.100290.050145
M102.433647126548676.0639020.40130.6903650.345183
M11-5.183999630453494.995633-1.03770.3057980.152899
t-0.2541418451393730.110433-2.30130.0268030.013401

\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) & 58.2998057129362 & 27.458505 & 2.1232 & 0.040137 & 0.020069 \tabularnewline
X & -0.668637279101902 & 0.344845 & -1.939 & 0.059767 & 0.029884 \tabularnewline
Y1 & 0.961166527491067 & 0.161395 & 5.9554 & 1e-06 & 0 \tabularnewline
Y2 & 0.0391683255838521 & 0.224454 & 0.1745 & 0.862371 & 0.431186 \tabularnewline
Y3 & 0.0478769811627857 & 0.222987 & 0.2147 & 0.831114 & 0.415557 \tabularnewline
Y4 & -0.127097092762909 & 0.165009 & -0.7702 & 0.445797 & 0.222898 \tabularnewline
M1 & -4.4972676862563 & 4.845255 & -0.9282 & 0.359024 & 0.179512 \tabularnewline
M2 & 6.69352067183267 & 5.063393 & 1.3219 & 0.193889 & 0.096944 \tabularnewline
M3 & 56.6788489417115 & 5.335302 & 10.6234 & 0 & 0 \tabularnewline
M4 & 16.6872113068170 & 11.212649 & 1.4882 & 0.144727 & 0.072364 \tabularnewline
M5 & -4.55219702469572 & 10.654938 & -0.4272 & 0.671555 & 0.335778 \tabularnewline
M6 & -14.5874408744148 & 10.20374 & -1.4296 & 0.160789 & 0.080395 \tabularnewline
M7 & -9.10435377427196 & 5.147178 & -1.7688 & 0.084747 & 0.042374 \tabularnewline
M8 & 9.94245587206924 & 5.180107 & 1.9194 & 0.062278 & 0.031139 \tabularnewline
M9 & 9.88391350018948 & 5.87144 & 1.6834 & 0.10029 & 0.050145 \tabularnewline
M10 & 2.43364712654867 & 6.063902 & 0.4013 & 0.690365 & 0.345183 \tabularnewline
M11 & -5.18399963045349 & 4.995633 & -1.0377 & 0.305798 & 0.152899 \tabularnewline
t & -0.254141845139373 & 0.110433 & -2.3013 & 0.026803 & 0.013401 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58489&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]58.2998057129362[/C][C]27.458505[/C][C]2.1232[/C][C]0.040137[/C][C]0.020069[/C][/ROW]
[ROW][C]X[/C][C]-0.668637279101902[/C][C]0.344845[/C][C]-1.939[/C][C]0.059767[/C][C]0.029884[/C][/ROW]
[ROW][C]Y1[/C][C]0.961166527491067[/C][C]0.161395[/C][C]5.9554[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]0.0391683255838521[/C][C]0.224454[/C][C]0.1745[/C][C]0.862371[/C][C]0.431186[/C][/ROW]
[ROW][C]Y3[/C][C]0.0478769811627857[/C][C]0.222987[/C][C]0.2147[/C][C]0.831114[/C][C]0.415557[/C][/ROW]
[ROW][C]Y4[/C][C]-0.127097092762909[/C][C]0.165009[/C][C]-0.7702[/C][C]0.445797[/C][C]0.222898[/C][/ROW]
[ROW][C]M1[/C][C]-4.4972676862563[/C][C]4.845255[/C][C]-0.9282[/C][C]0.359024[/C][C]0.179512[/C][/ROW]
[ROW][C]M2[/C][C]6.69352067183267[/C][C]5.063393[/C][C]1.3219[/C][C]0.193889[/C][C]0.096944[/C][/ROW]
[ROW][C]M3[/C][C]56.6788489417115[/C][C]5.335302[/C][C]10.6234[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]16.6872113068170[/C][C]11.212649[/C][C]1.4882[/C][C]0.144727[/C][C]0.072364[/C][/ROW]
[ROW][C]M5[/C][C]-4.55219702469572[/C][C]10.654938[/C][C]-0.4272[/C][C]0.671555[/C][C]0.335778[/C][/ROW]
[ROW][C]M6[/C][C]-14.5874408744148[/C][C]10.20374[/C][C]-1.4296[/C][C]0.160789[/C][C]0.080395[/C][/ROW]
[ROW][C]M7[/C][C]-9.10435377427196[/C][C]5.147178[/C][C]-1.7688[/C][C]0.084747[/C][C]0.042374[/C][/ROW]
[ROW][C]M8[/C][C]9.94245587206924[/C][C]5.180107[/C][C]1.9194[/C][C]0.062278[/C][C]0.031139[/C][/ROW]
[ROW][C]M9[/C][C]9.88391350018948[/C][C]5.87144[/C][C]1.6834[/C][C]0.10029[/C][C]0.050145[/C][/ROW]
[ROW][C]M10[/C][C]2.43364712654867[/C][C]6.063902[/C][C]0.4013[/C][C]0.690365[/C][C]0.345183[/C][/ROW]
[ROW][C]M11[/C][C]-5.18399963045349[/C][C]4.995633[/C][C]-1.0377[/C][C]0.305798[/C][C]0.152899[/C][/ROW]
[ROW][C]t[/C][C]-0.254141845139373[/C][C]0.110433[/C][C]-2.3013[/C][C]0.026803[/C][C]0.013401[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58489&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58489&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)58.299805712936227.4585052.12320.0401370.020069
X-0.6686372791019020.344845-1.9390.0597670.029884
Y10.9611665274910670.1613955.95541e-060
Y20.03916832558385210.2244540.17450.8623710.431186
Y30.04787698116278570.2229870.21470.8311140.415557
Y4-0.1270970927629090.165009-0.77020.4457970.222898
M1-4.49726768625634.845255-0.92820.3590240.179512
M26.693520671832675.0633931.32190.1938890.096944
M356.67884894171155.33530210.623400
M416.687211306817011.2126491.48820.1447270.072364
M5-4.5521970246957210.654938-0.42720.6715550.335778
M6-14.587440874414810.20374-1.42960.1607890.080395
M7-9.104353774271965.147178-1.76880.0847470.042374
M89.942455872069245.1801071.91940.0622780.031139
M99.883913500189485.871441.68340.100290.050145
M102.433647126548676.0639020.40130.6903650.345183
M11-5.183999630453494.995633-1.03770.3057980.152899
t-0.2541418451393730.110433-2.30130.0268030.013401







Multiple Linear Regression - Regression Statistics
Multiple R0.991290024248878
R-squared0.98265591217534
Adjusted R-squared0.975095668764592
F-TEST (value)129.976755877757
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.82215927009146
Sum Squared Residuals1815.1324271533

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.991290024248878 \tabularnewline
R-squared & 0.98265591217534 \tabularnewline
Adjusted R-squared & 0.975095668764592 \tabularnewline
F-TEST (value) & 129.976755877757 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 6.82215927009146 \tabularnewline
Sum Squared Residuals & 1815.1324271533 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58489&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.991290024248878[/C][/ROW]
[ROW][C]R-squared[/C][C]0.98265591217534[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.975095668764592[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]129.976755877757[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]39[/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.82215927009146[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1815.1324271533[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58489&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58489&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.991290024248878
R-squared0.98265591217534
Adjusted R-squared0.975095668764592
F-TEST (value)129.976755877757
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.82215927009146
Sum Squared Residuals1815.1324271533







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1537540.152218825339-3.15221882533875
2543543.903410726035-0.903410726035087
3594599.296490072511-5.29649007251066
4611607.6296856746123.37031432538824
5613606.9877671646056.01223283539486
6611601.300038181939.69996181807006
7594598.950080254068-4.95008025406777
8595598.189864175547-3.18986417554682
9591597.688809347421-6.68880934742142
10589587.2907820477741.70921795222589
11584580.8857892046513.11421079534892
12573580.144826588557-7.14482658855679
13567564.6361956681052.36380433189497
14569568.7880271632060.211972836793970
15621620.917148911640.0828510883598304
16629632.041762829455-3.04176282945526
17628620.9989068661757.00109313382533
18612612.430837539255-0.430837539255436
19595595.481007231167-0.481007231167442
20597596.5099520440540.490047955945787
21593595.143211543495-2.14321154349531
22590584.1566176633465.84338233665436
23580573.8294675179366.17053248206424
24574569.9885912275254.0114087724753
25573559.44325670290713.5567432970926
26573570.1560678480872.84393215191329
27620620.163157708793-0.163157708792835
28626626.743002786996-0.743002786996366
29620613.6530974495976.34690255040347
30588599.881349474215-11.8813494742152
31566568.699109334762-2.69910933476215
32557565.447020955037-8.44702095503706
33561554.5851990754816.41480092451887
34549553.721074058793-4.72107405879328
35532536.436021271952-4.43602127195213
36526527.362411956453-1.36241195645339
37511514.89463839645-3.8946383964502
38499511.221396197816-12.2213961978163
39555549.5677647244255.43223527557525
40565562.9891736276612.01082637233926
41542555.033829943566-13.0338299435664
42527527.302437158433-0.302437158433059
43510510.641209357457-0.641209357457052
44514509.6663337178084.33366628219154
45517515.4730334989451.52696650105468
46508510.831526230087-2.83152623008697
47493497.848722005461-4.84872200546102
48490485.5041702274654.49582977253489
49469477.873690407199-8.87369040719865
50478467.93109806485610.0689019351442
51528528.055438582632-0.0554385826315939
52534535.596375081276-1.59637508127588
53518524.326398576057-6.32639857605727
54506503.0853376461662.91466235383363
55502493.2285938225468.77140617745442
56516509.1868291075536.81317089244655
57528527.1097465346570.890253465343169

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 537 & 540.152218825339 & -3.15221882533875 \tabularnewline
2 & 543 & 543.903410726035 & -0.903410726035087 \tabularnewline
3 & 594 & 599.296490072511 & -5.29649007251066 \tabularnewline
4 & 611 & 607.629685674612 & 3.37031432538824 \tabularnewline
5 & 613 & 606.987767164605 & 6.01223283539486 \tabularnewline
6 & 611 & 601.30003818193 & 9.69996181807006 \tabularnewline
7 & 594 & 598.950080254068 & -4.95008025406777 \tabularnewline
8 & 595 & 598.189864175547 & -3.18986417554682 \tabularnewline
9 & 591 & 597.688809347421 & -6.68880934742142 \tabularnewline
10 & 589 & 587.290782047774 & 1.70921795222589 \tabularnewline
11 & 584 & 580.885789204651 & 3.11421079534892 \tabularnewline
12 & 573 & 580.144826588557 & -7.14482658855679 \tabularnewline
13 & 567 & 564.636195668105 & 2.36380433189497 \tabularnewline
14 & 569 & 568.788027163206 & 0.211972836793970 \tabularnewline
15 & 621 & 620.91714891164 & 0.0828510883598304 \tabularnewline
16 & 629 & 632.041762829455 & -3.04176282945526 \tabularnewline
17 & 628 & 620.998906866175 & 7.00109313382533 \tabularnewline
18 & 612 & 612.430837539255 & -0.430837539255436 \tabularnewline
19 & 595 & 595.481007231167 & -0.481007231167442 \tabularnewline
20 & 597 & 596.509952044054 & 0.490047955945787 \tabularnewline
21 & 593 & 595.143211543495 & -2.14321154349531 \tabularnewline
22 & 590 & 584.156617663346 & 5.84338233665436 \tabularnewline
23 & 580 & 573.829467517936 & 6.17053248206424 \tabularnewline
24 & 574 & 569.988591227525 & 4.0114087724753 \tabularnewline
25 & 573 & 559.443256702907 & 13.5567432970926 \tabularnewline
26 & 573 & 570.156067848087 & 2.84393215191329 \tabularnewline
27 & 620 & 620.163157708793 & -0.163157708792835 \tabularnewline
28 & 626 & 626.743002786996 & -0.743002786996366 \tabularnewline
29 & 620 & 613.653097449597 & 6.34690255040347 \tabularnewline
30 & 588 & 599.881349474215 & -11.8813494742152 \tabularnewline
31 & 566 & 568.699109334762 & -2.69910933476215 \tabularnewline
32 & 557 & 565.447020955037 & -8.44702095503706 \tabularnewline
33 & 561 & 554.585199075481 & 6.41480092451887 \tabularnewline
34 & 549 & 553.721074058793 & -4.72107405879328 \tabularnewline
35 & 532 & 536.436021271952 & -4.43602127195213 \tabularnewline
36 & 526 & 527.362411956453 & -1.36241195645339 \tabularnewline
37 & 511 & 514.89463839645 & -3.8946383964502 \tabularnewline
38 & 499 & 511.221396197816 & -12.2213961978163 \tabularnewline
39 & 555 & 549.567764724425 & 5.43223527557525 \tabularnewline
40 & 565 & 562.989173627661 & 2.01082637233926 \tabularnewline
41 & 542 & 555.033829943566 & -13.0338299435664 \tabularnewline
42 & 527 & 527.302437158433 & -0.302437158433059 \tabularnewline
43 & 510 & 510.641209357457 & -0.641209357457052 \tabularnewline
44 & 514 & 509.666333717808 & 4.33366628219154 \tabularnewline
45 & 517 & 515.473033498945 & 1.52696650105468 \tabularnewline
46 & 508 & 510.831526230087 & -2.83152623008697 \tabularnewline
47 & 493 & 497.848722005461 & -4.84872200546102 \tabularnewline
48 & 490 & 485.504170227465 & 4.49582977253489 \tabularnewline
49 & 469 & 477.873690407199 & -8.87369040719865 \tabularnewline
50 & 478 & 467.931098064856 & 10.0689019351442 \tabularnewline
51 & 528 & 528.055438582632 & -0.0554385826315939 \tabularnewline
52 & 534 & 535.596375081276 & -1.59637508127588 \tabularnewline
53 & 518 & 524.326398576057 & -6.32639857605727 \tabularnewline
54 & 506 & 503.085337646166 & 2.91466235383363 \tabularnewline
55 & 502 & 493.228593822546 & 8.77140617745442 \tabularnewline
56 & 516 & 509.186829107553 & 6.81317089244655 \tabularnewline
57 & 528 & 527.109746534657 & 0.890253465343169 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58489&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]537[/C][C]540.152218825339[/C][C]-3.15221882533875[/C][/ROW]
[ROW][C]2[/C][C]543[/C][C]543.903410726035[/C][C]-0.903410726035087[/C][/ROW]
[ROW][C]3[/C][C]594[/C][C]599.296490072511[/C][C]-5.29649007251066[/C][/ROW]
[ROW][C]4[/C][C]611[/C][C]607.629685674612[/C][C]3.37031432538824[/C][/ROW]
[ROW][C]5[/C][C]613[/C][C]606.987767164605[/C][C]6.01223283539486[/C][/ROW]
[ROW][C]6[/C][C]611[/C][C]601.30003818193[/C][C]9.69996181807006[/C][/ROW]
[ROW][C]7[/C][C]594[/C][C]598.950080254068[/C][C]-4.95008025406777[/C][/ROW]
[ROW][C]8[/C][C]595[/C][C]598.189864175547[/C][C]-3.18986417554682[/C][/ROW]
[ROW][C]9[/C][C]591[/C][C]597.688809347421[/C][C]-6.68880934742142[/C][/ROW]
[ROW][C]10[/C][C]589[/C][C]587.290782047774[/C][C]1.70921795222589[/C][/ROW]
[ROW][C]11[/C][C]584[/C][C]580.885789204651[/C][C]3.11421079534892[/C][/ROW]
[ROW][C]12[/C][C]573[/C][C]580.144826588557[/C][C]-7.14482658855679[/C][/ROW]
[ROW][C]13[/C][C]567[/C][C]564.636195668105[/C][C]2.36380433189497[/C][/ROW]
[ROW][C]14[/C][C]569[/C][C]568.788027163206[/C][C]0.211972836793970[/C][/ROW]
[ROW][C]15[/C][C]621[/C][C]620.91714891164[/C][C]0.0828510883598304[/C][/ROW]
[ROW][C]16[/C][C]629[/C][C]632.041762829455[/C][C]-3.04176282945526[/C][/ROW]
[ROW][C]17[/C][C]628[/C][C]620.998906866175[/C][C]7.00109313382533[/C][/ROW]
[ROW][C]18[/C][C]612[/C][C]612.430837539255[/C][C]-0.430837539255436[/C][/ROW]
[ROW][C]19[/C][C]595[/C][C]595.481007231167[/C][C]-0.481007231167442[/C][/ROW]
[ROW][C]20[/C][C]597[/C][C]596.509952044054[/C][C]0.490047955945787[/C][/ROW]
[ROW][C]21[/C][C]593[/C][C]595.143211543495[/C][C]-2.14321154349531[/C][/ROW]
[ROW][C]22[/C][C]590[/C][C]584.156617663346[/C][C]5.84338233665436[/C][/ROW]
[ROW][C]23[/C][C]580[/C][C]573.829467517936[/C][C]6.17053248206424[/C][/ROW]
[ROW][C]24[/C][C]574[/C][C]569.988591227525[/C][C]4.0114087724753[/C][/ROW]
[ROW][C]25[/C][C]573[/C][C]559.443256702907[/C][C]13.5567432970926[/C][/ROW]
[ROW][C]26[/C][C]573[/C][C]570.156067848087[/C][C]2.84393215191329[/C][/ROW]
[ROW][C]27[/C][C]620[/C][C]620.163157708793[/C][C]-0.163157708792835[/C][/ROW]
[ROW][C]28[/C][C]626[/C][C]626.743002786996[/C][C]-0.743002786996366[/C][/ROW]
[ROW][C]29[/C][C]620[/C][C]613.653097449597[/C][C]6.34690255040347[/C][/ROW]
[ROW][C]30[/C][C]588[/C][C]599.881349474215[/C][C]-11.8813494742152[/C][/ROW]
[ROW][C]31[/C][C]566[/C][C]568.699109334762[/C][C]-2.69910933476215[/C][/ROW]
[ROW][C]32[/C][C]557[/C][C]565.447020955037[/C][C]-8.44702095503706[/C][/ROW]
[ROW][C]33[/C][C]561[/C][C]554.585199075481[/C][C]6.41480092451887[/C][/ROW]
[ROW][C]34[/C][C]549[/C][C]553.721074058793[/C][C]-4.72107405879328[/C][/ROW]
[ROW][C]35[/C][C]532[/C][C]536.436021271952[/C][C]-4.43602127195213[/C][/ROW]
[ROW][C]36[/C][C]526[/C][C]527.362411956453[/C][C]-1.36241195645339[/C][/ROW]
[ROW][C]37[/C][C]511[/C][C]514.89463839645[/C][C]-3.8946383964502[/C][/ROW]
[ROW][C]38[/C][C]499[/C][C]511.221396197816[/C][C]-12.2213961978163[/C][/ROW]
[ROW][C]39[/C][C]555[/C][C]549.567764724425[/C][C]5.43223527557525[/C][/ROW]
[ROW][C]40[/C][C]565[/C][C]562.989173627661[/C][C]2.01082637233926[/C][/ROW]
[ROW][C]41[/C][C]542[/C][C]555.033829943566[/C][C]-13.0338299435664[/C][/ROW]
[ROW][C]42[/C][C]527[/C][C]527.302437158433[/C][C]-0.302437158433059[/C][/ROW]
[ROW][C]43[/C][C]510[/C][C]510.641209357457[/C][C]-0.641209357457052[/C][/ROW]
[ROW][C]44[/C][C]514[/C][C]509.666333717808[/C][C]4.33366628219154[/C][/ROW]
[ROW][C]45[/C][C]517[/C][C]515.473033498945[/C][C]1.52696650105468[/C][/ROW]
[ROW][C]46[/C][C]508[/C][C]510.831526230087[/C][C]-2.83152623008697[/C][/ROW]
[ROW][C]47[/C][C]493[/C][C]497.848722005461[/C][C]-4.84872200546102[/C][/ROW]
[ROW][C]48[/C][C]490[/C][C]485.504170227465[/C][C]4.49582977253489[/C][/ROW]
[ROW][C]49[/C][C]469[/C][C]477.873690407199[/C][C]-8.87369040719865[/C][/ROW]
[ROW][C]50[/C][C]478[/C][C]467.931098064856[/C][C]10.0689019351442[/C][/ROW]
[ROW][C]51[/C][C]528[/C][C]528.055438582632[/C][C]-0.0554385826315939[/C][/ROW]
[ROW][C]52[/C][C]534[/C][C]535.596375081276[/C][C]-1.59637508127588[/C][/ROW]
[ROW][C]53[/C][C]518[/C][C]524.326398576057[/C][C]-6.32639857605727[/C][/ROW]
[ROW][C]54[/C][C]506[/C][C]503.085337646166[/C][C]2.91466235383363[/C][/ROW]
[ROW][C]55[/C][C]502[/C][C]493.228593822546[/C][C]8.77140617745442[/C][/ROW]
[ROW][C]56[/C][C]516[/C][C]509.186829107553[/C][C]6.81317089244655[/C][/ROW]
[ROW][C]57[/C][C]528[/C][C]527.109746534657[/C][C]0.890253465343169[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58489&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58489&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
1537540.152218825339-3.15221882533875
2543543.903410726035-0.903410726035087
3594599.296490072511-5.29649007251066
4611607.6296856746123.37031432538824
5613606.9877671646056.01223283539486
6611601.300038181939.69996181807006
7594598.950080254068-4.95008025406777
8595598.189864175547-3.18986417554682
9591597.688809347421-6.68880934742142
10589587.2907820477741.70921795222589
11584580.8857892046513.11421079534892
12573580.144826588557-7.14482658855679
13567564.6361956681052.36380433189497
14569568.7880271632060.211972836793970
15621620.917148911640.0828510883598304
16629632.041762829455-3.04176282945526
17628620.9989068661757.00109313382533
18612612.430837539255-0.430837539255436
19595595.481007231167-0.481007231167442
20597596.5099520440540.490047955945787
21593595.143211543495-2.14321154349531
22590584.1566176633465.84338233665436
23580573.8294675179366.17053248206424
24574569.9885912275254.0114087724753
25573559.44325670290713.5567432970926
26573570.1560678480872.84393215191329
27620620.163157708793-0.163157708792835
28626626.743002786996-0.743002786996366
29620613.6530974495976.34690255040347
30588599.881349474215-11.8813494742152
31566568.699109334762-2.69910933476215
32557565.447020955037-8.44702095503706
33561554.5851990754816.41480092451887
34549553.721074058793-4.72107405879328
35532536.436021271952-4.43602127195213
36526527.362411956453-1.36241195645339
37511514.89463839645-3.8946383964502
38499511.221396197816-12.2213961978163
39555549.5677647244255.43223527557525
40565562.9891736276612.01082637233926
41542555.033829943566-13.0338299435664
42527527.302437158433-0.302437158433059
43510510.641209357457-0.641209357457052
44514509.6663337178084.33366628219154
45517515.4730334989451.52696650105468
46508510.831526230087-2.83152623008697
47493497.848722005461-4.84872200546102
48490485.5041702274654.49582977253489
49469477.873690407199-8.87369040719865
50478467.93109806485610.0689019351442
51528528.055438582632-0.0554385826315939
52534535.596375081276-1.59637508127588
53518524.326398576057-6.32639857605727
54506503.0853376461662.91466235383363
55502493.2285938225468.77140617745442
56516509.1868291075536.81317089244655
57528527.1097465346570.890253465343169







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.2109263101645940.4218526203291880.789073689835406
220.1203440480479370.2406880960958740.879655951952063
230.06040298678582780.1208059735716560.939597013214172
240.03903244282114120.07806488564228230.96096755717886
250.08629661000432070.1725932200086410.91370338999568
260.08099943786147310.1619988757229460.919000562138527
270.04458464102007450.08916928204014890.955415358979925
280.02450776630271790.04901553260543590.975492233697282
290.1822780514348180.3645561028696360.817721948565182
300.6265563965402060.7468872069195880.373443603459794
310.7138290454645490.5723419090709010.286170954535451
320.6202231755566690.7595536488866610.379776824443331
330.5430800487580.9138399024840010.456919951242000
340.4184510844133370.8369021688266730.581548915586664
350.4793007107124570.9586014214249130.520699289287543
360.4351617077967650.870323415593530.564838292203235

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.210926310164594 & 0.421852620329188 & 0.789073689835406 \tabularnewline
22 & 0.120344048047937 & 0.240688096095874 & 0.879655951952063 \tabularnewline
23 & 0.0604029867858278 & 0.120805973571656 & 0.939597013214172 \tabularnewline
24 & 0.0390324428211412 & 0.0780648856422823 & 0.96096755717886 \tabularnewline
25 & 0.0862966100043207 & 0.172593220008641 & 0.91370338999568 \tabularnewline
26 & 0.0809994378614731 & 0.161998875722946 & 0.919000562138527 \tabularnewline
27 & 0.0445846410200745 & 0.0891692820401489 & 0.955415358979925 \tabularnewline
28 & 0.0245077663027179 & 0.0490155326054359 & 0.975492233697282 \tabularnewline
29 & 0.182278051434818 & 0.364556102869636 & 0.817721948565182 \tabularnewline
30 & 0.626556396540206 & 0.746887206919588 & 0.373443603459794 \tabularnewline
31 & 0.713829045464549 & 0.572341909070901 & 0.286170954535451 \tabularnewline
32 & 0.620223175556669 & 0.759553648886661 & 0.379776824443331 \tabularnewline
33 & 0.543080048758 & 0.913839902484001 & 0.456919951242000 \tabularnewline
34 & 0.418451084413337 & 0.836902168826673 & 0.581548915586664 \tabularnewline
35 & 0.479300710712457 & 0.958601421424913 & 0.520699289287543 \tabularnewline
36 & 0.435161707796765 & 0.87032341559353 & 0.564838292203235 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58489&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.210926310164594[/C][C]0.421852620329188[/C][C]0.789073689835406[/C][/ROW]
[ROW][C]22[/C][C]0.120344048047937[/C][C]0.240688096095874[/C][C]0.879655951952063[/C][/ROW]
[ROW][C]23[/C][C]0.0604029867858278[/C][C]0.120805973571656[/C][C]0.939597013214172[/C][/ROW]
[ROW][C]24[/C][C]0.0390324428211412[/C][C]0.0780648856422823[/C][C]0.96096755717886[/C][/ROW]
[ROW][C]25[/C][C]0.0862966100043207[/C][C]0.172593220008641[/C][C]0.91370338999568[/C][/ROW]
[ROW][C]26[/C][C]0.0809994378614731[/C][C]0.161998875722946[/C][C]0.919000562138527[/C][/ROW]
[ROW][C]27[/C][C]0.0445846410200745[/C][C]0.0891692820401489[/C][C]0.955415358979925[/C][/ROW]
[ROW][C]28[/C][C]0.0245077663027179[/C][C]0.0490155326054359[/C][C]0.975492233697282[/C][/ROW]
[ROW][C]29[/C][C]0.182278051434818[/C][C]0.364556102869636[/C][C]0.817721948565182[/C][/ROW]
[ROW][C]30[/C][C]0.626556396540206[/C][C]0.746887206919588[/C][C]0.373443603459794[/C][/ROW]
[ROW][C]31[/C][C]0.713829045464549[/C][C]0.572341909070901[/C][C]0.286170954535451[/C][/ROW]
[ROW][C]32[/C][C]0.620223175556669[/C][C]0.759553648886661[/C][C]0.379776824443331[/C][/ROW]
[ROW][C]33[/C][C]0.543080048758[/C][C]0.913839902484001[/C][C]0.456919951242000[/C][/ROW]
[ROW][C]34[/C][C]0.418451084413337[/C][C]0.836902168826673[/C][C]0.581548915586664[/C][/ROW]
[ROW][C]35[/C][C]0.479300710712457[/C][C]0.958601421424913[/C][C]0.520699289287543[/C][/ROW]
[ROW][C]36[/C][C]0.435161707796765[/C][C]0.87032341559353[/C][C]0.564838292203235[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58489&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58489&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.2109263101645940.4218526203291880.789073689835406
220.1203440480479370.2406880960958740.879655951952063
230.06040298678582780.1208059735716560.939597013214172
240.03903244282114120.07806488564228230.96096755717886
250.08629661000432070.1725932200086410.91370338999568
260.08099943786147310.1619988757229460.919000562138527
270.04458464102007450.08916928204014890.955415358979925
280.02450776630271790.04901553260543590.975492233697282
290.1822780514348180.3645561028696360.817721948565182
300.6265563965402060.7468872069195880.373443603459794
310.7138290454645490.5723419090709010.286170954535451
320.6202231755566690.7595536488866610.379776824443331
330.5430800487580.9138399024840010.456919951242000
340.4184510844133370.8369021688266730.581548915586664
350.4793007107124570.9586014214249130.520699289287543
360.4351617077967650.870323415593530.564838292203235







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

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

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



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