Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Justina Fischer <JFischer@diw.de> |
To | statalist@hsphsun2.harvard.edu |
Subject | Antwort: st: margins after logit model |
Date | Thu, 30 Dec 2010 00:41:38 +0100 |
Hi
you have just three years.
A very easy way is to code two dummies for the years 2005 and 2007 each - the year not coded (2006) is then your base year in your regression.
Cheers
Justina
-----owner-statalist@hsphsun2.harvard.edu schrieb: -----
An: <statalist@hsphsun2.harvard.edu>
Von: Haiyong Xu <hxu@mednet.ucla.edu>
Gesendet von: owner-statalist@hsphsun2.harvard.edu
Datum: 30.12.2010 12:36AM
Thema: st: margins after logit model
Hi,
Wish you all have wonderful holidays!
My logit model and the output are as follows:
logit psydrgnobzn i.female age i.year, vce(cluster cluster_id)
Logistic regression Number of obs =
40284
Wald chi2(4) =
422.81
Prob > chi2 =
0.0000
Log pseudolikelihood = -26350.649 Pseudo R2 =
0.0127
(Std. Err. adjusted for 13428 clusters in
cluster_id)
------------------------------------------------------------------------------
| Robust
psydrgnobzn | Coef. Std. Err. z P>|z| [95% Conf.
Interval]
-------------+----------------------------------------------------------------
1.female | .5114119 .0357798 14.29 0.000 .4412848
.5815389
age | -.0191765 .0023834 -8.05
0.000 -.0238479 -.0145051