Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 06:30:30 -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/20/t1258723931jgv5nrkxfvkbz9i.htm/, Retrieved Thu, 25 Apr 2024 05:19:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58146, Retrieved Thu, 25 Apr 2024 05:19:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact128
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:14:11] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [workshop 7,5] [2009-11-20 13:30:30] [2210215221105fab636491031ce54076] [Current]
Feedback Forum

Post a new message
Dataseries X:
8,6	10	8,9	8,9
8,3	9,2	8,6	8,9
8,3	9,2	8,3	8,6
8,3	9,5	8,3	8,3
8,4	9,6	8,3	8,3
8,5	9,5	8,4	8,3
8,4	9,1	8,5	8,4
8,6	8,9	8,4	8,5
8,5	9	8,6	8,4
8,5	10,1	8,5	8,6
8,4	10,3	8,5	8,5
8,5	10,2	8,4	8,5
8,5	9,6	8,5	8,4
8,5	9,2	8,5	8,5
8,5	9,3	8,5	8,5
8,5	9,4	8,5	8,5
8,5	9,4	8,5	8,5
8,5	9,2	8,5	8,5
8,5	9	8,5	8,5
8,6	9	8,5	8,5
8,4	9	8,6	8,5
8,1	9,8	8,4	8,6
8,0	10	8,1	8,4
8,0	9,8	8,0	8,1
8,0	9,3	8,0	8,0
8,0	9	8,0	8,0
7,9	9	8,0	8,0
7,8	9,1	7,9	8,0
7,8	9,1	7,8	7,9
7,9	9,1	7,8	7,8
8,1	9,2	7,9	7,8
8,0	8,8	8,1	7,9
7,6	8,3	8,0	8,1
7,3	8,4	7,6	8,0
7,0	8,1	7,3	7,6
6,8	7,7	7,0	7,3
7,0	7,9	6,8	7,0
7,1	7,9	7,0	6,8
7,2	8	7,1	7,0
7,1	7,9	7,2	7,1
6,9	7,6	7,1	7,2
6,7	7,1	6,9	7,1
6,7	6,8	6,7	6,9
6,6	6,5	6,7	6,7
6,9	6,9	6,6	6,7
7,3	8,2	6,9	6,6
7,5	8,7	7,3	6,9
7,3	8,3	7,5	7,3
7,1	7,9	7,3	7,5
6,9	7,5	7,1	7,3
7,1	7,8	6,9	7,1
7,5	8,3	7,1	6,9
7,7	8,4	7,5	7,1
7,8	8,2	7,7	7,5
7,8	7,7	7,8	7,7
7,7	7,2	7,8	7,8
7,8	7,3	7,7	7,8
7,8	8,1	7,8	7,7
7,9	8,5	7,8	7,8




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 0.201644028496708 + 0.211282850119338X[t] + 1.07442780328295Y1[t] -0.360757733933598Y2[t] + 0.0825009869871107M1[t] + 0.123583145368402M2[t] + 0.204738091758070M3[t] + 0.132843919065565M4[t] + 0.12649724446896M5[t] + 0.179670038959494M6[t] + 0.238304649778517M7[t] + 0.281164917599927M8[t] + 0.222128886451194M9[t] + 0.0713170887252957M10[t] + 0.00836663797171274M11[t] + 0.00202552882501797t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  0.201644028496708 +  0.211282850119338X[t] +  1.07442780328295Y1[t] -0.360757733933598Y2[t] +  0.0825009869871107M1[t] +  0.123583145368402M2[t] +  0.204738091758070M3[t] +  0.132843919065565M4[t] +  0.12649724446896M5[t] +  0.179670038959494M6[t] +  0.238304649778517M7[t] +  0.281164917599927M8[t] +  0.222128886451194M9[t] +  0.0713170887252957M10[t] +  0.00836663797171274M11[t] +  0.00202552882501797t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58146&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  0.201644028496708 +  0.211282850119338X[t] +  1.07442780328295Y1[t] -0.360757733933598Y2[t] +  0.0825009869871107M1[t] +  0.123583145368402M2[t] +  0.204738091758070M3[t] +  0.132843919065565M4[t] +  0.12649724446896M5[t] +  0.179670038959494M6[t] +  0.238304649778517M7[t] +  0.281164917599927M8[t] +  0.222128886451194M9[t] +  0.0713170887252957M10[t] +  0.00836663797171274M11[t] +  0.00202552882501797t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58146&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58146&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] = + 0.201644028496708 + 0.211282850119338X[t] + 1.07442780328295Y1[t] -0.360757733933598Y2[t] + 0.0825009869871107M1[t] + 0.123583145368402M2[t] + 0.204738091758070M3[t] + 0.132843919065565M4[t] + 0.12649724446896M5[t] + 0.179670038959494M6[t] + 0.238304649778517M7[t] + 0.281164917599927M8[t] + 0.222128886451194M9[t] + 0.0713170887252957M10[t] + 0.00836663797171274M11[t] + 0.00202552882501797t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.2016440284967080.5156550.3910.6976950.348848
X0.2112828501193380.068563.08170.0035840.001792
Y11.074427803282950.1597566.725400
Y2-0.3607577339335980.13376-2.6970.009950.004975
M10.08250098698711070.101940.80930.4227940.211397
M20.1235831453684020.1083781.14030.2604740.130237
M30.2047380917580700.1037071.97420.0548050.027402
M40.1328439190655650.1032381.28680.2050560.102528
M50.126497244468960.1036851.220.2291070.114554
M60.1796700389594940.1072441.67530.1011250.050562
M70.2383046497785170.1148312.07530.0439790.021989
M80.2811649175999270.1253542.2430.0301070.015053
M90.2221288864511940.1232181.80270.0784420.039221
M100.07131708872529570.1005610.70920.4820320.241016
M110.008366637971712740.1006450.08310.9341340.467067
t0.002025528825017970.0023830.850.4000370.200018

\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) & 0.201644028496708 & 0.515655 & 0.391 & 0.697695 & 0.348848 \tabularnewline
X & 0.211282850119338 & 0.06856 & 3.0817 & 0.003584 & 0.001792 \tabularnewline
Y1 & 1.07442780328295 & 0.159756 & 6.7254 & 0 & 0 \tabularnewline
Y2 & -0.360757733933598 & 0.13376 & -2.697 & 0.00995 & 0.004975 \tabularnewline
M1 & 0.0825009869871107 & 0.10194 & 0.8093 & 0.422794 & 0.211397 \tabularnewline
M2 & 0.123583145368402 & 0.108378 & 1.1403 & 0.260474 & 0.130237 \tabularnewline
M3 & 0.204738091758070 & 0.103707 & 1.9742 & 0.054805 & 0.027402 \tabularnewline
M4 & 0.132843919065565 & 0.103238 & 1.2868 & 0.205056 & 0.102528 \tabularnewline
M5 & 0.12649724446896 & 0.103685 & 1.22 & 0.229107 & 0.114554 \tabularnewline
M6 & 0.179670038959494 & 0.107244 & 1.6753 & 0.101125 & 0.050562 \tabularnewline
M7 & 0.238304649778517 & 0.114831 & 2.0753 & 0.043979 & 0.021989 \tabularnewline
M8 & 0.281164917599927 & 0.125354 & 2.243 & 0.030107 & 0.015053 \tabularnewline
M9 & 0.222128886451194 & 0.123218 & 1.8027 & 0.078442 & 0.039221 \tabularnewline
M10 & 0.0713170887252957 & 0.100561 & 0.7092 & 0.482032 & 0.241016 \tabularnewline
M11 & 0.00836663797171274 & 0.100645 & 0.0831 & 0.934134 & 0.467067 \tabularnewline
t & 0.00202552882501797 & 0.002383 & 0.85 & 0.400037 & 0.200018 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58146&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]0.201644028496708[/C][C]0.515655[/C][C]0.391[/C][C]0.697695[/C][C]0.348848[/C][/ROW]
[ROW][C]X[/C][C]0.211282850119338[/C][C]0.06856[/C][C]3.0817[/C][C]0.003584[/C][C]0.001792[/C][/ROW]
[ROW][C]Y1[/C][C]1.07442780328295[/C][C]0.159756[/C][C]6.7254[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.360757733933598[/C][C]0.13376[/C][C]-2.697[/C][C]0.00995[/C][C]0.004975[/C][/ROW]
[ROW][C]M1[/C][C]0.0825009869871107[/C][C]0.10194[/C][C]0.8093[/C][C]0.422794[/C][C]0.211397[/C][/ROW]
[ROW][C]M2[/C][C]0.123583145368402[/C][C]0.108378[/C][C]1.1403[/C][C]0.260474[/C][C]0.130237[/C][/ROW]
[ROW][C]M3[/C][C]0.204738091758070[/C][C]0.103707[/C][C]1.9742[/C][C]0.054805[/C][C]0.027402[/C][/ROW]
[ROW][C]M4[/C][C]0.132843919065565[/C][C]0.103238[/C][C]1.2868[/C][C]0.205056[/C][C]0.102528[/C][/ROW]
[ROW][C]M5[/C][C]0.12649724446896[/C][C]0.103685[/C][C]1.22[/C][C]0.229107[/C][C]0.114554[/C][/ROW]
[ROW][C]M6[/C][C]0.179670038959494[/C][C]0.107244[/C][C]1.6753[/C][C]0.101125[/C][C]0.050562[/C][/ROW]
[ROW][C]M7[/C][C]0.238304649778517[/C][C]0.114831[/C][C]2.0753[/C][C]0.043979[/C][C]0.021989[/C][/ROW]
[ROW][C]M8[/C][C]0.281164917599927[/C][C]0.125354[/C][C]2.243[/C][C]0.030107[/C][C]0.015053[/C][/ROW]
[ROW][C]M9[/C][C]0.222128886451194[/C][C]0.123218[/C][C]1.8027[/C][C]0.078442[/C][C]0.039221[/C][/ROW]
[ROW][C]M10[/C][C]0.0713170887252957[/C][C]0.100561[/C][C]0.7092[/C][C]0.482032[/C][C]0.241016[/C][/ROW]
[ROW][C]M11[/C][C]0.00836663797171274[/C][C]0.100645[/C][C]0.0831[/C][C]0.934134[/C][C]0.467067[/C][/ROW]
[ROW][C]t[/C][C]0.00202552882501797[/C][C]0.002383[/C][C]0.85[/C][C]0.400037[/C][C]0.200018[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58146&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58146&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)0.2016440284967080.5156550.3910.6976950.348848
X0.2112828501193380.068563.08170.0035840.001792
Y11.074427803282950.1597566.725400
Y2-0.3607577339335980.13376-2.6970.009950.004975
M10.08250098698711070.101940.80930.4227940.211397
M20.1235831453684020.1083781.14030.2604740.130237
M30.2047380917580700.1037071.97420.0548050.027402
M40.1328439190655650.1032381.28680.2050560.102528
M50.126497244468960.1036851.220.2291070.114554
M60.1796700389594940.1072441.67530.1011250.050562
M70.2383046497785170.1148312.07530.0439790.021989
M80.2811649175999270.1253542.2430.0301070.015053
M90.2221288864511940.1232181.80270.0784420.039221
M100.07131708872529570.1005610.70920.4820320.241016
M110.008366637971712740.1006450.08310.9341340.467067
t0.002025528825017970.0023830.850.4000370.200018







Multiple Linear Regression - Regression Statistics
Multiple R0.978038480327254
R-squared0.956559269000845
Adjusted R-squared0.941405525629047
F-TEST (value)63.1236286329784
F-TEST (DF numerator)15
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.148271373550655
Sum Squared Residuals0.945329209227708

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.978038480327254 \tabularnewline
R-squared & 0.956559269000845 \tabularnewline
Adjusted R-squared & 0.941405525629047 \tabularnewline
F-TEST (value) & 63.1236286329784 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 43 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.148271373550655 \tabularnewline
Sum Squared Residuals & 0.945329209227708 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58146&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.978038480327254[/C][/ROW]
[ROW][C]R-squared[/C][C]0.956559269000845[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.941405525629047[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]63.1236286329784[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]43[/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.148271373550655[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]0.945329209227708[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58146&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58146&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.978038480327254
R-squared0.956559269000845
Adjusted R-squared0.941405525629047
F-TEST (value)63.1236286329784
F-TEST (DF numerator)15
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.148271373550655
Sum Squared Residuals0.945329209227708







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.68.75066266271143-0.150662662711430
28.38.30241572883739-0.00241572883738628
38.38.171495183247270.128504816752731
48.38.273238714595660.0267612854043373
58.48.290045853836010.10995414616399
68.58.431558672467920.0684413275320767
78.48.47907267899916-0.0790726789991636
88.68.338183351900070.26181664809993
98.58.55326246863824-0.0532624686382377
108.58.457293007753610.0427069922463853
118.48.47470042924228-0.0747004292422772
128.58.339788254755350.160211745244646
138.58.441063614217530.058936385782466
148.58.363582387982750.136417612017252
158.58.467891148209370.032108851790632
168.58.419150789353810.0808492106461849
178.58.414829643582230.085170356417772
188.58.427771396873910.0722286031260873
198.58.446174966494090.053825033505914
208.68.491060763140510.108939236859486
218.48.5414930411451-0.141493041145093
228.18.31077171828973-0.210771718289735
2388.04192657218687-0.0419265721868712
2487.99411343286810.00588656713190568
2588.00907429701391-0.00907429701391372
2687.988797129184420.0112028708155788
277.98.07197760439911-0.171977604399106
287.87.91579446521526-0.115794465215259
297.87.84010631250874-0.0401063125087369
307.97.93138040921765-0.0313804092176488
318.18.12061161420192-0.0206116142019195
3288.25979405806384-0.259794058063841
337.67.91754780356544-0.317547803565444
347.37.39619447175668-0.0961944717566763
3577.09385944738086-0.0938594473808646
366.86.788904177381630.0110958226183700
3776.809029022741120.190970977258884
387.17.13917381739073-0.0391738173907347
397.27.27877381115893-0.0787738111589281
407.17.25914388921444-0.159143889214444
416.97.0479193346854-0.147919334685400
426.76.81866644567805-0.118666445678054
436.76.673207716416420.026792283583577
446.66.72686020481377-0.126860204813769
456.96.64692006220950.253079937790506
467.37.1312056128420.168794387158002
477.57.49746591710620.00253408289379855
487.37.47719413499492-0.177194134994923
497.17.190170403316-0.0901704033160069
506.97.00603093660471-0.106030936604710
517.17.009862252985330.090137747014672
527.57.332672141620820.167327858379181
537.77.70709885538763-0.00709885538762563
547.87.790623075762460.0093769242375388
557.87.780933023888410.0190669761115921
567.77.68410162208180.0158983779181940
577.87.540776624441730.259223375558269
587.87.704535189357980.0954648106420248
597.97.692047634083790.207952365916215

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.6 & 8.75066266271143 & -0.150662662711430 \tabularnewline
2 & 8.3 & 8.30241572883739 & -0.00241572883738628 \tabularnewline
3 & 8.3 & 8.17149518324727 & 0.128504816752731 \tabularnewline
4 & 8.3 & 8.27323871459566 & 0.0267612854043373 \tabularnewline
5 & 8.4 & 8.29004585383601 & 0.10995414616399 \tabularnewline
6 & 8.5 & 8.43155867246792 & 0.0684413275320767 \tabularnewline
7 & 8.4 & 8.47907267899916 & -0.0790726789991636 \tabularnewline
8 & 8.6 & 8.33818335190007 & 0.26181664809993 \tabularnewline
9 & 8.5 & 8.55326246863824 & -0.0532624686382377 \tabularnewline
10 & 8.5 & 8.45729300775361 & 0.0427069922463853 \tabularnewline
11 & 8.4 & 8.47470042924228 & -0.0747004292422772 \tabularnewline
12 & 8.5 & 8.33978825475535 & 0.160211745244646 \tabularnewline
13 & 8.5 & 8.44106361421753 & 0.058936385782466 \tabularnewline
14 & 8.5 & 8.36358238798275 & 0.136417612017252 \tabularnewline
15 & 8.5 & 8.46789114820937 & 0.032108851790632 \tabularnewline
16 & 8.5 & 8.41915078935381 & 0.0808492106461849 \tabularnewline
17 & 8.5 & 8.41482964358223 & 0.085170356417772 \tabularnewline
18 & 8.5 & 8.42777139687391 & 0.0722286031260873 \tabularnewline
19 & 8.5 & 8.44617496649409 & 0.053825033505914 \tabularnewline
20 & 8.6 & 8.49106076314051 & 0.108939236859486 \tabularnewline
21 & 8.4 & 8.5414930411451 & -0.141493041145093 \tabularnewline
22 & 8.1 & 8.31077171828973 & -0.210771718289735 \tabularnewline
23 & 8 & 8.04192657218687 & -0.0419265721868712 \tabularnewline
24 & 8 & 7.9941134328681 & 0.00588656713190568 \tabularnewline
25 & 8 & 8.00907429701391 & -0.00907429701391372 \tabularnewline
26 & 8 & 7.98879712918442 & 0.0112028708155788 \tabularnewline
27 & 7.9 & 8.07197760439911 & -0.171977604399106 \tabularnewline
28 & 7.8 & 7.91579446521526 & -0.115794465215259 \tabularnewline
29 & 7.8 & 7.84010631250874 & -0.0401063125087369 \tabularnewline
30 & 7.9 & 7.93138040921765 & -0.0313804092176488 \tabularnewline
31 & 8.1 & 8.12061161420192 & -0.0206116142019195 \tabularnewline
32 & 8 & 8.25979405806384 & -0.259794058063841 \tabularnewline
33 & 7.6 & 7.91754780356544 & -0.317547803565444 \tabularnewline
34 & 7.3 & 7.39619447175668 & -0.0961944717566763 \tabularnewline
35 & 7 & 7.09385944738086 & -0.0938594473808646 \tabularnewline
36 & 6.8 & 6.78890417738163 & 0.0110958226183700 \tabularnewline
37 & 7 & 6.80902902274112 & 0.190970977258884 \tabularnewline
38 & 7.1 & 7.13917381739073 & -0.0391738173907347 \tabularnewline
39 & 7.2 & 7.27877381115893 & -0.0787738111589281 \tabularnewline
40 & 7.1 & 7.25914388921444 & -0.159143889214444 \tabularnewline
41 & 6.9 & 7.0479193346854 & -0.147919334685400 \tabularnewline
42 & 6.7 & 6.81866644567805 & -0.118666445678054 \tabularnewline
43 & 6.7 & 6.67320771641642 & 0.026792283583577 \tabularnewline
44 & 6.6 & 6.72686020481377 & -0.126860204813769 \tabularnewline
45 & 6.9 & 6.6469200622095 & 0.253079937790506 \tabularnewline
46 & 7.3 & 7.131205612842 & 0.168794387158002 \tabularnewline
47 & 7.5 & 7.4974659171062 & 0.00253408289379855 \tabularnewline
48 & 7.3 & 7.47719413499492 & -0.177194134994923 \tabularnewline
49 & 7.1 & 7.190170403316 & -0.0901704033160069 \tabularnewline
50 & 6.9 & 7.00603093660471 & -0.106030936604710 \tabularnewline
51 & 7.1 & 7.00986225298533 & 0.090137747014672 \tabularnewline
52 & 7.5 & 7.33267214162082 & 0.167327858379181 \tabularnewline
53 & 7.7 & 7.70709885538763 & -0.00709885538762563 \tabularnewline
54 & 7.8 & 7.79062307576246 & 0.0093769242375388 \tabularnewline
55 & 7.8 & 7.78093302388841 & 0.0190669761115921 \tabularnewline
56 & 7.7 & 7.6841016220818 & 0.0158983779181940 \tabularnewline
57 & 7.8 & 7.54077662444173 & 0.259223375558269 \tabularnewline
58 & 7.8 & 7.70453518935798 & 0.0954648106420248 \tabularnewline
59 & 7.9 & 7.69204763408379 & 0.207952365916215 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58146&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.6[/C][C]8.75066266271143[/C][C]-0.150662662711430[/C][/ROW]
[ROW][C]2[/C][C]8.3[/C][C]8.30241572883739[/C][C]-0.00241572883738628[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]8.17149518324727[/C][C]0.128504816752731[/C][/ROW]
[ROW][C]4[/C][C]8.3[/C][C]8.27323871459566[/C][C]0.0267612854043373[/C][/ROW]
[ROW][C]5[/C][C]8.4[/C][C]8.29004585383601[/C][C]0.10995414616399[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.43155867246792[/C][C]0.0684413275320767[/C][/ROW]
[ROW][C]7[/C][C]8.4[/C][C]8.47907267899916[/C][C]-0.0790726789991636[/C][/ROW]
[ROW][C]8[/C][C]8.6[/C][C]8.33818335190007[/C][C]0.26181664809993[/C][/ROW]
[ROW][C]9[/C][C]8.5[/C][C]8.55326246863824[/C][C]-0.0532624686382377[/C][/ROW]
[ROW][C]10[/C][C]8.5[/C][C]8.45729300775361[/C][C]0.0427069922463853[/C][/ROW]
[ROW][C]11[/C][C]8.4[/C][C]8.47470042924228[/C][C]-0.0747004292422772[/C][/ROW]
[ROW][C]12[/C][C]8.5[/C][C]8.33978825475535[/C][C]0.160211745244646[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]8.44106361421753[/C][C]0.058936385782466[/C][/ROW]
[ROW][C]14[/C][C]8.5[/C][C]8.36358238798275[/C][C]0.136417612017252[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.46789114820937[/C][C]0.032108851790632[/C][/ROW]
[ROW][C]16[/C][C]8.5[/C][C]8.41915078935381[/C][C]0.0808492106461849[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]8.41482964358223[/C][C]0.085170356417772[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.42777139687391[/C][C]0.0722286031260873[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]8.44617496649409[/C][C]0.053825033505914[/C][/ROW]
[ROW][C]20[/C][C]8.6[/C][C]8.49106076314051[/C][C]0.108939236859486[/C][/ROW]
[ROW][C]21[/C][C]8.4[/C][C]8.5414930411451[/C][C]-0.141493041145093[/C][/ROW]
[ROW][C]22[/C][C]8.1[/C][C]8.31077171828973[/C][C]-0.210771718289735[/C][/ROW]
[ROW][C]23[/C][C]8[/C][C]8.04192657218687[/C][C]-0.0419265721868712[/C][/ROW]
[ROW][C]24[/C][C]8[/C][C]7.9941134328681[/C][C]0.00588656713190568[/C][/ROW]
[ROW][C]25[/C][C]8[/C][C]8.00907429701391[/C][C]-0.00907429701391372[/C][/ROW]
[ROW][C]26[/C][C]8[/C][C]7.98879712918442[/C][C]0.0112028708155788[/C][/ROW]
[ROW][C]27[/C][C]7.9[/C][C]8.07197760439911[/C][C]-0.171977604399106[/C][/ROW]
[ROW][C]28[/C][C]7.8[/C][C]7.91579446521526[/C][C]-0.115794465215259[/C][/ROW]
[ROW][C]29[/C][C]7.8[/C][C]7.84010631250874[/C][C]-0.0401063125087369[/C][/ROW]
[ROW][C]30[/C][C]7.9[/C][C]7.93138040921765[/C][C]-0.0313804092176488[/C][/ROW]
[ROW][C]31[/C][C]8.1[/C][C]8.12061161420192[/C][C]-0.0206116142019195[/C][/ROW]
[ROW][C]32[/C][C]8[/C][C]8.25979405806384[/C][C]-0.259794058063841[/C][/ROW]
[ROW][C]33[/C][C]7.6[/C][C]7.91754780356544[/C][C]-0.317547803565444[/C][/ROW]
[ROW][C]34[/C][C]7.3[/C][C]7.39619447175668[/C][C]-0.0961944717566763[/C][/ROW]
[ROW][C]35[/C][C]7[/C][C]7.09385944738086[/C][C]-0.0938594473808646[/C][/ROW]
[ROW][C]36[/C][C]6.8[/C][C]6.78890417738163[/C][C]0.0110958226183700[/C][/ROW]
[ROW][C]37[/C][C]7[/C][C]6.80902902274112[/C][C]0.190970977258884[/C][/ROW]
[ROW][C]38[/C][C]7.1[/C][C]7.13917381739073[/C][C]-0.0391738173907347[/C][/ROW]
[ROW][C]39[/C][C]7.2[/C][C]7.27877381115893[/C][C]-0.0787738111589281[/C][/ROW]
[ROW][C]40[/C][C]7.1[/C][C]7.25914388921444[/C][C]-0.159143889214444[/C][/ROW]
[ROW][C]41[/C][C]6.9[/C][C]7.0479193346854[/C][C]-0.147919334685400[/C][/ROW]
[ROW][C]42[/C][C]6.7[/C][C]6.81866644567805[/C][C]-0.118666445678054[/C][/ROW]
[ROW][C]43[/C][C]6.7[/C][C]6.67320771641642[/C][C]0.026792283583577[/C][/ROW]
[ROW][C]44[/C][C]6.6[/C][C]6.72686020481377[/C][C]-0.126860204813769[/C][/ROW]
[ROW][C]45[/C][C]6.9[/C][C]6.6469200622095[/C][C]0.253079937790506[/C][/ROW]
[ROW][C]46[/C][C]7.3[/C][C]7.131205612842[/C][C]0.168794387158002[/C][/ROW]
[ROW][C]47[/C][C]7.5[/C][C]7.4974659171062[/C][C]0.00253408289379855[/C][/ROW]
[ROW][C]48[/C][C]7.3[/C][C]7.47719413499492[/C][C]-0.177194134994923[/C][/ROW]
[ROW][C]49[/C][C]7.1[/C][C]7.190170403316[/C][C]-0.0901704033160069[/C][/ROW]
[ROW][C]50[/C][C]6.9[/C][C]7.00603093660471[/C][C]-0.106030936604710[/C][/ROW]
[ROW][C]51[/C][C]7.1[/C][C]7.00986225298533[/C][C]0.090137747014672[/C][/ROW]
[ROW][C]52[/C][C]7.5[/C][C]7.33267214162082[/C][C]0.167327858379181[/C][/ROW]
[ROW][C]53[/C][C]7.7[/C][C]7.70709885538763[/C][C]-0.00709885538762563[/C][/ROW]
[ROW][C]54[/C][C]7.8[/C][C]7.79062307576246[/C][C]0.0093769242375388[/C][/ROW]
[ROW][C]55[/C][C]7.8[/C][C]7.78093302388841[/C][C]0.0190669761115921[/C][/ROW]
[ROW][C]56[/C][C]7.7[/C][C]7.6841016220818[/C][C]0.0158983779181940[/C][/ROW]
[ROW][C]57[/C][C]7.8[/C][C]7.54077662444173[/C][C]0.259223375558269[/C][/ROW]
[ROW][C]58[/C][C]7.8[/C][C]7.70453518935798[/C][C]0.0954648106420248[/C][/ROW]
[ROW][C]59[/C][C]7.9[/C][C]7.69204763408379[/C][C]0.207952365916215[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58146&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58146&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.68.75066266271143-0.150662662711430
28.38.30241572883739-0.00241572883738628
38.38.171495183247270.128504816752731
48.38.273238714595660.0267612854043373
58.48.290045853836010.10995414616399
68.58.431558672467920.0684413275320767
78.48.47907267899916-0.0790726789991636
88.68.338183351900070.26181664809993
98.58.55326246863824-0.0532624686382377
108.58.457293007753610.0427069922463853
118.48.47470042924228-0.0747004292422772
128.58.339788254755350.160211745244646
138.58.441063614217530.058936385782466
148.58.363582387982750.136417612017252
158.58.467891148209370.032108851790632
168.58.419150789353810.0808492106461849
178.58.414829643582230.085170356417772
188.58.427771396873910.0722286031260873
198.58.446174966494090.053825033505914
208.68.491060763140510.108939236859486
218.48.5414930411451-0.141493041145093
228.18.31077171828973-0.210771718289735
2388.04192657218687-0.0419265721868712
2487.99411343286810.00588656713190568
2588.00907429701391-0.00907429701391372
2687.988797129184420.0112028708155788
277.98.07197760439911-0.171977604399106
287.87.91579446521526-0.115794465215259
297.87.84010631250874-0.0401063125087369
307.97.93138040921765-0.0313804092176488
318.18.12061161420192-0.0206116142019195
3288.25979405806384-0.259794058063841
337.67.91754780356544-0.317547803565444
347.37.39619447175668-0.0961944717566763
3577.09385944738086-0.0938594473808646
366.86.788904177381630.0110958226183700
3776.809029022741120.190970977258884
387.17.13917381739073-0.0391738173907347
397.27.27877381115893-0.0787738111589281
407.17.25914388921444-0.159143889214444
416.97.0479193346854-0.147919334685400
426.76.81866644567805-0.118666445678054
436.76.673207716416420.026792283583577
446.66.72686020481377-0.126860204813769
456.96.64692006220950.253079937790506
467.37.1312056128420.168794387158002
477.57.49746591710620.00253408289379855
487.37.47719413499492-0.177194134994923
497.17.190170403316-0.0901704033160069
506.97.00603093660471-0.106030936604710
517.17.009862252985330.090137747014672
527.57.332672141620820.167327858379181
537.77.70709885538763-0.00709885538762563
547.87.790623075762460.0093769242375388
557.87.780933023888410.0190669761115921
567.77.68410162208180.0158983779181940
577.87.540776624441730.259223375558269
587.87.704535189357980.0954648106420248
597.97.692047634083790.207952365916215







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.02639316417737780.05278632835475560.973606835822622
200.1482717534012310.2965435068024630.851728246598769
210.1014176614728770.2028353229457540.898582338527123
220.3996736731156490.7993473462312980.600326326884351
230.2770259703752910.5540519407505810.72297402962471
240.3408703205136470.6817406410272940.659129679486353
250.2566863199726980.5133726399453970.743313680027302
260.2955087520588010.5910175041176030.704491247941199
270.4170878295596070.8341756591192140.582912170440393
280.3650068472680780.7300136945361550.634993152731922
290.3262899834593560.6525799669187110.673710016540644
300.2795577445866320.5591154891732640.720442255413368
310.2405599548992150.4811199097984290.759440045100785
320.4162968124051570.8325936248103150.583703187594843
330.5785011840768470.8429976318463050.421498815923152
340.7224306204386660.5551387591226690.277569379561334
350.8751174048296530.2497651903406940.124882595170347
360.79782048102750.4043590379450020.202179518972501
370.9045640748572480.1908718502855040.0954359251427522
380.9635261299675490.07294774006490240.0364738700324512
390.99281061089460.01437877821080040.00718938910540022
400.9807364497124950.0385271005750110.0192635502875055

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.0263931641773778 & 0.0527863283547556 & 0.973606835822622 \tabularnewline
20 & 0.148271753401231 & 0.296543506802463 & 0.851728246598769 \tabularnewline
21 & 0.101417661472877 & 0.202835322945754 & 0.898582338527123 \tabularnewline
22 & 0.399673673115649 & 0.799347346231298 & 0.600326326884351 \tabularnewline
23 & 0.277025970375291 & 0.554051940750581 & 0.72297402962471 \tabularnewline
24 & 0.340870320513647 & 0.681740641027294 & 0.659129679486353 \tabularnewline
25 & 0.256686319972698 & 0.513372639945397 & 0.743313680027302 \tabularnewline
26 & 0.295508752058801 & 0.591017504117603 & 0.704491247941199 \tabularnewline
27 & 0.417087829559607 & 0.834175659119214 & 0.582912170440393 \tabularnewline
28 & 0.365006847268078 & 0.730013694536155 & 0.634993152731922 \tabularnewline
29 & 0.326289983459356 & 0.652579966918711 & 0.673710016540644 \tabularnewline
30 & 0.279557744586632 & 0.559115489173264 & 0.720442255413368 \tabularnewline
31 & 0.240559954899215 & 0.481119909798429 & 0.759440045100785 \tabularnewline
32 & 0.416296812405157 & 0.832593624810315 & 0.583703187594843 \tabularnewline
33 & 0.578501184076847 & 0.842997631846305 & 0.421498815923152 \tabularnewline
34 & 0.722430620438666 & 0.555138759122669 & 0.277569379561334 \tabularnewline
35 & 0.875117404829653 & 0.249765190340694 & 0.124882595170347 \tabularnewline
36 & 0.7978204810275 & 0.404359037945002 & 0.202179518972501 \tabularnewline
37 & 0.904564074857248 & 0.190871850285504 & 0.0954359251427522 \tabularnewline
38 & 0.963526129967549 & 0.0729477400649024 & 0.0364738700324512 \tabularnewline
39 & 0.9928106108946 & 0.0143787782108004 & 0.00718938910540022 \tabularnewline
40 & 0.980736449712495 & 0.038527100575011 & 0.0192635502875055 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58146&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]19[/C][C]0.0263931641773778[/C][C]0.0527863283547556[/C][C]0.973606835822622[/C][/ROW]
[ROW][C]20[/C][C]0.148271753401231[/C][C]0.296543506802463[/C][C]0.851728246598769[/C][/ROW]
[ROW][C]21[/C][C]0.101417661472877[/C][C]0.202835322945754[/C][C]0.898582338527123[/C][/ROW]
[ROW][C]22[/C][C]0.399673673115649[/C][C]0.799347346231298[/C][C]0.600326326884351[/C][/ROW]
[ROW][C]23[/C][C]0.277025970375291[/C][C]0.554051940750581[/C][C]0.72297402962471[/C][/ROW]
[ROW][C]24[/C][C]0.340870320513647[/C][C]0.681740641027294[/C][C]0.659129679486353[/C][/ROW]
[ROW][C]25[/C][C]0.256686319972698[/C][C]0.513372639945397[/C][C]0.743313680027302[/C][/ROW]
[ROW][C]26[/C][C]0.295508752058801[/C][C]0.591017504117603[/C][C]0.704491247941199[/C][/ROW]
[ROW][C]27[/C][C]0.417087829559607[/C][C]0.834175659119214[/C][C]0.582912170440393[/C][/ROW]
[ROW][C]28[/C][C]0.365006847268078[/C][C]0.730013694536155[/C][C]0.634993152731922[/C][/ROW]
[ROW][C]29[/C][C]0.326289983459356[/C][C]0.652579966918711[/C][C]0.673710016540644[/C][/ROW]
[ROW][C]30[/C][C]0.279557744586632[/C][C]0.559115489173264[/C][C]0.720442255413368[/C][/ROW]
[ROW][C]31[/C][C]0.240559954899215[/C][C]0.481119909798429[/C][C]0.759440045100785[/C][/ROW]
[ROW][C]32[/C][C]0.416296812405157[/C][C]0.832593624810315[/C][C]0.583703187594843[/C][/ROW]
[ROW][C]33[/C][C]0.578501184076847[/C][C]0.842997631846305[/C][C]0.421498815923152[/C][/ROW]
[ROW][C]34[/C][C]0.722430620438666[/C][C]0.555138759122669[/C][C]0.277569379561334[/C][/ROW]
[ROW][C]35[/C][C]0.875117404829653[/C][C]0.249765190340694[/C][C]0.124882595170347[/C][/ROW]
[ROW][C]36[/C][C]0.7978204810275[/C][C]0.404359037945002[/C][C]0.202179518972501[/C][/ROW]
[ROW][C]37[/C][C]0.904564074857248[/C][C]0.190871850285504[/C][C]0.0954359251427522[/C][/ROW]
[ROW][C]38[/C][C]0.963526129967549[/C][C]0.0729477400649024[/C][C]0.0364738700324512[/C][/ROW]
[ROW][C]39[/C][C]0.9928106108946[/C][C]0.0143787782108004[/C][C]0.00718938910540022[/C][/ROW]
[ROW][C]40[/C][C]0.980736449712495[/C][C]0.038527100575011[/C][C]0.0192635502875055[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58146&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58146&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
190.02639316417737780.05278632835475560.973606835822622
200.1482717534012310.2965435068024630.851728246598769
210.1014176614728770.2028353229457540.898582338527123
220.3996736731156490.7993473462312980.600326326884351
230.2770259703752910.5540519407505810.72297402962471
240.3408703205136470.6817406410272940.659129679486353
250.2566863199726980.5133726399453970.743313680027302
260.2955087520588010.5910175041176030.704491247941199
270.4170878295596070.8341756591192140.582912170440393
280.3650068472680780.7300136945361550.634993152731922
290.3262899834593560.6525799669187110.673710016540644
300.2795577445866320.5591154891732640.720442255413368
310.2405599548992150.4811199097984290.759440045100785
320.4162968124051570.8325936248103150.583703187594843
330.5785011840768470.8429976318463050.421498815923152
340.7224306204386660.5551387591226690.277569379561334
350.8751174048296530.2497651903406940.124882595170347
360.79782048102750.4043590379450020.202179518972501
370.9045640748572480.1908718502855040.0954359251427522
380.9635261299675490.07294774006490240.0364738700324512
390.99281061089460.01437877821080040.00718938910540022
400.9807364497124950.0385271005750110.0192635502875055







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



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