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, 27 Nov 2008 03:30:18 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Nov/27/t1227782057n4p8u2asoypl3cw.htm/, Retrieved Sun, 19 May 2024 12:14:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25752, Retrieved Sun, 19 May 2024 12:14:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact208
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F       [Multiple Regression] [Multiple Linear R...] [2008-11-27 10:30:18] [96839c4b6d4e03ef3851369c676780bf] [Current]
Feedback Forum
2008-11-30 18:32:21 [Käthe Vanderheggen] [reply
Berekeningen zijn correct. Er mocht nog iets meer uitleg bij de gebruikte grafieken.

Post a new message
Dataseries X:
4,25	101,8	0
4,5	108,3	0
4,7	106,7	0
4,75	108,2	0
4,75	94,2	0
4,75	95,1	0
4,75	98,1	0
4,75	93,2	0
4,75	94	0
4,58	97,2	0
4,5	95	0
4,5	90,5	0
4,49	91,6	0
4,03	90,5	0
3,75	79,9	0
3,39	74,9	0
3,25	74,3	0
3,25	75,9	1
3,25	77,7	1
3,25	86,9	1
3,25	90,7	1
3,25	91	1
3,25	89,5	1
3,25	92,5	1
3,25	94,1	1
3,25	98,5	1
3,25	96,8	1
3,25	91,2	1
2,85	97,1	1
2,75	104,9	1
2,75	110,9	1
2,55	104,8	1
2,5	94,1	1
2,5	95,8	1
2,1	99,3	1
2	101,1	1
2	104	1
2	99	1
2	105,4	1
2	107,1	1
2	110,7	1
2	117,1	1
2	118,7	1
2	126,5	1
2	127,5	1
2	134,6	1
2	131,8	1
2	135,9	1
2	142,7	1
2	141,7	1
2	153,4	1
2	145	1
2	137,7	1
2	148,3	1
2	152,2	1
2	169,4	1
2	168,6	1
2	161,1	1
2	174,1	1
2	179	1
2	190,6	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 7 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25752&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]7 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25752&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25752&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 time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Multiple Linear Regression - Estimated Regression Equation
rentetarief[t] = + 3.69690495663196 + 0.0144572867995880grondstofprijs[t] -0.327115197475534dummy[t] -0.145460946079961M1[t] -0.154487406440737M2[t] -0.115487200762331M3[t] -0.0646578478855724M4[t] -0.0696594500325334M5[t] -0.0360288698731171M6[t] -0.0160152982497135M7[t] -0.0559527824097417M8[t] + 0.0182511426038327M9[t] + 0.0375164738662887M10[t] -0.0202537731428269M11[t] -0.0671443265900604t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
rentetarief[t] =  +  3.69690495663196 +  0.0144572867995880grondstofprijs[t] -0.327115197475534dummy[t] -0.145460946079961M1[t] -0.154487406440737M2[t] -0.115487200762331M3[t] -0.0646578478855724M4[t] -0.0696594500325334M5[t] -0.0360288698731171M6[t] -0.0160152982497135M7[t] -0.0559527824097417M8[t] +  0.0182511426038327M9[t] +  0.0375164738662887M10[t] -0.0202537731428269M11[t] -0.0671443265900604t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25752&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]rentetarief[t] =  +  3.69690495663196 +  0.0144572867995880grondstofprijs[t] -0.327115197475534dummy[t] -0.145460946079961M1[t] -0.154487406440737M2[t] -0.115487200762331M3[t] -0.0646578478855724M4[t] -0.0696594500325334M5[t] -0.0360288698731171M6[t] -0.0160152982497135M7[t] -0.0559527824097417M8[t] +  0.0182511426038327M9[t] +  0.0375164738662887M10[t] -0.0202537731428269M11[t] -0.0671443265900604t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25752&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25752&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
rentetarief[t] = + 3.69690495663196 + 0.0144572867995880grondstofprijs[t] -0.327115197475534dummy[t] -0.145460946079961M1[t] -0.154487406440737M2[t] -0.115487200762331M3[t] -0.0646578478855724M4[t] -0.0696594500325334M5[t] -0.0360288698731171M6[t] -0.0160152982497135M7[t] -0.0559527824097417M8[t] + 0.0182511426038327M9[t] + 0.0375164738662887M10[t] -0.0202537731428269M11[t] -0.0671443265900604t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3.696904956631960.25019214.776300
grondstofprijs0.01445728679958800.0027415.27453e-062e-06
dummy-0.3271151974755340.156742-2.0870.0424610.021231
M1-0.1454609460799610.16072-0.90510.3701520.185076
M2-0.1544874064407370.167684-0.92130.36170.18085
M3-0.1154872007623310.167488-0.68950.4939570.246978
M4-0.06465784788557240.168063-0.38470.7022150.351108
M5-0.06965945003253340.169563-0.41080.6831140.341557
M6-0.03602886987311710.16757-0.2150.8307110.415356
M7-0.01601529824971350.167322-0.09570.9241630.462081
M8-0.05595278240974170.167431-0.33420.739760.36988
M90.01825114260383270.1668310.10940.9133620.456681
M100.03751647386628870.1666570.22510.8228890.411445
M11-0.02025377314282690.166571-0.12160.9037520.451876
t-0.06714432659006040.006309-10.642200

\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) & 3.69690495663196 & 0.250192 & 14.7763 & 0 & 0 \tabularnewline
grondstofprijs & 0.0144572867995880 & 0.002741 & 5.2745 & 3e-06 & 2e-06 \tabularnewline
dummy & -0.327115197475534 & 0.156742 & -2.087 & 0.042461 & 0.021231 \tabularnewline
M1 & -0.145460946079961 & 0.16072 & -0.9051 & 0.370152 & 0.185076 \tabularnewline
M2 & -0.154487406440737 & 0.167684 & -0.9213 & 0.3617 & 0.18085 \tabularnewline
M3 & -0.115487200762331 & 0.167488 & -0.6895 & 0.493957 & 0.246978 \tabularnewline
M4 & -0.0646578478855724 & 0.168063 & -0.3847 & 0.702215 & 0.351108 \tabularnewline
M5 & -0.0696594500325334 & 0.169563 & -0.4108 & 0.683114 & 0.341557 \tabularnewline
M6 & -0.0360288698731171 & 0.16757 & -0.215 & 0.830711 & 0.415356 \tabularnewline
M7 & -0.0160152982497135 & 0.167322 & -0.0957 & 0.924163 & 0.462081 \tabularnewline
M8 & -0.0559527824097417 & 0.167431 & -0.3342 & 0.73976 & 0.36988 \tabularnewline
M9 & 0.0182511426038327 & 0.166831 & 0.1094 & 0.913362 & 0.456681 \tabularnewline
M10 & 0.0375164738662887 & 0.166657 & 0.2251 & 0.822889 & 0.411445 \tabularnewline
M11 & -0.0202537731428269 & 0.166571 & -0.1216 & 0.903752 & 0.451876 \tabularnewline
t & -0.0671443265900604 & 0.006309 & -10.6422 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25752&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]3.69690495663196[/C][C]0.250192[/C][C]14.7763[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]grondstofprijs[/C][C]0.0144572867995880[/C][C]0.002741[/C][C]5.2745[/C][C]3e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]dummy[/C][C]-0.327115197475534[/C][C]0.156742[/C][C]-2.087[/C][C]0.042461[/C][C]0.021231[/C][/ROW]
[ROW][C]M1[/C][C]-0.145460946079961[/C][C]0.16072[/C][C]-0.9051[/C][C]0.370152[/C][C]0.185076[/C][/ROW]
[ROW][C]M2[/C][C]-0.154487406440737[/C][C]0.167684[/C][C]-0.9213[/C][C]0.3617[/C][C]0.18085[/C][/ROW]
[ROW][C]M3[/C][C]-0.115487200762331[/C][C]0.167488[/C][C]-0.6895[/C][C]0.493957[/C][C]0.246978[/C][/ROW]
[ROW][C]M4[/C][C]-0.0646578478855724[/C][C]0.168063[/C][C]-0.3847[/C][C]0.702215[/C][C]0.351108[/C][/ROW]
[ROW][C]M5[/C][C]-0.0696594500325334[/C][C]0.169563[/C][C]-0.4108[/C][C]0.683114[/C][C]0.341557[/C][/ROW]
[ROW][C]M6[/C][C]-0.0360288698731171[/C][C]0.16757[/C][C]-0.215[/C][C]0.830711[/C][C]0.415356[/C][/ROW]
[ROW][C]M7[/C][C]-0.0160152982497135[/C][C]0.167322[/C][C]-0.0957[/C][C]0.924163[/C][C]0.462081[/C][/ROW]
[ROW][C]M8[/C][C]-0.0559527824097417[/C][C]0.167431[/C][C]-0.3342[/C][C]0.73976[/C][C]0.36988[/C][/ROW]
[ROW][C]M9[/C][C]0.0182511426038327[/C][C]0.166831[/C][C]0.1094[/C][C]0.913362[/C][C]0.456681[/C][/ROW]
[ROW][C]M10[/C][C]0.0375164738662887[/C][C]0.166657[/C][C]0.2251[/C][C]0.822889[/C][C]0.411445[/C][/ROW]
[ROW][C]M11[/C][C]-0.0202537731428269[/C][C]0.166571[/C][C]-0.1216[/C][C]0.903752[/C][C]0.451876[/C][/ROW]
[ROW][C]t[/C][C]-0.0671443265900604[/C][C]0.006309[/C][C]-10.6422[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25752&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25752&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)3.696904956631960.25019214.776300
grondstofprijs0.01445728679958800.0027415.27453e-062e-06
dummy-0.3271151974755340.156742-2.0870.0424610.021231
M1-0.1454609460799610.16072-0.90510.3701520.185076
M2-0.1544874064407370.167684-0.92130.36170.18085
M3-0.1154872007623310.167488-0.68950.4939570.246978
M4-0.06465784788557240.168063-0.38470.7022150.351108
M5-0.06965945003253340.169563-0.41080.6831140.341557
M6-0.03602886987311710.16757-0.2150.8307110.415356
M7-0.01601529824971350.167322-0.09570.9241630.462081
M8-0.05595278240974170.167431-0.33420.739760.36988
M90.01825114260383270.1668310.10940.9133620.456681
M100.03751647386628870.1666570.22510.8228890.411445
M11-0.02025377314282690.166571-0.12160.9037520.451876
t-0.06714432659006040.006309-10.642200







Multiple Linear Regression - Regression Statistics
Multiple R0.97490116193405
R-squared0.95043227554036
Adjusted R-squared0.935346446356991
F-TEST (value)63.001659636194
F-TEST (DF numerator)14
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.263326786223516
Sum Squared Residuals3.18968583176904

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.97490116193405 \tabularnewline
R-squared & 0.95043227554036 \tabularnewline
Adjusted R-squared & 0.935346446356991 \tabularnewline
F-TEST (value) & 63.001659636194 \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 & 0.263326786223516 \tabularnewline
Sum Squared Residuals & 3.18968583176904 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25752&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.97490116193405[/C][/ROW]
[ROW][C]R-squared[/C][C]0.95043227554036[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.935346446356991[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]63.001659636194[/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]0.263326786223516[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3.18968583176904[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25752&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25752&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.97490116193405
R-squared0.95043227554036
Adjusted R-squared0.935346446356991
F-TEST (value)63.001659636194
F-TEST (DF numerator)14
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.263326786223516
Sum Squared Residuals3.18968583176904







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
14.254.95605148015999-0.706051480159995
24.54.97385305740648-0.473853057406483
34.74.92257727761549-0.222577277615487
44.754.92794823410157-0.177948234101568
54.754.653400290170310.0965997098296858
64.754.63289810185930.117101898140701
74.754.629139207291410.120860792708594
84.754.451216691223340.298783308776663
94.754.469842119086520.280157880913479
104.584.46822644151760.111773558482402
114.54.311505836959330.188494163040672
124.54.199557492913950.300442507086052
134.494.002855235723470.487144764276526
144.033.910781433293090.11921856670691
153.753.72939007230580.0206099276941964
163.393.64078866459456-0.250788664594561
173.253.55996836377779-0.309968363777787
183.253.222471078750950.0275289212490499
193.253.201363440023550.0486365599764484
203.253.227288667829670.0227113321703271
213.253.28928595609162-0.0392859560916213
223.253.245744146803890.00425585319610673
233.253.099143643005330.150856356994665
243.253.095624949956870.154375050043134
253.252.906151336166180.343848663833815
263.252.893592611133540.356407388866465
273.252.840871102662580.409128897337418
283.252.743595322871590.506404677128413
292.852.756747386252130.0932526137478654
302.752.83600047685828-0.0860004768582776
312.752.87561344268915-0.125613442689149
322.552.68034218246157-0.130342182461573
332.52.53270881212950-0.0327088121294952
342.52.50940720436119-0.00940720436119051
352.12.43509313456057-0.335093134560572
3622.41422569735260-0.414225697352597
3722.24354655640138-0.243546556401381
3822.09508933545260-0.0950893354526038
3922.15947185005831-0.159471850058313
4022.16773426390431-0.167734263904311
4122.14763456764581-0.147634567645806
4222.20664745673253-0.206647456732526
4322.18264836064521-0.18264836064521
4422.18833338693191-0.188333386931908
4522.20985027215501-0.20985027215501
4622.26461801310448-0.264618013104481
4722.09922303646646-0.0992230364664581
4822.11160735889754-0.111607358897535
4921.997311636464710.00268836353528802
5021.906683562714290.0933164372857127
5122.04768969735781-0.0476896973578137
5221.909933514527970.0900664854720276
5321.732249392153960.267750607846042
5421.851982885798950.148017114201053
5521.861235549350680.138764450649317
5622.00281907155351-0.00281907155350926
5721.998312840537350.00168715946264738
5821.842004194212840.157995805787162
5921.905034349008310.0949656509916937
6021.928984500879050.0710154991209456
6121.884083755084250.115916244915746

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 4.25 & 4.95605148015999 & -0.706051480159995 \tabularnewline
2 & 4.5 & 4.97385305740648 & -0.473853057406483 \tabularnewline
3 & 4.7 & 4.92257727761549 & -0.222577277615487 \tabularnewline
4 & 4.75 & 4.92794823410157 & -0.177948234101568 \tabularnewline
5 & 4.75 & 4.65340029017031 & 0.0965997098296858 \tabularnewline
6 & 4.75 & 4.6328981018593 & 0.117101898140701 \tabularnewline
7 & 4.75 & 4.62913920729141 & 0.120860792708594 \tabularnewline
8 & 4.75 & 4.45121669122334 & 0.298783308776663 \tabularnewline
9 & 4.75 & 4.46984211908652 & 0.280157880913479 \tabularnewline
10 & 4.58 & 4.4682264415176 & 0.111773558482402 \tabularnewline
11 & 4.5 & 4.31150583695933 & 0.188494163040672 \tabularnewline
12 & 4.5 & 4.19955749291395 & 0.300442507086052 \tabularnewline
13 & 4.49 & 4.00285523572347 & 0.487144764276526 \tabularnewline
14 & 4.03 & 3.91078143329309 & 0.11921856670691 \tabularnewline
15 & 3.75 & 3.7293900723058 & 0.0206099276941964 \tabularnewline
16 & 3.39 & 3.64078866459456 & -0.250788664594561 \tabularnewline
17 & 3.25 & 3.55996836377779 & -0.309968363777787 \tabularnewline
18 & 3.25 & 3.22247107875095 & 0.0275289212490499 \tabularnewline
19 & 3.25 & 3.20136344002355 & 0.0486365599764484 \tabularnewline
20 & 3.25 & 3.22728866782967 & 0.0227113321703271 \tabularnewline
21 & 3.25 & 3.28928595609162 & -0.0392859560916213 \tabularnewline
22 & 3.25 & 3.24574414680389 & 0.00425585319610673 \tabularnewline
23 & 3.25 & 3.09914364300533 & 0.150856356994665 \tabularnewline
24 & 3.25 & 3.09562494995687 & 0.154375050043134 \tabularnewline
25 & 3.25 & 2.90615133616618 & 0.343848663833815 \tabularnewline
26 & 3.25 & 2.89359261113354 & 0.356407388866465 \tabularnewline
27 & 3.25 & 2.84087110266258 & 0.409128897337418 \tabularnewline
28 & 3.25 & 2.74359532287159 & 0.506404677128413 \tabularnewline
29 & 2.85 & 2.75674738625213 & 0.0932526137478654 \tabularnewline
30 & 2.75 & 2.83600047685828 & -0.0860004768582776 \tabularnewline
31 & 2.75 & 2.87561344268915 & -0.125613442689149 \tabularnewline
32 & 2.55 & 2.68034218246157 & -0.130342182461573 \tabularnewline
33 & 2.5 & 2.53270881212950 & -0.0327088121294952 \tabularnewline
34 & 2.5 & 2.50940720436119 & -0.00940720436119051 \tabularnewline
35 & 2.1 & 2.43509313456057 & -0.335093134560572 \tabularnewline
36 & 2 & 2.41422569735260 & -0.414225697352597 \tabularnewline
37 & 2 & 2.24354655640138 & -0.243546556401381 \tabularnewline
38 & 2 & 2.09508933545260 & -0.0950893354526038 \tabularnewline
39 & 2 & 2.15947185005831 & -0.159471850058313 \tabularnewline
40 & 2 & 2.16773426390431 & -0.167734263904311 \tabularnewline
41 & 2 & 2.14763456764581 & -0.147634567645806 \tabularnewline
42 & 2 & 2.20664745673253 & -0.206647456732526 \tabularnewline
43 & 2 & 2.18264836064521 & -0.18264836064521 \tabularnewline
44 & 2 & 2.18833338693191 & -0.188333386931908 \tabularnewline
45 & 2 & 2.20985027215501 & -0.20985027215501 \tabularnewline
46 & 2 & 2.26461801310448 & -0.264618013104481 \tabularnewline
47 & 2 & 2.09922303646646 & -0.0992230364664581 \tabularnewline
48 & 2 & 2.11160735889754 & -0.111607358897535 \tabularnewline
49 & 2 & 1.99731163646471 & 0.00268836353528802 \tabularnewline
50 & 2 & 1.90668356271429 & 0.0933164372857127 \tabularnewline
51 & 2 & 2.04768969735781 & -0.0476896973578137 \tabularnewline
52 & 2 & 1.90993351452797 & 0.0900664854720276 \tabularnewline
53 & 2 & 1.73224939215396 & 0.267750607846042 \tabularnewline
54 & 2 & 1.85198288579895 & 0.148017114201053 \tabularnewline
55 & 2 & 1.86123554935068 & 0.138764450649317 \tabularnewline
56 & 2 & 2.00281907155351 & -0.00281907155350926 \tabularnewline
57 & 2 & 1.99831284053735 & 0.00168715946264738 \tabularnewline
58 & 2 & 1.84200419421284 & 0.157995805787162 \tabularnewline
59 & 2 & 1.90503434900831 & 0.0949656509916937 \tabularnewline
60 & 2 & 1.92898450087905 & 0.0710154991209456 \tabularnewline
61 & 2 & 1.88408375508425 & 0.115916244915746 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25752&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]4.25[/C][C]4.95605148015999[/C][C]-0.706051480159995[/C][/ROW]
[ROW][C]2[/C][C]4.5[/C][C]4.97385305740648[/C][C]-0.473853057406483[/C][/ROW]
[ROW][C]3[/C][C]4.7[/C][C]4.92257727761549[/C][C]-0.222577277615487[/C][/ROW]
[ROW][C]4[/C][C]4.75[/C][C]4.92794823410157[/C][C]-0.177948234101568[/C][/ROW]
[ROW][C]5[/C][C]4.75[/C][C]4.65340029017031[/C][C]0.0965997098296858[/C][/ROW]
[ROW][C]6[/C][C]4.75[/C][C]4.6328981018593[/C][C]0.117101898140701[/C][/ROW]
[ROW][C]7[/C][C]4.75[/C][C]4.62913920729141[/C][C]0.120860792708594[/C][/ROW]
[ROW][C]8[/C][C]4.75[/C][C]4.45121669122334[/C][C]0.298783308776663[/C][/ROW]
[ROW][C]9[/C][C]4.75[/C][C]4.46984211908652[/C][C]0.280157880913479[/C][/ROW]
[ROW][C]10[/C][C]4.58[/C][C]4.4682264415176[/C][C]0.111773558482402[/C][/ROW]
[ROW][C]11[/C][C]4.5[/C][C]4.31150583695933[/C][C]0.188494163040672[/C][/ROW]
[ROW][C]12[/C][C]4.5[/C][C]4.19955749291395[/C][C]0.300442507086052[/C][/ROW]
[ROW][C]13[/C][C]4.49[/C][C]4.00285523572347[/C][C]0.487144764276526[/C][/ROW]
[ROW][C]14[/C][C]4.03[/C][C]3.91078143329309[/C][C]0.11921856670691[/C][/ROW]
[ROW][C]15[/C][C]3.75[/C][C]3.7293900723058[/C][C]0.0206099276941964[/C][/ROW]
[ROW][C]16[/C][C]3.39[/C][C]3.64078866459456[/C][C]-0.250788664594561[/C][/ROW]
[ROW][C]17[/C][C]3.25[/C][C]3.55996836377779[/C][C]-0.309968363777787[/C][/ROW]
[ROW][C]18[/C][C]3.25[/C][C]3.22247107875095[/C][C]0.0275289212490499[/C][/ROW]
[ROW][C]19[/C][C]3.25[/C][C]3.20136344002355[/C][C]0.0486365599764484[/C][/ROW]
[ROW][C]20[/C][C]3.25[/C][C]3.22728866782967[/C][C]0.0227113321703271[/C][/ROW]
[ROW][C]21[/C][C]3.25[/C][C]3.28928595609162[/C][C]-0.0392859560916213[/C][/ROW]
[ROW][C]22[/C][C]3.25[/C][C]3.24574414680389[/C][C]0.00425585319610673[/C][/ROW]
[ROW][C]23[/C][C]3.25[/C][C]3.09914364300533[/C][C]0.150856356994665[/C][/ROW]
[ROW][C]24[/C][C]3.25[/C][C]3.09562494995687[/C][C]0.154375050043134[/C][/ROW]
[ROW][C]25[/C][C]3.25[/C][C]2.90615133616618[/C][C]0.343848663833815[/C][/ROW]
[ROW][C]26[/C][C]3.25[/C][C]2.89359261113354[/C][C]0.356407388866465[/C][/ROW]
[ROW][C]27[/C][C]3.25[/C][C]2.84087110266258[/C][C]0.409128897337418[/C][/ROW]
[ROW][C]28[/C][C]3.25[/C][C]2.74359532287159[/C][C]0.506404677128413[/C][/ROW]
[ROW][C]29[/C][C]2.85[/C][C]2.75674738625213[/C][C]0.0932526137478654[/C][/ROW]
[ROW][C]30[/C][C]2.75[/C][C]2.83600047685828[/C][C]-0.0860004768582776[/C][/ROW]
[ROW][C]31[/C][C]2.75[/C][C]2.87561344268915[/C][C]-0.125613442689149[/C][/ROW]
[ROW][C]32[/C][C]2.55[/C][C]2.68034218246157[/C][C]-0.130342182461573[/C][/ROW]
[ROW][C]33[/C][C]2.5[/C][C]2.53270881212950[/C][C]-0.0327088121294952[/C][/ROW]
[ROW][C]34[/C][C]2.5[/C][C]2.50940720436119[/C][C]-0.00940720436119051[/C][/ROW]
[ROW][C]35[/C][C]2.1[/C][C]2.43509313456057[/C][C]-0.335093134560572[/C][/ROW]
[ROW][C]36[/C][C]2[/C][C]2.41422569735260[/C][C]-0.414225697352597[/C][/ROW]
[ROW][C]37[/C][C]2[/C][C]2.24354655640138[/C][C]-0.243546556401381[/C][/ROW]
[ROW][C]38[/C][C]2[/C][C]2.09508933545260[/C][C]-0.0950893354526038[/C][/ROW]
[ROW][C]39[/C][C]2[/C][C]2.15947185005831[/C][C]-0.159471850058313[/C][/ROW]
[ROW][C]40[/C][C]2[/C][C]2.16773426390431[/C][C]-0.167734263904311[/C][/ROW]
[ROW][C]41[/C][C]2[/C][C]2.14763456764581[/C][C]-0.147634567645806[/C][/ROW]
[ROW][C]42[/C][C]2[/C][C]2.20664745673253[/C][C]-0.206647456732526[/C][/ROW]
[ROW][C]43[/C][C]2[/C][C]2.18264836064521[/C][C]-0.18264836064521[/C][/ROW]
[ROW][C]44[/C][C]2[/C][C]2.18833338693191[/C][C]-0.188333386931908[/C][/ROW]
[ROW][C]45[/C][C]2[/C][C]2.20985027215501[/C][C]-0.20985027215501[/C][/ROW]
[ROW][C]46[/C][C]2[/C][C]2.26461801310448[/C][C]-0.264618013104481[/C][/ROW]
[ROW][C]47[/C][C]2[/C][C]2.09922303646646[/C][C]-0.0992230364664581[/C][/ROW]
[ROW][C]48[/C][C]2[/C][C]2.11160735889754[/C][C]-0.111607358897535[/C][/ROW]
[ROW][C]49[/C][C]2[/C][C]1.99731163646471[/C][C]0.00268836353528802[/C][/ROW]
[ROW][C]50[/C][C]2[/C][C]1.90668356271429[/C][C]0.0933164372857127[/C][/ROW]
[ROW][C]51[/C][C]2[/C][C]2.04768969735781[/C][C]-0.0476896973578137[/C][/ROW]
[ROW][C]52[/C][C]2[/C][C]1.90993351452797[/C][C]0.0900664854720276[/C][/ROW]
[ROW][C]53[/C][C]2[/C][C]1.73224939215396[/C][C]0.267750607846042[/C][/ROW]
[ROW][C]54[/C][C]2[/C][C]1.85198288579895[/C][C]0.148017114201053[/C][/ROW]
[ROW][C]55[/C][C]2[/C][C]1.86123554935068[/C][C]0.138764450649317[/C][/ROW]
[ROW][C]56[/C][C]2[/C][C]2.00281907155351[/C][C]-0.00281907155350926[/C][/ROW]
[ROW][C]57[/C][C]2[/C][C]1.99831284053735[/C][C]0.00168715946264738[/C][/ROW]
[ROW][C]58[/C][C]2[/C][C]1.84200419421284[/C][C]0.157995805787162[/C][/ROW]
[ROW][C]59[/C][C]2[/C][C]1.90503434900831[/C][C]0.0949656509916937[/C][/ROW]
[ROW][C]60[/C][C]2[/C][C]1.92898450087905[/C][C]0.0710154991209456[/C][/ROW]
[ROW][C]61[/C][C]2[/C][C]1.88408375508425[/C][C]0.115916244915746[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25752&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25752&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
14.254.95605148015999-0.706051480159995
24.54.97385305740648-0.473853057406483
34.74.92257727761549-0.222577277615487
44.754.92794823410157-0.177948234101568
54.754.653400290170310.0965997098296858
64.754.63289810185930.117101898140701
74.754.629139207291410.120860792708594
84.754.451216691223340.298783308776663
94.754.469842119086520.280157880913479
104.584.46822644151760.111773558482402
114.54.311505836959330.188494163040672
124.54.199557492913950.300442507086052
134.494.002855235723470.487144764276526
144.033.910781433293090.11921856670691
153.753.72939007230580.0206099276941964
163.393.64078866459456-0.250788664594561
173.253.55996836377779-0.309968363777787
183.253.222471078750950.0275289212490499
193.253.201363440023550.0486365599764484
203.253.227288667829670.0227113321703271
213.253.28928595609162-0.0392859560916213
223.253.245744146803890.00425585319610673
233.253.099143643005330.150856356994665
243.253.095624949956870.154375050043134
253.252.906151336166180.343848663833815
263.252.893592611133540.356407388866465
273.252.840871102662580.409128897337418
283.252.743595322871590.506404677128413
292.852.756747386252130.0932526137478654
302.752.83600047685828-0.0860004768582776
312.752.87561344268915-0.125613442689149
322.552.68034218246157-0.130342182461573
332.52.53270881212950-0.0327088121294952
342.52.50940720436119-0.00940720436119051
352.12.43509313456057-0.335093134560572
3622.41422569735260-0.414225697352597
3722.24354655640138-0.243546556401381
3822.09508933545260-0.0950893354526038
3922.15947185005831-0.159471850058313
4022.16773426390431-0.167734263904311
4122.14763456764581-0.147634567645806
4222.20664745673253-0.206647456732526
4322.18264836064521-0.18264836064521
4422.18833338693191-0.188333386931908
4522.20985027215501-0.20985027215501
4622.26461801310448-0.264618013104481
4722.09922303646646-0.0992230364664581
4822.11160735889754-0.111607358897535
4921.997311636464710.00268836353528802
5021.906683562714290.0933164372857127
5122.04768969735781-0.0476896973578137
5221.909933514527970.0900664854720276
5321.732249392153960.267750607846042
5421.851982885798950.148017114201053
5521.861235549350680.138764450649317
5622.00281907155351-0.00281907155350926
5721.998312840537350.00168715946264738
5821.842004194212840.157995805787162
5921.905034349008310.0949656509916937
6021.928984500879050.0710154991209456
6121.884083755084250.115916244915746







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.984327436117280.03134512776543820.0156725638827191
190.9629848235358150.07403035292836950.0370151764641848
200.9783990408785880.04320191824282460.0216009591214123
210.9768926326883760.04621473462324890.0231073673116245
220.9601158952602750.079768209479450.039884104739725
230.9304438100665720.1391123798668570.0695561899334283
240.9040645647835220.1918708704329550.0959354352164775
250.899591218482890.2008175630342220.100408781517111
260.86141351346970.2771729730606010.138586486530301
270.9058360377431540.1883279245136910.0941639622568456
280.990410837040180.01917832591963880.00958916295981941
290.9943301037001910.01133979259961730.00566989629980865
300.9989922656724830.002015468655033330.00100773432751666
310.9990255131841090.001948973631782860.000974486815891428
320.9994656961729850.001068607654030780.000534303827015388
330.9999379686047240.0001240627905524246.20313952762122e-05
340.9999999999978034.3938113323499e-122.19690566617495e-12
3511.76776044251982e-1838.83880221259911e-184
3616.2491000182163e-1533.12455000910815e-153
3712.58579907074711e-1321.29289953537356e-132
3819.72098692463402e-1204.86049346231701e-120
3911.25376488372334e-1026.2688244186167e-103
4013.57791955418495e-1021.78895977709247e-102
4111.21122666211537e-786.05613331057687e-79
4214.07200404225642e-592.03600202112821e-59
4313.94586064374107e-441.97293032187053e-44

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.98432743611728 & 0.0313451277654382 & 0.0156725638827191 \tabularnewline
19 & 0.962984823535815 & 0.0740303529283695 & 0.0370151764641848 \tabularnewline
20 & 0.978399040878588 & 0.0432019182428246 & 0.0216009591214123 \tabularnewline
21 & 0.976892632688376 & 0.0462147346232489 & 0.0231073673116245 \tabularnewline
22 & 0.960115895260275 & 0.07976820947945 & 0.039884104739725 \tabularnewline
23 & 0.930443810066572 & 0.139112379866857 & 0.0695561899334283 \tabularnewline
24 & 0.904064564783522 & 0.191870870432955 & 0.0959354352164775 \tabularnewline
25 & 0.89959121848289 & 0.200817563034222 & 0.100408781517111 \tabularnewline
26 & 0.8614135134697 & 0.277172973060601 & 0.138586486530301 \tabularnewline
27 & 0.905836037743154 & 0.188327924513691 & 0.0941639622568456 \tabularnewline
28 & 0.99041083704018 & 0.0191783259196388 & 0.00958916295981941 \tabularnewline
29 & 0.994330103700191 & 0.0113397925996173 & 0.00566989629980865 \tabularnewline
30 & 0.998992265672483 & 0.00201546865503333 & 0.00100773432751666 \tabularnewline
31 & 0.999025513184109 & 0.00194897363178286 & 0.000974486815891428 \tabularnewline
32 & 0.999465696172985 & 0.00106860765403078 & 0.000534303827015388 \tabularnewline
33 & 0.999937968604724 & 0.000124062790552424 & 6.20313952762122e-05 \tabularnewline
34 & 0.999999999997803 & 4.3938113323499e-12 & 2.19690566617495e-12 \tabularnewline
35 & 1 & 1.76776044251982e-183 & 8.83880221259911e-184 \tabularnewline
36 & 1 & 6.2491000182163e-153 & 3.12455000910815e-153 \tabularnewline
37 & 1 & 2.58579907074711e-132 & 1.29289953537356e-132 \tabularnewline
38 & 1 & 9.72098692463402e-120 & 4.86049346231701e-120 \tabularnewline
39 & 1 & 1.25376488372334e-102 & 6.2688244186167e-103 \tabularnewline
40 & 1 & 3.57791955418495e-102 & 1.78895977709247e-102 \tabularnewline
41 & 1 & 1.21122666211537e-78 & 6.05613331057687e-79 \tabularnewline
42 & 1 & 4.07200404225642e-59 & 2.03600202112821e-59 \tabularnewline
43 & 1 & 3.94586064374107e-44 & 1.97293032187053e-44 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25752&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.98432743611728[/C][C]0.0313451277654382[/C][C]0.0156725638827191[/C][/ROW]
[ROW][C]19[/C][C]0.962984823535815[/C][C]0.0740303529283695[/C][C]0.0370151764641848[/C][/ROW]
[ROW][C]20[/C][C]0.978399040878588[/C][C]0.0432019182428246[/C][C]0.0216009591214123[/C][/ROW]
[ROW][C]21[/C][C]0.976892632688376[/C][C]0.0462147346232489[/C][C]0.0231073673116245[/C][/ROW]
[ROW][C]22[/C][C]0.960115895260275[/C][C]0.07976820947945[/C][C]0.039884104739725[/C][/ROW]
[ROW][C]23[/C][C]0.930443810066572[/C][C]0.139112379866857[/C][C]0.0695561899334283[/C][/ROW]
[ROW][C]24[/C][C]0.904064564783522[/C][C]0.191870870432955[/C][C]0.0959354352164775[/C][/ROW]
[ROW][C]25[/C][C]0.89959121848289[/C][C]0.200817563034222[/C][C]0.100408781517111[/C][/ROW]
[ROW][C]26[/C][C]0.8614135134697[/C][C]0.277172973060601[/C][C]0.138586486530301[/C][/ROW]
[ROW][C]27[/C][C]0.905836037743154[/C][C]0.188327924513691[/C][C]0.0941639622568456[/C][/ROW]
[ROW][C]28[/C][C]0.99041083704018[/C][C]0.0191783259196388[/C][C]0.00958916295981941[/C][/ROW]
[ROW][C]29[/C][C]0.994330103700191[/C][C]0.0113397925996173[/C][C]0.00566989629980865[/C][/ROW]
[ROW][C]30[/C][C]0.998992265672483[/C][C]0.00201546865503333[/C][C]0.00100773432751666[/C][/ROW]
[ROW][C]31[/C][C]0.999025513184109[/C][C]0.00194897363178286[/C][C]0.000974486815891428[/C][/ROW]
[ROW][C]32[/C][C]0.999465696172985[/C][C]0.00106860765403078[/C][C]0.000534303827015388[/C][/ROW]
[ROW][C]33[/C][C]0.999937968604724[/C][C]0.000124062790552424[/C][C]6.20313952762122e-05[/C][/ROW]
[ROW][C]34[/C][C]0.999999999997803[/C][C]4.3938113323499e-12[/C][C]2.19690566617495e-12[/C][/ROW]
[ROW][C]35[/C][C]1[/C][C]1.76776044251982e-183[/C][C]8.83880221259911e-184[/C][/ROW]
[ROW][C]36[/C][C]1[/C][C]6.2491000182163e-153[/C][C]3.12455000910815e-153[/C][/ROW]
[ROW][C]37[/C][C]1[/C][C]2.58579907074711e-132[/C][C]1.29289953537356e-132[/C][/ROW]
[ROW][C]38[/C][C]1[/C][C]9.72098692463402e-120[/C][C]4.86049346231701e-120[/C][/ROW]
[ROW][C]39[/C][C]1[/C][C]1.25376488372334e-102[/C][C]6.2688244186167e-103[/C][/ROW]
[ROW][C]40[/C][C]1[/C][C]3.57791955418495e-102[/C][C]1.78895977709247e-102[/C][/ROW]
[ROW][C]41[/C][C]1[/C][C]1.21122666211537e-78[/C][C]6.05613331057687e-79[/C][/ROW]
[ROW][C]42[/C][C]1[/C][C]4.07200404225642e-59[/C][C]2.03600202112821e-59[/C][/ROW]
[ROW][C]43[/C][C]1[/C][C]3.94586064374107e-44[/C][C]1.97293032187053e-44[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25752&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25752&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.984327436117280.03134512776543820.0156725638827191
190.9629848235358150.07403035292836950.0370151764641848
200.9783990408785880.04320191824282460.0216009591214123
210.9768926326883760.04621473462324890.0231073673116245
220.9601158952602750.079768209479450.039884104739725
230.9304438100665720.1391123798668570.0695561899334283
240.9040645647835220.1918708704329550.0959354352164775
250.899591218482890.2008175630342220.100408781517111
260.86141351346970.2771729730606010.138586486530301
270.9058360377431540.1883279245136910.0941639622568456
280.990410837040180.01917832591963880.00958916295981941
290.9943301037001910.01133979259961730.00566989629980865
300.9989922656724830.002015468655033330.00100773432751666
310.9990255131841090.001948973631782860.000974486815891428
320.9994656961729850.001068607654030780.000534303827015388
330.9999379686047240.0001240627905524246.20313952762122e-05
340.9999999999978034.3938113323499e-122.19690566617495e-12
3511.76776044251982e-1838.83880221259911e-184
3616.2491000182163e-1533.12455000910815e-153
3712.58579907074711e-1321.29289953537356e-132
3819.72098692463402e-1204.86049346231701e-120
3911.25376488372334e-1026.2688244186167e-103
4013.57791955418495e-1021.78895977709247e-102
4111.21122666211537e-786.05613331057687e-79
4214.07200404225642e-592.03600202112821e-59
4313.94586064374107e-441.97293032187053e-44







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level140.538461538461538NOK
5% type I error level190.73076923076923NOK
10% type I error level210.807692307692308NOK

\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 & 14 & 0.538461538461538 & NOK \tabularnewline
5% type I error level & 19 & 0.73076923076923 & NOK \tabularnewline
10% type I error level & 21 & 0.807692307692308 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25752&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]14[/C][C]0.538461538461538[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]19[/C][C]0.73076923076923[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]21[/C][C]0.807692307692308[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25752&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25752&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 level140.538461538461538NOK
5% type I error level190.73076923076923NOK
10% type I error level210.807692307692308NOK



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