What is autometically taken as base level in stata for binary variable while regression (0,1)?
-
Login or Register
- Log in with
logistic y x1 x2 ...
regress y x1 x2 ...
regress y i.x1 x2 ...
sysuse auto.dta logistic foreign i.rep78 if rep78>=3, allbaselevels Logistic regression Number of obs = 59 LR chi2(2) = 21.93 Prob > chi2 = 0.0000 Log likelihood = -27.444671 Pseudo R2 = 0.2855 ------------------------------------------------------------------------------ foreign | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- rep78 | 3 | 1 (base) 4 | 9 6.928203 2.85 0.004 1.990615 40.69094 5 | 40.5 40.12325 3.74 0.000 5.809942 282.3178 | _cons | .1111111 .0676201 -3.61 0.000 .033708 .3662539 ------------------------------------------------------------------------------ Note: _cons estimates baseline odds. .
Comment