Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Storing coefficients after seqlogit


From   Dominik Becker <dombecksoz@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Storing coefficients after seqlogit
Date   Tue, 24 Aug 2010 10:35:53 +0200

Dear list, 

how can I access and store the coefficients after -seqlogit- separately
by transition level? For instance, using the -seqlogit- help file
example, after having performed -seqlogit-, I could write 

    scalar s1 = _b[white],

but this gives my only the estimate of "white" for the first transition.
How can I get scalars for the estimates of the other levels?

Thanks for any suggestions!
Dominik


-------------------------------------------------------------

sysuse nlsw88, clear
    gen ed = cond(grade< 12, 1, ///
             cond(grade==12, 2, ///
             cond(grade<16,3,4))) if grade < .
    gen byr = (1988-age-1950)/10
    gen white = race == 1 if race < .

    seqlogit ed byr south,                   ///   
             ofinterest(white) over(byr)     ///
             tree(1 : 2 3 4, 2 : 3 4, 3 : 4) ///
             levels(1=6, 2=12, 3=14, 4= 16)  ///
             or
             
scalar s1 = _b[white]             

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index