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 computationMon, 07 Jan 2019 23:57:45 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2019/Jan/07/t1546901935z62ohytiywspufv.htm/, Retrieved Sun, 28 Apr 2024 16:35:45 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=316285, Retrieved Sun, 28 Apr 2024 16:35:45 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact129
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [2-OIL] [2019-01-07 22:57:45] [69e7a94d6c2436510be1fa376d284346] [Current]
Feedback Forum

Post a new message
Dataseries X:
102750 0.06455399 0.06455399 282153
95276 0.06363636 0.06363636 259675
112053 0.06512702 0.06512702 316283
98841 0.06490826 0.06490826 279958
123102 0.06605923 0.06605923 357042
118152 0.06900452 0.06900452 360020
101752 0.07110609 0.07110609 320591
148219 0.07228381 0.07228381 483085
124966 0.07477876 0.07477876 421856
134741 0.07763158 0.07763158 476763
132168 0.08300654 0.08300654 503245
100950 0.11406926 0.11406926 532182
96418 0.14399142 0.14399142 647074
86891 0.19258475 0.19258475 789458
89796 0.23179916 0.23179916 994712
119663 0.248125 0.248125 1424738
130539 0.24300412 0.24300412 1541564
120851 0.24102041 0.24102041 1426809
145422 0.24473684 0.24473684 1758377
150583 0.239 0.239 1800085
127054 0.23063241 0.23063241 1483000
137473 0.22700587 0.22700587 1594167
127094 0.22737864 0.22737864 1487700
132080 0.2238921 0.2238921 1534900
188311 0.22341651 0.22341651 2192708
107487 0.22209524 0.22209524 1253734
84669 0.22144213 0.22144213 987684
149184 0.22098299 0.22098299 1743435
121026 0.21766917 0.21766917 1401287
81073 0.21268657 0.21268657 924485
132947 0.21107011 0.21107011 1521048
141294 0.20957643 0.20957643 1608249
155077 0.20714286 0.20714286 1754546
145154 0.20856102 0.20856102 1662646
127094 0.21211573 0.21211573 1491140
151414 0.2181982 0.2181982 1833427
167858 0.21996403 0.21996403 2052102
127070 0.22204301 0.22204301 1574206
154692 0.22075134 0.22075134 1908892
170905 0.22139037 0.22139037 2123327
127751 0.21893805 0.21893805 1580460
173795 0.21778169 0.21778169 2149062
190181 0.21698774 0.21698774 2357060
198417 0.21655052 0.21655052 2466075
183018 0.21666667 0.21666667 2283758
171608 0.21502591 0.21502591 2136874
188087 0.21689655 0.21689655 2366629
197042 0.21632302 0.21632302 2481438
208788 0.21435897 0.21435897 2618517
178111 0.22013536 0.22013536 2316637
236455 0.22369748 0.22369748 3147769
233219 0.22416667 0.22416667 3136534
188106 0.22023217 0.22023217 2497719
238876 0.22042834 0.22042834 3196612
205148 0.21901639 0.21901639 2740322
214727 0.21895425 0.21895425 2878105
213428 0.21970684 0.21970684 2878898
195128 0.21866883 0.21866883 2627735
206047 0.22003231 0.22003231 2805396
201773 0.21851852 0.21851852 2738332
192772 0.21744 0.21744 2620138
198230 0.21430843 0.21430843 2673110
181172 0.21246057 0.21246057 2441007
189079 0.21079812 0.21079812 2547261
179073 0.20713178 0.20713178 2392135
197421 0.20506135 0.20506135 2640130
195244 0.20395738 0.20395738 2615402
219826 0.20318182 0.20318182 2948757
211793 0.20105263 0.20105263 2832349
203394 0.2 0.2 2729442
209578 0.19896142 0.19896142 2810524
214769 0.19881832 0.19881832 2890134
226177 0.19970717 0.19970717 3083960
191449 0.2015919 0.2015919 2667818
200989 0.20716332 0.20716332 2907046
216707 0.21133144 0.21133144 3233685
192882 0.22755245 0.22755245 3138742
199736 0.24011065 0.24011065 3468137
202349 0.26087551 0.26087551 3858887
204137 0.28590786 0.28590786 4307915
215588 0.30013405 0.30013405 4826627
229454 0.30757979 0.30757979 5306430
175048 0.30658762 0.30658762 4073176
212799 0.32033898 0.32033898 5227557
181727 0.33830334 0.33830334 4783912
211607 0.36210393 0.36210393 6045056
185853 0.38002497 0.38002497 5657292
158277 0.38765432 0.38765432 4969642
180695 0.38924205 0.38924205 5752470
175959 0.38524788 0.38524788 5606154
139550 0.39056832 0.39056832 4507603
155810 0.39531813 0.39531813 5130418
138305 0.38964286 0.38964286 4526989
147014 0.39033019 0.39033019 4866502
135994 0.38865497 0.38865497 4518661
166455 0.39327926 0.39327926 5649625
177737 0.39390805 0.39390805 6091929
167021 0.40910125 0.40910125 6006906
132134 0.40960452 0.40960452 4789337
169834 0.41436588 0.41436588 6270633
130599 0.40267261 0.40267261 4721978
156836 0.40386313 0.40386313 5737894
119749 0.38264192 0.38264192 4197784
148996 0.37410618 0.37410618 5144820
147491 0.36555794 0.36555794 5024685
147216 0.36027837 0.36027837 4954025
153455 0.36115261 0.36115261 5193070
112004 0.36159574 0.36159574 3807206
158512 0.37550371 0.37550371 5612780
104139 0.3755814 0.3755814 3700067
102536 0.36730159 0.36730159 3558950
93017 0.34984194 0.34984194 3088444
91988 0.33663883 0.33663883 2966414
123616 0.33938144 0.33938144 4069622
134498 0.34123077 0.34123077 4474185
149812 0.33684749 0.33684749 4931024
110334 0.3308478 0.3308478 3574159
136639 0.33034623 0.33034623 4433006
102712 0.33510204 0.33510204 3372594
112951 0.33237705 0.33237705 3664209
107897 0.33231084 0.33231084 3506757
73242 0.31787538 0.31787538 2279010
72800 0.3092952 0.3092952 2204106
78767 0.29168357 0.29168357 2265598
114791 0.28820565 0.28820565 3282109
109351 0.28974874 0.28974874 3152261
122520 0.28958959 0.28958959 3545056
137338 0.29251497 0.29251497 4024797
132061 0.29066534 0.29066534 3865395
130607 0.29069307 0.29069307 3834147
118570 0.28705534 0.28705534 3444461
95873 0.28627838 0.28627838 2780293
103116 0.27134446 0.27134446 2851147
98619 0.26992187 0.26992187 2725835
104178 0.27095517 0.27095517 2896161
123468 0.2700291 0.2700291 3437337
99651 0.26934236 0.26934236 2775272
120264 0.26769527 0.26769527 3338534
122795 0.26945245 0.26945245 3444407
108524 0.264689 0.264689 3001766
105760 0.26085714 0.26085714 2896767
117191 0.2617284 0.2617284 3229794
122882 0.26163343 0.26163343 3385393
93275 0.25925926 0.25925926 2546408
99842 0.25952607 0.25952607 2733681
83803 0.25386792 0.25386792 2255134
61132 0.24483083 0.24483083 1592490
118563 0.24808232 0.24808232 3144303
106993 0.24967381 0.24967381 2866344
118108 0.2464684 0.2464684 3132212
99017 0.2403525 0.2403525 2565530
99852 0.23851852 0.23851852 2572196
112720 0.23471837 0.23471837 2865351
113636 0.23597056 0.23597056 2914776
118220 0.23568807 0.23568807 3037060
128854 0.23824337 0.23824337 3355359
123898 0.23540146 0.23540146 3196558
100823 0.2116194 0.2116194 2332029
115107 0.16636029 0.16636029 2083441
90624 0.11767956 0.11767956 1158172
132001 0.11239669 0 1615692
157969 0.10995434 0 1901948
169333 0.10073059 0 1867747
144907 0.09197812 0 1462108
169346 0.10054446 0 1876349
144666 0.1068903 0 1705609
158829 0.11077899 0 1942481
127286 0.11221719 0 1578344
120578 0.12464029 0 1670868
129293 0.13862007 0 2000491
122371 0.14157003 0 1941812
115176 0.14702751 0 1908866
142168 0.14960212 0 2405578
153260 0.15251101 0 2653680
173906 0.15615114 0 3091110
178446 0.15795455 0 3224968
155962 0.15208696 0 2727461
168257 0.14926279 0 2895730
149456 0.14835355 0 2559393
136105 0.14263432 0 2240558
141507 0.19360415 0 3169753
152084 0.13103448 0 2312408
145138 0.12223176 0 2066842
146548 0.12134927 0 2081852
173098 0.12502128 0 2543098
165471 0.12440678 0 2428877
152271 0.11831224 0 2134222
163201 0.11243697 0 2183883
157823 0.10918197 0 2064925
166167 0.09916805 0 1979904
154253 0.0957606 0 1777089
170299 0.10240664 0 2101211
166388 0.11486375 0 2313858
141051 0.12203947 0 2093014
160254 0.1270646 0 2490397
164995 0.14077985 0 2859846
195971 0.14515347 0 3520885
182635 0.13916197 0 3153454
189829 0.13609325 0 3214007
209476 0.12800963 0 3340225
189848 0.12912 0 3064644
183746 0.13224522 0 3051988
192682 0.13566322 0 3291362
169677 0.14052339 0 3006537
201823 0.14795918 0 3803920
172643 0.14679687 0 3243341
202931 0.13791764 0 3601842
175863 0.12428239 0 2818118
222061 0.1130805 0 3243207
199797 0.10646651 0 2762248
214638 0.10674847 0 2988607
200106 0.14870821 0 3915503
166077 0.19314243 0 4256156
160586 0.22531835 0 4829792
158330 0.22055306 0 4672088
141749 0.19245142 0 3650011
170795 0.17072808 0 3924678
153286 0.13642433 0 2818502
163426 0.12407407 0 2736726
172562 0.12122781 0 2828136
197474 0.12219764 0 3271211
189822 0.12058824 0 3112378
188511 0.11857562 0 3043854
207437 0.12298682 0 3485119
192128 0.12492711 0 3293297
175716 0.13078603 0 3157805
159108 0.13105951 0 2873694
175801 0.12037708 0 2918067
186723 0.1076756 0 2776113
154970 0.1040404 0 2234530
172446 0.10394831 0 2496661
185965 0.11111111 0 2882685
195525 0.1198282 0 3273463
193156 0.13031384 0 3528964
212705 0.12953737 0 3871092
201357 0.12796309 0 3631372
189971 0.12639774 0 3392522
216523 0.12849083 0 3944956
193233 0.12415493 0 3405966
191996 0.11430585 0 3114731
211974 0.10869565 0 3285540
175907 0.10978337 0 2763937
206109 0.11483287 0 3399563
220275 0.11590278 0 3677320
211342 0.11588072 0 3531646
222528 0.11128809 0 3575302
229523 0.10360111 0 3434518
204153 0.10020718 0 2961343
206735 0.09903515 0 2970526
223416 0.10013727 0 3260463
228292 0.09410151 0 3131384
203121 0.08367627 0 2477834
205957 0.07961696 0 2397727
176918 0.08241309 0 2138125
219839 0.0798913 0 2585417
217213 0.08717775 0 2791878
216618 0.09525424 0 3044041
248057 0.10256757 0 3766521
245642 0.10842318 0 3951946
242485 0.10718121 0 3873141
260423 0.10040161 0 3905194
221030 0.09899666 0 3270182
229157 0.10227121 0 3507725
220858 0.09819639 0 3247520
212270 0.1001996 0 3196121
195944 0.10291584 0 3043149
239741 0.10422721 0 3782269
212013 0.11033575 0 3553012
240514 0.11432326 0 4184142
241982 0.11003279 0 4060682
245447 0.10170492 0 3806535
240839 0.09954218 0 3664622
244875 0.10078329 0 3780268
226375 0.09921926 0 3451415
231567 0.09830729 0 3497566
235746 0.10306189 0 3729872
238990 0.10641192 0 3926552
198120 0.10393802 0 3189228
201663 0.11117534 0 3491666
238198 0.12328855 0 4589427
261641 0.12068966 0 4944722
253014 0.11461391 0 4544250
275225 0.11566879 0 4998154
250957 0.11856325 0 4680889
260375 0.1265526 0 5199747
250694 0.13524953 0 5367469
216953 0.13480454 0 4637834
247816 0.13638083 0 5360919
224135 0.13739786 0 4900107
211073 0.1283208 0 4323793
245623 0.11725 0 4607899
250947 0.10692884 0 4298102
278223 0.1065584 0 4745343
254232 0.10511541 0 4284696
266293 0.10224299 0 4368855
280897 0.10541045 0 4761558
274565 0.10378412 0 4593231
280555 0.10959158 0 4967610
252757 0.10681115 0 4360799
250131 0.09950403 0 4013914
271208 0.08855198 0 3880647
230593 0.08042001 0 3001696
263407 0.07324291 0 3128940
289968 0.07243077 0 3412229
282846 0.07248157 0 3337271
271314 0.06822086 0 3018342
289718 0.06605392 0 3122180
300227 0.06456548 0 3166475
259951 0.06717604 0 2857357
263149 0.07109756 0 3068900
267953 0.06579268 0 2890373
252378 0.05723002 0 2367812
280356 0.056056 0 2581125
234298 0.05762918 0 2221070
271574 0.06363636 0 2850722
262378 0.07749699 0 3378898
289457 0.08784597 0 4225641
278274 0.08736462 0 4040329
288932 0.09664067 0 4653736
283813 0.1070018 0 5073475
267600 0.11727219 0 5269952
267574 0.12342449 0 5555979
254862 0.12507427 0 5365458
248974 0.13541295 0 5673236
256840 0.13809242 0 5986952
250914 0.14805654 0 6306821
279334 0.15426402 0 7376263
286549 0.14249854 0 6995605
302266 0.14157434 0 7339987
298205 0.15533643 0 7986628
300843 0.16047454 0 8342710
312955 0.15387731 0 8320435
275962 0.16712723 0 8012324
299561 0.1641954 0 8557200
260975 0.16278001 0 7395423
274836 0.15172414 0 7256085
284112 0.13243861 0 6587525
247331 0.13566553 0 5898237
298120 0.12911464 0 6781360
306008 0.12244206 0 6626718
306813 0.12746201 0 6948021
288550 0.1297191 0 6663067
301636 0.12580282 0 6735350
293215 0.12473239 0 6492209
270713 0.12910824 0 6231952
311803 0.11187394 0 6197131
281316 0.09582864 0 4781081
281450 0.08749293 0 4350243
295494 0.09198193 0 4813470
246411 0.09325084 0 4086188
267037 0.10777405 0 5144978
296134 0.1253059 0 6670620
296505 0.13209121 0 7040913
270677 0.12979433 0 6320662
290855 0.13176013 0 6902840
296068 0.13602656 0 7276197
272653 0.14082873 0 6951007
315720 0.14478764 0 8287834
286298 0.13342526 0 6926586
284170 0.13349917 0 6862036
273338 0.15277931 0 7586818
250262 0.16586565 0 7600554
294768 0.16498371 0 8957771
318088 0.14151251 0 8272846
319111 0.13106267 0 7673432
312982 0.13881328 0 7979665
335511 0.14545949 0 8975122
319674 0.14929577 0 8808654
316796 0.14271058 0 8372252
329992 0.14205405 0 8672081
291352 0.14384824 0 7733246
314131 0.14742268 0 8534732
309876 0.15426566 0 8852497
288494 0.15665951 0 8414097
329991 0.16360726 0 10118324
311663 0.16489362 0 9661668
317854 0.17525119 0 10534772
344729 0.17785978 0 11631044
324108 0.17624076 0 10817829
333756 0.19282322 0 12196274
297013 0.19757767 0 11142685
313249 0.21917234 0 13107077
329660 0.21565445 0 13577287
320586 0.19159222 0 11689111
325786 0.18495018 0 11491026
293425 0.19254432 0 10835581
324180 0.21355406 0 13383428
315528 0.23011305 0 14128664
319982 0.22139918 0 13773585
327865 0.22832905 0 14559106
312106 0.2511259 0 15314485
329039 0.26909369 0 17391215
277589 0.288833 0 15938226
300884 0.28217871 0 16911547
314028 0.26396761 0 16380931
314259 0.25299797 0 15647547
303472 0.26122037 0 15719248
290744 0.2710619 0 15659664
313340 0.26186186 0 16393388
294281 0.28114144 0 16669884
325796 0.30637037 0 20212544
329839 0.30616067 0 20488311
322588 0.31906634 0 20944691
336528 0.32432565 0 22255220
316381 0.30754066 0 19740688
308602 0.27487611 0 17119687
299010 0.25915633 0 15615178
293645 0.26679881 0 15808828
320108 0.25805336 0 16720818
252869 0.24918919 0 12822771
324248 0.25803311 0 17186586
304775 0.27711659 0 17456146
320208 0.28552189 0 19006138
321260 0.29246641 0 19580491
310320 0.31473836 0 20344172
319197 0.32809043 0 21773947
297503 0.32858513 0 20383148
316184 0.34700814 0 22919110
303411 0.37892483 0 24168187
300841 0.39409524 0 24896124








Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time14 seconds
R ServerBig Analytics Cloud Computing Center
R Framework error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time14 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
R Framework error message & 
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=316285&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]14 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [ROW]R Framework error message[/C][C]
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=316285&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316285&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time14 seconds
R ServerBig Analytics Cloud Computing Center
R Framework error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.







Multiple Linear Regression - Estimated Regression Equation
barrels_purchased[t] = + 64646.8 -440020defl_price[t] + 197852defl_pricedum[t] + 0.00684709total_value[t] + 0.271577`barrels_purchased(t-1)`[t] + 0.27762`barrels_purchased(t-2)`[t] + 0.217994`barrels_purchased(t-1s)`[t] + 15315.1M1[t] + 22104.7M2[t] + 19720.7M3[t] + 17832.1M4[t] + 18020M5[t] + 17898.5M6[t] + 9379.88M7[t] + 13974.3M8[t] + 10109.2M9[t] + 10861.5M10[t] + 19493.7M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
barrels_purchased[t] =  +  64646.8 -440020defl_price[t] +  197852defl_pricedum[t] +  0.00684709total_value[t] +  0.271577`barrels_purchased(t-1)`[t] +  0.27762`barrels_purchased(t-2)`[t] +  0.217994`barrels_purchased(t-1s)`[t] +  15315.1M1[t] +  22104.7M2[t] +  19720.7M3[t] +  17832.1M4[t] +  18020M5[t] +  17898.5M6[t] +  9379.88M7[t] +  13974.3M8[t] +  10109.2M9[t] +  10861.5M10[t] +  19493.7M11[t]  + e[t] \tabularnewline
 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=316285&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]barrels_purchased[t] =  +  64646.8 -440020defl_price[t] +  197852defl_pricedum[t] +  0.00684709total_value[t] +  0.271577`barrels_purchased(t-1)`[t] +  0.27762`barrels_purchased(t-2)`[t] +  0.217994`barrels_purchased(t-1s)`[t] +  15315.1M1[t] +  22104.7M2[t] +  19720.7M3[t] +  17832.1M4[t] +  18020M5[t] +  17898.5M6[t] +  9379.88M7[t] +  13974.3M8[t] +  10109.2M9[t] +  10861.5M10[t] +  19493.7M11[t]  + e[t][/C][/ROW]
[ROW][C][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=316285&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316285&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
barrels_purchased[t] = + 64646.8 -440020defl_price[t] + 197852defl_pricedum[t] + 0.00684709total_value[t] + 0.271577`barrels_purchased(t-1)`[t] + 0.27762`barrels_purchased(t-2)`[t] + 0.217994`barrels_purchased(t-1s)`[t] + 15315.1M1[t] + 22104.7M2[t] + 19720.7M3[t] + 17832.1M4[t] + 18020M5[t] + 17898.5M6[t] + 9379.88M7[t] + 13974.3M8[t] + 10109.2M9[t] + 10861.5M10[t] + 19493.7M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)+6.465e+04 8211+7.8730e+00 3.494e-14 1.747e-14
defl_price-4.4e+05 4.622e+04-9.5210e+00 1.881e-19 9.403e-20
defl_pricedum+1.978e+05 2.571e+04+7.6950e+00 1.182e-13 5.912e-14
total_value+0.006847 0.0007186+9.5280e+00 1.777e-19 8.883e-20
`barrels_purchased(t-1)`+0.2716 0.0436+6.2290e+00 1.223e-09 6.116e-10
`barrels_purchased(t-2)`+0.2776 0.04206+6.6010e+00 1.347e-10 6.735e-11
`barrels_purchased(t-1s)`+0.218 0.03426+6.3630e+00 5.573e-10 2.787e-10
M1+1.532e+04 4074+3.7590e+00 0.0001966 9.83e-05
M2+2.21e+04 3989+5.5420e+00 5.532e-08 2.766e-08
M3+1.972e+04 3899+5.0580e+00 6.55e-07 3.275e-07
M4+1.783e+04 3867+4.6120e+00 5.432e-06 2.716e-06
M5+1.802e+04 3856+4.6730e+00 4.098e-06 2.049e-06
M6+1.79e+04 3870+4.6260e+00 5.098e-06 2.549e-06
M7+9380 3759+2.4950e+00 0.01301 0.006504
M8+1.397e+04 3874+3.6070e+00 0.0003501 0.0001751
M9+1.011e+04 3768+2.6830e+00 0.007608 0.003804
M10+1.086e+04 3833+2.8340e+00 0.004839 0.002419
M11+1.949e+04 3905+4.9920e+00 9.063e-07 4.532e-07

\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) & +6.465e+04 &  8211 & +7.8730e+00 &  3.494e-14 &  1.747e-14 \tabularnewline
defl_price & -4.4e+05 &  4.622e+04 & -9.5210e+00 &  1.881e-19 &  9.403e-20 \tabularnewline
defl_pricedum & +1.978e+05 &  2.571e+04 & +7.6950e+00 &  1.182e-13 &  5.912e-14 \tabularnewline
total_value & +0.006847 &  0.0007186 & +9.5280e+00 &  1.777e-19 &  8.883e-20 \tabularnewline
`barrels_purchased(t-1)` & +0.2716 &  0.0436 & +6.2290e+00 &  1.223e-09 &  6.116e-10 \tabularnewline
`barrels_purchased(t-2)` & +0.2776 &  0.04206 & +6.6010e+00 &  1.347e-10 &  6.735e-11 \tabularnewline
`barrels_purchased(t-1s)` & +0.218 &  0.03426 & +6.3630e+00 &  5.573e-10 &  2.787e-10 \tabularnewline
M1 & +1.532e+04 &  4074 & +3.7590e+00 &  0.0001966 &  9.83e-05 \tabularnewline
M2 & +2.21e+04 &  3989 & +5.5420e+00 &  5.532e-08 &  2.766e-08 \tabularnewline
M3 & +1.972e+04 &  3899 & +5.0580e+00 &  6.55e-07 &  3.275e-07 \tabularnewline
M4 & +1.783e+04 &  3867 & +4.6120e+00 &  5.432e-06 &  2.716e-06 \tabularnewline
M5 & +1.802e+04 &  3856 & +4.6730e+00 &  4.098e-06 &  2.049e-06 \tabularnewline
M6 & +1.79e+04 &  3870 & +4.6260e+00 &  5.098e-06 &  2.549e-06 \tabularnewline
M7 & +9380 &  3759 & +2.4950e+00 &  0.01301 &  0.006504 \tabularnewline
M8 & +1.397e+04 &  3874 & +3.6070e+00 &  0.0003501 &  0.0001751 \tabularnewline
M9 & +1.011e+04 &  3768 & +2.6830e+00 &  0.007608 &  0.003804 \tabularnewline
M10 & +1.086e+04 &  3833 & +2.8340e+00 &  0.004839 &  0.002419 \tabularnewline
M11 & +1.949e+04 &  3905 & +4.9920e+00 &  9.063e-07 &  4.532e-07 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=316285&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]+6.465e+04[/C][C] 8211[/C][C]+7.8730e+00[/C][C] 3.494e-14[/C][C] 1.747e-14[/C][/ROW]
[ROW][C]defl_price[/C][C]-4.4e+05[/C][C] 4.622e+04[/C][C]-9.5210e+00[/C][C] 1.881e-19[/C][C] 9.403e-20[/C][/ROW]
[ROW][C]defl_pricedum[/C][C]+1.978e+05[/C][C] 2.571e+04[/C][C]+7.6950e+00[/C][C] 1.182e-13[/C][C] 5.912e-14[/C][/ROW]
[ROW][C]total_value[/C][C]+0.006847[/C][C] 0.0007186[/C][C]+9.5280e+00[/C][C] 1.777e-19[/C][C] 8.883e-20[/C][/ROW]
[ROW][C]`barrels_purchased(t-1)`[/C][C]+0.2716[/C][C] 0.0436[/C][C]+6.2290e+00[/C][C] 1.223e-09[/C][C] 6.116e-10[/C][/ROW]
[ROW][C]`barrels_purchased(t-2)`[/C][C]+0.2776[/C][C] 0.04206[/C][C]+6.6010e+00[/C][C] 1.347e-10[/C][C] 6.735e-11[/C][/ROW]
[ROW][C]`barrels_purchased(t-1s)`[/C][C]+0.218[/C][C] 0.03426[/C][C]+6.3630e+00[/C][C] 5.573e-10[/C][C] 2.787e-10[/C][/ROW]
[ROW][C]M1[/C][C]+1.532e+04[/C][C] 4074[/C][C]+3.7590e+00[/C][C] 0.0001966[/C][C] 9.83e-05[/C][/ROW]
[ROW][C]M2[/C][C]+2.21e+04[/C][C] 3989[/C][C]+5.5420e+00[/C][C] 5.532e-08[/C][C] 2.766e-08[/C][/ROW]
[ROW][C]M3[/C][C]+1.972e+04[/C][C] 3899[/C][C]+5.0580e+00[/C][C] 6.55e-07[/C][C] 3.275e-07[/C][/ROW]
[ROW][C]M4[/C][C]+1.783e+04[/C][C] 3867[/C][C]+4.6120e+00[/C][C] 5.432e-06[/C][C] 2.716e-06[/C][/ROW]
[ROW][C]M5[/C][C]+1.802e+04[/C][C] 3856[/C][C]+4.6730e+00[/C][C] 4.098e-06[/C][C] 2.049e-06[/C][/ROW]
[ROW][C]M6[/C][C]+1.79e+04[/C][C] 3870[/C][C]+4.6260e+00[/C][C] 5.098e-06[/C][C] 2.549e-06[/C][/ROW]
[ROW][C]M7[/C][C]+9380[/C][C] 3759[/C][C]+2.4950e+00[/C][C] 0.01301[/C][C] 0.006504[/C][/ROW]
[ROW][C]M8[/C][C]+1.397e+04[/C][C] 3874[/C][C]+3.6070e+00[/C][C] 0.0003501[/C][C] 0.0001751[/C][/ROW]
[ROW][C]M9[/C][C]+1.011e+04[/C][C] 3768[/C][C]+2.6830e+00[/C][C] 0.007608[/C][C] 0.003804[/C][/ROW]
[ROW][C]M10[/C][C]+1.086e+04[/C][C] 3833[/C][C]+2.8340e+00[/C][C] 0.004839[/C][C] 0.002419[/C][/ROW]
[ROW][C]M11[/C][C]+1.949e+04[/C][C] 3905[/C][C]+4.9920e+00[/C][C] 9.063e-07[/C][C] 4.532e-07[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=316285&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316285&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)+6.465e+04 8211+7.8730e+00 3.494e-14 1.747e-14
defl_price-4.4e+05 4.622e+04-9.5210e+00 1.881e-19 9.403e-20
defl_pricedum+1.978e+05 2.571e+04+7.6950e+00 1.182e-13 5.912e-14
total_value+0.006847 0.0007186+9.5280e+00 1.777e-19 8.883e-20
`barrels_purchased(t-1)`+0.2716 0.0436+6.2290e+00 1.223e-09 6.116e-10
`barrels_purchased(t-2)`+0.2776 0.04206+6.6010e+00 1.347e-10 6.735e-11
`barrels_purchased(t-1s)`+0.218 0.03426+6.3630e+00 5.573e-10 2.787e-10
M1+1.532e+04 4074+3.7590e+00 0.0001966 9.83e-05
M2+2.21e+04 3989+5.5420e+00 5.532e-08 2.766e-08
M3+1.972e+04 3899+5.0580e+00 6.55e-07 3.275e-07
M4+1.783e+04 3867+4.6120e+00 5.432e-06 2.716e-06
M5+1.802e+04 3856+4.6730e+00 4.098e-06 2.049e-06
M6+1.79e+04 3870+4.6260e+00 5.098e-06 2.549e-06
M7+9380 3759+2.4950e+00 0.01301 0.006504
M8+1.397e+04 3874+3.6070e+00 0.0003501 0.0001751
M9+1.011e+04 3768+2.6830e+00 0.007608 0.003804
M10+1.086e+04 3833+2.8340e+00 0.004839 0.002419
M11+1.949e+04 3905+4.9920e+00 9.063e-07 4.532e-07







Multiple Linear Regression - Regression Statistics
Multiple R 0.977
R-squared 0.9546
Adjusted R-squared 0.9526
F-TEST (value) 479.9
F-TEST (DF numerator)17
F-TEST (DF denominator)388
p-value 0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation 1.527e+04
Sum Squared Residuals 9.041e+10

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R &  0.977 \tabularnewline
R-squared &  0.9546 \tabularnewline
Adjusted R-squared &  0.9526 \tabularnewline
F-TEST (value) &  479.9 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 388 \tabularnewline
p-value &  0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation &  1.527e+04 \tabularnewline
Sum Squared Residuals &  9.041e+10 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=316285&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C] 0.977[/C][/ROW]
[ROW][C]R-squared[/C][C] 0.9546[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C] 0.9526[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C] 479.9[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]388[/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] 1.527e+04[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C] 9.041e+10[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=316285&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316285&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 R 0.977
R-squared 0.9546
Adjusted R-squared 0.9526
F-TEST (value) 479.9
F-TEST (DF numerator)17
F-TEST (DF denominator)388
p-value 0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation 1.527e+04
Sum Squared Residuals 9.041e+10







Menu of Residual Diagnostics
DescriptionLink
HistogramCompute
Central TendencyCompute
QQ PlotCompute
Kernel Density PlotCompute
Skewness/Kurtosis TestCompute
Skewness-Kurtosis PlotCompute
Harrell-Davis PlotCompute
Bootstrap Plot -- Central TendencyCompute
Blocked Bootstrap Plot -- Central TendencyCompute
(Partial) Autocorrelation PlotCompute
Spectral AnalysisCompute
Tukey lambda PPCC PlotCompute
Box-Cox Normality PlotCompute
Summary StatisticsCompute

\begin{tabular}{lllllllll}
\hline
Menu of Residual Diagnostics \tabularnewline
Description & Link \tabularnewline
Histogram & Compute \tabularnewline
Central Tendency & Compute \tabularnewline
QQ Plot & Compute \tabularnewline
Kernel Density Plot & Compute \tabularnewline
Skewness/Kurtosis Test & Compute \tabularnewline
Skewness-Kurtosis Plot & Compute \tabularnewline
Harrell-Davis Plot & Compute \tabularnewline
Bootstrap Plot -- Central Tendency & Compute \tabularnewline
Blocked Bootstrap Plot -- Central Tendency & Compute \tabularnewline
(Partial) Autocorrelation Plot & Compute \tabularnewline
Spectral Analysis & Compute \tabularnewline
Tukey lambda PPCC Plot & Compute \tabularnewline
Box-Cox Normality Plot & Compute \tabularnewline
Summary Statistics & Compute \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=316285&T=4

[TABLE]
[ROW][C]Menu of Residual Diagnostics[/C][/ROW]
[ROW][C]Description[/C][C]Link[/C][/ROW]
[ROW][C]Histogram[/C][C]Compute[/C][/ROW]
[ROW][C]Central Tendency[/C][C]Compute[/C][/ROW]
[ROW][C]QQ Plot[/C][C]Compute[/C][/ROW]
[ROW][C]Kernel Density Plot[/C][C]Compute[/C][/ROW]
[ROW][C]Skewness/Kurtosis Test[/C][C]Compute[/C][/ROW]
[ROW][C]Skewness-Kurtosis Plot[/C][C]Compute[/C][/ROW]
[ROW][C]Harrell-Davis Plot[/C][C]Compute[/C][/ROW]
[ROW][C]Bootstrap Plot -- Central Tendency[/C][C]Compute[/C][/ROW]
[ROW][C]Blocked Bootstrap Plot -- Central Tendency[/C][C]Compute[/C][/ROW]
[ROW][C](Partial) Autocorrelation Plot[/C][C]Compute[/C][/ROW]
[ROW][C]Spectral Analysis[/C][C]Compute[/C][/ROW]
[ROW][C]Tukey lambda PPCC Plot[/C][C]Compute[/C][/ROW]
[ROW][C]Box-Cox Normality Plot[/C][C]Compute[/C][/ROW]
[ROW][C]Summary Statistics[/C][C]Compute[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=316285&T=4

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

As an alternative you can also use a QR Code:  

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

Menu of Residual Diagnostics
DescriptionLink
HistogramCompute
Central TendencyCompute
QQ PlotCompute
Kernel Density PlotCompute
Skewness/Kurtosis TestCompute
Skewness-Kurtosis PlotCompute
Harrell-Davis PlotCompute
Bootstrap Plot -- Central TendencyCompute
Blocked Bootstrap Plot -- Central TendencyCompute
(Partial) Autocorrelation PlotCompute
Spectral AnalysisCompute
Tukey lambda PPCC PlotCompute
Box-Cox Normality PlotCompute
Summary StatisticsCompute







Ramsey RESET F-Test for powers (2 and 3) of fitted values
> reset_test_fitted
	RESET test
data:  mylm
RESET = 7.1205, df1 = 2, df2 = 386, p-value = 0.000919
Ramsey RESET F-Test for powers (2 and 3) of regressors
> reset_test_regressors
	RESET test
data:  mylm
RESET = 3.8993, df1 = 34, df2 = 354, p-value = 3.982e-11
Ramsey RESET F-Test for powers (2 and 3) of principal components
> reset_test_principal_components
	RESET test
data:  mylm
RESET = 32.397, df1 = 2, df2 = 386, p-value = 9.854e-14

\begin{tabular}{lllllllll}
\hline
Ramsey RESET F-Test for powers (2 and 3) of fitted values \tabularnewline
> reset_test_fitted
	RESET test
data:  mylm
RESET = 7.1205, df1 = 2, df2 = 386, p-value = 0.000919
\tabularnewline Ramsey RESET F-Test for powers (2 and 3) of regressors \tabularnewline
> reset_test_regressors
	RESET test
data:  mylm
RESET = 3.8993, df1 = 34, df2 = 354, p-value = 3.982e-11
\tabularnewline Ramsey RESET F-Test for powers (2 and 3) of principal components \tabularnewline
> reset_test_principal_components
	RESET test
data:  mylm
RESET = 32.397, df1 = 2, df2 = 386, p-value = 9.854e-14
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=316285&T=5

[TABLE]
[ROW][C]Ramsey RESET F-Test for powers (2 and 3) of fitted values[/C][/ROW]
[ROW][C]
> reset_test_fitted
	RESET test
data:  mylm
RESET = 7.1205, df1 = 2, df2 = 386, p-value = 0.000919
[/C][/ROW] [ROW][C]Ramsey RESET F-Test for powers (2 and 3) of regressors[/C][/ROW] [ROW][C]
> reset_test_regressors
	RESET test
data:  mylm
RESET = 3.8993, df1 = 34, df2 = 354, p-value = 3.982e-11
[/C][/ROW] [ROW][C]Ramsey RESET F-Test for powers (2 and 3) of principal components[/C][/ROW] [ROW][C]
> reset_test_principal_components
	RESET test
data:  mylm
RESET = 32.397, df1 = 2, df2 = 386, p-value = 9.854e-14
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=316285&T=5

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

As an alternative you can also use a QR Code:  

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

Ramsey RESET F-Test for powers (2 and 3) of fitted values
> reset_test_fitted
	RESET test
data:  mylm
RESET = 7.1205, df1 = 2, df2 = 386, p-value = 0.000919
Ramsey RESET F-Test for powers (2 and 3) of regressors
> reset_test_regressors
	RESET test
data:  mylm
RESET = 3.8993, df1 = 34, df2 = 354, p-value = 3.982e-11
Ramsey RESET F-Test for powers (2 and 3) of principal components
> reset_test_principal_components
	RESET test
data:  mylm
RESET = 32.397, df1 = 2, df2 = 386, p-value = 9.854e-14







Variance Inflation Factors (Multicollinearity)
> vif
               defl_price             defl_pricedum               total_value 
                28.890558                 21.274305                 17.924218 
 `barrels_purchased(t-1)`  `barrels_purchased(t-2)` `barrels_purchased(t-1s)` 
                16.298513                 15.192997                  9.908485 
                       M1                        M2                        M3 
                 2.218785                  2.126833                  2.032309 
                       M4                        M5                        M6 
                 1.998870                  1.987864                  2.001699 
                       M7                        M8                        M9 
                 1.889428                  2.006532                  1.897894 
                      M10                       M11 
                 1.963857                  1.984312 

\begin{tabular}{lllllllll}
\hline
Variance Inflation Factors (Multicollinearity) \tabularnewline
> vif
               defl_price             defl_pricedum               total_value 
                28.890558                 21.274305                 17.924218 
 `barrels_purchased(t-1)`  `barrels_purchased(t-2)` `barrels_purchased(t-1s)` 
                16.298513                 15.192997                  9.908485 
                       M1                        M2                        M3 
                 2.218785                  2.126833                  2.032309 
                       M4                        M5                        M6 
                 1.998870                  1.987864                  2.001699 
                       M7                        M8                        M9 
                 1.889428                  2.006532                  1.897894 
                      M10                       M11 
                 1.963857                  1.984312 
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=316285&T=6

[TABLE]
[ROW][C]Variance Inflation Factors (Multicollinearity)[/C][/ROW]
[ROW][C]
> vif
               defl_price             defl_pricedum               total_value 
                28.890558                 21.274305                 17.924218 
 `barrels_purchased(t-1)`  `barrels_purchased(t-2)` `barrels_purchased(t-1s)` 
                16.298513                 15.192997                  9.908485 
                       M1                        M2                        M3 
                 2.218785                  2.126833                  2.032309 
                       M4                        M5                        M6 
                 1.998870                  1.987864                  2.001699 
                       M7                        M8                        M9 
                 1.889428                  2.006532                  1.897894 
                      M10                       M11 
                 1.963857                  1.984312 
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=316285&T=6

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

As an alternative you can also use a QR Code:  

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

Variance Inflation Factors (Multicollinearity)
> vif
               defl_price             defl_pricedum               total_value 
                28.890558                 21.274305                 17.924218 
 `barrels_purchased(t-1)`  `barrels_purchased(t-2)` `barrels_purchased(t-1s)` 
                16.298513                 15.192997                  9.908485 
                       M1                        M2                        M3 
                 2.218785                  2.126833                  2.032309 
                       M4                        M5                        M6 
                 1.998870                  1.987864                  2.001699 
                       M7                        M8                        M9 
                 1.889428                  2.006532                  1.897894 
                      M10                       M11 
                 1.963857                  1.984312 



Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ; par4 = 1 ; par5 = 2 ; par6 = 12 ;
Parameters (R input):
par1 = 1 ; par2 = Include Seasonal Dummies ; par3 = No Linear Trend ; par4 = 2 ; par5 = 1 ; par6 = 12 ;
R code (references can be found in the software module):
par6 <- '12'
par5 <- '1'
par4 <- '2'
par3 <- 'No Linear Trend'
par2 <- 'Do not include Seasonal Dummies'
par1 <- '1'
library(lattice)
library(lmtest)
library(car)
library(MASS)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
mywarning <- ''
par6 <- as.numeric(par6)
if(is.na(par6)) {
par6 <- 12
mywarning = 'Warning: you did not specify the seasonality. The seasonal period was set to s = 12.'
}
par1 <- as.numeric(par1)
if(is.na(par1)) {
par1 <- 1
mywarning = 'Warning: you did not specify the column number of the endogenous series! The first column was selected by default.'
}
if (par4=='') par4 <- 0
par4 <- as.numeric(par4)
if (!is.numeric(par4)) par4 <- 0
if (par5=='') par5 <- 0
par5 <- as.numeric(par5)
if (!is.numeric(par5)) par5 <- 0
x <- na.omit(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'){
(n <- n -1)
x2 <- array(0, dim=c(n,k), dimnames=list(1:n, paste('(1-B)',colnames(x),sep='')))
for (i in 1:n) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par3 == 'Seasonal Differences (s)'){
(n <- n - par6)
x2 <- array(0, dim=c(n,k), dimnames=list(1:n, paste('(1-Bs)',colnames(x),sep='')))
for (i in 1:n) {
for (j in 1:k) {
x2[i,j] <- x[i+par6,j] - x[i,j]
}
}
x <- x2
}
if (par3 == 'First and Seasonal Differences (s)'){
(n <- n -1)
x2 <- array(0, dim=c(n,k), dimnames=list(1:n, paste('(1-B)',colnames(x),sep='')))
for (i in 1:n) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
(n <- n - par6)
x2 <- array(0, dim=c(n,k), dimnames=list(1:n, paste('(1-Bs)',colnames(x),sep='')))
for (i in 1:n) {
for (j in 1:k) {
x2[i,j] <- x[i+par6,j] - x[i,j]
}
}
x <- x2
}
if(par4 > 0) {
x2 <- array(0, dim=c(n-par4,par4), dimnames=list(1:(n-par4), paste(colnames(x)[par1],'(t-',1:par4,')',sep='')))
for (i in 1:(n-par4)) {
for (j in 1:par4) {
x2[i,j] <- x[i+par4-j,par1]
}
}
x <- cbind(x[(par4+1):n,], x2)
n <- n - par4
}
if(par5 > 0) {
x2 <- array(0, dim=c(n-par5*par6,par5), dimnames=list(1:(n-par5*par6), paste(colnames(x)[par1],'(t-',1:par5,'s)',sep='')))
for (i in 1:(n-par5*par6)) {
for (j in 1:par5) {
x2[i,j] <- x[i+par5*par6-j*par6,par1]
}
}
x <- cbind(x[(par5*par6+1):n,], x2)
n <- n - par5*par6
}
if (par2 == 'Include Seasonal Dummies'){
x2 <- array(0, dim=c(n,par6-1), dimnames=list(1:n, paste('M', seq(1:(par6-1)), sep ='')))
for (i in 1:(par6-1)){
x2[seq(i,n,par6),i] <- 1
}
x <- cbind(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[n,]))
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
print(x)
(k <- length(x[n,]))
head(x)
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')
sresid <- studres(mylm)
hist(sresid, freq=FALSE, main='Distribution of Studentized Residuals')
xfit<-seq(min(sresid),max(sresid),length=40)
yfit<-dnorm(xfit)
lines(xfit, yfit)
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')
qqPlot(mylm, main='QQ Plot')
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)
print(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, signif(mysum$coefficients[i,1],6), 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.row.start(a)
a<-table.element(a, mywarning)
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,'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,formatC(signif(mysum$coefficients[i,1],5),format='g',flag='+'))
a<-table.element(a,formatC(signif(mysum$coefficients[i,2],5),format='g',flag=' '))
a<-table.element(a,formatC(signif(mysum$coefficients[i,3],4),format='e',flag='+'))
a<-table.element(a,formatC(signif(mysum$coefficients[i,4],4),format='g',flag=' '))
a<-table.element(a,formatC(signif(mysum$coefficients[i,4]/2,4),format='g',flag=' '))
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,formatC(signif(sqrt(mysum$r.squared),6),format='g',flag=' '))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a,formatC(signif(mysum$r.squared,6),format='g',flag=' '))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a,formatC(signif(mysum$adj.r.squared,6),format='g',flag=' '))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a,formatC(signif(mysum$fstatistic[1],6),format='g',flag=' '))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, signif(mysum$fstatistic[2],6))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, signif(mysum$fstatistic[3],6))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a,formatC(signif(1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]),6),format='g',flag=' '))
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,formatC(signif(mysum$sigma,6),format='g',flag=' '))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a,formatC(signif(sum(myerror*myerror),6),format='g',flag=' '))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
myr <- as.numeric(mysum$resid)
myr
a <-table.start()
a <- table.row.start(a)
a <- table.element(a,'Menu of Residual Diagnostics',2,TRUE)
a <- table.row.end(a)
a <- table.row.start(a)
a <- table.element(a,'Description',1,TRUE)
a <- table.element(a,'Link',1,TRUE)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'Histogram',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_histogram.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'Central Tendency',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_centraltendency.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'QQ Plot',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_fitdistrnorm.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'Kernel Density Plot',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_density.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'Skewness/Kurtosis Test',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_skewness_kurtosis.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'Skewness-Kurtosis Plot',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_skewness_kurtosis_plot.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'Harrell-Davis Plot',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_harrell_davis.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'Bootstrap Plot -- Central Tendency',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_bootstrapplot1.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'Blocked Bootstrap Plot -- Central Tendency',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_bootstrapplot.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'(Partial) Autocorrelation Plot',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_autocorrelation.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'Spectral Analysis',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_spectrum.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'Tukey lambda PPCC Plot',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_tukeylambda.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <-table.element(a,'Box-Cox Normality Plot',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_boxcoxnorm.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a <- table.row.start(a)
a <- table.element(a,'Summary Statistics',1,header=TRUE)
a <- table.element(a,hyperlink( paste('https://supernova.wessa.net/rwasp_summary1.wasp?convertgetintopost=1&data=',paste(as.character(mysum$resid),sep='',collapse=' '),sep='') ,'Compute','Click here to examine the Residuals.'),1)
a <- table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable7.tab')
if(n < 200) {
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,formatC(signif(x[i],6),format='g',flag=' '))
a<-table.element(a,formatC(signif(x[i]-mysum$resid[i],6),format='g',flag=' '))
a<-table.element(a,formatC(signif(mysum$resid[i],6),format='g',flag=' '))
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,formatC(signif(gqarr[mypoint-kp3+1,1],6),format='g',flag=' '))
a<-table.element(a,formatC(signif(gqarr[mypoint-kp3+1,2],6),format='g',flag=' '))
a<-table.element(a,formatC(signif(gqarr[mypoint-kp3+1,3],6),format='g',flag=' '))
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,signif(numsignificant1,6))
a<-table.element(a,formatC(signif(numsignificant1/numgqtests,6),format='g',flag=' '))
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,signif(numsignificant5,6))
a<-table.element(a,signif(numsignificant5/numgqtests,6))
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,signif(numsignificant10,6))
a<-table.element(a,signif(numsignificant10/numgqtests,6))
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')
}
}
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Ramsey RESET F-Test for powers (2 and 3) of fitted values',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
reset_test_fitted <- resettest(mylm,power=2:3,type='fitted')
a<-table.element(a,paste('
',RC.texteval('reset_test_fitted'),'
',sep=''))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Ramsey RESET F-Test for powers (2 and 3) of regressors',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
reset_test_regressors <- resettest(mylm,power=2:3,type='regressor')
a<-table.element(a,paste('
',RC.texteval('reset_test_regressors'),'
',sep=''))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Ramsey RESET F-Test for powers (2 and 3) of principal components',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
reset_test_principal_components <- resettest(mylm,power=2:3,type='princomp')
a<-table.element(a,paste('
',RC.texteval('reset_test_principal_components'),'
',sep=''))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable8.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Variance Inflation Factors (Multicollinearity)',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
vif <- vif(mylm)
a<-table.element(a,paste('
',RC.texteval('vif'),'
',sep=''))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable9.tab')