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 computationThu, 19 Nov 2009 12:50:16 -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/19/t1258660276kmouwf09ytwx8er.htm/, Retrieved Thu, 25 Apr 2024 05:10:37 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57919, Retrieved Thu, 25 Apr 2024 05:10:37 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact166
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]
-   PD    [Multiple Regression] [Multiple regression] [2009-11-19 19:11:31] [e3c32faf833f030d3b397185b633f75f]
-   P       [Multiple Regression] [Multiple regression] [2009-11-19 19:20:52] [e3c32faf833f030d3b397185b633f75f]
-    D        [Multiple Regression] [Multiple regression] [2009-11-19 19:31:56] [e3c32faf833f030d3b397185b633f75f]
-   PD            [Multiple Regression] [Multiple regression] [2009-11-19 19:50:16] [4996e0131d5120d29a6e9a8dccb25dc3] [Current]
Feedback Forum

Post a new message
Dataseries X:
19	595	19	18	19
22	591	19	19	18
23	589	22	19	19
20	584	23	22	19
14	573	20	23	22
14	567	14	20	23
14	569	14	14	20
15	621	14	14	14
11	629	15	14	14
17	628	11	15	14
16	612	17	11	15
20	595	16	17	11
24	597	20	16	17
23	593	24	20	16
20	590	23	24	20
21	580	20	23	24
19	574	21	20	23
23	573	19	21	20
23	573	23	19	21
23	620	23	23	19
23	626	23	23	23
27	620	23	23	23
26	588	27	23	23
17	566	26	27	23
24	557	17	26	27
26	561	24	17	26
24	549	26	24	17
27	532	24	26	24
27	526	27	24	26
26	511	27	27	24
24	499	26	27	27
23	555	24	26	27
23	565	23	24	26
24	542	23	23	24
17	527	24	23	23
21	510	17	24	23
19	514	21	17	24
22	517	19	21	17
22	508	22	19	21
18	493	22	22	19
16	490	18	22	22
14	469	16	18	22
12	478	14	16	18
14	528	12	14	16
16	534	14	12	14
8	518	16	14	12
3	506	8	16	14
0	502	3	8	16
5	516	0	3	8
1	528	5	0	3
1	533	1	5	0
3	536	1	1	5
6	537	3	1	1
7	524	6	3	1
8	536	7	6	3
14	587	8	7	6
14	597	14	8	7
13	581	14	14	8




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

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







Multiple Linear Regression - Estimated Regression Equation
y[t] = -40.2944805912345 + 0.0638539628062868x[t] + 0.682999055030689y1[t] + 0.122458369917985y2[t] + 0.218214695228774y3[t] + 3.70568054851267M1[t] + 2.87391682631078M2[t] + 1.61334266086646M3[t] + 1.73017385141576M4[t] + 0.646074597671226M5[t] + 2.809494330732M6[t] + 1.90389388989760M7[t] + 0.793880895008001M8[t] -1.33056690921134M9[t] -0.0375894807118368M10[t] -2.25856294729839M11[t] + 0.107006757579222t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  -40.2944805912345 +  0.0638539628062868x[t] +  0.682999055030689y1[t] +  0.122458369917985y2[t] +  0.218214695228774y3[t] +  3.70568054851267M1[t] +  2.87391682631078M2[t] +  1.61334266086646M3[t] +  1.73017385141576M4[t] +  0.646074597671226M5[t] +  2.809494330732M6[t] +  1.90389388989760M7[t] +  0.793880895008001M8[t] -1.33056690921134M9[t] -0.0375894807118368M10[t] -2.25856294729839M11[t] +  0.107006757579222t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57919&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  -40.2944805912345 +  0.0638539628062868x[t] +  0.682999055030689y1[t] +  0.122458369917985y2[t] +  0.218214695228774y3[t] +  3.70568054851267M1[t] +  2.87391682631078M2[t] +  1.61334266086646M3[t] +  1.73017385141576M4[t] +  0.646074597671226M5[t] +  2.809494330732M6[t] +  1.90389388989760M7[t] +  0.793880895008001M8[t] -1.33056690921134M9[t] -0.0375894807118368M10[t] -2.25856294729839M11[t] +  0.107006757579222t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57919&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57919&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] = -40.2944805912345 + 0.0638539628062868x[t] + 0.682999055030689y1[t] + 0.122458369917985y2[t] + 0.218214695228774y3[t] + 3.70568054851267M1[t] + 2.87391682631078M2[t] + 1.61334266086646M3[t] + 1.73017385141576M4[t] + 0.646074597671226M5[t] + 2.809494330732M6[t] + 1.90389388989760M7[t] + 0.793880895008001M8[t] -1.33056690921134M9[t] -0.0375894807118368M10[t] -2.25856294729839M11[t] + 0.107006757579222t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-40.294480591234515.29372-2.63470.011830.005915
x0.06385396280628680.0231472.75860.0086340.004317
y10.6829990550306890.1499174.55584.6e-052.3e-05
y20.1224583699179850.1851720.66130.5121050.256052
y30.2182146952287740.1599791.3640.1800030.090002
M13.705680548512672.2196161.66950.1026350.051317
M22.873916826310782.3107061.24370.220660.11033
M31.613342660866462.2457810.71840.4765920.238296
M41.730173851415762.1657720.79890.4289680.214484
M50.6460745976712262.1898380.2950.7694570.384729
M62.8094943307322.1867991.28480.206090.103045
M71.903893889897602.2363670.85130.3995290.199765
M80.7938808950080012.3030070.34470.7320710.366035
M9-1.330566909211342.444624-0.54430.5891950.294597
M10-0.03758948071183682.300216-0.01630.9870410.493521
M11-2.258562947298392.326337-0.97090.3373080.168654
t0.1070067575792220.0577181.8540.0709480.035474

\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) & -40.2944805912345 & 15.29372 & -2.6347 & 0.01183 & 0.005915 \tabularnewline
x & 0.0638539628062868 & 0.023147 & 2.7586 & 0.008634 & 0.004317 \tabularnewline
y1 & 0.682999055030689 & 0.149917 & 4.5558 & 4.6e-05 & 2.3e-05 \tabularnewline
y2 & 0.122458369917985 & 0.185172 & 0.6613 & 0.512105 & 0.256052 \tabularnewline
y3 & 0.218214695228774 & 0.159979 & 1.364 & 0.180003 & 0.090002 \tabularnewline
M1 & 3.70568054851267 & 2.219616 & 1.6695 & 0.102635 & 0.051317 \tabularnewline
M2 & 2.87391682631078 & 2.310706 & 1.2437 & 0.22066 & 0.11033 \tabularnewline
M3 & 1.61334266086646 & 2.245781 & 0.7184 & 0.476592 & 0.238296 \tabularnewline
M4 & 1.73017385141576 & 2.165772 & 0.7989 & 0.428968 & 0.214484 \tabularnewline
M5 & 0.646074597671226 & 2.189838 & 0.295 & 0.769457 & 0.384729 \tabularnewline
M6 & 2.809494330732 & 2.186799 & 1.2848 & 0.20609 & 0.103045 \tabularnewline
M7 & 1.90389388989760 & 2.236367 & 0.8513 & 0.399529 & 0.199765 \tabularnewline
M8 & 0.793880895008001 & 2.303007 & 0.3447 & 0.732071 & 0.366035 \tabularnewline
M9 & -1.33056690921134 & 2.444624 & -0.5443 & 0.589195 & 0.294597 \tabularnewline
M10 & -0.0375894807118368 & 2.300216 & -0.0163 & 0.987041 & 0.493521 \tabularnewline
M11 & -2.25856294729839 & 2.326337 & -0.9709 & 0.337308 & 0.168654 \tabularnewline
t & 0.107006757579222 & 0.057718 & 1.854 & 0.070948 & 0.035474 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57919&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]-40.2944805912345[/C][C]15.29372[/C][C]-2.6347[/C][C]0.01183[/C][C]0.005915[/C][/ROW]
[ROW][C]x[/C][C]0.0638539628062868[/C][C]0.023147[/C][C]2.7586[/C][C]0.008634[/C][C]0.004317[/C][/ROW]
[ROW][C]y1[/C][C]0.682999055030689[/C][C]0.149917[/C][C]4.5558[/C][C]4.6e-05[/C][C]2.3e-05[/C][/ROW]
[ROW][C]y2[/C][C]0.122458369917985[/C][C]0.185172[/C][C]0.6613[/C][C]0.512105[/C][C]0.256052[/C][/ROW]
[ROW][C]y3[/C][C]0.218214695228774[/C][C]0.159979[/C][C]1.364[/C][C]0.180003[/C][C]0.090002[/C][/ROW]
[ROW][C]M1[/C][C]3.70568054851267[/C][C]2.219616[/C][C]1.6695[/C][C]0.102635[/C][C]0.051317[/C][/ROW]
[ROW][C]M2[/C][C]2.87391682631078[/C][C]2.310706[/C][C]1.2437[/C][C]0.22066[/C][C]0.11033[/C][/ROW]
[ROW][C]M3[/C][C]1.61334266086646[/C][C]2.245781[/C][C]0.7184[/C][C]0.476592[/C][C]0.238296[/C][/ROW]
[ROW][C]M4[/C][C]1.73017385141576[/C][C]2.165772[/C][C]0.7989[/C][C]0.428968[/C][C]0.214484[/C][/ROW]
[ROW][C]M5[/C][C]0.646074597671226[/C][C]2.189838[/C][C]0.295[/C][C]0.769457[/C][C]0.384729[/C][/ROW]
[ROW][C]M6[/C][C]2.809494330732[/C][C]2.186799[/C][C]1.2848[/C][C]0.20609[/C][C]0.103045[/C][/ROW]
[ROW][C]M7[/C][C]1.90389388989760[/C][C]2.236367[/C][C]0.8513[/C][C]0.399529[/C][C]0.199765[/C][/ROW]
[ROW][C]M8[/C][C]0.793880895008001[/C][C]2.303007[/C][C]0.3447[/C][C]0.732071[/C][C]0.366035[/C][/ROW]
[ROW][C]M9[/C][C]-1.33056690921134[/C][C]2.444624[/C][C]-0.5443[/C][C]0.589195[/C][C]0.294597[/C][/ROW]
[ROW][C]M10[/C][C]-0.0375894807118368[/C][C]2.300216[/C][C]-0.0163[/C][C]0.987041[/C][C]0.493521[/C][/ROW]
[ROW][C]M11[/C][C]-2.25856294729839[/C][C]2.326337[/C][C]-0.9709[/C][C]0.337308[/C][C]0.168654[/C][/ROW]
[ROW][C]t[/C][C]0.107006757579222[/C][C]0.057718[/C][C]1.854[/C][C]0.070948[/C][C]0.035474[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57919&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57919&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)-40.294480591234515.29372-2.63470.011830.005915
x0.06385396280628680.0231472.75860.0086340.004317
y10.6829990550306890.1499174.55584.6e-052.3e-05
y20.1224583699179850.1851720.66130.5121050.256052
y30.2182146952287740.1599791.3640.1800030.090002
M13.705680548512672.2196161.66950.1026350.051317
M22.873916826310782.3107061.24370.220660.11033
M31.613342660866462.2457810.71840.4765920.238296
M41.730173851415762.1657720.79890.4289680.214484
M50.6460745976712262.1898380.2950.7694570.384729
M62.8094943307322.1867991.28480.206090.103045
M71.903893889897602.2363670.85130.3995290.199765
M80.7938808950080012.3030070.34470.7320710.366035
M9-1.330566909211342.444624-0.54430.5891950.294597
M10-0.03758948071183682.300216-0.01630.9870410.493521
M11-2.258562947298392.326337-0.97090.3373080.168654
t0.1070067575792220.0577181.8540.0709480.035474







Multiple Linear Regression - Regression Statistics
Multiple R0.931011076253719
R-squared0.866781624107108
Adjusted R-squared0.814793965222077
F-TEST (value)16.6728343360097
F-TEST (DF numerator)16
F-TEST (DF denominator)41
p-value4.49307258065801e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.16773018165331
Sum Squared Residuals411.415094654049

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.931011076253719 \tabularnewline
R-squared & 0.866781624107108 \tabularnewline
Adjusted R-squared & 0.814793965222077 \tabularnewline
F-TEST (value) & 16.6728343360097 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 41 \tabularnewline
p-value & 4.49307258065801e-13 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3.16773018165331 \tabularnewline
Sum Squared Residuals & 411.415094654049 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57919&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.931011076253719[/C][/ROW]
[ROW][C]R-squared[/C][C]0.866781624107108[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.814793965222077[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]16.6728343360097[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]41[/C][/ROW]
[ROW][C]p-value[/C][C]4.49307258065801e-13[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]3.16773018165331[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]411.415094654049[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57919&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57919&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.931011076253719
R-squared0.866781624107108
Adjusted R-squared0.814793965222077
F-TEST (value)16.6728343360097
F-TEST (DF numerator)16
F-TEST (DF denominator)41
p-value4.49307258065801e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.16773018165331
Sum Squared Residuals411.415094654049







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11920.8386264980515-1.83862649805149
22219.7626973568932.23730264310701
32320.74863388373622.25136611626385
42021.7035761826179-1.70357618261788
51418.7521953860957-4.75219538609566
61416.3923433551886-2.39234335518862
71414.3320632923518-0.332063292351784
81515.3401749495957-0.340174949595674
91114.5165646604365-3.51656466043655
101713.24315703350423.75684296649580
111613.93390246533722.06609753466275
122014.39284718607015.60715281392989
132422.2520684393521.74793156064801
142324.2755106280701-1.27551062807010
152023.6100745373425-3.61007453734249
162121.8967761033132-0.896776103313184
171920.6339690803581-1.63396908035812
182320.94235778236212.05764221763789
192322.84905827462250.150941725377507
202324.900592378422-1.90059237842198
212324.1391338895347-1.13913388953469
222725.15599429877571.84400570122431
232623.73069700008992.26930299991007
241724.4983139478705-7.49831394787049
252422.33972450442671.66027549557329
262625.33103675175340.668963248246625
272423.67049623264110.329503767358865
282723.21523830943883.78476169056121
292724.09553185214942.90446814785059
302625.33909461999150.660905380008493
312423.74589841371650.254101586283472
322324.8302576135788-1.83025761357884
332322.30522570490620.694774295093838
342421.67768098606482.32231901393525
351719.0706891947650-2.07068919476503
362115.69220651663895.30779348336107
371921.8533119998816-2.85331199988161
382218.91644942668693.08355057331306
392219.86513555973652.13486444026355
401819.0621097850671-1.06210978506707
411615.81610326604650.183896733953522
421414.8897649480211-0.88976494802113
431212.1820832992101-0.182083299210095
441412.32443096185921.67556903814084
451611.37476567182464.62523432817538
46812.9275719124426-4.92757191244255
4735.26471133980779-2.26471133980779
4803.41663234942047-3.41663234942047
4953.716268558288191.28373144171181
5015.71430583659659-4.71430583659659
5112.10565978654377-1.10565978654377
5233.12229961956307-0.122299619563073
5362.702200415350343.29779958464966
5476.436439294436640.563560705563365
5587.89089672009910.109103279900901
561411.60454409654432.39545590345566
571414.6643100732980-0.664310073297984
581315.9955957692128-2.9955957692128

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 19 & 20.8386264980515 & -1.83862649805149 \tabularnewline
2 & 22 & 19.762697356893 & 2.23730264310701 \tabularnewline
3 & 23 & 20.7486338837362 & 2.25136611626385 \tabularnewline
4 & 20 & 21.7035761826179 & -1.70357618261788 \tabularnewline
5 & 14 & 18.7521953860957 & -4.75219538609566 \tabularnewline
6 & 14 & 16.3923433551886 & -2.39234335518862 \tabularnewline
7 & 14 & 14.3320632923518 & -0.332063292351784 \tabularnewline
8 & 15 & 15.3401749495957 & -0.340174949595674 \tabularnewline
9 & 11 & 14.5165646604365 & -3.51656466043655 \tabularnewline
10 & 17 & 13.2431570335042 & 3.75684296649580 \tabularnewline
11 & 16 & 13.9339024653372 & 2.06609753466275 \tabularnewline
12 & 20 & 14.3928471860701 & 5.60715281392989 \tabularnewline
13 & 24 & 22.252068439352 & 1.74793156064801 \tabularnewline
14 & 23 & 24.2755106280701 & -1.27551062807010 \tabularnewline
15 & 20 & 23.6100745373425 & -3.61007453734249 \tabularnewline
16 & 21 & 21.8967761033132 & -0.896776103313184 \tabularnewline
17 & 19 & 20.6339690803581 & -1.63396908035812 \tabularnewline
18 & 23 & 20.9423577823621 & 2.05764221763789 \tabularnewline
19 & 23 & 22.8490582746225 & 0.150941725377507 \tabularnewline
20 & 23 & 24.900592378422 & -1.90059237842198 \tabularnewline
21 & 23 & 24.1391338895347 & -1.13913388953469 \tabularnewline
22 & 27 & 25.1559942987757 & 1.84400570122431 \tabularnewline
23 & 26 & 23.7306970000899 & 2.26930299991007 \tabularnewline
24 & 17 & 24.4983139478705 & -7.49831394787049 \tabularnewline
25 & 24 & 22.3397245044267 & 1.66027549557329 \tabularnewline
26 & 26 & 25.3310367517534 & 0.668963248246625 \tabularnewline
27 & 24 & 23.6704962326411 & 0.329503767358865 \tabularnewline
28 & 27 & 23.2152383094388 & 3.78476169056121 \tabularnewline
29 & 27 & 24.0955318521494 & 2.90446814785059 \tabularnewline
30 & 26 & 25.3390946199915 & 0.660905380008493 \tabularnewline
31 & 24 & 23.7458984137165 & 0.254101586283472 \tabularnewline
32 & 23 & 24.8302576135788 & -1.83025761357884 \tabularnewline
33 & 23 & 22.3052257049062 & 0.694774295093838 \tabularnewline
34 & 24 & 21.6776809860648 & 2.32231901393525 \tabularnewline
35 & 17 & 19.0706891947650 & -2.07068919476503 \tabularnewline
36 & 21 & 15.6922065166389 & 5.30779348336107 \tabularnewline
37 & 19 & 21.8533119998816 & -2.85331199988161 \tabularnewline
38 & 22 & 18.9164494266869 & 3.08355057331306 \tabularnewline
39 & 22 & 19.8651355597365 & 2.13486444026355 \tabularnewline
40 & 18 & 19.0621097850671 & -1.06210978506707 \tabularnewline
41 & 16 & 15.8161032660465 & 0.183896733953522 \tabularnewline
42 & 14 & 14.8897649480211 & -0.88976494802113 \tabularnewline
43 & 12 & 12.1820832992101 & -0.182083299210095 \tabularnewline
44 & 14 & 12.3244309618592 & 1.67556903814084 \tabularnewline
45 & 16 & 11.3747656718246 & 4.62523432817538 \tabularnewline
46 & 8 & 12.9275719124426 & -4.92757191244255 \tabularnewline
47 & 3 & 5.26471133980779 & -2.26471133980779 \tabularnewline
48 & 0 & 3.41663234942047 & -3.41663234942047 \tabularnewline
49 & 5 & 3.71626855828819 & 1.28373144171181 \tabularnewline
50 & 1 & 5.71430583659659 & -4.71430583659659 \tabularnewline
51 & 1 & 2.10565978654377 & -1.10565978654377 \tabularnewline
52 & 3 & 3.12229961956307 & -0.122299619563073 \tabularnewline
53 & 6 & 2.70220041535034 & 3.29779958464966 \tabularnewline
54 & 7 & 6.43643929443664 & 0.563560705563365 \tabularnewline
55 & 8 & 7.8908967200991 & 0.109103279900901 \tabularnewline
56 & 14 & 11.6045440965443 & 2.39545590345566 \tabularnewline
57 & 14 & 14.6643100732980 & -0.664310073297984 \tabularnewline
58 & 13 & 15.9955957692128 & -2.9955957692128 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57919&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]19[/C][C]20.8386264980515[/C][C]-1.83862649805149[/C][/ROW]
[ROW][C]2[/C][C]22[/C][C]19.762697356893[/C][C]2.23730264310701[/C][/ROW]
[ROW][C]3[/C][C]23[/C][C]20.7486338837362[/C][C]2.25136611626385[/C][/ROW]
[ROW][C]4[/C][C]20[/C][C]21.7035761826179[/C][C]-1.70357618261788[/C][/ROW]
[ROW][C]5[/C][C]14[/C][C]18.7521953860957[/C][C]-4.75219538609566[/C][/ROW]
[ROW][C]6[/C][C]14[/C][C]16.3923433551886[/C][C]-2.39234335518862[/C][/ROW]
[ROW][C]7[/C][C]14[/C][C]14.3320632923518[/C][C]-0.332063292351784[/C][/ROW]
[ROW][C]8[/C][C]15[/C][C]15.3401749495957[/C][C]-0.340174949595674[/C][/ROW]
[ROW][C]9[/C][C]11[/C][C]14.5165646604365[/C][C]-3.51656466043655[/C][/ROW]
[ROW][C]10[/C][C]17[/C][C]13.2431570335042[/C][C]3.75684296649580[/C][/ROW]
[ROW][C]11[/C][C]16[/C][C]13.9339024653372[/C][C]2.06609753466275[/C][/ROW]
[ROW][C]12[/C][C]20[/C][C]14.3928471860701[/C][C]5.60715281392989[/C][/ROW]
[ROW][C]13[/C][C]24[/C][C]22.252068439352[/C][C]1.74793156064801[/C][/ROW]
[ROW][C]14[/C][C]23[/C][C]24.2755106280701[/C][C]-1.27551062807010[/C][/ROW]
[ROW][C]15[/C][C]20[/C][C]23.6100745373425[/C][C]-3.61007453734249[/C][/ROW]
[ROW][C]16[/C][C]21[/C][C]21.8967761033132[/C][C]-0.896776103313184[/C][/ROW]
[ROW][C]17[/C][C]19[/C][C]20.6339690803581[/C][C]-1.63396908035812[/C][/ROW]
[ROW][C]18[/C][C]23[/C][C]20.9423577823621[/C][C]2.05764221763789[/C][/ROW]
[ROW][C]19[/C][C]23[/C][C]22.8490582746225[/C][C]0.150941725377507[/C][/ROW]
[ROW][C]20[/C][C]23[/C][C]24.900592378422[/C][C]-1.90059237842198[/C][/ROW]
[ROW][C]21[/C][C]23[/C][C]24.1391338895347[/C][C]-1.13913388953469[/C][/ROW]
[ROW][C]22[/C][C]27[/C][C]25.1559942987757[/C][C]1.84400570122431[/C][/ROW]
[ROW][C]23[/C][C]26[/C][C]23.7306970000899[/C][C]2.26930299991007[/C][/ROW]
[ROW][C]24[/C][C]17[/C][C]24.4983139478705[/C][C]-7.49831394787049[/C][/ROW]
[ROW][C]25[/C][C]24[/C][C]22.3397245044267[/C][C]1.66027549557329[/C][/ROW]
[ROW][C]26[/C][C]26[/C][C]25.3310367517534[/C][C]0.668963248246625[/C][/ROW]
[ROW][C]27[/C][C]24[/C][C]23.6704962326411[/C][C]0.329503767358865[/C][/ROW]
[ROW][C]28[/C][C]27[/C][C]23.2152383094388[/C][C]3.78476169056121[/C][/ROW]
[ROW][C]29[/C][C]27[/C][C]24.0955318521494[/C][C]2.90446814785059[/C][/ROW]
[ROW][C]30[/C][C]26[/C][C]25.3390946199915[/C][C]0.660905380008493[/C][/ROW]
[ROW][C]31[/C][C]24[/C][C]23.7458984137165[/C][C]0.254101586283472[/C][/ROW]
[ROW][C]32[/C][C]23[/C][C]24.8302576135788[/C][C]-1.83025761357884[/C][/ROW]
[ROW][C]33[/C][C]23[/C][C]22.3052257049062[/C][C]0.694774295093838[/C][/ROW]
[ROW][C]34[/C][C]24[/C][C]21.6776809860648[/C][C]2.32231901393525[/C][/ROW]
[ROW][C]35[/C][C]17[/C][C]19.0706891947650[/C][C]-2.07068919476503[/C][/ROW]
[ROW][C]36[/C][C]21[/C][C]15.6922065166389[/C][C]5.30779348336107[/C][/ROW]
[ROW][C]37[/C][C]19[/C][C]21.8533119998816[/C][C]-2.85331199988161[/C][/ROW]
[ROW][C]38[/C][C]22[/C][C]18.9164494266869[/C][C]3.08355057331306[/C][/ROW]
[ROW][C]39[/C][C]22[/C][C]19.8651355597365[/C][C]2.13486444026355[/C][/ROW]
[ROW][C]40[/C][C]18[/C][C]19.0621097850671[/C][C]-1.06210978506707[/C][/ROW]
[ROW][C]41[/C][C]16[/C][C]15.8161032660465[/C][C]0.183896733953522[/C][/ROW]
[ROW][C]42[/C][C]14[/C][C]14.8897649480211[/C][C]-0.88976494802113[/C][/ROW]
[ROW][C]43[/C][C]12[/C][C]12.1820832992101[/C][C]-0.182083299210095[/C][/ROW]
[ROW][C]44[/C][C]14[/C][C]12.3244309618592[/C][C]1.67556903814084[/C][/ROW]
[ROW][C]45[/C][C]16[/C][C]11.3747656718246[/C][C]4.62523432817538[/C][/ROW]
[ROW][C]46[/C][C]8[/C][C]12.9275719124426[/C][C]-4.92757191244255[/C][/ROW]
[ROW][C]47[/C][C]3[/C][C]5.26471133980779[/C][C]-2.26471133980779[/C][/ROW]
[ROW][C]48[/C][C]0[/C][C]3.41663234942047[/C][C]-3.41663234942047[/C][/ROW]
[ROW][C]49[/C][C]5[/C][C]3.71626855828819[/C][C]1.28373144171181[/C][/ROW]
[ROW][C]50[/C][C]1[/C][C]5.71430583659659[/C][C]-4.71430583659659[/C][/ROW]
[ROW][C]51[/C][C]1[/C][C]2.10565978654377[/C][C]-1.10565978654377[/C][/ROW]
[ROW][C]52[/C][C]3[/C][C]3.12229961956307[/C][C]-0.122299619563073[/C][/ROW]
[ROW][C]53[/C][C]6[/C][C]2.70220041535034[/C][C]3.29779958464966[/C][/ROW]
[ROW][C]54[/C][C]7[/C][C]6.43643929443664[/C][C]0.563560705563365[/C][/ROW]
[ROW][C]55[/C][C]8[/C][C]7.8908967200991[/C][C]0.109103279900901[/C][/ROW]
[ROW][C]56[/C][C]14[/C][C]11.6045440965443[/C][C]2.39545590345566[/C][/ROW]
[ROW][C]57[/C][C]14[/C][C]14.6643100732980[/C][C]-0.664310073297984[/C][/ROW]
[ROW][C]58[/C][C]13[/C][C]15.9955957692128[/C][C]-2.9955957692128[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57919&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57919&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
11920.8386264980515-1.83862649805149
22219.7626973568932.23730264310701
32320.74863388373622.25136611626385
42021.7035761826179-1.70357618261788
51418.7521953860957-4.75219538609566
61416.3923433551886-2.39234335518862
71414.3320632923518-0.332063292351784
81515.3401749495957-0.340174949595674
91114.5165646604365-3.51656466043655
101713.24315703350423.75684296649580
111613.93390246533722.06609753466275
122014.39284718607015.60715281392989
132422.2520684393521.74793156064801
142324.2755106280701-1.27551062807010
152023.6100745373425-3.61007453734249
162121.8967761033132-0.896776103313184
171920.6339690803581-1.63396908035812
182320.94235778236212.05764221763789
192322.84905827462250.150941725377507
202324.900592378422-1.90059237842198
212324.1391338895347-1.13913388953469
222725.15599429877571.84400570122431
232623.73069700008992.26930299991007
241724.4983139478705-7.49831394787049
252422.33972450442671.66027549557329
262625.33103675175340.668963248246625
272423.67049623264110.329503767358865
282723.21523830943883.78476169056121
292724.09553185214942.90446814785059
302625.33909461999150.660905380008493
312423.74589841371650.254101586283472
322324.8302576135788-1.83025761357884
332322.30522570490620.694774295093838
342421.67768098606482.32231901393525
351719.0706891947650-2.07068919476503
362115.69220651663895.30779348336107
371921.8533119998816-2.85331199988161
382218.91644942668693.08355057331306
392219.86513555973652.13486444026355
401819.0621097850671-1.06210978506707
411615.81610326604650.183896733953522
421414.8897649480211-0.88976494802113
431212.1820832992101-0.182083299210095
441412.32443096185921.67556903814084
451611.37476567182464.62523432817538
46812.9275719124426-4.92757191244255
4735.26471133980779-2.26471133980779
4803.41663234942047-3.41663234942047
4953.716268558288191.28373144171181
5015.71430583659659-4.71430583659659
5112.10565978654377-1.10565978654377
5233.12229961956307-0.122299619563073
5362.702200415350343.29779958464966
5476.436439294436640.563560705563365
5587.89089672009910.109103279900901
561411.60454409654432.39545590345566
571414.6643100732980-0.664310073297984
581315.9955957692128-2.9955957692128







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.3126219572741850.625243914548370.687378042725815
210.2056305555035260.4112611110070520.794369444496474
220.1046795476525150.2093590953050300.895320452347485
230.2757123513568020.5514247027136030.724287648643198
240.7654835702083440.4690328595833120.234516429791656
250.7860685892188850.427862821562230.213931410781115
260.6968431948166210.6063136103667580.303156805183379
270.6232605997819460.7534788004361080.376739400218054
280.5905772849157830.8188454301684340.409422715084217
290.5425391371148120.9149217257703750.457460862885188
300.4415128956645960.8830257913291920.558487104335404
310.332313247257190.664626494514380.66768675274281
320.3921644045617320.7843288091234630.607835595438268
330.6045166896579250.790966620684150.395483310342075
340.500638259068490.9987234818630210.499361740931510
350.5258566177100220.9482867645799560.474143382289978
360.4211543910206550.842308782041310.578845608979345
370.814226020999870.371547958000260.18577397900013
380.735572607579720.5288547848405610.264427392420281

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
20 & 0.312621957274185 & 0.62524391454837 & 0.687378042725815 \tabularnewline
21 & 0.205630555503526 & 0.411261111007052 & 0.794369444496474 \tabularnewline
22 & 0.104679547652515 & 0.209359095305030 & 0.895320452347485 \tabularnewline
23 & 0.275712351356802 & 0.551424702713603 & 0.724287648643198 \tabularnewline
24 & 0.765483570208344 & 0.469032859583312 & 0.234516429791656 \tabularnewline
25 & 0.786068589218885 & 0.42786282156223 & 0.213931410781115 \tabularnewline
26 & 0.696843194816621 & 0.606313610366758 & 0.303156805183379 \tabularnewline
27 & 0.623260599781946 & 0.753478800436108 & 0.376739400218054 \tabularnewline
28 & 0.590577284915783 & 0.818845430168434 & 0.409422715084217 \tabularnewline
29 & 0.542539137114812 & 0.914921725770375 & 0.457460862885188 \tabularnewline
30 & 0.441512895664596 & 0.883025791329192 & 0.558487104335404 \tabularnewline
31 & 0.33231324725719 & 0.66462649451438 & 0.66768675274281 \tabularnewline
32 & 0.392164404561732 & 0.784328809123463 & 0.607835595438268 \tabularnewline
33 & 0.604516689657925 & 0.79096662068415 & 0.395483310342075 \tabularnewline
34 & 0.50063825906849 & 0.998723481863021 & 0.499361740931510 \tabularnewline
35 & 0.525856617710022 & 0.948286764579956 & 0.474143382289978 \tabularnewline
36 & 0.421154391020655 & 0.84230878204131 & 0.578845608979345 \tabularnewline
37 & 0.81422602099987 & 0.37154795800026 & 0.18577397900013 \tabularnewline
38 & 0.73557260757972 & 0.528854784840561 & 0.264427392420281 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57919&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]20[/C][C]0.312621957274185[/C][C]0.62524391454837[/C][C]0.687378042725815[/C][/ROW]
[ROW][C]21[/C][C]0.205630555503526[/C][C]0.411261111007052[/C][C]0.794369444496474[/C][/ROW]
[ROW][C]22[/C][C]0.104679547652515[/C][C]0.209359095305030[/C][C]0.895320452347485[/C][/ROW]
[ROW][C]23[/C][C]0.275712351356802[/C][C]0.551424702713603[/C][C]0.724287648643198[/C][/ROW]
[ROW][C]24[/C][C]0.765483570208344[/C][C]0.469032859583312[/C][C]0.234516429791656[/C][/ROW]
[ROW][C]25[/C][C]0.786068589218885[/C][C]0.42786282156223[/C][C]0.213931410781115[/C][/ROW]
[ROW][C]26[/C][C]0.696843194816621[/C][C]0.606313610366758[/C][C]0.303156805183379[/C][/ROW]
[ROW][C]27[/C][C]0.623260599781946[/C][C]0.753478800436108[/C][C]0.376739400218054[/C][/ROW]
[ROW][C]28[/C][C]0.590577284915783[/C][C]0.818845430168434[/C][C]0.409422715084217[/C][/ROW]
[ROW][C]29[/C][C]0.542539137114812[/C][C]0.914921725770375[/C][C]0.457460862885188[/C][/ROW]
[ROW][C]30[/C][C]0.441512895664596[/C][C]0.883025791329192[/C][C]0.558487104335404[/C][/ROW]
[ROW][C]31[/C][C]0.33231324725719[/C][C]0.66462649451438[/C][C]0.66768675274281[/C][/ROW]
[ROW][C]32[/C][C]0.392164404561732[/C][C]0.784328809123463[/C][C]0.607835595438268[/C][/ROW]
[ROW][C]33[/C][C]0.604516689657925[/C][C]0.79096662068415[/C][C]0.395483310342075[/C][/ROW]
[ROW][C]34[/C][C]0.50063825906849[/C][C]0.998723481863021[/C][C]0.499361740931510[/C][/ROW]
[ROW][C]35[/C][C]0.525856617710022[/C][C]0.948286764579956[/C][C]0.474143382289978[/C][/ROW]
[ROW][C]36[/C][C]0.421154391020655[/C][C]0.84230878204131[/C][C]0.578845608979345[/C][/ROW]
[ROW][C]37[/C][C]0.81422602099987[/C][C]0.37154795800026[/C][C]0.18577397900013[/C][/ROW]
[ROW][C]38[/C][C]0.73557260757972[/C][C]0.528854784840561[/C][C]0.264427392420281[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57919&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.3126219572741850.625243914548370.687378042725815
210.2056305555035260.4112611110070520.794369444496474
220.1046795476525150.2093590953050300.895320452347485
230.2757123513568020.5514247027136030.724287648643198
240.7654835702083440.4690328595833120.234516429791656
250.7860685892188850.427862821562230.213931410781115
260.6968431948166210.6063136103667580.303156805183379
270.6232605997819460.7534788004361080.376739400218054
280.5905772849157830.8188454301684340.409422715084217
290.5425391371148120.9149217257703750.457460862885188
300.4415128956645960.8830257913291920.558487104335404
310.332313247257190.664626494514380.66768675274281
320.3921644045617320.7843288091234630.607835595438268
330.6045166896579250.790966620684150.395483310342075
340.500638259068490.9987234818630210.499361740931510
350.5258566177100220.9482867645799560.474143382289978
360.4211543910206550.842308782041310.578845608979345
370.814226020999870.371547958000260.18577397900013
380.735572607579720.5288547848405610.264427392420281







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

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 0 & 0 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57919&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57919&T=6

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

As an alternative you can also use a QR Code:  

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

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



Parameters (Session):
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')
}