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 computationTue, 15 Dec 2009 09:17:38 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/15/t12608939089vs6brq1hi4l63v.htm/, Retrieved Mon, 29 Apr 2024 20:42:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68022, Retrieved Mon, 29 Apr 2024 20:42:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact101
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:14:11] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [] [2009-11-20 14:38:06] [e149fd9094b67af26551857fa83a9d9d]
-    D        [Multiple Regression] [] [2009-12-15 16:17:38] [27b6e36591879260e4dc6bb7e89a38fd] [Current]
Feedback Forum

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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68022&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
WklBe[t] = + 20.2333699019754 + 12.2075193097678X[t] + 0.938893442766383Y1[t] + 3.6415169074981M1[t] + 19.4702236275926M2[t] + 19.6449073887394M3[t] + 13.6073698384394M4[t] + 8.97875032184423M5[t] + 12.4690406419745M6[t] + 6.19153587959245M7[t] + 19.1351704623620M8[t] + 68.497632912062M9[t] + 28.6543166662093M10[t] + 6.52969328591078M11[t] -0.228028023786069t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
WklBe[t] =  +  20.2333699019754 +  12.2075193097678X[t] +  0.938893442766383Y1[t] +  3.6415169074981M1[t] +  19.4702236275926M2[t] +  19.6449073887394M3[t] +  13.6073698384394M4[t] +  8.97875032184423M5[t] +  12.4690406419745M6[t] +  6.19153587959245M7[t] +  19.1351704623620M8[t] +  68.497632912062M9[t] +  28.6543166662093M10[t] +  6.52969328591078M11[t] -0.228028023786069t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68022&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]WklBe[t] =  +  20.2333699019754 +  12.2075193097678X[t] +  0.938893442766383Y1[t] +  3.6415169074981M1[t] +  19.4702236275926M2[t] +  19.6449073887394M3[t] +  13.6073698384394M4[t] +  8.97875032184423M5[t] +  12.4690406419745M6[t] +  6.19153587959245M7[t] +  19.1351704623620M8[t] +  68.497632912062M9[t] +  28.6543166662093M10[t] +  6.52969328591078M11[t] -0.228028023786069t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68022&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68022&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
WklBe[t] = + 20.2333699019754 + 12.2075193097678X[t] + 0.938893442766383Y1[t] + 3.6415169074981M1[t] + 19.4702236275926M2[t] + 19.6449073887394M3[t] + 13.6073698384394M4[t] + 8.97875032184423M5[t] + 12.4690406419745M6[t] + 6.19153587959245M7[t] + 19.1351704623620M8[t] + 68.497632912062M9[t] + 28.6543166662093M10[t] + 6.52969328591078M11[t] -0.228028023786069t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)20.233369901975424.3650960.83040.4105880.205294
X12.20751930976783.2466163.76010.0004780.000239
Y10.9388934427663830.03737825.118800
M13.64151690749813.7876820.96140.3413730.170686
M219.47022362759264.1752414.66332.7e-051.3e-05
M319.64490738873944.1117434.77781.8e-059e-06
M413.60736983843944.0583463.35290.0016070.000804
M58.978750321844234.0761712.20270.0326620.016331
M612.46904064197454.1523283.00290.0043140.002157
M76.191535879592454.1878551.47850.1461030.073051
M819.13517046236204.3210454.42845.8e-052.9e-05
M968.4976329120624.25308616.105400
M1028.65431666620933.9202957.309200
M116.529693285910783.8983421.6750.1007220.050361
t-0.2280280237860690.112217-2.0320.0479480.023974

\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) & 20.2333699019754 & 24.365096 & 0.8304 & 0.410588 & 0.205294 \tabularnewline
X & 12.2075193097678 & 3.246616 & 3.7601 & 0.000478 & 0.000239 \tabularnewline
Y1 & 0.938893442766383 & 0.037378 & 25.1188 & 0 & 0 \tabularnewline
M1 & 3.6415169074981 & 3.787682 & 0.9614 & 0.341373 & 0.170686 \tabularnewline
M2 & 19.4702236275926 & 4.175241 & 4.6633 & 2.7e-05 & 1.3e-05 \tabularnewline
M3 & 19.6449073887394 & 4.111743 & 4.7778 & 1.8e-05 & 9e-06 \tabularnewline
M4 & 13.6073698384394 & 4.058346 & 3.3529 & 0.001607 & 0.000804 \tabularnewline
M5 & 8.97875032184423 & 4.076171 & 2.2027 & 0.032662 & 0.016331 \tabularnewline
M6 & 12.4690406419745 & 4.152328 & 3.0029 & 0.004314 & 0.002157 \tabularnewline
M7 & 6.19153587959245 & 4.187855 & 1.4785 & 0.146103 & 0.073051 \tabularnewline
M8 & 19.1351704623620 & 4.321045 & 4.4284 & 5.8e-05 & 2.9e-05 \tabularnewline
M9 & 68.497632912062 & 4.253086 & 16.1054 & 0 & 0 \tabularnewline
M10 & 28.6543166662093 & 3.920295 & 7.3092 & 0 & 0 \tabularnewline
M11 & 6.52969328591078 & 3.898342 & 1.675 & 0.100722 & 0.050361 \tabularnewline
t & -0.228028023786069 & 0.112217 & -2.032 & 0.047948 & 0.023974 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68022&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]20.2333699019754[/C][C]24.365096[/C][C]0.8304[/C][C]0.410588[/C][C]0.205294[/C][/ROW]
[ROW][C]X[/C][C]12.2075193097678[/C][C]3.246616[/C][C]3.7601[/C][C]0.000478[/C][C]0.000239[/C][/ROW]
[ROW][C]Y1[/C][C]0.938893442766383[/C][C]0.037378[/C][C]25.1188[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]3.6415169074981[/C][C]3.787682[/C][C]0.9614[/C][C]0.341373[/C][C]0.170686[/C][/ROW]
[ROW][C]M2[/C][C]19.4702236275926[/C][C]4.175241[/C][C]4.6633[/C][C]2.7e-05[/C][C]1.3e-05[/C][/ROW]
[ROW][C]M3[/C][C]19.6449073887394[/C][C]4.111743[/C][C]4.7778[/C][C]1.8e-05[/C][C]9e-06[/C][/ROW]
[ROW][C]M4[/C][C]13.6073698384394[/C][C]4.058346[/C][C]3.3529[/C][C]0.001607[/C][C]0.000804[/C][/ROW]
[ROW][C]M5[/C][C]8.97875032184423[/C][C]4.076171[/C][C]2.2027[/C][C]0.032662[/C][C]0.016331[/C][/ROW]
[ROW][C]M6[/C][C]12.4690406419745[/C][C]4.152328[/C][C]3.0029[/C][C]0.004314[/C][C]0.002157[/C][/ROW]
[ROW][C]M7[/C][C]6.19153587959245[/C][C]4.187855[/C][C]1.4785[/C][C]0.146103[/C][C]0.073051[/C][/ROW]
[ROW][C]M8[/C][C]19.1351704623620[/C][C]4.321045[/C][C]4.4284[/C][C]5.8e-05[/C][C]2.9e-05[/C][/ROW]
[ROW][C]M9[/C][C]68.497632912062[/C][C]4.253086[/C][C]16.1054[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]28.6543166662093[/C][C]3.920295[/C][C]7.3092[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]6.52969328591078[/C][C]3.898342[/C][C]1.675[/C][C]0.100722[/C][C]0.050361[/C][/ROW]
[ROW][C]t[/C][C]-0.228028023786069[/C][C]0.112217[/C][C]-2.032[/C][C]0.047948[/C][C]0.023974[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68022&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68022&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)20.233369901975424.3650960.83040.4105880.205294
X12.20751930976783.2466163.76010.0004780.000239
Y10.9388934427663830.03737825.118800
M13.64151690749813.7876820.96140.3413730.170686
M219.47022362759264.1752414.66332.7e-051.3e-05
M319.64490738873944.1117434.77781.8e-059e-06
M413.60736983843944.0583463.35290.0016070.000804
M58.978750321844234.0761712.20270.0326620.016331
M612.46904064197454.1523283.00290.0043140.002157
M76.191535879592454.1878551.47850.1461030.073051
M819.13517046236204.3210454.42845.8e-052.9e-05
M968.4976329120624.25308616.105400
M1028.65431666620933.9202957.309200
M116.529693285910783.8983421.6750.1007220.050361
t-0.2280280237860690.112217-2.0320.0479480.023974







Multiple Linear Regression - Regression Statistics
Multiple R0.99131764863593
R-squared0.982710680497068
Adjusted R-squared0.977448713691828
F-TEST (value)186.757293778141
F-TEST (DF numerator)14
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.13434875972176
Sum Squared Residuals1730.99079647139

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.99131764863593 \tabularnewline
R-squared & 0.982710680497068 \tabularnewline
Adjusted R-squared & 0.977448713691828 \tabularnewline
F-TEST (value) & 186.757293778141 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 6.13434875972176 \tabularnewline
Sum Squared Residuals & 1730.99079647139 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68022&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.99131764863593[/C][/ROW]
[ROW][C]R-squared[/C][C]0.982710680497068[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.977448713691828[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]186.757293778141[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/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.13434875972176[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1730.99079647139[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68022&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68022&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.99131764863593
R-squared0.982710680497068
Adjusted R-squared0.977448713691828
F-TEST (value)186.757293778141
F-TEST (DF numerator)14
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.13434875972176
Sum Squared Residuals1730.99079647139







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1594597.310752315947-3.31075231594699
2595596.950242485227-1.95024248522725
3591597.835791665354-6.83579166535411
4589587.8146523202031.18534767979727
5584581.0802178942892.91978210571125
6573579.648012976801-6.64801297680103
7567562.8146523202034.18534767979728
8569569.896898222588-0.896898222587899
9621620.9091195340350.090880465965351
10629629.660234288248-0.660234288247722
11628614.81873042629413.1812695737058
12612607.1221156738314.8778843261691
13595595.513309473281-0.51330947328087
14597595.1527996425611.84720035743922
15593596.977242265454-3.97724226545428
16590586.9561029203033.04389707969735
17580579.2827750516220.717224948377686
18574573.1561029203030.843897079697348
19573561.01720947753611.9827905224637
20573572.7939225937530.206077406246619
21620621.928357019667-1.92835701966734
22626625.9850045600490.0149954399514611
23620609.26571381256210.7342861874378
24588596.874631846267-8.87463184626706
25566570.243530561455-4.24353056145485
26557565.188553516903-8.18855351690285
27561556.6851682693664.31483173063386
28549554.175176466346-5.17517646634559
29532538.051807612768-6.0518076127678
30526525.3528813820830.647118617916534
31511513.213987939317-2.21398793931709
32499511.846192856805-12.8461928568048
33555549.7139059695225.28609403047781
34565562.2205944948012.77940550519916
35542549.25687751838-7.25687751838005
36527520.9046070250566.0953929749436
37510510.234694267273-0.234694267272696
38514509.8741844365534.12581556344739
39517513.5764139449793.42358605502113
40508510.127528699192-2.12752869919194
41493496.820840173913-3.82084017391330
42490485.9997008287624.00029917123828
43469476.677487714295-7.67748771429449
44478469.6763319751848.32366802481606
45528527.2608073859950.739192614004657
46534534.134135254676-0.134135254675692
47518529.622363816957-11.6223638169572
48506507.842347422998-1.84234742299818
49502499.9891149935142.01088500648638
50516511.8342199187574.16578008124349
51528524.9253838548473.0746161451534
52533529.9265395939573.07346040604291
53536529.7643592674086.23564073259218
54537535.8433018920511.15669810794887
55524530.276662548649-6.27666254864943
56536530.786654351675.21334564833005
57587591.18781009078-4.18781009078047
58597599.000031402227-2.00003140222721
59581586.036314425806-5.03631442580641
60564564.256298031847-0.256298031847452
61558551.7085983885316.29140161146902

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 594 & 597.310752315947 & -3.31075231594699 \tabularnewline
2 & 595 & 596.950242485227 & -1.95024248522725 \tabularnewline
3 & 591 & 597.835791665354 & -6.83579166535411 \tabularnewline
4 & 589 & 587.814652320203 & 1.18534767979727 \tabularnewline
5 & 584 & 581.080217894289 & 2.91978210571125 \tabularnewline
6 & 573 & 579.648012976801 & -6.64801297680103 \tabularnewline
7 & 567 & 562.814652320203 & 4.18534767979728 \tabularnewline
8 & 569 & 569.896898222588 & -0.896898222587899 \tabularnewline
9 & 621 & 620.909119534035 & 0.090880465965351 \tabularnewline
10 & 629 & 629.660234288248 & -0.660234288247722 \tabularnewline
11 & 628 & 614.818730426294 & 13.1812695737058 \tabularnewline
12 & 612 & 607.122115673831 & 4.8778843261691 \tabularnewline
13 & 595 & 595.513309473281 & -0.51330947328087 \tabularnewline
14 & 597 & 595.152799642561 & 1.84720035743922 \tabularnewline
15 & 593 & 596.977242265454 & -3.97724226545428 \tabularnewline
16 & 590 & 586.956102920303 & 3.04389707969735 \tabularnewline
17 & 580 & 579.282775051622 & 0.717224948377686 \tabularnewline
18 & 574 & 573.156102920303 & 0.843897079697348 \tabularnewline
19 & 573 & 561.017209477536 & 11.9827905224637 \tabularnewline
20 & 573 & 572.793922593753 & 0.206077406246619 \tabularnewline
21 & 620 & 621.928357019667 & -1.92835701966734 \tabularnewline
22 & 626 & 625.985004560049 & 0.0149954399514611 \tabularnewline
23 & 620 & 609.265713812562 & 10.7342861874378 \tabularnewline
24 & 588 & 596.874631846267 & -8.87463184626706 \tabularnewline
25 & 566 & 570.243530561455 & -4.24353056145485 \tabularnewline
26 & 557 & 565.188553516903 & -8.18855351690285 \tabularnewline
27 & 561 & 556.685168269366 & 4.31483173063386 \tabularnewline
28 & 549 & 554.175176466346 & -5.17517646634559 \tabularnewline
29 & 532 & 538.051807612768 & -6.0518076127678 \tabularnewline
30 & 526 & 525.352881382083 & 0.647118617916534 \tabularnewline
31 & 511 & 513.213987939317 & -2.21398793931709 \tabularnewline
32 & 499 & 511.846192856805 & -12.8461928568048 \tabularnewline
33 & 555 & 549.713905969522 & 5.28609403047781 \tabularnewline
34 & 565 & 562.220594494801 & 2.77940550519916 \tabularnewline
35 & 542 & 549.25687751838 & -7.25687751838005 \tabularnewline
36 & 527 & 520.904607025056 & 6.0953929749436 \tabularnewline
37 & 510 & 510.234694267273 & -0.234694267272696 \tabularnewline
38 & 514 & 509.874184436553 & 4.12581556344739 \tabularnewline
39 & 517 & 513.576413944979 & 3.42358605502113 \tabularnewline
40 & 508 & 510.127528699192 & -2.12752869919194 \tabularnewline
41 & 493 & 496.820840173913 & -3.82084017391330 \tabularnewline
42 & 490 & 485.999700828762 & 4.00029917123828 \tabularnewline
43 & 469 & 476.677487714295 & -7.67748771429449 \tabularnewline
44 & 478 & 469.676331975184 & 8.32366802481606 \tabularnewline
45 & 528 & 527.260807385995 & 0.739192614004657 \tabularnewline
46 & 534 & 534.134135254676 & -0.134135254675692 \tabularnewline
47 & 518 & 529.622363816957 & -11.6223638169572 \tabularnewline
48 & 506 & 507.842347422998 & -1.84234742299818 \tabularnewline
49 & 502 & 499.989114993514 & 2.01088500648638 \tabularnewline
50 & 516 & 511.834219918757 & 4.16578008124349 \tabularnewline
51 & 528 & 524.925383854847 & 3.0746161451534 \tabularnewline
52 & 533 & 529.926539593957 & 3.07346040604291 \tabularnewline
53 & 536 & 529.764359267408 & 6.23564073259218 \tabularnewline
54 & 537 & 535.843301892051 & 1.15669810794887 \tabularnewline
55 & 524 & 530.276662548649 & -6.27666254864943 \tabularnewline
56 & 536 & 530.78665435167 & 5.21334564833005 \tabularnewline
57 & 587 & 591.18781009078 & -4.18781009078047 \tabularnewline
58 & 597 & 599.000031402227 & -2.00003140222721 \tabularnewline
59 & 581 & 586.036314425806 & -5.03631442580641 \tabularnewline
60 & 564 & 564.256298031847 & -0.256298031847452 \tabularnewline
61 & 558 & 551.708598388531 & 6.29140161146902 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68022&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]594[/C][C]597.310752315947[/C][C]-3.31075231594699[/C][/ROW]
[ROW][C]2[/C][C]595[/C][C]596.950242485227[/C][C]-1.95024248522725[/C][/ROW]
[ROW][C]3[/C][C]591[/C][C]597.835791665354[/C][C]-6.83579166535411[/C][/ROW]
[ROW][C]4[/C][C]589[/C][C]587.814652320203[/C][C]1.18534767979727[/C][/ROW]
[ROW][C]5[/C][C]584[/C][C]581.080217894289[/C][C]2.91978210571125[/C][/ROW]
[ROW][C]6[/C][C]573[/C][C]579.648012976801[/C][C]-6.64801297680103[/C][/ROW]
[ROW][C]7[/C][C]567[/C][C]562.814652320203[/C][C]4.18534767979728[/C][/ROW]
[ROW][C]8[/C][C]569[/C][C]569.896898222588[/C][C]-0.896898222587899[/C][/ROW]
[ROW][C]9[/C][C]621[/C][C]620.909119534035[/C][C]0.090880465965351[/C][/ROW]
[ROW][C]10[/C][C]629[/C][C]629.660234288248[/C][C]-0.660234288247722[/C][/ROW]
[ROW][C]11[/C][C]628[/C][C]614.818730426294[/C][C]13.1812695737058[/C][/ROW]
[ROW][C]12[/C][C]612[/C][C]607.122115673831[/C][C]4.8778843261691[/C][/ROW]
[ROW][C]13[/C][C]595[/C][C]595.513309473281[/C][C]-0.51330947328087[/C][/ROW]
[ROW][C]14[/C][C]597[/C][C]595.152799642561[/C][C]1.84720035743922[/C][/ROW]
[ROW][C]15[/C][C]593[/C][C]596.977242265454[/C][C]-3.97724226545428[/C][/ROW]
[ROW][C]16[/C][C]590[/C][C]586.956102920303[/C][C]3.04389707969735[/C][/ROW]
[ROW][C]17[/C][C]580[/C][C]579.282775051622[/C][C]0.717224948377686[/C][/ROW]
[ROW][C]18[/C][C]574[/C][C]573.156102920303[/C][C]0.843897079697348[/C][/ROW]
[ROW][C]19[/C][C]573[/C][C]561.017209477536[/C][C]11.9827905224637[/C][/ROW]
[ROW][C]20[/C][C]573[/C][C]572.793922593753[/C][C]0.206077406246619[/C][/ROW]
[ROW][C]21[/C][C]620[/C][C]621.928357019667[/C][C]-1.92835701966734[/C][/ROW]
[ROW][C]22[/C][C]626[/C][C]625.985004560049[/C][C]0.0149954399514611[/C][/ROW]
[ROW][C]23[/C][C]620[/C][C]609.265713812562[/C][C]10.7342861874378[/C][/ROW]
[ROW][C]24[/C][C]588[/C][C]596.874631846267[/C][C]-8.87463184626706[/C][/ROW]
[ROW][C]25[/C][C]566[/C][C]570.243530561455[/C][C]-4.24353056145485[/C][/ROW]
[ROW][C]26[/C][C]557[/C][C]565.188553516903[/C][C]-8.18855351690285[/C][/ROW]
[ROW][C]27[/C][C]561[/C][C]556.685168269366[/C][C]4.31483173063386[/C][/ROW]
[ROW][C]28[/C][C]549[/C][C]554.175176466346[/C][C]-5.17517646634559[/C][/ROW]
[ROW][C]29[/C][C]532[/C][C]538.051807612768[/C][C]-6.0518076127678[/C][/ROW]
[ROW][C]30[/C][C]526[/C][C]525.352881382083[/C][C]0.647118617916534[/C][/ROW]
[ROW][C]31[/C][C]511[/C][C]513.213987939317[/C][C]-2.21398793931709[/C][/ROW]
[ROW][C]32[/C][C]499[/C][C]511.846192856805[/C][C]-12.8461928568048[/C][/ROW]
[ROW][C]33[/C][C]555[/C][C]549.713905969522[/C][C]5.28609403047781[/C][/ROW]
[ROW][C]34[/C][C]565[/C][C]562.220594494801[/C][C]2.77940550519916[/C][/ROW]
[ROW][C]35[/C][C]542[/C][C]549.25687751838[/C][C]-7.25687751838005[/C][/ROW]
[ROW][C]36[/C][C]527[/C][C]520.904607025056[/C][C]6.0953929749436[/C][/ROW]
[ROW][C]37[/C][C]510[/C][C]510.234694267273[/C][C]-0.234694267272696[/C][/ROW]
[ROW][C]38[/C][C]514[/C][C]509.874184436553[/C][C]4.12581556344739[/C][/ROW]
[ROW][C]39[/C][C]517[/C][C]513.576413944979[/C][C]3.42358605502113[/C][/ROW]
[ROW][C]40[/C][C]508[/C][C]510.127528699192[/C][C]-2.12752869919194[/C][/ROW]
[ROW][C]41[/C][C]493[/C][C]496.820840173913[/C][C]-3.82084017391330[/C][/ROW]
[ROW][C]42[/C][C]490[/C][C]485.999700828762[/C][C]4.00029917123828[/C][/ROW]
[ROW][C]43[/C][C]469[/C][C]476.677487714295[/C][C]-7.67748771429449[/C][/ROW]
[ROW][C]44[/C][C]478[/C][C]469.676331975184[/C][C]8.32366802481606[/C][/ROW]
[ROW][C]45[/C][C]528[/C][C]527.260807385995[/C][C]0.739192614004657[/C][/ROW]
[ROW][C]46[/C][C]534[/C][C]534.134135254676[/C][C]-0.134135254675692[/C][/ROW]
[ROW][C]47[/C][C]518[/C][C]529.622363816957[/C][C]-11.6223638169572[/C][/ROW]
[ROW][C]48[/C][C]506[/C][C]507.842347422998[/C][C]-1.84234742299818[/C][/ROW]
[ROW][C]49[/C][C]502[/C][C]499.989114993514[/C][C]2.01088500648638[/C][/ROW]
[ROW][C]50[/C][C]516[/C][C]511.834219918757[/C][C]4.16578008124349[/C][/ROW]
[ROW][C]51[/C][C]528[/C][C]524.925383854847[/C][C]3.0746161451534[/C][/ROW]
[ROW][C]52[/C][C]533[/C][C]529.926539593957[/C][C]3.07346040604291[/C][/ROW]
[ROW][C]53[/C][C]536[/C][C]529.764359267408[/C][C]6.23564073259218[/C][/ROW]
[ROW][C]54[/C][C]537[/C][C]535.843301892051[/C][C]1.15669810794887[/C][/ROW]
[ROW][C]55[/C][C]524[/C][C]530.276662548649[/C][C]-6.27666254864943[/C][/ROW]
[ROW][C]56[/C][C]536[/C][C]530.78665435167[/C][C]5.21334564833005[/C][/ROW]
[ROW][C]57[/C][C]587[/C][C]591.18781009078[/C][C]-4.18781009078047[/C][/ROW]
[ROW][C]58[/C][C]597[/C][C]599.000031402227[/C][C]-2.00003140222721[/C][/ROW]
[ROW][C]59[/C][C]581[/C][C]586.036314425806[/C][C]-5.03631442580641[/C][/ROW]
[ROW][C]60[/C][C]564[/C][C]564.256298031847[/C][C]-0.256298031847452[/C][/ROW]
[ROW][C]61[/C][C]558[/C][C]551.708598388531[/C][C]6.29140161146902[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68022&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68022&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
1594597.310752315947-3.31075231594699
2595596.950242485227-1.95024248522725
3591597.835791665354-6.83579166535411
4589587.8146523202031.18534767979727
5584581.0802178942892.91978210571125
6573579.648012976801-6.64801297680103
7567562.8146523202034.18534767979728
8569569.896898222588-0.896898222587899
9621620.9091195340350.090880465965351
10629629.660234288248-0.660234288247722
11628614.81873042629413.1812695737058
12612607.1221156738314.8778843261691
13595595.513309473281-0.51330947328087
14597595.1527996425611.84720035743922
15593596.977242265454-3.97724226545428
16590586.9561029203033.04389707969735
17580579.2827750516220.717224948377686
18574573.1561029203030.843897079697348
19573561.01720947753611.9827905224637
20573572.7939225937530.206077406246619
21620621.928357019667-1.92835701966734
22626625.9850045600490.0149954399514611
23620609.26571381256210.7342861874378
24588596.874631846267-8.87463184626706
25566570.243530561455-4.24353056145485
26557565.188553516903-8.18855351690285
27561556.6851682693664.31483173063386
28549554.175176466346-5.17517646634559
29532538.051807612768-6.0518076127678
30526525.3528813820830.647118617916534
31511513.213987939317-2.21398793931709
32499511.846192856805-12.8461928568048
33555549.7139059695225.28609403047781
34565562.2205944948012.77940550519916
35542549.25687751838-7.25687751838005
36527520.9046070250566.0953929749436
37510510.234694267273-0.234694267272696
38514509.8741844365534.12581556344739
39517513.5764139449793.42358605502113
40508510.127528699192-2.12752869919194
41493496.820840173913-3.82084017391330
42490485.9997008287624.00029917123828
43469476.677487714295-7.67748771429449
44478469.6763319751848.32366802481606
45528527.2608073859950.739192614004657
46534534.134135254676-0.134135254675692
47518529.622363816957-11.6223638169572
48506507.842347422998-1.84234742299818
49502499.9891149935142.01088500648638
50516511.8342199187574.16578008124349
51528524.9253838548473.0746161451534
52533529.9265395939573.07346040604291
53536529.7643592674086.23564073259218
54537535.8433018920511.15669810794887
55524530.276662548649-6.27666254864943
56536530.786654351675.21334564833005
57587591.18781009078-4.18781009078047
58597599.000031402227-2.00003140222721
59581586.036314425806-5.03631442580641
60564564.256298031847-0.256298031847452
61558551.7085983885316.29140161146902







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.03801372604712090.07602745209424180.96198627395288
190.05120382548322210.1024076509664440.948796174516778
200.01951486310085680.03902972620171370.980485136899143
210.009406130960435650.01881226192087130.990593869039564
220.005365553083386820.01073110616677360.994634446916613
230.04488349951038290.08976699902076590.955116500489617
240.2377952484676160.4755904969352320.762204751532384
250.2114259047493420.4228518094986840.788574095250658
260.1784184543942040.3568369087884080.821581545605796
270.4676856556978740.9353713113957480.532314344302126
280.4367469021330360.8734938042660720.563253097866964
290.3906884115436590.7813768230873180.609311588456341
300.3615643907776140.7231287815552280.638435609222386
310.3887930302453880.7775860604907750.611206969754612
320.8608157236535750.2783685526928500.139184276346425
330.9297739520922310.1404520958155380.070226047907769
340.9267519268950260.1464961462099480.0732480731049739
350.9478464066211620.1043071867576760.0521535933788382
360.9940892799711520.01182144005769690.00591072002884845
370.9883164096546880.02336718069062430.0116835903453122
380.9869901408645860.02601971827082830.0130098591354142
390.99515693243870.009686135122598550.00484306756129928
400.995351057063470.009297885873058440.00464894293652922
410.9941270632146080.0117458735707830.0058729367853915
420.989206706121420.02158658775716170.0107932938785808
430.9725666081804480.05486678363910330.0274333918195516

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.0380137260471209 & 0.0760274520942418 & 0.96198627395288 \tabularnewline
19 & 0.0512038254832221 & 0.102407650966444 & 0.948796174516778 \tabularnewline
20 & 0.0195148631008568 & 0.0390297262017137 & 0.980485136899143 \tabularnewline
21 & 0.00940613096043565 & 0.0188122619208713 & 0.990593869039564 \tabularnewline
22 & 0.00536555308338682 & 0.0107311061667736 & 0.994634446916613 \tabularnewline
23 & 0.0448834995103829 & 0.0897669990207659 & 0.955116500489617 \tabularnewline
24 & 0.237795248467616 & 0.475590496935232 & 0.762204751532384 \tabularnewline
25 & 0.211425904749342 & 0.422851809498684 & 0.788574095250658 \tabularnewline
26 & 0.178418454394204 & 0.356836908788408 & 0.821581545605796 \tabularnewline
27 & 0.467685655697874 & 0.935371311395748 & 0.532314344302126 \tabularnewline
28 & 0.436746902133036 & 0.873493804266072 & 0.563253097866964 \tabularnewline
29 & 0.390688411543659 & 0.781376823087318 & 0.609311588456341 \tabularnewline
30 & 0.361564390777614 & 0.723128781555228 & 0.638435609222386 \tabularnewline
31 & 0.388793030245388 & 0.777586060490775 & 0.611206969754612 \tabularnewline
32 & 0.860815723653575 & 0.278368552692850 & 0.139184276346425 \tabularnewline
33 & 0.929773952092231 & 0.140452095815538 & 0.070226047907769 \tabularnewline
34 & 0.926751926895026 & 0.146496146209948 & 0.0732480731049739 \tabularnewline
35 & 0.947846406621162 & 0.104307186757676 & 0.0521535933788382 \tabularnewline
36 & 0.994089279971152 & 0.0118214400576969 & 0.00591072002884845 \tabularnewline
37 & 0.988316409654688 & 0.0233671806906243 & 0.0116835903453122 \tabularnewline
38 & 0.986990140864586 & 0.0260197182708283 & 0.0130098591354142 \tabularnewline
39 & 0.9951569324387 & 0.00968613512259855 & 0.00484306756129928 \tabularnewline
40 & 0.99535105706347 & 0.00929788587305844 & 0.00464894293652922 \tabularnewline
41 & 0.994127063214608 & 0.011745873570783 & 0.0058729367853915 \tabularnewline
42 & 0.98920670612142 & 0.0215865877571617 & 0.0107932938785808 \tabularnewline
43 & 0.972566608180448 & 0.0548667836391033 & 0.0274333918195516 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68022&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]18[/C][C]0.0380137260471209[/C][C]0.0760274520942418[/C][C]0.96198627395288[/C][/ROW]
[ROW][C]19[/C][C]0.0512038254832221[/C][C]0.102407650966444[/C][C]0.948796174516778[/C][/ROW]
[ROW][C]20[/C][C]0.0195148631008568[/C][C]0.0390297262017137[/C][C]0.980485136899143[/C][/ROW]
[ROW][C]21[/C][C]0.00940613096043565[/C][C]0.0188122619208713[/C][C]0.990593869039564[/C][/ROW]
[ROW][C]22[/C][C]0.00536555308338682[/C][C]0.0107311061667736[/C][C]0.994634446916613[/C][/ROW]
[ROW][C]23[/C][C]0.0448834995103829[/C][C]0.0897669990207659[/C][C]0.955116500489617[/C][/ROW]
[ROW][C]24[/C][C]0.237795248467616[/C][C]0.475590496935232[/C][C]0.762204751532384[/C][/ROW]
[ROW][C]25[/C][C]0.211425904749342[/C][C]0.422851809498684[/C][C]0.788574095250658[/C][/ROW]
[ROW][C]26[/C][C]0.178418454394204[/C][C]0.356836908788408[/C][C]0.821581545605796[/C][/ROW]
[ROW][C]27[/C][C]0.467685655697874[/C][C]0.935371311395748[/C][C]0.532314344302126[/C][/ROW]
[ROW][C]28[/C][C]0.436746902133036[/C][C]0.873493804266072[/C][C]0.563253097866964[/C][/ROW]
[ROW][C]29[/C][C]0.390688411543659[/C][C]0.781376823087318[/C][C]0.609311588456341[/C][/ROW]
[ROW][C]30[/C][C]0.361564390777614[/C][C]0.723128781555228[/C][C]0.638435609222386[/C][/ROW]
[ROW][C]31[/C][C]0.388793030245388[/C][C]0.777586060490775[/C][C]0.611206969754612[/C][/ROW]
[ROW][C]32[/C][C]0.860815723653575[/C][C]0.278368552692850[/C][C]0.139184276346425[/C][/ROW]
[ROW][C]33[/C][C]0.929773952092231[/C][C]0.140452095815538[/C][C]0.070226047907769[/C][/ROW]
[ROW][C]34[/C][C]0.926751926895026[/C][C]0.146496146209948[/C][C]0.0732480731049739[/C][/ROW]
[ROW][C]35[/C][C]0.947846406621162[/C][C]0.104307186757676[/C][C]0.0521535933788382[/C][/ROW]
[ROW][C]36[/C][C]0.994089279971152[/C][C]0.0118214400576969[/C][C]0.00591072002884845[/C][/ROW]
[ROW][C]37[/C][C]0.988316409654688[/C][C]0.0233671806906243[/C][C]0.0116835903453122[/C][/ROW]
[ROW][C]38[/C][C]0.986990140864586[/C][C]0.0260197182708283[/C][C]0.0130098591354142[/C][/ROW]
[ROW][C]39[/C][C]0.9951569324387[/C][C]0.00968613512259855[/C][C]0.00484306756129928[/C][/ROW]
[ROW][C]40[/C][C]0.99535105706347[/C][C]0.00929788587305844[/C][C]0.00464894293652922[/C][/ROW]
[ROW][C]41[/C][C]0.994127063214608[/C][C]0.011745873570783[/C][C]0.0058729367853915[/C][/ROW]
[ROW][C]42[/C][C]0.98920670612142[/C][C]0.0215865877571617[/C][C]0.0107932938785808[/C][/ROW]
[ROW][C]43[/C][C]0.972566608180448[/C][C]0.0548667836391033[/C][C]0.0274333918195516[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68022&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68022&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
180.03801372604712090.07602745209424180.96198627395288
190.05120382548322210.1024076509664440.948796174516778
200.01951486310085680.03902972620171370.980485136899143
210.009406130960435650.01881226192087130.990593869039564
220.005365553083386820.01073110616677360.994634446916613
230.04488349951038290.08976699902076590.955116500489617
240.2377952484676160.4755904969352320.762204751532384
250.2114259047493420.4228518094986840.788574095250658
260.1784184543942040.3568369087884080.821581545605796
270.4676856556978740.9353713113957480.532314344302126
280.4367469021330360.8734938042660720.563253097866964
290.3906884115436590.7813768230873180.609311588456341
300.3615643907776140.7231287815552280.638435609222386
310.3887930302453880.7775860604907750.611206969754612
320.8608157236535750.2783685526928500.139184276346425
330.9297739520922310.1404520958155380.070226047907769
340.9267519268950260.1464961462099480.0732480731049739
350.9478464066211620.1043071867576760.0521535933788382
360.9940892799711520.01182144005769690.00591072002884845
370.9883164096546880.02336718069062430.0116835903453122
380.9869901408645860.02601971827082830.0130098591354142
390.99515693243870.009686135122598550.00484306756129928
400.995351057063470.009297885873058440.00464894293652922
410.9941270632146080.0117458735707830.0058729367853915
420.989206706121420.02158658775716170.0107932938785808
430.9725666081804480.05486678363910330.0274333918195516







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0769230769230769NOK
5% type I error level100.384615384615385NOK
10% type I error level130.5NOK

\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 & 2 & 0.0769230769230769 & NOK \tabularnewline
5% type I error level & 10 & 0.384615384615385 & NOK \tabularnewline
10% type I error level & 13 & 0.5 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68022&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]2[/C][C]0.0769230769230769[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]10[/C][C]0.384615384615385[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]13[/C][C]0.5[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68022&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68022&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 level20.0769230769230769NOK
5% type I error level100.384615384615385NOK
10% type I error level130.5NOK



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