Dear Statalists,
I have run an OLS regression and the estimated coefficient of the constant term is slightly higher than the correct answer, but its t-statistic is extremely larger than the correct t-statistics (i,e, 5.99).
Here is the partial data:
The following is the output:
Is there any Stata professional who can spot the issue? Is the dependent variable or independent variable wrong? Hope to hear from you soon! Many thanks in advance!
I have run an OLS regression and the estimated coefficient of the constant term is slightly higher than the correct answer, but its t-statistic is extremely larger than the correct t-statistics (i,e, 5.99).
Here is the partial data:
Code:
------------------ copy up to and including the previous line ------------------ Listed 100 out of 69940837 observations Use the count() option to list moreCode:* Example generated by -dataex-. To install: ssc install dataex clear input float(id ym exret_m1) double mktrf 295 -377 .01937785 .0668 1481 -377 .01937785 .0668 2977 -377 .01937785 .0668 1156 -377 .01937785 .0668 4854 -377 .01937785 .0668 2188 -377 .01937785 .0668 2597 -377 .01937785 .0668 1749 -377 .01937785 .0668 607 -377 .01937785 .0668 1156 -377 .01937785 .0668 528 -377 .01937785 .0668 2889 -377 .01937785 .0668 2867 -377 .01937785 .0668 2877 -377 .01937785 .0668 2430 -377 .01937785 .0668 2692 -377 .01937785 .0668 1481 -377 .01937785 .0668 1879 -377 .01937785 .0668 2600 -377 .01937785 .0668 3058 -377 .01937785 .0668 2971 -377 .01937785 .0668 528 -377 .01937785 .0668 1630 -377 .01937785 .0668 2289 -377 .01937785 .0668 2386 -377 .01937785 .0668 2740 -377 .01937785 .0668 2877 -377 .01937785 .0668 3058 -377 .01937785 .0668 1792 -377 .01937785 .0668 2975 -377 .01937785 .0668 1553 -377 .01937785 .0668 1156 -377 .01937785 .0668 2600 -377 .01937785 .0668 2600 -377 .01937785 .0668 2430 -377 .01937785 .0668 2650 -377 .01937785 .0668 2188 -377 .01937785 .0668 2889 -377 .01937785 .0668 2634 -377 .01937785 .0668 2837 -377 .01937785 .0668 2839 -377 .01937785 .0668 2597 -377 .01937785 .0668 2837 -377 .01937785 .0668 528 -377 .01937785 .0668 2975 -377 .01937785 .0668 1156 -377 .01937785 .0668 1879 -377 .01937785 .0668 2914 -377 .01937785 .0668 2692 -377 .01937785 .0668 1792 -377 .01937785 .0668 2430 -377 .01937785 .0668 2364 -377 .01937785 .0668 2692 -377 .01937785 .0668 2634 -377 .01937785 .0668 1630 -377 .01937785 .0668 2364 -377 .01937785 .0668 2867 -377 .01937785 .0668 2947 -377 .01937785 .0668 2333 -377 .01937785 .0668 2817 -377 .01937785 .0668 2188 -377 .01937785 .0668 2386 -377 .01937785 .0668 2722 -377 .01937785 .0668 3045 -377 .01937785 .0668 2650 -377 .01937785 .0668 1553 -377 .01937785 .0668 2600 -377 .01937785 .0668 4854 -377 .01937785 .0668 1553 -377 .01937785 .0668 3058 -377 .01937785 .0668 2364 -377 .01937785 .0668 2740 -377 .01937785 .0668 1792 -377 .01937785 .0668 1461 -377 .01937785 .0668 3058 -377 .01937785 .0668 2430 -377 .01937785 .0668 2585 -377 .01937785 .0668 2839 -377 .01937785 .0668 2947 -377 .01937785 .0668 1792 -377 .01937785 .0668 2333 -377 .01937785 .0668 2235 -377 .01937785 .0668 2837 -377 .01937785 .0668 1097 -377 .01937785 .0668 2839 -377 .01937785 .0668 2289 -377 .01937785 .0668 1481 -377 .01937785 .0668 1097 -377 .01937785 .0668 1156 -377 .01937785 .0668 2364 -377 .01937785 .0668 2585 -377 .01937785 .0668 2971 -377 .01937785 .0668 2333 -377 .01937785 .0668 528 -377 .01937785 .0668 2585 -377 .01937785 .0668 1792 -377 .01937785 .0668 800 -377 .01937785 .0668 3043 -377 .01937785 .0668 1879 -377 .01937785 .0668 800 -377 .01937785 .0668 end format %tm ym
Code:
reg exret mktrf //excess return and market factor Source | SS df MS Number of obs = 5,609,182 -------------+---------------------------------- F(1, 5609180) > 99999.00 Model | 9219.0744 1 9219.0744 Prob > F = 0.0000 Residual | 4592.82575 5,609,180 .000818805 R-squared = 0.6675 -------------+---------------------------------- Adj R-squared = 0.6675 Total | 13811.9002 5,609,181 .002462374 Root MSE = .02861 ------------------------------------------------------------------------------ exret_m1 | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- mktrf | .8327924 .0002482 3355.47 0.000 .832306 .8332789 _cons | .0054813 .0000122 450.34 0.000 .0054575 .0055052 ------------------------------------------------------------------------------
Is there any Stata professional who can spot the issue? Is the dependent variable or independent variable wrong? Hope to hear from you soon! Many thanks in advance!
Comment