Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 04 Jan 2019 12:38:46 +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/04/t1546601969gnzuysclktlz61b.htm/, Retrieved Tue, 30 Apr 2024 04:39:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=316268, Retrieved Tue, 30 Apr 2024 04:39:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact115
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2019-01-04 11:38:46] [c34823a5a1451805c3b93623903769ac] [Current]
Feedback Forum

Post a new message
Dataseries X:
102750 2.75 45.498 1
95276 2.73 46.1773 1
112053 2.82 46.1937 1
98841 2.83 46.1272 1
123102 2.9 46.4199 1
118152 3.05 46.4535 1
101752 3.15 46.648 1
148219 3.26 46.5669 1
124966 3.38 46.9866 1
134741 3.54 47.2997 1
132168 3.81 47.548 1
100950 5.27 47.4375 1
96418 6.71 47.1083 1
86891 9.09 46.9634 1
89796 11.08 46.9733 1
119663 11.91 46.83 1
130539 11.81 47.1848 1
120851 11.81 47.1292 1
145422 12.09 47.1505 1
150583 11.95 46.6882 1
127054 11.67 46.7161 1
137473 11.6 46.536 1
127094 11.71 45.0062 1
132080 11.62 43.4204 1
188311 11.64 42.8246 1
107487 11.66 41.8301 1
84669 11.67 41.3862 1
149184 11.69 41.4258 1
121026 11.58 41.3326 1
81073 11.4 41.6042 1
132947 11.44 42.0025 1
141294 11.38 42.4426 1
155077 11.31 42.9708 1
145154 11.45 43.1611 1
127094 11.73 43.2561 1
151414 12.11 43.7944 1
167858 12.23 44.4309 1
127070 12.39 44.8644 1
154692 12.34 44.916 1
170905 12.42 45.1733 1
127751 12.37 45.3729 1
173795 12.37 45.3841 1
190181 12.39 45.6491 1
198417 12.43 45.9698 1
183018 12.48 46.1015 1
171608 12.45 46.1172 1
188087 12.58 46.7939 1
197042 12.59 47.2798 1
208788 12.54 47.023 1
178111 13.01 47.7335 1
236455 13.31 48.3415 1
233219 13.45 48.7789 1
188106 13.28 49.2046 1
238876 13.38 49.5627 1
205148 13.36 49.6389 1
214727 13.4 49.6517 1
213428 13.49 49.8872 1
195128 13.47 49.9859 1
206047 13.62 50.0357 1
201773 13.57 50.1135 1
192772 13.59 49.4201 1
198230 13.48 49.6618 1
181172 13.47 50.6053 1
189079 13.47 51.6639 1
179073 13.36 51.8472 1
197421 13.37 52.2056 1
195244 13.4 52.1834 1
219826 13.41 52.3807 1
211793 13.37 52.5124 1
203394 13.42 52.9384 1
209578 13.41 53.3363 1
214769 13.46 53.6296 1
226177 13.64 53.2837 1
191449 13.93 53.5675 1
200989 14.46 53.7364 1
216707 14.92 53.1571 1
192882 16.27 53.5566 1
199736 17.36 53.5534 1
202349 19.07 53.4808 1
204137 21.1 53.1195 1
215588 22.39 53.1786 1
229454 23.13 53.4617 1
175048 23.27 53.409 1
212799 24.57 53.4536 1
181727 26.32 53.7071 1
211607 28.57 53.7262 1
185853 30.44 53.5481 1
158277 31.4 52.4571 1
180695 31.84 51.1904 1
175959 31.86 50.5575 1
139550 32.3 50.166 1
155810 32.93 50.353 1
138305 32.73 51.1727 1
147014 33.1 51.8129 1
135994 33.23 52.7175 1
166455 33.94 53.0142 1
177737 34.27 52.7119 1
167021 35.96 52.4633 1
132134 36.25 52.7501 1
169834 36.92 52.5233 1
130599 36.16 52.8211 1
156836 36.59 53.0699 1
119749 35.05 53.4044 1
148996 34.53 53.3959 1
147491 34.07 53.0761 1
147216 33.65 52.6972 1
153455 33.84 52.0996 1
112004 33.99 51.5219 1
158512 35.41 50.4933 1
104139 35.53 51.4979 1
102536 34.71 51.1159 1
93017 33.2 50.6623 1
91988 32.25 50.3505 1
123616 32.92 50.1943 1
134498 33.27 50.0395 1
149812 32.91 49.6075 1
110334 32.39 49.4584 1
136639 32.44 49.011 1
102712 32.84 48.8232 1
112951 32.44 48.4682 1
107897 32.5 49.3992 1
73242 31.12 49.089 1
72800 30.28 49.4906 1
78767 28.76 50.0805 1
114791 28.59 50.4295 1
109351 28.83 50.7333 1
122520 28.93 51.5016 1
137338 29.31 52.0679 1
132061 29.27 52.8472 1
130607 29.36 53.2874 1
118570 29.05 53.4759 1
95873 29 53.7593 1
103116 27.65 54.8216 1
98619 27.64 55.0698 1
104178 27.8 55.3384 1
123468 27.84 55.6911 1
99651 27.85 55.9506 1
120264 27.76 56.1549 1
122795 28.05 56.3326 1
108524 27.66 56.3847 1
105760 27.39 56.2832 1
117191 27.56 56.1943 1
122882 27.55 56.4108 1
93275 27.3 56.4759 1
99842 27.38 56.3801 1
83803 26.91 56.5796 1
61132 26.05 56.6645 1
118563 26.52 56.5122 1
106993 26.79 56.5982 1
118108 26.52 56.6317 1
99017 25.91 56.2637 1
99852 25.76 56.496 1
112720 25.42 56.7412 1
113636 25.65 56.508 1
118220 25.69 56.6984 1
128854 26.04 57.2954 1
123898 25.8 57.5555 1
100823 23.13 57.1707 1
115107 18.1 56.7784 1
90624 12.78 56.8228 1
132001 12.24 56.938 0
157969 12.04 56.7427 0
169333 11.03 57.0569 0
144907 10.09 56.9807 0
169346 11.08 57.0954 0
144666 11.79 57.3542 0
158829 12.23 57.623 0
127286 12.4 58.1006 0
120578 13.86 57.9173 0
129293 15.47 58.663 0
122371 15.87 58.7602 0
115176 16.57 59.1416 0
142168 16.92 59.517 0
153260 17.31 59.7996 0
173906 17.77 60.2152 0
178446 18.07 60.7146 0
155962 17.49 60.8781 0
168257 17.21 61.7569 0
149456 17.12 62.091 0
136105 16.46 62.394 0
141507 22.4 62.4207 0
152084 15.2 62.6908 0
145138 14.24 62.8421 0
146548 14.21 63.1885 0
173098 14.69 63.1203 0
165471 14.68 63.2843 0
152271 14.02 63.3155 0
163201 13.38 63.5859 0
157823 13.08 63.405 0
166167 11.92 63.7184 0
154253 11.52 63.8175 0
170299 12.34 64.1273 0
166388 13.91 64.3162 0
141051 14.84 64.026 0
160254 15.54 64.166 0
164995 17.33 64.222 0
195971 17.97 63.7707 0
182635 17.27 63.8022 0
189829 16.93 63.236 0
209476 15.95 63.8059 0
189848 16.14 63.576 0
183746 16.61 63.5346 0
192682 17.08 63.7465 0
169677 17.72 64.1419 0
201823 18.85 63.7117 0
172643 18.79 64.3504 0
202931 17.75 64.6721 0
175863 16.02 64.5975 0
222061 14.61 64.7028 0
199797 13.83 64.9174 0
214638 13.92 64.8436 0
200106 19.57 65.043 0
166077 25.63 65.1372 0
160586 30.08 64.6442 0
158330 29.51 63.8853 0
141749 25.75 63.4658 0
170795 22.98 63.1915 0
153286 18.39 62.7585 0
163426 16.75 62.4265 0
172562 16.39 62.5503 0
197474 16.57 63.1756 0
189822 16.4 63.742 0
188511 16.15 63.8029 0
207437 16.8 63.8503 0
192128 17.14 64.4151 0
175716 17.97 64.2992 0
159108 18.06 64.2209 0
175801 16.6 63.9602 0
186723 14.87 63.596 0
154970 14.42 64.0409 0
172446 14.48 64.5973 0
185965 15.5 65.0756 0
195525 16.74 65.2831 0
193156 18.27 65.2957 0
212705 18.2 65.8801 0
201357 18.03 65.5581 0
189971 17.86 65.715 0
216523 18.22 66.2013 0
193233 17.63 66.4879 0
191996 16.22 66.5431 0
211974 15.5 66.8264 0
175907 15.71 67.1172 0
206109 16.49 67.0479 0
220275 16.69 67.2498 0
211342 16.71 67.0325 0
222528 16.07 67.1532 0
229523 14.96 67.3586 0
204153 14.51 67.2888 0
206735 14.37 67.6092 0
223416 14.59 68.1214 0
228292 13.72 68.4089 0
203121 12.2 68.7737 0
205957 11.64 69.0299 0
176918 12.09 69.0418 0
219839 11.76 69.7582 0
217213 12.85 70.125 0
216618 14.05 70.4978 0
248057 15.18 70.948 0
245642 16.09 71.0595 0
242485 15.97 71.4749 0
260423 15 71.7333 0
221030 14.8 72.3479 0
229157 15.31 72.8018 0
220858 14.7 73.5563 0
212270 15.06 73.6891 0
195944 15.53 73.5889 0
239741 15.78 73.6895 0
212013 16.76 73.676 0
240514 17.4 73.8858 0
241982 16.78 74.1391 0
245447 15.51 73.8447 0
240839 15.22 74.7803 0
244875 15.44 75.0755 0
226375 15.25 74.9925 0
231567 15.1 75.1822 0
235746 15.82 75.4725 0
238990 16.43 74.9823 0
198120 16.1 76.153 0
201663 17.31 76.0724 0
238198 19.27 76.7608 0
261641 18.9 77.3269 0
253014 17.96 77.9694 0
275225 18.16 77.8351 0
250957 18.65 78.3005 0
260375 19.97 78.8378 0
250694 21.41 78.7843 0
216953 21.38 79.4683 0
247816 21.63 79.9829 0
224135 21.86 80.0837 0
211073 20.48 81.0483 0
245623 18.76 81.6195 0
250947 17.13 81.6408 0
278223 17.06 82.1311 0
254232 16.85 82.5332 0
266293 16.41 83.1538 0
280897 16.95 84.0293 0
274565 16.73 84.7873 0
280555 17.71 85.5125 0
252757 17.25 86.2601 0
250131 16.05 86.5262 0
271208 14.31 86.9662 0
230593 13.02 87.0687 0
263407 11.88 87.1414 0
289968 11.77 87.4497 0
282846 11.8 88.0124 0
271314 11.12 87.4571 0
289718 10.78 87.1484 0
300227 10.55 88.936 0
259951 10.99 88.778 0
263149 11.66 89.4857 0
267953 10.79 89.4358 0
252378 9.38 89.7761 0
280356 9.21 90.1893 0
234298 9.48 90.6683 0
271574 10.5 90.831 0
262378 12.88 91.0632 0
289457 14.6 91.7311 0
278274 14.52 91.5818 0
288932 16.11 92.1587 0
283813 17.88 92.5363 0
267600 19.69 92.1699 0
267574 20.76 93.3786 0
254862 21.05 93.824 0
248974 22.79 94.5441 0
256840 23.31 94.5458 0
250914 25.14 94.8185 0
279334 26.41 95.1983 0
286549 24.41 95.8921 0
302266 24.28 96.0691 0
298205 26.78 96.1568 0
300843 27.73 96.0239 0
312955 26.59 95.7182 0
275962 29.03 96.1105 0
299561 28.57 95.8225 0
260975 28.34 95.8391 0
274836 26.4 95.5791 0
284112 23.19 94.9499 0
247331 23.85 94.369 0
298120 22.75 94.1259 0
306008 21.66 93.9061 0
306813 22.65 93.2803 0
288550 23.09 92.7057 0
301636 22.33 92.1721 0
293215 22.14 92.0023 0
270713 23.02 91.6795 0
311803 19.88 91.2682 0
281316 17 90.7894 0
281450 15.46 90.8311 0
295494 16.29 91.3471 0
246411 16.58 91.3672 0
267037 19.27 92.1054 0
296134 22.53 92.479 0
296505 23.75 92.8824 0
270677 23.35 93.7637 0
290855 23.73 93.5461 0
296068 24.58 93.5765 0
272653 25.49 93.7116 0
315720 26.25 93.4006 0
286298 24.19 93.8758 0
284170 24.15 93.4191 0
273338 27.76 93.9571 0
250262 30.37 94.2558 0
294768 30.39 94.0416 0
318088 26.01 93.3666 0
319111 24.05 93.3852 0
312982 25.5 93.5219 0
335511 26.75 93.9144 0
319674 27.56 93.7371 0
316796 26.43 94.3262 0
329992 26.28 94.4442 0
291352 26.54 95.2224 0
314131 27.17 95.1545 0
309876 28.57 95.3434 0
288494 29.17 95.9228 0
329991 30.66 95.4538 0
311663 31 95.8653 0
317854 33.14 96.6472 0
344729 33.74 95.8588 0
324108 33.38 96.5901 0
333756 36.54 96.6687 0
297013 37.52 96.745 0
313249 41.84 97.6604 0
329660 41.19 97.8427 0
320586 36.46 98.5495 0
325786 35.27 99.002 0
293425 36.93 99.6741 0
324180 41.28 99.5181 0
315528 44.78 99.6518 0
319982 43.04 99.8158 0
327865 44.41 100.2232 0
312106 49.07 99.8997 0
329039 52.85 100.1025 0
277589 57.42 98.2644 0
300884 56.21 99.4949 0
314028 52.16 100.5129 0
314259 49.79 101.1118 0
303472 51.8 101.2313 0
290744 53.86 101.2755 0
313340 52.32 101.4651 0
294281 56.65 101.9012 0
325796 62.04 101.7589 0
329839 62.12 102.1304 0
322588 64.93 102.0989 0
336528 66.13 102.4526 0
316381 62.4 102.2753 0
308602 55.47 102.2299 0
299010 52.22 102.1419 0
293645 53.84 103.2191 0
320108 52.23 102.7129 0
252869 50.71 103.7659 0
324248 53 103.9538 0
304775 57.28 104.7077 0
320208 59.36 104.7507 0
321260 60.95 104.7581 0
310320 65.56 104.7111 0
319197 68.21 104.9122 0
297503 68.51 105.2764 0
316184 72.49 104.772 0
303411 79.65 105.3295 0
300841 82.76 105.3213 0




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time12 seconds
R ServerBig Analytics Cloud Computing Center

\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 time12 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=316268&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]12 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=316268&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316268&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 time12 seconds
R ServerBig Analytics Cloud Computing Center







Multiple Linear Regression - Estimated Regression Equation
barrels_purchased[t] = + 2017.47 -370.92unit_price[t] + 338.291US_IND_PROD[t] -614.346dum[t] + 0.270976`barrels_purchased(t-1)`[t] + 0.234394`barrels_purchased(t-2)`[t] + 0.117325`barrels_purchased(t-3)`[t] + 0.307988`barrels_purchased(t-1s)`[t] + e[t]
Warning: you did not specify the column number of the endogenous series! The first column was selected by default.

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
barrels_purchased[t] =  +  2017.47 -370.92unit_price[t] +  338.291US_IND_PROD[t] -614.346dum[t] +  0.270976`barrels_purchased(t-1)`[t] +  0.234394`barrels_purchased(t-2)`[t] +  0.117325`barrels_purchased(t-3)`[t] +  0.307988`barrels_purchased(t-1s)`[t]  + e[t] \tabularnewline
Warning: you did not specify the column number of the endogenous series! The first column was selected by default. \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=316268&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]barrels_purchased[t] =  +  2017.47 -370.92unit_price[t] +  338.291US_IND_PROD[t] -614.346dum[t] +  0.270976`barrels_purchased(t-1)`[t] +  0.234394`barrels_purchased(t-2)`[t] +  0.117325`barrels_purchased(t-3)`[t] +  0.307988`barrels_purchased(t-1s)`[t]  + e[t][/C][/ROW]
[ROW][C]Warning: you did not specify the column number of the endogenous series! The first column was selected by default.[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=316268&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316268&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] = + 2017.47 -370.92unit_price[t] + 338.291US_IND_PROD[t] -614.346dum[t] + 0.270976`barrels_purchased(t-1)`[t] + 0.234394`barrels_purchased(t-2)`[t] + 0.117325`barrels_purchased(t-3)`[t] + 0.307988`barrels_purchased(t-1s)`[t] + e[t]
Warning: you did not specify the column number of the endogenous series! The first column was selected by default.







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)+2018 6981+2.8900e-01 0.7727 0.3864
unit_price-370.9 97.38-3.8090e+00 0.0001616 8.082e-05
US_IND_PROD+338.3 161.7+2.0920e+00 0.03709 0.01854
dum-614.4 3475-1.7680e-01 0.8598 0.4299
`barrels_purchased(t-1)`+0.271 0.04773+5.6770e+00 2.652e-08 1.326e-08
`barrels_purchased(t-2)`+0.2344 0.04768+4.9160e+00 1.298e-06 6.488e-07
`barrels_purchased(t-3)`+0.1173 0.04639+2.5290e+00 0.01182 0.00591
`barrels_purchased(t-1s)`+0.308 0.03918+7.8600e+00 3.649e-14 1.824e-14

\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) & +2018 &  6981 & +2.8900e-01 &  0.7727 &  0.3864 \tabularnewline
unit_price & -370.9 &  97.38 & -3.8090e+00 &  0.0001616 &  8.082e-05 \tabularnewline
US_IND_PROD & +338.3 &  161.7 & +2.0920e+00 &  0.03709 &  0.01854 \tabularnewline
dum & -614.4 &  3475 & -1.7680e-01 &  0.8598 &  0.4299 \tabularnewline
`barrels_purchased(t-1)` & +0.271 &  0.04773 & +5.6770e+00 &  2.652e-08 &  1.326e-08 \tabularnewline
`barrels_purchased(t-2)` & +0.2344 &  0.04768 & +4.9160e+00 &  1.298e-06 &  6.488e-07 \tabularnewline
`barrels_purchased(t-3)` & +0.1173 &  0.04639 & +2.5290e+00 &  0.01182 &  0.00591 \tabularnewline
`barrels_purchased(t-1s)` & +0.308 &  0.03918 & +7.8600e+00 &  3.649e-14 &  1.824e-14 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=316268&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]+2018[/C][C] 6981[/C][C]+2.8900e-01[/C][C] 0.7727[/C][C] 0.3864[/C][/ROW]
[ROW][C]unit_price[/C][C]-370.9[/C][C] 97.38[/C][C]-3.8090e+00[/C][C] 0.0001616[/C][C] 8.082e-05[/C][/ROW]
[ROW][C]US_IND_PROD[/C][C]+338.3[/C][C] 161.7[/C][C]+2.0920e+00[/C][C] 0.03709[/C][C] 0.01854[/C][/ROW]
[ROW][C]dum[/C][C]-614.4[/C][C] 3475[/C][C]-1.7680e-01[/C][C] 0.8598[/C][C] 0.4299[/C][/ROW]
[ROW][C]`barrels_purchased(t-1)`[/C][C]+0.271[/C][C] 0.04773[/C][C]+5.6770e+00[/C][C] 2.652e-08[/C][C] 1.326e-08[/C][/ROW]
[ROW][C]`barrels_purchased(t-2)`[/C][C]+0.2344[/C][C] 0.04768[/C][C]+4.9160e+00[/C][C] 1.298e-06[/C][C] 6.488e-07[/C][/ROW]
[ROW][C]`barrels_purchased(t-3)`[/C][C]+0.1173[/C][C] 0.04639[/C][C]+2.5290e+00[/C][C] 0.01182[/C][C] 0.00591[/C][/ROW]
[ROW][C]`barrels_purchased(t-1s)`[/C][C]+0.308[/C][C] 0.03918[/C][C]+7.8600e+00[/C][C] 3.649e-14[/C][C] 1.824e-14[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=316268&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316268&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)+2018 6981+2.8900e-01 0.7727 0.3864
unit_price-370.9 97.38-3.8090e+00 0.0001616 8.082e-05
US_IND_PROD+338.3 161.7+2.0920e+00 0.03709 0.01854
dum-614.4 3475-1.7680e-01 0.8598 0.4299
`barrels_purchased(t-1)`+0.271 0.04773+5.6770e+00 2.652e-08 1.326e-08
`barrels_purchased(t-2)`+0.2344 0.04768+4.9160e+00 1.298e-06 6.488e-07
`barrels_purchased(t-3)`+0.1173 0.04639+2.5290e+00 0.01182 0.00591
`barrels_purchased(t-1s)`+0.308 0.03918+7.8600e+00 3.649e-14 1.824e-14







Multiple Linear Regression - Regression Statistics
Multiple R 0.9668
R-squared 0.9348
Adjusted R-squared 0.9336
F-TEST (value) 812.7
F-TEST (DF numerator)7
F-TEST (DF denominator)397
p-value 0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation 1.803e+04
Sum Squared Residuals 1.29e+11

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R &  0.9668 \tabularnewline
R-squared &  0.9348 \tabularnewline
Adjusted R-squared &  0.9336 \tabularnewline
F-TEST (value) &  812.7 \tabularnewline
F-TEST (DF numerator) & 7 \tabularnewline
F-TEST (DF denominator) & 397 \tabularnewline
p-value &  0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation &  1.803e+04 \tabularnewline
Sum Squared Residuals &  1.29e+11 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=316268&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C] 0.9668[/C][/ROW]
[ROW][C]R-squared[/C][C] 0.9348[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C] 0.9336[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C] 812.7[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]7[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]397[/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.803e+04[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C] 1.29e+11[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=316268&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316268&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.9668
R-squared 0.9348
Adjusted R-squared 0.9336
F-TEST (value) 812.7
F-TEST (DF numerator)7
F-TEST (DF denominator)397
p-value 0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation 1.803e+04
Sum Squared Residuals 1.29e+11







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=316268&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=316268&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316268&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 = 0.85408, df1 = 2, df2 = 395, p-value = 0.4265
Ramsey RESET F-Test for powers (2 and 3) of regressors
> reset_test_regressors
	RESET test
data:  mylm
RESET = 2.1296, df1 = 14, df2 = 383, p-value = 0.009954
Ramsey RESET F-Test for powers (2 and 3) of principal components
> reset_test_principal_components
	RESET test
data:  mylm
RESET = 1.7416, df1 = 2, df2 = 395, p-value = 0.1766

\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 = 0.85408, df1 = 2, df2 = 395, p-value = 0.4265
\tabularnewline Ramsey RESET F-Test for powers (2 and 3) of regressors \tabularnewline
> reset_test_regressors
	RESET test
data:  mylm
RESET = 2.1296, df1 = 14, df2 = 383, p-value = 0.009954
\tabularnewline Ramsey RESET F-Test for powers (2 and 3) of principal components \tabularnewline
> reset_test_principal_components
	RESET test
data:  mylm
RESET = 1.7416, df1 = 2, df2 = 395, p-value = 0.1766
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=316268&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 = 0.85408, df1 = 2, df2 = 395, p-value = 0.4265
[/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 = 2.1296, df1 = 14, df2 = 383, p-value = 0.009954
[/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 = 1.7416, df1 = 2, df2 = 395, p-value = 0.1766
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=316268&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316268&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 = 0.85408, df1 = 2, df2 = 395, p-value = 0.4265
Ramsey RESET F-Test for powers (2 and 3) of regressors
> reset_test_regressors
	RESET test
data:  mylm
RESET = 2.1296, df1 = 14, df2 = 383, p-value = 0.009954
Ramsey RESET F-Test for powers (2 and 3) of principal components
> reset_test_principal_components
	RESET test
data:  mylm
RESET = 1.7416, df1 = 2, df2 = 395, p-value = 0.1766







Variance Inflation Factors (Multicollinearity)
> vif
               unit_price               US_IND_PROD                       dum 
                 1.981365                 11.788899                  3.460126 
 `barrels_purchased(t-1)`  `barrels_purchased(t-2)`  `barrels_purchased(t-3)` 
                13.906291                 13.917632                 13.176446 
`barrels_purchased(t-1s)` 
                 9.256817 

\begin{tabular}{lllllllll}
\hline
Variance Inflation Factors (Multicollinearity) \tabularnewline
> vif
               unit_price               US_IND_PROD                       dum 
                 1.981365                 11.788899                  3.460126 
 `barrels_purchased(t-1)`  `barrels_purchased(t-2)`  `barrels_purchased(t-3)` 
                13.906291                 13.917632                 13.176446 
`barrels_purchased(t-1s)` 
                 9.256817 
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=316268&T=6

[TABLE]
[ROW][C]Variance Inflation Factors (Multicollinearity)[/C][/ROW]
[ROW][C]
> vif
               unit_price               US_IND_PROD                       dum 
                 1.981365                 11.788899                  3.460126 
 `barrels_purchased(t-1)`  `barrels_purchased(t-2)`  `barrels_purchased(t-3)` 
                13.906291                 13.917632                 13.176446 
`barrels_purchased(t-1s)` 
                 9.256817 
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=316268&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=316268&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
               unit_price               US_IND_PROD                       dum 
                 1.981365                 11.788899                  3.460126 
 `barrels_purchased(t-1)`  `barrels_purchased(t-2)`  `barrels_purchased(t-3)` 
                13.906291                 13.917632                 13.176446 
`barrels_purchased(t-1s)` 
                 9.256817 



Parameters (Session):
Parameters (R input):
par1 = ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ; par4 = 3 ; par5 = 1 ; par6 = 12 ;
R code (references can be found in the software module):
par6 <- '12'
par5 <- ''
par4 <- ''
par3 <- 'No Linear Trend'
par2 <- 'Do not include Seasonal Dummies'
par1 <- ''
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')