Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationTue, 17 Nov 2009 11:34:34 -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/17/t12584829407fhp66ulqmsb7ne.htm/, Retrieved Thu, 02 May 2024 00:46:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57397, Retrieved Thu, 02 May 2024 00:46:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact226
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 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-17 18:34:34] [508aab72d879399b4187e5fcd8f7c773] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.9	1.4
8.8	1.2
8.3	1
7.5	1.7
7.2	2.4
7.4	2
8.8	2.1
9.3	2
9.3	1.8
8.7	2.7
8.2	2.3
8.3	1.9
8.5	2
8.6	2.3
8.5	2.8
8.2	2.4
8.1	2.3
7.9	2.7
8.6	2.7
8.7	2.9
8.7	3
8.5	2.2
8.4	2.3
8.5	2.8
8.7	2.8
8.7	2.8
8.6	2.2
8.5	2.6
8.3	2.8
8	2.5
8.2	2.4
8.1	2.3
8.1	1.9
8	1.7
7.9	2
7.9	2.1
8	1.7
8	1.8
7.9	1.8
8	1.8
7.7	1.3
7.2	1.3
7.5	1.3
7.3	1.2
7	1.4
7	2.2
7	2.9
7.2	3.1
7.3	3.5
7.1	3.6
6.8	4.4
6.4	4.1
6.1	5.1
6.5	5.8
7.7	5.9
7.9	5.4
7.5	5.5
6.9	4.8
6.6	3.2
6.9	2.7




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57397&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57397&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 8.42354151735435 -0.263310125934268X[t] + 0.456805569775769M1[t] + 0.432604177331831M2[t] + 0.238935189925258M3[t] -0.0400000000000012M4[t] -0.211539367257091M5[t] -0.270474557182349M6[t] + 0.494791645336336M7[t] + 0.563194430224223M8[t] + 0.412662025186853M9[t] + 0.112662025186853M10[t] -0.134733797481316M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  8.42354151735435 -0.263310125934268X[t] +  0.456805569775769M1[t] +  0.432604177331831M2[t] +  0.238935189925258M3[t] -0.0400000000000012M4[t] -0.211539367257091M5[t] -0.270474557182349M6[t] +  0.494791645336336M7[t] +  0.563194430224223M8[t] +  0.412662025186853M9[t] +  0.112662025186853M10[t] -0.134733797481316M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57397&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  8.42354151735435 -0.263310125934268X[t] +  0.456805569775769M1[t] +  0.432604177331831M2[t] +  0.238935189925258M3[t] -0.0400000000000012M4[t] -0.211539367257091M5[t] -0.270474557182349M6[t] +  0.494791645336336M7[t] +  0.563194430224223M8[t] +  0.412662025186853M9[t] +  0.112662025186853M10[t] -0.134733797481316M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57397&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57397&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] = + 8.42354151735435 -0.263310125934268X[t] + 0.456805569775769M1[t] + 0.432604177331831M2[t] + 0.238935189925258M3[t] -0.0400000000000012M4[t] -0.211539367257091M5[t] -0.270474557182349M6[t] + 0.494791645336336M7[t] + 0.563194430224223M8[t] + 0.412662025186853M9[t] + 0.112662025186853M10[t] -0.134733797481316M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.423541517354350.3609223.339100
X-0.2633101259342680.076988-3.42020.0013040.000652
M10.4568055697757690.4308011.06040.2943980.147199
M20.4326041773318310.4306281.00460.3202390.160119
M30.2389351899252580.4304490.55510.581470.290735
M4-0.04000000000000120.430405-0.09290.926350.463175
M5-0.2115393672570910.43087-0.4910.625740.31287
M6-0.2704745571823490.4312-0.62730.5335240.266762
M70.4947916453363360.4312961.14720.2570970.128549
M80.5631944302242230.4308011.30730.1974640.098732
M90.4126620251868530.430680.95820.3428830.171442
M100.1126620251868530.430680.26160.794780.39739
M11-0.1347337974813160.430407-0.3130.7556370.377818

\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) & 8.42354151735435 & 0.36092 & 23.3391 & 0 & 0 \tabularnewline
X & -0.263310125934268 & 0.076988 & -3.4202 & 0.001304 & 0.000652 \tabularnewline
M1 & 0.456805569775769 & 0.430801 & 1.0604 & 0.294398 & 0.147199 \tabularnewline
M2 & 0.432604177331831 & 0.430628 & 1.0046 & 0.320239 & 0.160119 \tabularnewline
M3 & 0.238935189925258 & 0.430449 & 0.5551 & 0.58147 & 0.290735 \tabularnewline
M4 & -0.0400000000000012 & 0.430405 & -0.0929 & 0.92635 & 0.463175 \tabularnewline
M5 & -0.211539367257091 & 0.43087 & -0.491 & 0.62574 & 0.31287 \tabularnewline
M6 & -0.270474557182349 & 0.4312 & -0.6273 & 0.533524 & 0.266762 \tabularnewline
M7 & 0.494791645336336 & 0.431296 & 1.1472 & 0.257097 & 0.128549 \tabularnewline
M8 & 0.563194430224223 & 0.430801 & 1.3073 & 0.197464 & 0.098732 \tabularnewline
M9 & 0.412662025186853 & 0.43068 & 0.9582 & 0.342883 & 0.171442 \tabularnewline
M10 & 0.112662025186853 & 0.43068 & 0.2616 & 0.79478 & 0.39739 \tabularnewline
M11 & -0.134733797481316 & 0.430407 & -0.313 & 0.755637 & 0.377818 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57397&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]8.42354151735435[/C][C]0.36092[/C][C]23.3391[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.263310125934268[/C][C]0.076988[/C][C]-3.4202[/C][C]0.001304[/C][C]0.000652[/C][/ROW]
[ROW][C]M1[/C][C]0.456805569775769[/C][C]0.430801[/C][C]1.0604[/C][C]0.294398[/C][C]0.147199[/C][/ROW]
[ROW][C]M2[/C][C]0.432604177331831[/C][C]0.430628[/C][C]1.0046[/C][C]0.320239[/C][C]0.160119[/C][/ROW]
[ROW][C]M3[/C][C]0.238935189925258[/C][C]0.430449[/C][C]0.5551[/C][C]0.58147[/C][C]0.290735[/C][/ROW]
[ROW][C]M4[/C][C]-0.0400000000000012[/C][C]0.430405[/C][C]-0.0929[/C][C]0.92635[/C][C]0.463175[/C][/ROW]
[ROW][C]M5[/C][C]-0.211539367257091[/C][C]0.43087[/C][C]-0.491[/C][C]0.62574[/C][C]0.31287[/C][/ROW]
[ROW][C]M6[/C][C]-0.270474557182349[/C][C]0.4312[/C][C]-0.6273[/C][C]0.533524[/C][C]0.266762[/C][/ROW]
[ROW][C]M7[/C][C]0.494791645336336[/C][C]0.431296[/C][C]1.1472[/C][C]0.257097[/C][C]0.128549[/C][/ROW]
[ROW][C]M8[/C][C]0.563194430224223[/C][C]0.430801[/C][C]1.3073[/C][C]0.197464[/C][C]0.098732[/C][/ROW]
[ROW][C]M9[/C][C]0.412662025186853[/C][C]0.43068[/C][C]0.9582[/C][C]0.342883[/C][C]0.171442[/C][/ROW]
[ROW][C]M10[/C][C]0.112662025186853[/C][C]0.43068[/C][C]0.2616[/C][C]0.79478[/C][C]0.39739[/C][/ROW]
[ROW][C]M11[/C][C]-0.134733797481316[/C][C]0.430407[/C][C]-0.313[/C][C]0.755637[/C][C]0.377818[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57397&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57397&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)8.423541517354350.3609223.339100
X-0.2633101259342680.076988-3.42020.0013040.000652
M10.4568055697757690.4308011.06040.2943980.147199
M20.4326041773318310.4306281.00460.3202390.160119
M30.2389351899252580.4304490.55510.581470.290735
M4-0.04000000000000120.430405-0.09290.926350.463175
M5-0.2115393672570910.43087-0.4910.625740.31287
M6-0.2704745571823490.4312-0.62730.5335240.266762
M70.4947916453363360.4312961.14720.2570970.128549
M80.5631944302242230.4308011.30730.1974640.098732
M90.4126620251868530.430680.95820.3428830.171442
M100.1126620251868530.430680.26160.794780.39739
M11-0.1347337974813160.430407-0.3130.7556370.377818







Multiple Linear Regression - Regression Statistics
Multiple R0.576416949296871
R-squared0.332256499436712
Adjusted R-squared0.161768797165234
F-TEST (value)1.94885903798293
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.0520596025542661
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.68052947892171
Sum Squared Residuals21.7666574690283

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.576416949296871 \tabularnewline
R-squared & 0.332256499436712 \tabularnewline
Adjusted R-squared & 0.161768797165234 \tabularnewline
F-TEST (value) & 1.94885903798293 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.0520596025542661 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.68052947892171 \tabularnewline
Sum Squared Residuals & 21.7666574690283 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57397&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.576416949296871[/C][/ROW]
[ROW][C]R-squared[/C][C]0.332256499436712[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.161768797165234[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.94885903798293[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.0520596025542661[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.68052947892171[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]21.7666574690283[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57397&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57397&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.576416949296871
R-squared0.332256499436712
Adjusted R-squared0.161768797165234
F-TEST (value)1.94885903798293
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.0520596025542661
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.68052947892171
Sum Squared Residuals21.7666574690283







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.98.511712910822180.388287089177822
28.88.540173543565070.259826456434935
38.38.39916658134535-0.0991665813453451
47.57.9359143032661-0.4359143032661
57.27.58005784785502-0.380057847855022
67.47.62644670830347-0.226446708303470
78.88.365381898228730.434618101771272
89.38.460115695710040.839884304289957
99.38.362245315859530.937754684140474
108.77.825266202518680.874733797481315
118.27.683194430224220.516805569775775
128.37.923252278079250.376747721920754
138.58.353726835261590.14627316473841
148.68.250532405037370.349467594962629
158.57.925208354663660.574791645336336
168.27.751597215112110.448402784887887
178.17.606388860448450.49361113955155
187.97.442129620149480.457870379850517
198.68.207395822668170.392604177331831
208.78.22313658236920.476863417630797
218.78.04627316473840.653726835261594
228.57.956921265485820.543078734514181
238.47.683194430224220.716805569775776
248.57.68627316473840.813726835261594
258.78.143078734514170.556921265485824
268.78.118877342070240.581122657929763
278.68.083194430224220.516805569775775
288.57.698935189925260.801064810074742
298.37.474733797481320.825266202518686
3087.494791645336340.505208354663663
318.28.28638886044845-0.0863888604484498
328.18.38112265792976-0.281122657929764
338.18.3359143032661-0.235914303266100
3488.08857632845295-0.0885763284529536
357.97.76218746800450.137812531995496
367.97.87059025289240.0294097471076069
3788.43271987304187-0.432719873041870
3888.3821874680045-0.382187468004505
397.98.18851848059793-0.288518480597932
4087.909583290672670.090416709327327
417.77.86969898638272-0.169698986382717
427.27.81076379645746-0.610763796457458
437.58.57602999897614-1.07602999897614
447.38.67076379645746-1.37076379645746
4578.46756936623323-1.46756936623323
4677.95692126548582-0.95692126548582
4777.52520835466366-0.525208354663664
487.27.60728012695813-0.407280126958125
497.37.95876164636019-0.658761646360188
507.17.90822924132282-0.808229241322822
516.87.50391215316883-0.703912153168835
526.47.30397000102386-0.903970001023856
536.16.8691205078325-0.769120507832498
546.56.62586822975325-0.125868229753252
557.77.364803419678510.33519658032149
567.97.564861267533530.335138732466469
577.57.387997849902730.112002150097266
586.97.27231493805672-0.372314938056722
596.67.44621531688338-0.846215316883383
606.97.71260417733183-0.812604177331832

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.9 & 8.51171291082218 & 0.388287089177822 \tabularnewline
2 & 8.8 & 8.54017354356507 & 0.259826456434935 \tabularnewline
3 & 8.3 & 8.39916658134535 & -0.0991665813453451 \tabularnewline
4 & 7.5 & 7.9359143032661 & -0.4359143032661 \tabularnewline
5 & 7.2 & 7.58005784785502 & -0.380057847855022 \tabularnewline
6 & 7.4 & 7.62644670830347 & -0.226446708303470 \tabularnewline
7 & 8.8 & 8.36538189822873 & 0.434618101771272 \tabularnewline
8 & 9.3 & 8.46011569571004 & 0.839884304289957 \tabularnewline
9 & 9.3 & 8.36224531585953 & 0.937754684140474 \tabularnewline
10 & 8.7 & 7.82526620251868 & 0.874733797481315 \tabularnewline
11 & 8.2 & 7.68319443022422 & 0.516805569775775 \tabularnewline
12 & 8.3 & 7.92325227807925 & 0.376747721920754 \tabularnewline
13 & 8.5 & 8.35372683526159 & 0.14627316473841 \tabularnewline
14 & 8.6 & 8.25053240503737 & 0.349467594962629 \tabularnewline
15 & 8.5 & 7.92520835466366 & 0.574791645336336 \tabularnewline
16 & 8.2 & 7.75159721511211 & 0.448402784887887 \tabularnewline
17 & 8.1 & 7.60638886044845 & 0.49361113955155 \tabularnewline
18 & 7.9 & 7.44212962014948 & 0.457870379850517 \tabularnewline
19 & 8.6 & 8.20739582266817 & 0.392604177331831 \tabularnewline
20 & 8.7 & 8.2231365823692 & 0.476863417630797 \tabularnewline
21 & 8.7 & 8.0462731647384 & 0.653726835261594 \tabularnewline
22 & 8.5 & 7.95692126548582 & 0.543078734514181 \tabularnewline
23 & 8.4 & 7.68319443022422 & 0.716805569775776 \tabularnewline
24 & 8.5 & 7.6862731647384 & 0.813726835261594 \tabularnewline
25 & 8.7 & 8.14307873451417 & 0.556921265485824 \tabularnewline
26 & 8.7 & 8.11887734207024 & 0.581122657929763 \tabularnewline
27 & 8.6 & 8.08319443022422 & 0.516805569775775 \tabularnewline
28 & 8.5 & 7.69893518992526 & 0.801064810074742 \tabularnewline
29 & 8.3 & 7.47473379748132 & 0.825266202518686 \tabularnewline
30 & 8 & 7.49479164533634 & 0.505208354663663 \tabularnewline
31 & 8.2 & 8.28638886044845 & -0.0863888604484498 \tabularnewline
32 & 8.1 & 8.38112265792976 & -0.281122657929764 \tabularnewline
33 & 8.1 & 8.3359143032661 & -0.235914303266100 \tabularnewline
34 & 8 & 8.08857632845295 & -0.0885763284529536 \tabularnewline
35 & 7.9 & 7.7621874680045 & 0.137812531995496 \tabularnewline
36 & 7.9 & 7.8705902528924 & 0.0294097471076069 \tabularnewline
37 & 8 & 8.43271987304187 & -0.432719873041870 \tabularnewline
38 & 8 & 8.3821874680045 & -0.382187468004505 \tabularnewline
39 & 7.9 & 8.18851848059793 & -0.288518480597932 \tabularnewline
40 & 8 & 7.90958329067267 & 0.090416709327327 \tabularnewline
41 & 7.7 & 7.86969898638272 & -0.169698986382717 \tabularnewline
42 & 7.2 & 7.81076379645746 & -0.610763796457458 \tabularnewline
43 & 7.5 & 8.57602999897614 & -1.07602999897614 \tabularnewline
44 & 7.3 & 8.67076379645746 & -1.37076379645746 \tabularnewline
45 & 7 & 8.46756936623323 & -1.46756936623323 \tabularnewline
46 & 7 & 7.95692126548582 & -0.95692126548582 \tabularnewline
47 & 7 & 7.52520835466366 & -0.525208354663664 \tabularnewline
48 & 7.2 & 7.60728012695813 & -0.407280126958125 \tabularnewline
49 & 7.3 & 7.95876164636019 & -0.658761646360188 \tabularnewline
50 & 7.1 & 7.90822924132282 & -0.808229241322822 \tabularnewline
51 & 6.8 & 7.50391215316883 & -0.703912153168835 \tabularnewline
52 & 6.4 & 7.30397000102386 & -0.903970001023856 \tabularnewline
53 & 6.1 & 6.8691205078325 & -0.769120507832498 \tabularnewline
54 & 6.5 & 6.62586822975325 & -0.125868229753252 \tabularnewline
55 & 7.7 & 7.36480341967851 & 0.33519658032149 \tabularnewline
56 & 7.9 & 7.56486126753353 & 0.335138732466469 \tabularnewline
57 & 7.5 & 7.38799784990273 & 0.112002150097266 \tabularnewline
58 & 6.9 & 7.27231493805672 & -0.372314938056722 \tabularnewline
59 & 6.6 & 7.44621531688338 & -0.846215316883383 \tabularnewline
60 & 6.9 & 7.71260417733183 & -0.812604177331832 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57397&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]8.9[/C][C]8.51171291082218[/C][C]0.388287089177822[/C][/ROW]
[ROW][C]2[/C][C]8.8[/C][C]8.54017354356507[/C][C]0.259826456434935[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]8.39916658134535[/C][C]-0.0991665813453451[/C][/ROW]
[ROW][C]4[/C][C]7.5[/C][C]7.9359143032661[/C][C]-0.4359143032661[/C][/ROW]
[ROW][C]5[/C][C]7.2[/C][C]7.58005784785502[/C][C]-0.380057847855022[/C][/ROW]
[ROW][C]6[/C][C]7.4[/C][C]7.62644670830347[/C][C]-0.226446708303470[/C][/ROW]
[ROW][C]7[/C][C]8.8[/C][C]8.36538189822873[/C][C]0.434618101771272[/C][/ROW]
[ROW][C]8[/C][C]9.3[/C][C]8.46011569571004[/C][C]0.839884304289957[/C][/ROW]
[ROW][C]9[/C][C]9.3[/C][C]8.36224531585953[/C][C]0.937754684140474[/C][/ROW]
[ROW][C]10[/C][C]8.7[/C][C]7.82526620251868[/C][C]0.874733797481315[/C][/ROW]
[ROW][C]11[/C][C]8.2[/C][C]7.68319443022422[/C][C]0.516805569775775[/C][/ROW]
[ROW][C]12[/C][C]8.3[/C][C]7.92325227807925[/C][C]0.376747721920754[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]8.35372683526159[/C][C]0.14627316473841[/C][/ROW]
[ROW][C]14[/C][C]8.6[/C][C]8.25053240503737[/C][C]0.349467594962629[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]7.92520835466366[/C][C]0.574791645336336[/C][/ROW]
[ROW][C]16[/C][C]8.2[/C][C]7.75159721511211[/C][C]0.448402784887887[/C][/ROW]
[ROW][C]17[/C][C]8.1[/C][C]7.60638886044845[/C][C]0.49361113955155[/C][/ROW]
[ROW][C]18[/C][C]7.9[/C][C]7.44212962014948[/C][C]0.457870379850517[/C][/ROW]
[ROW][C]19[/C][C]8.6[/C][C]8.20739582266817[/C][C]0.392604177331831[/C][/ROW]
[ROW][C]20[/C][C]8.7[/C][C]8.2231365823692[/C][C]0.476863417630797[/C][/ROW]
[ROW][C]21[/C][C]8.7[/C][C]8.0462731647384[/C][C]0.653726835261594[/C][/ROW]
[ROW][C]22[/C][C]8.5[/C][C]7.95692126548582[/C][C]0.543078734514181[/C][/ROW]
[ROW][C]23[/C][C]8.4[/C][C]7.68319443022422[/C][C]0.716805569775776[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]7.6862731647384[/C][C]0.813726835261594[/C][/ROW]
[ROW][C]25[/C][C]8.7[/C][C]8.14307873451417[/C][C]0.556921265485824[/C][/ROW]
[ROW][C]26[/C][C]8.7[/C][C]8.11887734207024[/C][C]0.581122657929763[/C][/ROW]
[ROW][C]27[/C][C]8.6[/C][C]8.08319443022422[/C][C]0.516805569775775[/C][/ROW]
[ROW][C]28[/C][C]8.5[/C][C]7.69893518992526[/C][C]0.801064810074742[/C][/ROW]
[ROW][C]29[/C][C]8.3[/C][C]7.47473379748132[/C][C]0.825266202518686[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.49479164533634[/C][C]0.505208354663663[/C][/ROW]
[ROW][C]31[/C][C]8.2[/C][C]8.28638886044845[/C][C]-0.0863888604484498[/C][/ROW]
[ROW][C]32[/C][C]8.1[/C][C]8.38112265792976[/C][C]-0.281122657929764[/C][/ROW]
[ROW][C]33[/C][C]8.1[/C][C]8.3359143032661[/C][C]-0.235914303266100[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]8.08857632845295[/C][C]-0.0885763284529536[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.7621874680045[/C][C]0.137812531995496[/C][/ROW]
[ROW][C]36[/C][C]7.9[/C][C]7.8705902528924[/C][C]0.0294097471076069[/C][/ROW]
[ROW][C]37[/C][C]8[/C][C]8.43271987304187[/C][C]-0.432719873041870[/C][/ROW]
[ROW][C]38[/C][C]8[/C][C]8.3821874680045[/C][C]-0.382187468004505[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]8.18851848059793[/C][C]-0.288518480597932[/C][/ROW]
[ROW][C]40[/C][C]8[/C][C]7.90958329067267[/C][C]0.090416709327327[/C][/ROW]
[ROW][C]41[/C][C]7.7[/C][C]7.86969898638272[/C][C]-0.169698986382717[/C][/ROW]
[ROW][C]42[/C][C]7.2[/C][C]7.81076379645746[/C][C]-0.610763796457458[/C][/ROW]
[ROW][C]43[/C][C]7.5[/C][C]8.57602999897614[/C][C]-1.07602999897614[/C][/ROW]
[ROW][C]44[/C][C]7.3[/C][C]8.67076379645746[/C][C]-1.37076379645746[/C][/ROW]
[ROW][C]45[/C][C]7[/C][C]8.46756936623323[/C][C]-1.46756936623323[/C][/ROW]
[ROW][C]46[/C][C]7[/C][C]7.95692126548582[/C][C]-0.95692126548582[/C][/ROW]
[ROW][C]47[/C][C]7[/C][C]7.52520835466366[/C][C]-0.525208354663664[/C][/ROW]
[ROW][C]48[/C][C]7.2[/C][C]7.60728012695813[/C][C]-0.407280126958125[/C][/ROW]
[ROW][C]49[/C][C]7.3[/C][C]7.95876164636019[/C][C]-0.658761646360188[/C][/ROW]
[ROW][C]50[/C][C]7.1[/C][C]7.90822924132282[/C][C]-0.808229241322822[/C][/ROW]
[ROW][C]51[/C][C]6.8[/C][C]7.50391215316883[/C][C]-0.703912153168835[/C][/ROW]
[ROW][C]52[/C][C]6.4[/C][C]7.30397000102386[/C][C]-0.903970001023856[/C][/ROW]
[ROW][C]53[/C][C]6.1[/C][C]6.8691205078325[/C][C]-0.769120507832498[/C][/ROW]
[ROW][C]54[/C][C]6.5[/C][C]6.62586822975325[/C][C]-0.125868229753252[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.36480341967851[/C][C]0.33519658032149[/C][/ROW]
[ROW][C]56[/C][C]7.9[/C][C]7.56486126753353[/C][C]0.335138732466469[/C][/ROW]
[ROW][C]57[/C][C]7.5[/C][C]7.38799784990273[/C][C]0.112002150097266[/C][/ROW]
[ROW][C]58[/C][C]6.9[/C][C]7.27231493805672[/C][C]-0.372314938056722[/C][/ROW]
[ROW][C]59[/C][C]6.6[/C][C]7.44621531688338[/C][C]-0.846215316883383[/C][/ROW]
[ROW][C]60[/C][C]6.9[/C][C]7.71260417733183[/C][C]-0.812604177331832[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57397&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57397&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
18.98.511712910822180.388287089177822
28.88.540173543565070.259826456434935
38.38.39916658134535-0.0991665813453451
47.57.9359143032661-0.4359143032661
57.27.58005784785502-0.380057847855022
67.47.62644670830347-0.226446708303470
78.88.365381898228730.434618101771272
89.38.460115695710040.839884304289957
99.38.362245315859530.937754684140474
108.77.825266202518680.874733797481315
118.27.683194430224220.516805569775775
128.37.923252278079250.376747721920754
138.58.353726835261590.14627316473841
148.68.250532405037370.349467594962629
158.57.925208354663660.574791645336336
168.27.751597215112110.448402784887887
178.17.606388860448450.49361113955155
187.97.442129620149480.457870379850517
198.68.207395822668170.392604177331831
208.78.22313658236920.476863417630797
218.78.04627316473840.653726835261594
228.57.956921265485820.543078734514181
238.47.683194430224220.716805569775776
248.57.68627316473840.813726835261594
258.78.143078734514170.556921265485824
268.78.118877342070240.581122657929763
278.68.083194430224220.516805569775775
288.57.698935189925260.801064810074742
298.37.474733797481320.825266202518686
3087.494791645336340.505208354663663
318.28.28638886044845-0.0863888604484498
328.18.38112265792976-0.281122657929764
338.18.3359143032661-0.235914303266100
3488.08857632845295-0.0885763284529536
357.97.76218746800450.137812531995496
367.97.87059025289240.0294097471076069
3788.43271987304187-0.432719873041870
3888.3821874680045-0.382187468004505
397.98.18851848059793-0.288518480597932
4087.909583290672670.090416709327327
417.77.86969898638272-0.169698986382717
427.27.81076379645746-0.610763796457458
437.58.57602999897614-1.07602999897614
447.38.67076379645746-1.37076379645746
4578.46756936623323-1.46756936623323
4677.95692126548582-0.95692126548582
4777.52520835466366-0.525208354663664
487.27.60728012695813-0.407280126958125
497.37.95876164636019-0.658761646360188
507.17.90822924132282-0.808229241322822
516.87.50391215316883-0.703912153168835
526.47.30397000102386-0.903970001023856
536.16.8691205078325-0.769120507832498
546.56.62586822975325-0.125868229753252
557.77.364803419678510.33519658032149
567.97.564861267533530.335138732466469
577.57.387997849902730.112002150097266
586.97.27231493805672-0.372314938056722
596.67.44621531688338-0.846215316883383
606.97.71260417733183-0.812604177331832







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1196862009029950.2393724018059900.880313799097005
170.1617408773648430.3234817547296860.838259122635157
180.09975311271597730.1995062254319550.900246887284023
190.05323670951318980.1064734190263800.94676329048681
200.04557061175585290.09114122351170580.954429388244147
210.03794770846366090.07589541692732180.96205229153634
220.02361324223496850.0472264844699370.976386757765032
230.01537000710234330.03074001420468670.984629992897657
240.01116576878157010.02233153756314020.98883423121843
250.006982389342551740.01396477868510350.993017610657448
260.00479976399289440.00959952798578880.995200236007106
270.003607191798590290.007214383597180580.99639280820141
280.008089445767624980.01617889153525000.991910554232375
290.01918970083473160.03837940166946330.980810299165268
300.02018349802509510.04036699605019010.979816501974905
310.01738344809458550.03476689618917110.982616551905414
320.02851440814249460.05702881628498920.971485591857505
330.04252796163396990.08505592326793980.95747203836603
340.04519029982447860.09038059964895720.954809700175521
350.05356587613933340.1071317522786670.946434123860667
360.0558981576879410.1117963153758820.94410184231206
370.05275301829294850.1055060365858970.947246981707051
380.05621309356495040.1124261871299010.94378690643505
390.06278071889447480.1255614377889500.937219281105525
400.1620690362725370.3241380725450750.837930963727463
410.6432263697190470.7135472605619050.356773630280953
420.9060064469834740.1879871060330530.0939935530165265
430.8613063521191760.2773872957616480.138693647880824
440.79522759271590.4095448145682010.204772407284100

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.119686200902995 & 0.239372401805990 & 0.880313799097005 \tabularnewline
17 & 0.161740877364843 & 0.323481754729686 & 0.838259122635157 \tabularnewline
18 & 0.0997531127159773 & 0.199506225431955 & 0.900246887284023 \tabularnewline
19 & 0.0532367095131898 & 0.106473419026380 & 0.94676329048681 \tabularnewline
20 & 0.0455706117558529 & 0.0911412235117058 & 0.954429388244147 \tabularnewline
21 & 0.0379477084636609 & 0.0758954169273218 & 0.96205229153634 \tabularnewline
22 & 0.0236132422349685 & 0.047226484469937 & 0.976386757765032 \tabularnewline
23 & 0.0153700071023433 & 0.0307400142046867 & 0.984629992897657 \tabularnewline
24 & 0.0111657687815701 & 0.0223315375631402 & 0.98883423121843 \tabularnewline
25 & 0.00698238934255174 & 0.0139647786851035 & 0.993017610657448 \tabularnewline
26 & 0.0047997639928944 & 0.0095995279857888 & 0.995200236007106 \tabularnewline
27 & 0.00360719179859029 & 0.00721438359718058 & 0.99639280820141 \tabularnewline
28 & 0.00808944576762498 & 0.0161788915352500 & 0.991910554232375 \tabularnewline
29 & 0.0191897008347316 & 0.0383794016694633 & 0.980810299165268 \tabularnewline
30 & 0.0201834980250951 & 0.0403669960501901 & 0.979816501974905 \tabularnewline
31 & 0.0173834480945855 & 0.0347668961891711 & 0.982616551905414 \tabularnewline
32 & 0.0285144081424946 & 0.0570288162849892 & 0.971485591857505 \tabularnewline
33 & 0.0425279616339699 & 0.0850559232679398 & 0.95747203836603 \tabularnewline
34 & 0.0451902998244786 & 0.0903805996489572 & 0.954809700175521 \tabularnewline
35 & 0.0535658761393334 & 0.107131752278667 & 0.946434123860667 \tabularnewline
36 & 0.055898157687941 & 0.111796315375882 & 0.94410184231206 \tabularnewline
37 & 0.0527530182929485 & 0.105506036585897 & 0.947246981707051 \tabularnewline
38 & 0.0562130935649504 & 0.112426187129901 & 0.94378690643505 \tabularnewline
39 & 0.0627807188944748 & 0.125561437788950 & 0.937219281105525 \tabularnewline
40 & 0.162069036272537 & 0.324138072545075 & 0.837930963727463 \tabularnewline
41 & 0.643226369719047 & 0.713547260561905 & 0.356773630280953 \tabularnewline
42 & 0.906006446983474 & 0.187987106033053 & 0.0939935530165265 \tabularnewline
43 & 0.861306352119176 & 0.277387295761648 & 0.138693647880824 \tabularnewline
44 & 0.7952275927159 & 0.409544814568201 & 0.204772407284100 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57397&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]16[/C][C]0.119686200902995[/C][C]0.239372401805990[/C][C]0.880313799097005[/C][/ROW]
[ROW][C]17[/C][C]0.161740877364843[/C][C]0.323481754729686[/C][C]0.838259122635157[/C][/ROW]
[ROW][C]18[/C][C]0.0997531127159773[/C][C]0.199506225431955[/C][C]0.900246887284023[/C][/ROW]
[ROW][C]19[/C][C]0.0532367095131898[/C][C]0.106473419026380[/C][C]0.94676329048681[/C][/ROW]
[ROW][C]20[/C][C]0.0455706117558529[/C][C]0.0911412235117058[/C][C]0.954429388244147[/C][/ROW]
[ROW][C]21[/C][C]0.0379477084636609[/C][C]0.0758954169273218[/C][C]0.96205229153634[/C][/ROW]
[ROW][C]22[/C][C]0.0236132422349685[/C][C]0.047226484469937[/C][C]0.976386757765032[/C][/ROW]
[ROW][C]23[/C][C]0.0153700071023433[/C][C]0.0307400142046867[/C][C]0.984629992897657[/C][/ROW]
[ROW][C]24[/C][C]0.0111657687815701[/C][C]0.0223315375631402[/C][C]0.98883423121843[/C][/ROW]
[ROW][C]25[/C][C]0.00698238934255174[/C][C]0.0139647786851035[/C][C]0.993017610657448[/C][/ROW]
[ROW][C]26[/C][C]0.0047997639928944[/C][C]0.0095995279857888[/C][C]0.995200236007106[/C][/ROW]
[ROW][C]27[/C][C]0.00360719179859029[/C][C]0.00721438359718058[/C][C]0.99639280820141[/C][/ROW]
[ROW][C]28[/C][C]0.00808944576762498[/C][C]0.0161788915352500[/C][C]0.991910554232375[/C][/ROW]
[ROW][C]29[/C][C]0.0191897008347316[/C][C]0.0383794016694633[/C][C]0.980810299165268[/C][/ROW]
[ROW][C]30[/C][C]0.0201834980250951[/C][C]0.0403669960501901[/C][C]0.979816501974905[/C][/ROW]
[ROW][C]31[/C][C]0.0173834480945855[/C][C]0.0347668961891711[/C][C]0.982616551905414[/C][/ROW]
[ROW][C]32[/C][C]0.0285144081424946[/C][C]0.0570288162849892[/C][C]0.971485591857505[/C][/ROW]
[ROW][C]33[/C][C]0.0425279616339699[/C][C]0.0850559232679398[/C][C]0.95747203836603[/C][/ROW]
[ROW][C]34[/C][C]0.0451902998244786[/C][C]0.0903805996489572[/C][C]0.954809700175521[/C][/ROW]
[ROW][C]35[/C][C]0.0535658761393334[/C][C]0.107131752278667[/C][C]0.946434123860667[/C][/ROW]
[ROW][C]36[/C][C]0.055898157687941[/C][C]0.111796315375882[/C][C]0.94410184231206[/C][/ROW]
[ROW][C]37[/C][C]0.0527530182929485[/C][C]0.105506036585897[/C][C]0.947246981707051[/C][/ROW]
[ROW][C]38[/C][C]0.0562130935649504[/C][C]0.112426187129901[/C][C]0.94378690643505[/C][/ROW]
[ROW][C]39[/C][C]0.0627807188944748[/C][C]0.125561437788950[/C][C]0.937219281105525[/C][/ROW]
[ROW][C]40[/C][C]0.162069036272537[/C][C]0.324138072545075[/C][C]0.837930963727463[/C][/ROW]
[ROW][C]41[/C][C]0.643226369719047[/C][C]0.713547260561905[/C][C]0.356773630280953[/C][/ROW]
[ROW][C]42[/C][C]0.906006446983474[/C][C]0.187987106033053[/C][C]0.0939935530165265[/C][/ROW]
[ROW][C]43[/C][C]0.861306352119176[/C][C]0.277387295761648[/C][C]0.138693647880824[/C][/ROW]
[ROW][C]44[/C][C]0.7952275927159[/C][C]0.409544814568201[/C][C]0.204772407284100[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57397&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57397&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
160.1196862009029950.2393724018059900.880313799097005
170.1617408773648430.3234817547296860.838259122635157
180.09975311271597730.1995062254319550.900246887284023
190.05323670951318980.1064734190263800.94676329048681
200.04557061175585290.09114122351170580.954429388244147
210.03794770846366090.07589541692732180.96205229153634
220.02361324223496850.0472264844699370.976386757765032
230.01537000710234330.03074001420468670.984629992897657
240.01116576878157010.02233153756314020.98883423121843
250.006982389342551740.01396477868510350.993017610657448
260.00479976399289440.00959952798578880.995200236007106
270.003607191798590290.007214383597180580.99639280820141
280.008089445767624980.01617889153525000.991910554232375
290.01918970083473160.03837940166946330.980810299165268
300.02018349802509510.04036699605019010.979816501974905
310.01738344809458550.03476689618917110.982616551905414
320.02851440814249460.05702881628498920.971485591857505
330.04252796163396990.08505592326793980.95747203836603
340.04519029982447860.09038059964895720.954809700175521
350.05356587613933340.1071317522786670.946434123860667
360.0558981576879410.1117963153758820.94410184231206
370.05275301829294850.1055060365858970.947246981707051
380.05621309356495040.1124261871299010.94378690643505
390.06278071889447480.1255614377889500.937219281105525
400.1620690362725370.3241380725450750.837930963727463
410.6432263697190470.7135472605619050.356773630280953
420.9060064469834740.1879871060330530.0939935530165265
430.8613063521191760.2773872957616480.138693647880824
440.79522759271590.4095448145682010.204772407284100







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0689655172413793NOK
5% type I error level100.344827586206897NOK
10% type I error level150.517241379310345NOK

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

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

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0689655172413793NOK
5% type I error level100.344827586206897NOK
10% type I error level150.517241379310345NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}