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 computationSat, 14 Nov 2009 06:31:17 -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/14/t125820551811zczdon9xblt8v.htm/, Retrieved Sat, 27 Apr 2024 19:08:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57223, Retrieved Sat, 27 Apr 2024 19:08:02 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact245
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:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [WS 7 3] [2009-11-14 13:31:17] [2e4ef2c1b76db9b31c0a03b96e94ad77] [Current]
-   PD        [Multiple Regression] [WS7 3] [2009-11-18 20:27:09] [6e4e01d7eb22a9f33d58ebb35753a195]
Feedback Forum

Post a new message
Dataseries X:
103,63	100,30
103,64	98,50
103,66	95,10
103,77	93,10
103,88	92,20
103,91	89,00
103,91	86,40
103,92	84,50
104,05	82,70
104,23	80,80
104,30	81,80
104,31	81,80
104,31	82,90
104,34	83,80
104,55	86,20
104,65	86,10
104,73	86,20
104,75	88,80
104,75	89,60
104,76	87,80
104,94	88,30
105,29	88,60
105,38	91,00
105,43	91,50
105,43	95,40
105,42	98,70
105,52	99,90
105,69	98,60
105,72	100,30
105,74	100,20
105,74	100,40
105,74	101,40
105,95	103,00
106,17	109,10
106,34	111,40
106,37	114,10
106,37	121,80
106,36	127,60
106,44	129,90
106,29	128,00
106,23	123,50
106,23	124,00
106,23	127,40
106,23	127,60
106,34	128,40
106,44	131,40
106,44	135,10
106,48	134,00
106,50	144,50
106,57	147,30
106,40	150,90
106,37	148,70
106,25	141,40
106,21	138,90
106,21	139,80
106,24	145,60
106,19	147,90
106,08	148,50
106,13	151,10
106,09	157,50




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57223&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] = + 105.384112125121 -0.0218733363637488X[t] + 0.244600489110058M1[t] + 0.230600085802714M2[t] + 0.225163812858891M3[t] + 0.152232065005675M4[t] + 0.0324264484251042M5[t] -0.0535068965189192M6[t] -0.121817038190091M7[t] -0.177502379497611M8[t] -0.126750254077858M9[t] -0.0234371924761798M10[t] + 0.0249370714892171M11[t] + 0.0801217433075963t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  105.384112125121 -0.0218733363637488X[t] +  0.244600489110058M1[t] +  0.230600085802714M2[t] +  0.225163812858891M3[t] +  0.152232065005675M4[t] +  0.0324264484251042M5[t] -0.0535068965189192M6[t] -0.121817038190091M7[t] -0.177502379497611M8[t] -0.126750254077858M9[t] -0.0234371924761798M10[t] +  0.0249370714892171M11[t] +  0.0801217433075963t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57223&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  105.384112125121 -0.0218733363637488X[t] +  0.244600489110058M1[t] +  0.230600085802714M2[t] +  0.225163812858891M3[t] +  0.152232065005675M4[t] +  0.0324264484251042M5[t] -0.0535068965189192M6[t] -0.121817038190091M7[t] -0.177502379497611M8[t] -0.126750254077858M9[t] -0.0234371924761798M10[t] +  0.0249370714892171M11[t] +  0.0801217433075963t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57223&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57223&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] = + 105.384112125121 -0.0218733363637488X[t] + 0.244600489110058M1[t] + 0.230600085802714M2[t] + 0.225163812858891M3[t] + 0.152232065005675M4[t] + 0.0324264484251042M5[t] -0.0535068965189192M6[t] -0.121817038190091M7[t] -0.177502379497611M8[t] -0.126750254077858M9[t] -0.0234371924761798M10[t] + 0.0249370714892171M11[t] + 0.0801217433075963t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)105.3841121251210.428976245.664600
X-0.02187333636374880.005622-3.89090.000320.00016
M10.2446004891100580.2298631.06410.2928310.146416
M20.2306000858027140.2305161.00040.3223660.161183
M30.2251638128588910.2301180.97850.3329590.166479
M40.1522320650056750.2271470.67020.5060860.253043
M50.03242644842510420.2250450.14410.886060.44303
M6-0.05350689651891920.224536-0.23830.8127070.406353
M7-0.1218170381900910.224374-0.54290.5898070.294903
M8-0.1775023794976110.224306-0.79130.4328080.216404
M9-0.1267502540778580.224325-0.5650.5747980.287399
M10-0.02343719247617980.224171-0.10460.9171870.458593
M110.02493707148921710.2239770.11130.9118330.455916
t0.08012174330759630.00781710.249600

\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) & 105.384112125121 & 0.428976 & 245.6646 & 0 & 0 \tabularnewline
X & -0.0218733363637488 & 0.005622 & -3.8909 & 0.00032 & 0.00016 \tabularnewline
M1 & 0.244600489110058 & 0.229863 & 1.0641 & 0.292831 & 0.146416 \tabularnewline
M2 & 0.230600085802714 & 0.230516 & 1.0004 & 0.322366 & 0.161183 \tabularnewline
M3 & 0.225163812858891 & 0.230118 & 0.9785 & 0.332959 & 0.166479 \tabularnewline
M4 & 0.152232065005675 & 0.227147 & 0.6702 & 0.506086 & 0.253043 \tabularnewline
M5 & 0.0324264484251042 & 0.225045 & 0.1441 & 0.88606 & 0.44303 \tabularnewline
M6 & -0.0535068965189192 & 0.224536 & -0.2383 & 0.812707 & 0.406353 \tabularnewline
M7 & -0.121817038190091 & 0.224374 & -0.5429 & 0.589807 & 0.294903 \tabularnewline
M8 & -0.177502379497611 & 0.224306 & -0.7913 & 0.432808 & 0.216404 \tabularnewline
M9 & -0.126750254077858 & 0.224325 & -0.565 & 0.574798 & 0.287399 \tabularnewline
M10 & -0.0234371924761798 & 0.224171 & -0.1046 & 0.917187 & 0.458593 \tabularnewline
M11 & 0.0249370714892171 & 0.223977 & 0.1113 & 0.911833 & 0.455916 \tabularnewline
t & 0.0801217433075963 & 0.007817 & 10.2496 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57223&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]105.384112125121[/C][C]0.428976[/C][C]245.6646[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.0218733363637488[/C][C]0.005622[/C][C]-3.8909[/C][C]0.00032[/C][C]0.00016[/C][/ROW]
[ROW][C]M1[/C][C]0.244600489110058[/C][C]0.229863[/C][C]1.0641[/C][C]0.292831[/C][C]0.146416[/C][/ROW]
[ROW][C]M2[/C][C]0.230600085802714[/C][C]0.230516[/C][C]1.0004[/C][C]0.322366[/C][C]0.161183[/C][/ROW]
[ROW][C]M3[/C][C]0.225163812858891[/C][C]0.230118[/C][C]0.9785[/C][C]0.332959[/C][C]0.166479[/C][/ROW]
[ROW][C]M4[/C][C]0.152232065005675[/C][C]0.227147[/C][C]0.6702[/C][C]0.506086[/C][C]0.253043[/C][/ROW]
[ROW][C]M5[/C][C]0.0324264484251042[/C][C]0.225045[/C][C]0.1441[/C][C]0.88606[/C][C]0.44303[/C][/ROW]
[ROW][C]M6[/C][C]-0.0535068965189192[/C][C]0.224536[/C][C]-0.2383[/C][C]0.812707[/C][C]0.406353[/C][/ROW]
[ROW][C]M7[/C][C]-0.121817038190091[/C][C]0.224374[/C][C]-0.5429[/C][C]0.589807[/C][C]0.294903[/C][/ROW]
[ROW][C]M8[/C][C]-0.177502379497611[/C][C]0.224306[/C][C]-0.7913[/C][C]0.432808[/C][C]0.216404[/C][/ROW]
[ROW][C]M9[/C][C]-0.126750254077858[/C][C]0.224325[/C][C]-0.565[/C][C]0.574798[/C][C]0.287399[/C][/ROW]
[ROW][C]M10[/C][C]-0.0234371924761798[/C][C]0.224171[/C][C]-0.1046[/C][C]0.917187[/C][C]0.458593[/C][/ROW]
[ROW][C]M11[/C][C]0.0249370714892171[/C][C]0.223977[/C][C]0.1113[/C][C]0.911833[/C][C]0.455916[/C][/ROW]
[ROW][C]t[/C][C]0.0801217433075963[/C][C]0.007817[/C][C]10.2496[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57223&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57223&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)105.3841121251210.428976245.664600
X-0.02187333636374880.005622-3.89090.000320.00016
M10.2446004891100580.2298631.06410.2928310.146416
M20.2306000858027140.2305161.00040.3223660.161183
M30.2251638128588910.2301180.97850.3329590.166479
M40.1522320650056750.2271470.67020.5060860.253043
M50.03242644842510420.2250450.14410.886060.44303
M6-0.05350689651891920.224536-0.23830.8127070.406353
M7-0.1218170381900910.224374-0.54290.5898070.294903
M8-0.1775023794976110.224306-0.79130.4328080.216404
M9-0.1267502540778580.224325-0.5650.5747980.287399
M10-0.02343719247617980.224171-0.10460.9171870.458593
M110.02493707148921710.2239770.11130.9118330.455916
t0.08012174330759630.00781710.249600







Multiple Linear Regression - Regression Statistics
Multiple R0.946332492074222
R-squared0.895545185555408
Adjusted R-squared0.866025346690632
F-TEST (value)30.3370621248209
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.354095200960798
Sum Squared Residuals5.76763692179953

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.946332492074222 \tabularnewline
R-squared & 0.895545185555408 \tabularnewline
Adjusted R-squared & 0.866025346690632 \tabularnewline
F-TEST (value) & 30.3370621248209 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.354095200960798 \tabularnewline
Sum Squared Residuals & 5.76763692179953 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57223&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.946332492074222[/C][/ROW]
[ROW][C]R-squared[/C][C]0.895545185555408[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.866025346690632[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]30.3370621248209[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.354095200960798[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]5.76763692179953[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57223&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57223&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.946332492074222
R-squared0.895545185555408
Adjusted R-squared0.866025346690632
F-TEST (value)30.3370621248209
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.354095200960798
Sum Squared Residuals5.76763692179953







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1103.63103.5149387202550.115061279744937
2103.64103.620432065710.0195679342899749
3103.66103.769486879711-0.109486879710544
4103.77103.820423547892-0.0504235478924228
5103.88103.8004256773470.0795743226531766
6103.91103.8646087520740.0453912479256085
7103.91103.933291028257-0.0232910282565623
8103.92103.999286769348-0.0792867693477565
9104.05104.169532643530-0.119532643529858
10104.23104.394526787530-0.164526787530249
11104.3104.501149458439-0.201149458439500
12104.31104.556334130258-0.246334130257874
13104.31104.856995692675-0.546995692675405
14104.34104.903431029948-0.563431029948282
15104.55104.925620493039-0.375620493039064
16104.65104.934997822130-0.284997822129811
17104.73104.893126615220-0.163126615220464
18104.75104.830444339038-0.0804443390382939
19104.75104.824757271584-0.0747572715837193
20104.76104.888565679039-0.128565679038538
21104.94105.008502879584-0.0685028795840206
22105.29105.1853756835840.104624316415838
23105.38105.2613756835840.118624316415831
24105.43105.3056236872210.124376312779338
25105.43105.545039907820-0.115039907819696
26105.42105.538979237820-0.118979237819582
27105.52105.587416704547-0.0674167045468627
28105.69105.6230420372740.0669579627258855
29105.72105.5461734921830.173826507817234
30105.74105.5425492241830.197450775817281
31105.74105.5499861585460.190013841453607
32105.74105.5525492241830.187450775817279
33105.95105.6484257547280.301574245271936
34106.17105.6984332078180.471566792181528
35106.34105.7766205414550.563379458545159
36106.37105.7727472050910.597252794908903
37106.37105.9290447475080.440955252492114
38106.36105.8683007365980.4916992634016
39106.44105.8926775333260.547322466674447
40106.29105.9414268678710.348573132128953
41106.23106.0001730082350.229826991765055
42106.23105.9834247384170.246575261583356
43106.23105.9208669964160.309133003583678
44106.23105.9409287311440.289071268856351
45106.34106.054303930780.285696069220001
46106.44106.1721187265980.267881273401967
47106.44106.2196833893250.220316610674844
48106.48106.2989287311440.181071268856347
49106.5106.3939809317420.106019068258051
50106.57106.3988569299240.171143070076289
51106.4106.3947983893780.00520161062202413
52106.37106.450109724833-0.0801097248326048
53106.25106.570101207015-0.320101207015001
54106.21106.618972946288-0.408972946287952
55106.21106.611098545197-0.401098545197003
56106.24106.508669596287-0.268669596287335
57106.19106.589234791378-0.399234791378059
58106.08106.759545594469-0.679545594469084
59106.13106.831170927196-0.701170927196333
60106.09106.746366246287-0.656366246286713

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 103.63 & 103.514938720255 & 0.115061279744937 \tabularnewline
2 & 103.64 & 103.62043206571 & 0.0195679342899749 \tabularnewline
3 & 103.66 & 103.769486879711 & -0.109486879710544 \tabularnewline
4 & 103.77 & 103.820423547892 & -0.0504235478924228 \tabularnewline
5 & 103.88 & 103.800425677347 & 0.0795743226531766 \tabularnewline
6 & 103.91 & 103.864608752074 & 0.0453912479256085 \tabularnewline
7 & 103.91 & 103.933291028257 & -0.0232910282565623 \tabularnewline
8 & 103.92 & 103.999286769348 & -0.0792867693477565 \tabularnewline
9 & 104.05 & 104.169532643530 & -0.119532643529858 \tabularnewline
10 & 104.23 & 104.394526787530 & -0.164526787530249 \tabularnewline
11 & 104.3 & 104.501149458439 & -0.201149458439500 \tabularnewline
12 & 104.31 & 104.556334130258 & -0.246334130257874 \tabularnewline
13 & 104.31 & 104.856995692675 & -0.546995692675405 \tabularnewline
14 & 104.34 & 104.903431029948 & -0.563431029948282 \tabularnewline
15 & 104.55 & 104.925620493039 & -0.375620493039064 \tabularnewline
16 & 104.65 & 104.934997822130 & -0.284997822129811 \tabularnewline
17 & 104.73 & 104.893126615220 & -0.163126615220464 \tabularnewline
18 & 104.75 & 104.830444339038 & -0.0804443390382939 \tabularnewline
19 & 104.75 & 104.824757271584 & -0.0747572715837193 \tabularnewline
20 & 104.76 & 104.888565679039 & -0.128565679038538 \tabularnewline
21 & 104.94 & 105.008502879584 & -0.0685028795840206 \tabularnewline
22 & 105.29 & 105.185375683584 & 0.104624316415838 \tabularnewline
23 & 105.38 & 105.261375683584 & 0.118624316415831 \tabularnewline
24 & 105.43 & 105.305623687221 & 0.124376312779338 \tabularnewline
25 & 105.43 & 105.545039907820 & -0.115039907819696 \tabularnewline
26 & 105.42 & 105.538979237820 & -0.118979237819582 \tabularnewline
27 & 105.52 & 105.587416704547 & -0.0674167045468627 \tabularnewline
28 & 105.69 & 105.623042037274 & 0.0669579627258855 \tabularnewline
29 & 105.72 & 105.546173492183 & 0.173826507817234 \tabularnewline
30 & 105.74 & 105.542549224183 & 0.197450775817281 \tabularnewline
31 & 105.74 & 105.549986158546 & 0.190013841453607 \tabularnewline
32 & 105.74 & 105.552549224183 & 0.187450775817279 \tabularnewline
33 & 105.95 & 105.648425754728 & 0.301574245271936 \tabularnewline
34 & 106.17 & 105.698433207818 & 0.471566792181528 \tabularnewline
35 & 106.34 & 105.776620541455 & 0.563379458545159 \tabularnewline
36 & 106.37 & 105.772747205091 & 0.597252794908903 \tabularnewline
37 & 106.37 & 105.929044747508 & 0.440955252492114 \tabularnewline
38 & 106.36 & 105.868300736598 & 0.4916992634016 \tabularnewline
39 & 106.44 & 105.892677533326 & 0.547322466674447 \tabularnewline
40 & 106.29 & 105.941426867871 & 0.348573132128953 \tabularnewline
41 & 106.23 & 106.000173008235 & 0.229826991765055 \tabularnewline
42 & 106.23 & 105.983424738417 & 0.246575261583356 \tabularnewline
43 & 106.23 & 105.920866996416 & 0.309133003583678 \tabularnewline
44 & 106.23 & 105.940928731144 & 0.289071268856351 \tabularnewline
45 & 106.34 & 106.05430393078 & 0.285696069220001 \tabularnewline
46 & 106.44 & 106.172118726598 & 0.267881273401967 \tabularnewline
47 & 106.44 & 106.219683389325 & 0.220316610674844 \tabularnewline
48 & 106.48 & 106.298928731144 & 0.181071268856347 \tabularnewline
49 & 106.5 & 106.393980931742 & 0.106019068258051 \tabularnewline
50 & 106.57 & 106.398856929924 & 0.171143070076289 \tabularnewline
51 & 106.4 & 106.394798389378 & 0.00520161062202413 \tabularnewline
52 & 106.37 & 106.450109724833 & -0.0801097248326048 \tabularnewline
53 & 106.25 & 106.570101207015 & -0.320101207015001 \tabularnewline
54 & 106.21 & 106.618972946288 & -0.408972946287952 \tabularnewline
55 & 106.21 & 106.611098545197 & -0.401098545197003 \tabularnewline
56 & 106.24 & 106.508669596287 & -0.268669596287335 \tabularnewline
57 & 106.19 & 106.589234791378 & -0.399234791378059 \tabularnewline
58 & 106.08 & 106.759545594469 & -0.679545594469084 \tabularnewline
59 & 106.13 & 106.831170927196 & -0.701170927196333 \tabularnewline
60 & 106.09 & 106.746366246287 & -0.656366246286713 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57223&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]103.63[/C][C]103.514938720255[/C][C]0.115061279744937[/C][/ROW]
[ROW][C]2[/C][C]103.64[/C][C]103.62043206571[/C][C]0.0195679342899749[/C][/ROW]
[ROW][C]3[/C][C]103.66[/C][C]103.769486879711[/C][C]-0.109486879710544[/C][/ROW]
[ROW][C]4[/C][C]103.77[/C][C]103.820423547892[/C][C]-0.0504235478924228[/C][/ROW]
[ROW][C]5[/C][C]103.88[/C][C]103.800425677347[/C][C]0.0795743226531766[/C][/ROW]
[ROW][C]6[/C][C]103.91[/C][C]103.864608752074[/C][C]0.0453912479256085[/C][/ROW]
[ROW][C]7[/C][C]103.91[/C][C]103.933291028257[/C][C]-0.0232910282565623[/C][/ROW]
[ROW][C]8[/C][C]103.92[/C][C]103.999286769348[/C][C]-0.0792867693477565[/C][/ROW]
[ROW][C]9[/C][C]104.05[/C][C]104.169532643530[/C][C]-0.119532643529858[/C][/ROW]
[ROW][C]10[/C][C]104.23[/C][C]104.394526787530[/C][C]-0.164526787530249[/C][/ROW]
[ROW][C]11[/C][C]104.3[/C][C]104.501149458439[/C][C]-0.201149458439500[/C][/ROW]
[ROW][C]12[/C][C]104.31[/C][C]104.556334130258[/C][C]-0.246334130257874[/C][/ROW]
[ROW][C]13[/C][C]104.31[/C][C]104.856995692675[/C][C]-0.546995692675405[/C][/ROW]
[ROW][C]14[/C][C]104.34[/C][C]104.903431029948[/C][C]-0.563431029948282[/C][/ROW]
[ROW][C]15[/C][C]104.55[/C][C]104.925620493039[/C][C]-0.375620493039064[/C][/ROW]
[ROW][C]16[/C][C]104.65[/C][C]104.934997822130[/C][C]-0.284997822129811[/C][/ROW]
[ROW][C]17[/C][C]104.73[/C][C]104.893126615220[/C][C]-0.163126615220464[/C][/ROW]
[ROW][C]18[/C][C]104.75[/C][C]104.830444339038[/C][C]-0.0804443390382939[/C][/ROW]
[ROW][C]19[/C][C]104.75[/C][C]104.824757271584[/C][C]-0.0747572715837193[/C][/ROW]
[ROW][C]20[/C][C]104.76[/C][C]104.888565679039[/C][C]-0.128565679038538[/C][/ROW]
[ROW][C]21[/C][C]104.94[/C][C]105.008502879584[/C][C]-0.0685028795840206[/C][/ROW]
[ROW][C]22[/C][C]105.29[/C][C]105.185375683584[/C][C]0.104624316415838[/C][/ROW]
[ROW][C]23[/C][C]105.38[/C][C]105.261375683584[/C][C]0.118624316415831[/C][/ROW]
[ROW][C]24[/C][C]105.43[/C][C]105.305623687221[/C][C]0.124376312779338[/C][/ROW]
[ROW][C]25[/C][C]105.43[/C][C]105.545039907820[/C][C]-0.115039907819696[/C][/ROW]
[ROW][C]26[/C][C]105.42[/C][C]105.538979237820[/C][C]-0.118979237819582[/C][/ROW]
[ROW][C]27[/C][C]105.52[/C][C]105.587416704547[/C][C]-0.0674167045468627[/C][/ROW]
[ROW][C]28[/C][C]105.69[/C][C]105.623042037274[/C][C]0.0669579627258855[/C][/ROW]
[ROW][C]29[/C][C]105.72[/C][C]105.546173492183[/C][C]0.173826507817234[/C][/ROW]
[ROW][C]30[/C][C]105.74[/C][C]105.542549224183[/C][C]0.197450775817281[/C][/ROW]
[ROW][C]31[/C][C]105.74[/C][C]105.549986158546[/C][C]0.190013841453607[/C][/ROW]
[ROW][C]32[/C][C]105.74[/C][C]105.552549224183[/C][C]0.187450775817279[/C][/ROW]
[ROW][C]33[/C][C]105.95[/C][C]105.648425754728[/C][C]0.301574245271936[/C][/ROW]
[ROW][C]34[/C][C]106.17[/C][C]105.698433207818[/C][C]0.471566792181528[/C][/ROW]
[ROW][C]35[/C][C]106.34[/C][C]105.776620541455[/C][C]0.563379458545159[/C][/ROW]
[ROW][C]36[/C][C]106.37[/C][C]105.772747205091[/C][C]0.597252794908903[/C][/ROW]
[ROW][C]37[/C][C]106.37[/C][C]105.929044747508[/C][C]0.440955252492114[/C][/ROW]
[ROW][C]38[/C][C]106.36[/C][C]105.868300736598[/C][C]0.4916992634016[/C][/ROW]
[ROW][C]39[/C][C]106.44[/C][C]105.892677533326[/C][C]0.547322466674447[/C][/ROW]
[ROW][C]40[/C][C]106.29[/C][C]105.941426867871[/C][C]0.348573132128953[/C][/ROW]
[ROW][C]41[/C][C]106.23[/C][C]106.000173008235[/C][C]0.229826991765055[/C][/ROW]
[ROW][C]42[/C][C]106.23[/C][C]105.983424738417[/C][C]0.246575261583356[/C][/ROW]
[ROW][C]43[/C][C]106.23[/C][C]105.920866996416[/C][C]0.309133003583678[/C][/ROW]
[ROW][C]44[/C][C]106.23[/C][C]105.940928731144[/C][C]0.289071268856351[/C][/ROW]
[ROW][C]45[/C][C]106.34[/C][C]106.05430393078[/C][C]0.285696069220001[/C][/ROW]
[ROW][C]46[/C][C]106.44[/C][C]106.172118726598[/C][C]0.267881273401967[/C][/ROW]
[ROW][C]47[/C][C]106.44[/C][C]106.219683389325[/C][C]0.220316610674844[/C][/ROW]
[ROW][C]48[/C][C]106.48[/C][C]106.298928731144[/C][C]0.181071268856347[/C][/ROW]
[ROW][C]49[/C][C]106.5[/C][C]106.393980931742[/C][C]0.106019068258051[/C][/ROW]
[ROW][C]50[/C][C]106.57[/C][C]106.398856929924[/C][C]0.171143070076289[/C][/ROW]
[ROW][C]51[/C][C]106.4[/C][C]106.394798389378[/C][C]0.00520161062202413[/C][/ROW]
[ROW][C]52[/C][C]106.37[/C][C]106.450109724833[/C][C]-0.0801097248326048[/C][/ROW]
[ROW][C]53[/C][C]106.25[/C][C]106.570101207015[/C][C]-0.320101207015001[/C][/ROW]
[ROW][C]54[/C][C]106.21[/C][C]106.618972946288[/C][C]-0.408972946287952[/C][/ROW]
[ROW][C]55[/C][C]106.21[/C][C]106.611098545197[/C][C]-0.401098545197003[/C][/ROW]
[ROW][C]56[/C][C]106.24[/C][C]106.508669596287[/C][C]-0.268669596287335[/C][/ROW]
[ROW][C]57[/C][C]106.19[/C][C]106.589234791378[/C][C]-0.399234791378059[/C][/ROW]
[ROW][C]58[/C][C]106.08[/C][C]106.759545594469[/C][C]-0.679545594469084[/C][/ROW]
[ROW][C]59[/C][C]106.13[/C][C]106.831170927196[/C][C]-0.701170927196333[/C][/ROW]
[ROW][C]60[/C][C]106.09[/C][C]106.746366246287[/C][C]-0.656366246286713[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57223&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57223&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
1103.63103.5149387202550.115061279744937
2103.64103.620432065710.0195679342899749
3103.66103.769486879711-0.109486879710544
4103.77103.820423547892-0.0504235478924228
5103.88103.8004256773470.0795743226531766
6103.91103.8646087520740.0453912479256085
7103.91103.933291028257-0.0232910282565623
8103.92103.999286769348-0.0792867693477565
9104.05104.169532643530-0.119532643529858
10104.23104.394526787530-0.164526787530249
11104.3104.501149458439-0.201149458439500
12104.31104.556334130258-0.246334130257874
13104.31104.856995692675-0.546995692675405
14104.34104.903431029948-0.563431029948282
15104.55104.925620493039-0.375620493039064
16104.65104.934997822130-0.284997822129811
17104.73104.893126615220-0.163126615220464
18104.75104.830444339038-0.0804443390382939
19104.75104.824757271584-0.0747572715837193
20104.76104.888565679039-0.128565679038538
21104.94105.008502879584-0.0685028795840206
22105.29105.1853756835840.104624316415838
23105.38105.2613756835840.118624316415831
24105.43105.3056236872210.124376312779338
25105.43105.545039907820-0.115039907819696
26105.42105.538979237820-0.118979237819582
27105.52105.587416704547-0.0674167045468627
28105.69105.6230420372740.0669579627258855
29105.72105.5461734921830.173826507817234
30105.74105.5425492241830.197450775817281
31105.74105.5499861585460.190013841453607
32105.74105.5525492241830.187450775817279
33105.95105.6484257547280.301574245271936
34106.17105.6984332078180.471566792181528
35106.34105.7766205414550.563379458545159
36106.37105.7727472050910.597252794908903
37106.37105.9290447475080.440955252492114
38106.36105.8683007365980.4916992634016
39106.44105.8926775333260.547322466674447
40106.29105.9414268678710.348573132128953
41106.23106.0001730082350.229826991765055
42106.23105.9834247384170.246575261583356
43106.23105.9208669964160.309133003583678
44106.23105.9409287311440.289071268856351
45106.34106.054303930780.285696069220001
46106.44106.1721187265980.267881273401967
47106.44106.2196833893250.220316610674844
48106.48106.2989287311440.181071268856347
49106.5106.3939809317420.106019068258051
50106.57106.3988569299240.171143070076289
51106.4106.3947983893780.00520161062202413
52106.37106.450109724833-0.0801097248326048
53106.25106.570101207015-0.320101207015001
54106.21106.618972946288-0.408972946287952
55106.21106.611098545197-0.401098545197003
56106.24106.508669596287-0.268669596287335
57106.19106.589234791378-0.399234791378059
58106.08106.759545594469-0.679545594469084
59106.13106.831170927196-0.701170927196333
60106.09106.746366246287-0.656366246286713







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0009264875932503450.001852975186500690.99907351240675
180.0007189442033335760.001437888406667150.999281055796666
190.0002677225905810010.0005354451811620020.99973227740942
209.2853734916939e-050.0001857074698338780.999907146265083
214.0045636405382e-058.0091272810764e-050.999959954363595
227.96863741772666e-050.0001593727483545330.999920313625823
239.244198643709e-050.000184883972874180.999907558013563
240.0001048257458434880.0002096514916869760.999895174254157
256.00862444275754e-050.0001201724888551510.999939913755572
264.11709076914053e-058.23418153828106e-050.999958829092309
272.36608871637106e-054.73217743274212e-050.999976339112836
287.06042901135717e-061.41208580227143e-050.999992939570989
297.48143811504224e-061.49628762300845e-050.999992518561885
301.12455887008689e-052.24911774017378e-050.9999887544113
311.95369197468025e-053.9073839493605e-050.999980463080253
329.78413309471307e-050.0001956826618942610.999902158669053
330.0001903340827856050.0003806681655712090.999809665917214
340.000486227255105480.000972454510210960.999513772744895
350.0001998703904106950.0003997407808213890.99980012960959
367.96908023918756e-050.0001593816047837510.999920309197608
370.0001014296692030490.0002028593384060980.999898570330797
380.0009063731863339970.001812746372667990.999093626813666
390.001228974256817430.002457948513634860.998771025743183
400.1035685575496960.2071371150993920.896431442450304
410.3861615057437460.7723230114874910.613838494256254
420.4548783886472690.9097567772945380.545121611352731
430.4109189677356170.8218379354712340.589081032264383

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.000926487593250345 & 0.00185297518650069 & 0.99907351240675 \tabularnewline
18 & 0.000718944203333576 & 0.00143788840666715 & 0.999281055796666 \tabularnewline
19 & 0.000267722590581001 & 0.000535445181162002 & 0.99973227740942 \tabularnewline
20 & 9.2853734916939e-05 & 0.000185707469833878 & 0.999907146265083 \tabularnewline
21 & 4.0045636405382e-05 & 8.0091272810764e-05 & 0.999959954363595 \tabularnewline
22 & 7.96863741772666e-05 & 0.000159372748354533 & 0.999920313625823 \tabularnewline
23 & 9.244198643709e-05 & 0.00018488397287418 & 0.999907558013563 \tabularnewline
24 & 0.000104825745843488 & 0.000209651491686976 & 0.999895174254157 \tabularnewline
25 & 6.00862444275754e-05 & 0.000120172488855151 & 0.999939913755572 \tabularnewline
26 & 4.11709076914053e-05 & 8.23418153828106e-05 & 0.999958829092309 \tabularnewline
27 & 2.36608871637106e-05 & 4.73217743274212e-05 & 0.999976339112836 \tabularnewline
28 & 7.06042901135717e-06 & 1.41208580227143e-05 & 0.999992939570989 \tabularnewline
29 & 7.48143811504224e-06 & 1.49628762300845e-05 & 0.999992518561885 \tabularnewline
30 & 1.12455887008689e-05 & 2.24911774017378e-05 & 0.9999887544113 \tabularnewline
31 & 1.95369197468025e-05 & 3.9073839493605e-05 & 0.999980463080253 \tabularnewline
32 & 9.78413309471307e-05 & 0.000195682661894261 & 0.999902158669053 \tabularnewline
33 & 0.000190334082785605 & 0.000380668165571209 & 0.999809665917214 \tabularnewline
34 & 0.00048622725510548 & 0.00097245451021096 & 0.999513772744895 \tabularnewline
35 & 0.000199870390410695 & 0.000399740780821389 & 0.99980012960959 \tabularnewline
36 & 7.96908023918756e-05 & 0.000159381604783751 & 0.999920309197608 \tabularnewline
37 & 0.000101429669203049 & 0.000202859338406098 & 0.999898570330797 \tabularnewline
38 & 0.000906373186333997 & 0.00181274637266799 & 0.999093626813666 \tabularnewline
39 & 0.00122897425681743 & 0.00245794851363486 & 0.998771025743183 \tabularnewline
40 & 0.103568557549696 & 0.207137115099392 & 0.896431442450304 \tabularnewline
41 & 0.386161505743746 & 0.772323011487491 & 0.613838494256254 \tabularnewline
42 & 0.454878388647269 & 0.909756777294538 & 0.545121611352731 \tabularnewline
43 & 0.410918967735617 & 0.821837935471234 & 0.589081032264383 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57223&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]17[/C][C]0.000926487593250345[/C][C]0.00185297518650069[/C][C]0.99907351240675[/C][/ROW]
[ROW][C]18[/C][C]0.000718944203333576[/C][C]0.00143788840666715[/C][C]0.999281055796666[/C][/ROW]
[ROW][C]19[/C][C]0.000267722590581001[/C][C]0.000535445181162002[/C][C]0.99973227740942[/C][/ROW]
[ROW][C]20[/C][C]9.2853734916939e-05[/C][C]0.000185707469833878[/C][C]0.999907146265083[/C][/ROW]
[ROW][C]21[/C][C]4.0045636405382e-05[/C][C]8.0091272810764e-05[/C][C]0.999959954363595[/C][/ROW]
[ROW][C]22[/C][C]7.96863741772666e-05[/C][C]0.000159372748354533[/C][C]0.999920313625823[/C][/ROW]
[ROW][C]23[/C][C]9.244198643709e-05[/C][C]0.00018488397287418[/C][C]0.999907558013563[/C][/ROW]
[ROW][C]24[/C][C]0.000104825745843488[/C][C]0.000209651491686976[/C][C]0.999895174254157[/C][/ROW]
[ROW][C]25[/C][C]6.00862444275754e-05[/C][C]0.000120172488855151[/C][C]0.999939913755572[/C][/ROW]
[ROW][C]26[/C][C]4.11709076914053e-05[/C][C]8.23418153828106e-05[/C][C]0.999958829092309[/C][/ROW]
[ROW][C]27[/C][C]2.36608871637106e-05[/C][C]4.73217743274212e-05[/C][C]0.999976339112836[/C][/ROW]
[ROW][C]28[/C][C]7.06042901135717e-06[/C][C]1.41208580227143e-05[/C][C]0.999992939570989[/C][/ROW]
[ROW][C]29[/C][C]7.48143811504224e-06[/C][C]1.49628762300845e-05[/C][C]0.999992518561885[/C][/ROW]
[ROW][C]30[/C][C]1.12455887008689e-05[/C][C]2.24911774017378e-05[/C][C]0.9999887544113[/C][/ROW]
[ROW][C]31[/C][C]1.95369197468025e-05[/C][C]3.9073839493605e-05[/C][C]0.999980463080253[/C][/ROW]
[ROW][C]32[/C][C]9.78413309471307e-05[/C][C]0.000195682661894261[/C][C]0.999902158669053[/C][/ROW]
[ROW][C]33[/C][C]0.000190334082785605[/C][C]0.000380668165571209[/C][C]0.999809665917214[/C][/ROW]
[ROW][C]34[/C][C]0.00048622725510548[/C][C]0.00097245451021096[/C][C]0.999513772744895[/C][/ROW]
[ROW][C]35[/C][C]0.000199870390410695[/C][C]0.000399740780821389[/C][C]0.99980012960959[/C][/ROW]
[ROW][C]36[/C][C]7.96908023918756e-05[/C][C]0.000159381604783751[/C][C]0.999920309197608[/C][/ROW]
[ROW][C]37[/C][C]0.000101429669203049[/C][C]0.000202859338406098[/C][C]0.999898570330797[/C][/ROW]
[ROW][C]38[/C][C]0.000906373186333997[/C][C]0.00181274637266799[/C][C]0.999093626813666[/C][/ROW]
[ROW][C]39[/C][C]0.00122897425681743[/C][C]0.00245794851363486[/C][C]0.998771025743183[/C][/ROW]
[ROW][C]40[/C][C]0.103568557549696[/C][C]0.207137115099392[/C][C]0.896431442450304[/C][/ROW]
[ROW][C]41[/C][C]0.386161505743746[/C][C]0.772323011487491[/C][C]0.613838494256254[/C][/ROW]
[ROW][C]42[/C][C]0.454878388647269[/C][C]0.909756777294538[/C][C]0.545121611352731[/C][/ROW]
[ROW][C]43[/C][C]0.410918967735617[/C][C]0.821837935471234[/C][C]0.589081032264383[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57223&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57223&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
170.0009264875932503450.001852975186500690.99907351240675
180.0007189442033335760.001437888406667150.999281055796666
190.0002677225905810010.0005354451811620020.99973227740942
209.2853734916939e-050.0001857074698338780.999907146265083
214.0045636405382e-058.0091272810764e-050.999959954363595
227.96863741772666e-050.0001593727483545330.999920313625823
239.244198643709e-050.000184883972874180.999907558013563
240.0001048257458434880.0002096514916869760.999895174254157
256.00862444275754e-050.0001201724888551510.999939913755572
264.11709076914053e-058.23418153828106e-050.999958829092309
272.36608871637106e-054.73217743274212e-050.999976339112836
287.06042901135717e-061.41208580227143e-050.999992939570989
297.48143811504224e-061.49628762300845e-050.999992518561885
301.12455887008689e-052.24911774017378e-050.9999887544113
311.95369197468025e-053.9073839493605e-050.999980463080253
329.78413309471307e-050.0001956826618942610.999902158669053
330.0001903340827856050.0003806681655712090.999809665917214
340.000486227255105480.000972454510210960.999513772744895
350.0001998703904106950.0003997407808213890.99980012960959
367.96908023918756e-050.0001593816047837510.999920309197608
370.0001014296692030490.0002028593384060980.999898570330797
380.0009063731863339970.001812746372667990.999093626813666
390.001228974256817430.002457948513634860.998771025743183
400.1035685575496960.2071371150993920.896431442450304
410.3861615057437460.7723230114874910.613838494256254
420.4548783886472690.9097567772945380.545121611352731
430.4109189677356170.8218379354712340.589081032264383







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57223&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 level230.851851851851852NOK
5% type I error level230.851851851851852NOK
10% type I error level230.851851851851852NOK



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