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 computationWed, 17 Dec 2008 03:49:06 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/17/t1229511532phfecwtfraeza19.htm/, Retrieved Fri, 17 May 2024 04:09:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=34299, Retrieved Fri, 17 May 2024 04:09:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact203
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Multiple Regression] [MLR] [2008-11-26 18:25:12] [3ffd109c9e040b1ae7e5dbe576d4698c]
- R P   [Multiple Regression] [Multiple Lineair ...] [2008-12-16 16:18:01] [3ffd109c9e040b1ae7e5dbe576d4698c]
-    D      [Multiple Regression] [] [2008-12-17 10:49:06] [962e6c9020896982bc8283b8971710a9] [Current]
-    D        [Multiple Regression] [multiple lineair ...] [2008-12-22 16:12:14] [3ffd109c9e040b1ae7e5dbe576d4698c]
-    D          [Multiple Regression] [multiple lineair ...] [2008-12-22 16:20:36] [3ffd109c9e040b1ae7e5dbe576d4698c]
Feedback Forum

Post a new message
Dataseries X:
147768	0	1	0
137507	0	2	0
136919	0	3	0
136151	0	4	0
133001	0	5	0
125554	0	6	0
119647	0	7	0
114158	0	8	0
116193	0	9	0
152803	0	10	0
161761	0	11	0
160942	0	12	0
149470	0	13	0
139208	0	14	0
134588	0	15	0
130322	0	16	0
126611	0	17	0
122401	0	18	0
117352	0	19	0
112135	0	20	0
112879	0	21	0
148729	0	22	0
157230	0	23	0
157221	0	24	0
146681	0	25	0
136524	0	26	0
132111	1	0	27
125326	1	0	28
122716	1	0	29
116615	1	0	30
113719	1	0	31
110737	1	0	32
112093	1	0	33
143565	1	0	34
149946	1	0	35
149147	1	0	36
134339	1	0	37
122683	1	0	38
115614	1	0	39
116566	1	0	40
111272	1	0	41
104609	1	0	42
101802	1	0	43
94542	1	0	44
93051	1	0	45
124129	1	0	46
130374	1	0	47
123946	1	0	48
114971	1	0	49
105531	1	0	50
104919	0	51	0
104782	0	52	0
101281	0	53	0
94545	0	54	0
93248	0	55	0
84031	0	56	0
87486	0	57	0
115867	0	58	0
120327	0	59	0
117008	0	60	0
108811	0	61	0




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
y[t] = + 167137.818656418 + 27869.9247953111d[t] -710.61975416534t1[t] -1368.39817229571t2[t] -11297.0905491941M1[t] -19942.1748071491M2[t] -25586.1800927574M3[t] -26813.2489713399M4[t] -29492.7178499224M5[t] -34750.3867285049M6[t] -37367.8556070874M7[t] -42427.1244856699M8[t] -40233.5933642525M9[t] -6581.66224283496M10[t] + 1301.06887858251M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  167137.818656418 +  27869.9247953111d[t] -710.61975416534t1[t] -1368.39817229571t2[t] -11297.0905491941M1[t] -19942.1748071491M2[t] -25586.1800927574M3[t] -26813.2489713399M4[t] -29492.7178499224M5[t] -34750.3867285049M6[t] -37367.8556070874M7[t] -42427.1244856699M8[t] -40233.5933642525M9[t] -6581.66224283496M10[t] +  1301.06887858251M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34299&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  167137.818656418 +  27869.9247953111d[t] -710.61975416534t1[t] -1368.39817229571t2[t] -11297.0905491941M1[t] -19942.1748071491M2[t] -25586.1800927574M3[t] -26813.2489713399M4[t] -29492.7178499224M5[t] -34750.3867285049M6[t] -37367.8556070874M7[t] -42427.1244856699M8[t] -40233.5933642525M9[t] -6581.66224283496M10[t] +  1301.06887858251M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34299&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34299&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] = + 167137.818656418 + 27869.9247953111d[t] -710.61975416534t1[t] -1368.39817229571t2[t] -11297.0905491941M1[t] -19942.1748071491M2[t] -25586.1800927574M3[t] -26813.2489713399M4[t] -29492.7178499224M5[t] -34750.3867285049M6[t] -37367.8556070874M7[t] -42427.1244856699M8[t] -40233.5933642525M9[t] -6581.66224283496M10[t] + 1301.06887858251M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)167137.8186564182103.67572379.450400
d27869.92479531115022.0798295.54951e-061e-06
t1-710.6197541653432.893486-21.603700
t2-1368.39817229571125.374364-10.914500
M1-11297.09054919412451.342923-4.60853.2e-051.6e-05
M2-19942.17480714912581.565338-7.724800
M3-25586.18009275742600.62134-9.838500
M4-26813.24897133992591.117749-10.348100
M5-29492.71784992242582.703187-11.419300
M6-34750.38672850492575.388327-13.493300
M7-37367.85560708742569.182564-14.544600
M8-42427.12448566992564.09395-16.546600
M9-40233.59336425252560.129146-15.715500
M10-6581.662242834962557.29338-2.57370.013350.006675
M111301.068878582512555.590410.50910.6131110.306555

\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) & 167137.818656418 & 2103.675723 & 79.4504 & 0 & 0 \tabularnewline
d & 27869.9247953111 & 5022.079829 & 5.5495 & 1e-06 & 1e-06 \tabularnewline
t1 & -710.61975416534 & 32.893486 & -21.6037 & 0 & 0 \tabularnewline
t2 & -1368.39817229571 & 125.374364 & -10.9145 & 0 & 0 \tabularnewline
M1 & -11297.0905491941 & 2451.342923 & -4.6085 & 3.2e-05 & 1.6e-05 \tabularnewline
M2 & -19942.1748071491 & 2581.565338 & -7.7248 & 0 & 0 \tabularnewline
M3 & -25586.1800927574 & 2600.62134 & -9.8385 & 0 & 0 \tabularnewline
M4 & -26813.2489713399 & 2591.117749 & -10.3481 & 0 & 0 \tabularnewline
M5 & -29492.7178499224 & 2582.703187 & -11.4193 & 0 & 0 \tabularnewline
M6 & -34750.3867285049 & 2575.388327 & -13.4933 & 0 & 0 \tabularnewline
M7 & -37367.8556070874 & 2569.182564 & -14.5446 & 0 & 0 \tabularnewline
M8 & -42427.1244856699 & 2564.09395 & -16.5466 & 0 & 0 \tabularnewline
M9 & -40233.5933642525 & 2560.129146 & -15.7155 & 0 & 0 \tabularnewline
M10 & -6581.66224283496 & 2557.29338 & -2.5737 & 0.01335 & 0.006675 \tabularnewline
M11 & 1301.06887858251 & 2555.59041 & 0.5091 & 0.613111 & 0.306555 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34299&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]167137.818656418[/C][C]2103.675723[/C][C]79.4504[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]d[/C][C]27869.9247953111[/C][C]5022.079829[/C][C]5.5495[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]t1[/C][C]-710.61975416534[/C][C]32.893486[/C][C]-21.6037[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]t2[/C][C]-1368.39817229571[/C][C]125.374364[/C][C]-10.9145[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-11297.0905491941[/C][C]2451.342923[/C][C]-4.6085[/C][C]3.2e-05[/C][C]1.6e-05[/C][/ROW]
[ROW][C]M2[/C][C]-19942.1748071491[/C][C]2581.565338[/C][C]-7.7248[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]-25586.1800927574[/C][C]2600.62134[/C][C]-9.8385[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]-26813.2489713399[/C][C]2591.117749[/C][C]-10.3481[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]-29492.7178499224[/C][C]2582.703187[/C][C]-11.4193[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]-34750.3867285049[/C][C]2575.388327[/C][C]-13.4933[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-37367.8556070874[/C][C]2569.182564[/C][C]-14.5446[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-42427.1244856699[/C][C]2564.09395[/C][C]-16.5466[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-40233.5933642525[/C][C]2560.129146[/C][C]-15.7155[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-6581.66224283496[/C][C]2557.29338[/C][C]-2.5737[/C][C]0.01335[/C][C]0.006675[/C][/ROW]
[ROW][C]M11[/C][C]1301.06887858251[/C][C]2555.59041[/C][C]0.5091[/C][C]0.613111[/C][C]0.306555[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34299&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34299&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)167137.8186564182103.67572379.450400
d27869.92479531115022.0798295.54951e-061e-06
t1-710.6197541653432.893486-21.603700
t2-1368.39817229571125.374364-10.914500
M1-11297.09054919412451.342923-4.60853.2e-051.6e-05
M2-19942.17480714912581.565338-7.724800
M3-25586.18009275742600.62134-9.838500
M4-26813.24897133992591.117749-10.348100
M5-29492.71784992242582.703187-11.419300
M6-34750.38672850492575.388327-13.493300
M7-37367.85560708742569.182564-14.544600
M8-42427.12448566992564.09395-16.546600
M9-40233.59336425252560.129146-15.715500
M10-6581.662242834962557.29338-2.57370.013350.006675
M111301.068878582512555.590410.50910.6131110.306555







Multiple Linear Regression - Regression Statistics
Multiple R0.982719960893569
R-squared0.965738521538657
Adjusted R-squared0.955311115050422
F-TEST (value)92.61540946239
F-TEST (DF numerator)14
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4039.84528855188
Sum Squared Residuals750736097.950002

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.982719960893569 \tabularnewline
R-squared & 0.965738521538657 \tabularnewline
Adjusted R-squared & 0.955311115050422 \tabularnewline
F-TEST (value) & 92.61540946239 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4039.84528855188 \tabularnewline
Sum Squared Residuals & 750736097.950002 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34299&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.982719960893569[/C][/ROW]
[ROW][C]R-squared[/C][C]0.965738521538657[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.955311115050422[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]92.61540946239[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4039.84528855188[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]750736097.950002[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34299&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34299&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.982719960893569
R-squared0.965738521538657
Adjusted R-squared0.955311115050422
F-TEST (value)92.61540946239
F-TEST (DF numerator)14
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4039.84528855188
Sum Squared Residuals750736097.950002







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1147768155130.108353058-7362.10835305808
2137507145774.404340938-8267.40434093833
3136919139419.779301165-2500.77930116461
4136151137482.090668417-1331.09066841675
5133001134092.002035669-1091.00203566894
6125554128123.713402921-2569.71340292106
7119647124795.624770173-5148.62477017326
8114158119025.736137425-4867.73613742539
9116193120508.647504678-4315.64750467755
10152803153449.958871930-646.958871929662
11161761160622.0702391821138.92976081813
12160942158610.3816064342331.61839356598
13149470146602.6713030752867.32869692549
14139208137246.9672909541961.03270904579
15134588130892.3422511813695.65774881942
16130322128954.6536184331367.34638156727
17126611125564.5649856851046.43501431513
18122401119596.2763529372804.72364706298
19117352116268.1877201891083.81227981084
20112135110498.2990874411636.70091255868
21112879111981.210454693897.789545306526
22148729144922.5218219463806.47817805437
23157230152094.6331891985135.36681080224
24157221150082.944556457138.05544355008
25146681138075.2342530908605.76574690954
26136524128719.530240977804.46975902986
27132111132474.812706987-363.812706987501
28125326129879.345656109-4553.34565610927
29122716125831.478605231-3115.47860523105
30116615119205.411554353-2590.41155435283
31113719115219.544503475-1500.54450347459
32110737108791.8774525961945.12254740363
33112093109617.0104017182475.98959828185
34143565141900.543350841664.45664916007
35149946148414.8762999621531.12370003831
36149147145745.4092490833401.59075091654
37134339133079.9205275941259.07947240637
38122683123066.438097343-383.438097342939
39115614116054.034639439-440.034639438937
40116566113458.5675885613107.43241143928
41111272109410.7005376821861.29946231752
42104609102784.6334868041824.36651319574
4310180298798.7664359263003.23356407398
449454292371.09938504782170.90061495220
459305193196.2323341696-145.232334169567
46124129125479.765283291-1350.76528329136
47130374131994.098232413-1620.09823241312
48123946129324.631181535-5378.63118153489
49114971116659.142460045-1688.14246004506
50105531106645.660029794-1114.66002979437
51104919105310.031101228-391.031101228376
52104782103372.3424684811409.65753151947
5310128199982.25383573271298.74616426733
549454594013.9652029848531.03479701517
559324890685.8765702372562.12342976303
568403184915.9879374891-884.987937489114
578748686398.89930474131087.10069525873
58115867119340.210671993-3473.21067199343
59120327126512.322039246-6185.32203924556
60117008124500.633406498-7492.63340649771
61108811112492.923103138-3681.92310313825

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 147768 & 155130.108353058 & -7362.10835305808 \tabularnewline
2 & 137507 & 145774.404340938 & -8267.40434093833 \tabularnewline
3 & 136919 & 139419.779301165 & -2500.77930116461 \tabularnewline
4 & 136151 & 137482.090668417 & -1331.09066841675 \tabularnewline
5 & 133001 & 134092.002035669 & -1091.00203566894 \tabularnewline
6 & 125554 & 128123.713402921 & -2569.71340292106 \tabularnewline
7 & 119647 & 124795.624770173 & -5148.62477017326 \tabularnewline
8 & 114158 & 119025.736137425 & -4867.73613742539 \tabularnewline
9 & 116193 & 120508.647504678 & -4315.64750467755 \tabularnewline
10 & 152803 & 153449.958871930 & -646.958871929662 \tabularnewline
11 & 161761 & 160622.070239182 & 1138.92976081813 \tabularnewline
12 & 160942 & 158610.381606434 & 2331.61839356598 \tabularnewline
13 & 149470 & 146602.671303075 & 2867.32869692549 \tabularnewline
14 & 139208 & 137246.967290954 & 1961.03270904579 \tabularnewline
15 & 134588 & 130892.342251181 & 3695.65774881942 \tabularnewline
16 & 130322 & 128954.653618433 & 1367.34638156727 \tabularnewline
17 & 126611 & 125564.564985685 & 1046.43501431513 \tabularnewline
18 & 122401 & 119596.276352937 & 2804.72364706298 \tabularnewline
19 & 117352 & 116268.187720189 & 1083.81227981084 \tabularnewline
20 & 112135 & 110498.299087441 & 1636.70091255868 \tabularnewline
21 & 112879 & 111981.210454693 & 897.789545306526 \tabularnewline
22 & 148729 & 144922.521821946 & 3806.47817805437 \tabularnewline
23 & 157230 & 152094.633189198 & 5135.36681080224 \tabularnewline
24 & 157221 & 150082.94455645 & 7138.05544355008 \tabularnewline
25 & 146681 & 138075.234253090 & 8605.76574690954 \tabularnewline
26 & 136524 & 128719.53024097 & 7804.46975902986 \tabularnewline
27 & 132111 & 132474.812706987 & -363.812706987501 \tabularnewline
28 & 125326 & 129879.345656109 & -4553.34565610927 \tabularnewline
29 & 122716 & 125831.478605231 & -3115.47860523105 \tabularnewline
30 & 116615 & 119205.411554353 & -2590.41155435283 \tabularnewline
31 & 113719 & 115219.544503475 & -1500.54450347459 \tabularnewline
32 & 110737 & 108791.877452596 & 1945.12254740363 \tabularnewline
33 & 112093 & 109617.010401718 & 2475.98959828185 \tabularnewline
34 & 143565 & 141900.54335084 & 1664.45664916007 \tabularnewline
35 & 149946 & 148414.876299962 & 1531.12370003831 \tabularnewline
36 & 149147 & 145745.409249083 & 3401.59075091654 \tabularnewline
37 & 134339 & 133079.920527594 & 1259.07947240637 \tabularnewline
38 & 122683 & 123066.438097343 & -383.438097342939 \tabularnewline
39 & 115614 & 116054.034639439 & -440.034639438937 \tabularnewline
40 & 116566 & 113458.567588561 & 3107.43241143928 \tabularnewline
41 & 111272 & 109410.700537682 & 1861.29946231752 \tabularnewline
42 & 104609 & 102784.633486804 & 1824.36651319574 \tabularnewline
43 & 101802 & 98798.766435926 & 3003.23356407398 \tabularnewline
44 & 94542 & 92371.0993850478 & 2170.90061495220 \tabularnewline
45 & 93051 & 93196.2323341696 & -145.232334169567 \tabularnewline
46 & 124129 & 125479.765283291 & -1350.76528329136 \tabularnewline
47 & 130374 & 131994.098232413 & -1620.09823241312 \tabularnewline
48 & 123946 & 129324.631181535 & -5378.63118153489 \tabularnewline
49 & 114971 & 116659.142460045 & -1688.14246004506 \tabularnewline
50 & 105531 & 106645.660029794 & -1114.66002979437 \tabularnewline
51 & 104919 & 105310.031101228 & -391.031101228376 \tabularnewline
52 & 104782 & 103372.342468481 & 1409.65753151947 \tabularnewline
53 & 101281 & 99982.2538357327 & 1298.74616426733 \tabularnewline
54 & 94545 & 94013.9652029848 & 531.03479701517 \tabularnewline
55 & 93248 & 90685.876570237 & 2562.12342976303 \tabularnewline
56 & 84031 & 84915.9879374891 & -884.987937489114 \tabularnewline
57 & 87486 & 86398.8993047413 & 1087.10069525873 \tabularnewline
58 & 115867 & 119340.210671993 & -3473.21067199343 \tabularnewline
59 & 120327 & 126512.322039246 & -6185.32203924556 \tabularnewline
60 & 117008 & 124500.633406498 & -7492.63340649771 \tabularnewline
61 & 108811 & 112492.923103138 & -3681.92310313825 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34299&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]147768[/C][C]155130.108353058[/C][C]-7362.10835305808[/C][/ROW]
[ROW][C]2[/C][C]137507[/C][C]145774.404340938[/C][C]-8267.40434093833[/C][/ROW]
[ROW][C]3[/C][C]136919[/C][C]139419.779301165[/C][C]-2500.77930116461[/C][/ROW]
[ROW][C]4[/C][C]136151[/C][C]137482.090668417[/C][C]-1331.09066841675[/C][/ROW]
[ROW][C]5[/C][C]133001[/C][C]134092.002035669[/C][C]-1091.00203566894[/C][/ROW]
[ROW][C]6[/C][C]125554[/C][C]128123.713402921[/C][C]-2569.71340292106[/C][/ROW]
[ROW][C]7[/C][C]119647[/C][C]124795.624770173[/C][C]-5148.62477017326[/C][/ROW]
[ROW][C]8[/C][C]114158[/C][C]119025.736137425[/C][C]-4867.73613742539[/C][/ROW]
[ROW][C]9[/C][C]116193[/C][C]120508.647504678[/C][C]-4315.64750467755[/C][/ROW]
[ROW][C]10[/C][C]152803[/C][C]153449.958871930[/C][C]-646.958871929662[/C][/ROW]
[ROW][C]11[/C][C]161761[/C][C]160622.070239182[/C][C]1138.92976081813[/C][/ROW]
[ROW][C]12[/C][C]160942[/C][C]158610.381606434[/C][C]2331.61839356598[/C][/ROW]
[ROW][C]13[/C][C]149470[/C][C]146602.671303075[/C][C]2867.32869692549[/C][/ROW]
[ROW][C]14[/C][C]139208[/C][C]137246.967290954[/C][C]1961.03270904579[/C][/ROW]
[ROW][C]15[/C][C]134588[/C][C]130892.342251181[/C][C]3695.65774881942[/C][/ROW]
[ROW][C]16[/C][C]130322[/C][C]128954.653618433[/C][C]1367.34638156727[/C][/ROW]
[ROW][C]17[/C][C]126611[/C][C]125564.564985685[/C][C]1046.43501431513[/C][/ROW]
[ROW][C]18[/C][C]122401[/C][C]119596.276352937[/C][C]2804.72364706298[/C][/ROW]
[ROW][C]19[/C][C]117352[/C][C]116268.187720189[/C][C]1083.81227981084[/C][/ROW]
[ROW][C]20[/C][C]112135[/C][C]110498.299087441[/C][C]1636.70091255868[/C][/ROW]
[ROW][C]21[/C][C]112879[/C][C]111981.210454693[/C][C]897.789545306526[/C][/ROW]
[ROW][C]22[/C][C]148729[/C][C]144922.521821946[/C][C]3806.47817805437[/C][/ROW]
[ROW][C]23[/C][C]157230[/C][C]152094.633189198[/C][C]5135.36681080224[/C][/ROW]
[ROW][C]24[/C][C]157221[/C][C]150082.94455645[/C][C]7138.05544355008[/C][/ROW]
[ROW][C]25[/C][C]146681[/C][C]138075.234253090[/C][C]8605.76574690954[/C][/ROW]
[ROW][C]26[/C][C]136524[/C][C]128719.53024097[/C][C]7804.46975902986[/C][/ROW]
[ROW][C]27[/C][C]132111[/C][C]132474.812706987[/C][C]-363.812706987501[/C][/ROW]
[ROW][C]28[/C][C]125326[/C][C]129879.345656109[/C][C]-4553.34565610927[/C][/ROW]
[ROW][C]29[/C][C]122716[/C][C]125831.478605231[/C][C]-3115.47860523105[/C][/ROW]
[ROW][C]30[/C][C]116615[/C][C]119205.411554353[/C][C]-2590.41155435283[/C][/ROW]
[ROW][C]31[/C][C]113719[/C][C]115219.544503475[/C][C]-1500.54450347459[/C][/ROW]
[ROW][C]32[/C][C]110737[/C][C]108791.877452596[/C][C]1945.12254740363[/C][/ROW]
[ROW][C]33[/C][C]112093[/C][C]109617.010401718[/C][C]2475.98959828185[/C][/ROW]
[ROW][C]34[/C][C]143565[/C][C]141900.54335084[/C][C]1664.45664916007[/C][/ROW]
[ROW][C]35[/C][C]149946[/C][C]148414.876299962[/C][C]1531.12370003831[/C][/ROW]
[ROW][C]36[/C][C]149147[/C][C]145745.409249083[/C][C]3401.59075091654[/C][/ROW]
[ROW][C]37[/C][C]134339[/C][C]133079.920527594[/C][C]1259.07947240637[/C][/ROW]
[ROW][C]38[/C][C]122683[/C][C]123066.438097343[/C][C]-383.438097342939[/C][/ROW]
[ROW][C]39[/C][C]115614[/C][C]116054.034639439[/C][C]-440.034639438937[/C][/ROW]
[ROW][C]40[/C][C]116566[/C][C]113458.567588561[/C][C]3107.43241143928[/C][/ROW]
[ROW][C]41[/C][C]111272[/C][C]109410.700537682[/C][C]1861.29946231752[/C][/ROW]
[ROW][C]42[/C][C]104609[/C][C]102784.633486804[/C][C]1824.36651319574[/C][/ROW]
[ROW][C]43[/C][C]101802[/C][C]98798.766435926[/C][C]3003.23356407398[/C][/ROW]
[ROW][C]44[/C][C]94542[/C][C]92371.0993850478[/C][C]2170.90061495220[/C][/ROW]
[ROW][C]45[/C][C]93051[/C][C]93196.2323341696[/C][C]-145.232334169567[/C][/ROW]
[ROW][C]46[/C][C]124129[/C][C]125479.765283291[/C][C]-1350.76528329136[/C][/ROW]
[ROW][C]47[/C][C]130374[/C][C]131994.098232413[/C][C]-1620.09823241312[/C][/ROW]
[ROW][C]48[/C][C]123946[/C][C]129324.631181535[/C][C]-5378.63118153489[/C][/ROW]
[ROW][C]49[/C][C]114971[/C][C]116659.142460045[/C][C]-1688.14246004506[/C][/ROW]
[ROW][C]50[/C][C]105531[/C][C]106645.660029794[/C][C]-1114.66002979437[/C][/ROW]
[ROW][C]51[/C][C]104919[/C][C]105310.031101228[/C][C]-391.031101228376[/C][/ROW]
[ROW][C]52[/C][C]104782[/C][C]103372.342468481[/C][C]1409.65753151947[/C][/ROW]
[ROW][C]53[/C][C]101281[/C][C]99982.2538357327[/C][C]1298.74616426733[/C][/ROW]
[ROW][C]54[/C][C]94545[/C][C]94013.9652029848[/C][C]531.03479701517[/C][/ROW]
[ROW][C]55[/C][C]93248[/C][C]90685.876570237[/C][C]2562.12342976303[/C][/ROW]
[ROW][C]56[/C][C]84031[/C][C]84915.9879374891[/C][C]-884.987937489114[/C][/ROW]
[ROW][C]57[/C][C]87486[/C][C]86398.8993047413[/C][C]1087.10069525873[/C][/ROW]
[ROW][C]58[/C][C]115867[/C][C]119340.210671993[/C][C]-3473.21067199343[/C][/ROW]
[ROW][C]59[/C][C]120327[/C][C]126512.322039246[/C][C]-6185.32203924556[/C][/ROW]
[ROW][C]60[/C][C]117008[/C][C]124500.633406498[/C][C]-7492.63340649771[/C][/ROW]
[ROW][C]61[/C][C]108811[/C][C]112492.923103138[/C][C]-3681.92310313825[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34299&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34299&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
1147768155130.108353058-7362.10835305808
2137507145774.404340938-8267.40434093833
3136919139419.779301165-2500.77930116461
4136151137482.090668417-1331.09066841675
5133001134092.002035669-1091.00203566894
6125554128123.713402921-2569.71340292106
7119647124795.624770173-5148.62477017326
8114158119025.736137425-4867.73613742539
9116193120508.647504678-4315.64750467755
10152803153449.958871930-646.958871929662
11161761160622.0702391821138.92976081813
12160942158610.3816064342331.61839356598
13149470146602.6713030752867.32869692549
14139208137246.9672909541961.03270904579
15134588130892.3422511813695.65774881942
16130322128954.6536184331367.34638156727
17126611125564.5649856851046.43501431513
18122401119596.2763529372804.72364706298
19117352116268.1877201891083.81227981084
20112135110498.2990874411636.70091255868
21112879111981.210454693897.789545306526
22148729144922.5218219463806.47817805437
23157230152094.6331891985135.36681080224
24157221150082.944556457138.05544355008
25146681138075.2342530908605.76574690954
26136524128719.530240977804.46975902986
27132111132474.812706987-363.812706987501
28125326129879.345656109-4553.34565610927
29122716125831.478605231-3115.47860523105
30116615119205.411554353-2590.41155435283
31113719115219.544503475-1500.54450347459
32110737108791.8774525961945.12254740363
33112093109617.0104017182475.98959828185
34143565141900.543350841664.45664916007
35149946148414.8762999621531.12370003831
36149147145745.4092490833401.59075091654
37134339133079.9205275941259.07947240637
38122683123066.438097343-383.438097342939
39115614116054.034639439-440.034639438937
40116566113458.5675885613107.43241143928
41111272109410.7005376821861.29946231752
42104609102784.6334868041824.36651319574
4310180298798.7664359263003.23356407398
449454292371.09938504782170.90061495220
459305193196.2323341696-145.232334169567
46124129125479.765283291-1350.76528329136
47130374131994.098232413-1620.09823241312
48123946129324.631181535-5378.63118153489
49114971116659.142460045-1688.14246004506
50105531106645.660029794-1114.66002979437
51104919105310.031101228-391.031101228376
52104782103372.3424684811409.65753151947
5310128199982.25383573271298.74616426733
549454594013.9652029848531.03479701517
559324890685.8765702372562.12342976303
568403184915.9879374891-884.987937489114
578748686398.89930474131087.10069525873
58115867119340.210671993-3473.21067199343
59120327126512.322039246-6185.32203924556
60117008124500.633406498-7492.63340649771
61108811112492.923103138-3681.92310313825







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.5854633905950840.8290732188098320.414536609404916
190.4598160092533340.9196320185066670.540183990746666
200.3671826743690140.7343653487380270.632817325630986
210.3747798211478260.7495596422956520.625220178852174
220.3234806892975510.6469613785951020.676519310702449
230.2657587218149820.5315174436299630.734241278185018
240.1806609143311180.3613218286622360.819339085668882
250.1421074252477820.2842148504955640.857892574752218
260.1297251235824570.2594502471649130.870274876417543
270.08186397968870550.1637279593774110.918136020311294
280.09445096636667250.1889019327333450.905549033633327
290.1289799748177570.2579599496355140.871020025182243
300.1819408452920760.3638816905841530.818059154707924
310.594213198082970.811573603834060.40578680191703
320.6664557474252660.6670885051494680.333544252574734
330.67432632537640.6513473492471990.325673674623599
340.6838089917720580.6323820164558840.316191008227942
350.6919327721097840.6161344557804330.308067227890216
360.9779324296384070.04413514072318510.0220675703615926
370.9774701918252040.04505961634959170.0225298081747958
380.9626978631717680.0746042736564650.0373021368282325
390.9505104941001020.0989790117997960.049489505899898
400.9157657506659630.1684684986680740.0842342493340371
410.8379003069708260.3241993860583490.162099693029174
420.7191528193319430.5616943613361150.280847180668057
430.5664774594205320.8670450811589360.433522540579468

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.585463390595084 & 0.829073218809832 & 0.414536609404916 \tabularnewline
19 & 0.459816009253334 & 0.919632018506667 & 0.540183990746666 \tabularnewline
20 & 0.367182674369014 & 0.734365348738027 & 0.632817325630986 \tabularnewline
21 & 0.374779821147826 & 0.749559642295652 & 0.625220178852174 \tabularnewline
22 & 0.323480689297551 & 0.646961378595102 & 0.676519310702449 \tabularnewline
23 & 0.265758721814982 & 0.531517443629963 & 0.734241278185018 \tabularnewline
24 & 0.180660914331118 & 0.361321828662236 & 0.819339085668882 \tabularnewline
25 & 0.142107425247782 & 0.284214850495564 & 0.857892574752218 \tabularnewline
26 & 0.129725123582457 & 0.259450247164913 & 0.870274876417543 \tabularnewline
27 & 0.0818639796887055 & 0.163727959377411 & 0.918136020311294 \tabularnewline
28 & 0.0944509663666725 & 0.188901932733345 & 0.905549033633327 \tabularnewline
29 & 0.128979974817757 & 0.257959949635514 & 0.871020025182243 \tabularnewline
30 & 0.181940845292076 & 0.363881690584153 & 0.818059154707924 \tabularnewline
31 & 0.59421319808297 & 0.81157360383406 & 0.40578680191703 \tabularnewline
32 & 0.666455747425266 & 0.667088505149468 & 0.333544252574734 \tabularnewline
33 & 0.6743263253764 & 0.651347349247199 & 0.325673674623599 \tabularnewline
34 & 0.683808991772058 & 0.632382016455884 & 0.316191008227942 \tabularnewline
35 & 0.691932772109784 & 0.616134455780433 & 0.308067227890216 \tabularnewline
36 & 0.977932429638407 & 0.0441351407231851 & 0.0220675703615926 \tabularnewline
37 & 0.977470191825204 & 0.0450596163495917 & 0.0225298081747958 \tabularnewline
38 & 0.962697863171768 & 0.074604273656465 & 0.0373021368282325 \tabularnewline
39 & 0.950510494100102 & 0.098979011799796 & 0.049489505899898 \tabularnewline
40 & 0.915765750665963 & 0.168468498668074 & 0.0842342493340371 \tabularnewline
41 & 0.837900306970826 & 0.324199386058349 & 0.162099693029174 \tabularnewline
42 & 0.719152819331943 & 0.561694361336115 & 0.280847180668057 \tabularnewline
43 & 0.566477459420532 & 0.867045081158936 & 0.433522540579468 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34299&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]18[/C][C]0.585463390595084[/C][C]0.829073218809832[/C][C]0.414536609404916[/C][/ROW]
[ROW][C]19[/C][C]0.459816009253334[/C][C]0.919632018506667[/C][C]0.540183990746666[/C][/ROW]
[ROW][C]20[/C][C]0.367182674369014[/C][C]0.734365348738027[/C][C]0.632817325630986[/C][/ROW]
[ROW][C]21[/C][C]0.374779821147826[/C][C]0.749559642295652[/C][C]0.625220178852174[/C][/ROW]
[ROW][C]22[/C][C]0.323480689297551[/C][C]0.646961378595102[/C][C]0.676519310702449[/C][/ROW]
[ROW][C]23[/C][C]0.265758721814982[/C][C]0.531517443629963[/C][C]0.734241278185018[/C][/ROW]
[ROW][C]24[/C][C]0.180660914331118[/C][C]0.361321828662236[/C][C]0.819339085668882[/C][/ROW]
[ROW][C]25[/C][C]0.142107425247782[/C][C]0.284214850495564[/C][C]0.857892574752218[/C][/ROW]
[ROW][C]26[/C][C]0.129725123582457[/C][C]0.259450247164913[/C][C]0.870274876417543[/C][/ROW]
[ROW][C]27[/C][C]0.0818639796887055[/C][C]0.163727959377411[/C][C]0.918136020311294[/C][/ROW]
[ROW][C]28[/C][C]0.0944509663666725[/C][C]0.188901932733345[/C][C]0.905549033633327[/C][/ROW]
[ROW][C]29[/C][C]0.128979974817757[/C][C]0.257959949635514[/C][C]0.871020025182243[/C][/ROW]
[ROW][C]30[/C][C]0.181940845292076[/C][C]0.363881690584153[/C][C]0.818059154707924[/C][/ROW]
[ROW][C]31[/C][C]0.59421319808297[/C][C]0.81157360383406[/C][C]0.40578680191703[/C][/ROW]
[ROW][C]32[/C][C]0.666455747425266[/C][C]0.667088505149468[/C][C]0.333544252574734[/C][/ROW]
[ROW][C]33[/C][C]0.6743263253764[/C][C]0.651347349247199[/C][C]0.325673674623599[/C][/ROW]
[ROW][C]34[/C][C]0.683808991772058[/C][C]0.632382016455884[/C][C]0.316191008227942[/C][/ROW]
[ROW][C]35[/C][C]0.691932772109784[/C][C]0.616134455780433[/C][C]0.308067227890216[/C][/ROW]
[ROW][C]36[/C][C]0.977932429638407[/C][C]0.0441351407231851[/C][C]0.0220675703615926[/C][/ROW]
[ROW][C]37[/C][C]0.977470191825204[/C][C]0.0450596163495917[/C][C]0.0225298081747958[/C][/ROW]
[ROW][C]38[/C][C]0.962697863171768[/C][C]0.074604273656465[/C][C]0.0373021368282325[/C][/ROW]
[ROW][C]39[/C][C]0.950510494100102[/C][C]0.098979011799796[/C][C]0.049489505899898[/C][/ROW]
[ROW][C]40[/C][C]0.915765750665963[/C][C]0.168468498668074[/C][C]0.0842342493340371[/C][/ROW]
[ROW][C]41[/C][C]0.837900306970826[/C][C]0.324199386058349[/C][C]0.162099693029174[/C][/ROW]
[ROW][C]42[/C][C]0.719152819331943[/C][C]0.561694361336115[/C][C]0.280847180668057[/C][/ROW]
[ROW][C]43[/C][C]0.566477459420532[/C][C]0.867045081158936[/C][C]0.433522540579468[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34299&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.5854633905950840.8290732188098320.414536609404916
190.4598160092533340.9196320185066670.540183990746666
200.3671826743690140.7343653487380270.632817325630986
210.3747798211478260.7495596422956520.625220178852174
220.3234806892975510.6469613785951020.676519310702449
230.2657587218149820.5315174436299630.734241278185018
240.1806609143311180.3613218286622360.819339085668882
250.1421074252477820.2842148504955640.857892574752218
260.1297251235824570.2594502471649130.870274876417543
270.08186397968870550.1637279593774110.918136020311294
280.09445096636667250.1889019327333450.905549033633327
290.1289799748177570.2579599496355140.871020025182243
300.1819408452920760.3638816905841530.818059154707924
310.594213198082970.811573603834060.40578680191703
320.6664557474252660.6670885051494680.333544252574734
330.67432632537640.6513473492471990.325673674623599
340.6838089917720580.6323820164558840.316191008227942
350.6919327721097840.6161344557804330.308067227890216
360.9779324296384070.04413514072318510.0220675703615926
370.9774701918252040.04505961634959170.0225298081747958
380.9626978631717680.0746042736564650.0373021368282325
390.9505104941001020.0989790117997960.049489505899898
400.9157657506659630.1684684986680740.0842342493340371
410.8379003069708260.3241993860583490.162099693029174
420.7191528193319430.5616943613361150.280847180668057
430.5664774594205320.8670450811589360.433522540579468







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

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

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



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}