OLS Regression
Posted: Tue Nov 22, 2011 9:02 am
Hi All,
My question may appear to be very trivial one, but I just wanted to figure out why Eviews adjusts the sample even in a simple OLS (this causes difference in intercept and slope coefficients).
Here is the result for eviews vs stata for simple OLS. The regressor is a dummy variable. There are 39 annual observations.
eviews
Dependent Variable: stock
Method: Least Squares
Date: 11/20/11 Time: 5:46
Sample (adjusted): 1 38
Included observations: 38 after adjustments
Variable Coefficient Std. Error t-Statistic Prob.
C(1) 3.751698 0.463424 8.095601 0.0000
dummy 1.535652 0.560253 2.740998 0.0095
R-squared 0.172662 Mean dependent var 4.802407
Adjusted R-squared 0.149681 S.D. dependent var 1.740918
S.E. of regression 1.605349 Akaike info criterion 3.835755
Sum squared resid 92.77722 Schwarz criterion 3.921944
Log likelihood -70.87935 Durbin-Watson stat 0.684805
and stata
. regress stock, dummy
Source | SS df MS Number of obs = 39
-------------+------------------------------ F( 1, 37) = 6.46
Model | 16.77298 1 16.77298 Prob > F = 0.0153
Residual | 96.0338703 37 2.59551001 R-squared = 0.1487
-------------+------------------------------ Adj R-squared = 0.1257
Total | 112.80685 38 2.96860132 Root MSE = 1.6111
------------------------------------------------------------------------------
stock | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
dummy | 1.391166 .5472494 2.54 0.015 .2823337 2.499999
_cons | 3.896184 .4468273 8.72 0.000 2.990825 4.801542
Your help will be highly appreciated.
My question may appear to be very trivial one, but I just wanted to figure out why Eviews adjusts the sample even in a simple OLS (this causes difference in intercept and slope coefficients).
Here is the result for eviews vs stata for simple OLS. The regressor is a dummy variable. There are 39 annual observations.
eviews
Dependent Variable: stock
Method: Least Squares
Date: 11/20/11 Time: 5:46
Sample (adjusted): 1 38
Included observations: 38 after adjustments
Variable Coefficient Std. Error t-Statistic Prob.
C(1) 3.751698 0.463424 8.095601 0.0000
dummy 1.535652 0.560253 2.740998 0.0095
R-squared 0.172662 Mean dependent var 4.802407
Adjusted R-squared 0.149681 S.D. dependent var 1.740918
S.E. of regression 1.605349 Akaike info criterion 3.835755
Sum squared resid 92.77722 Schwarz criterion 3.921944
Log likelihood -70.87935 Durbin-Watson stat 0.684805
and stata
. regress stock, dummy
Source | SS df MS Number of obs = 39
-------------+------------------------------ F( 1, 37) = 6.46
Model | 16.77298 1 16.77298 Prob > F = 0.0153
Residual | 96.0338703 37 2.59551001 R-squared = 0.1487
-------------+------------------------------ Adj R-squared = 0.1257
Total | 112.80685 38 2.96860132 Root MSE = 1.6111
------------------------------------------------------------------------------
stock | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
dummy | 1.391166 .5472494 2.54 0.015 .2823337 2.499999
_cons | 3.896184 .4468273 8.72 0.000 2.990825 4.801542
Your help will be highly appreciated.