Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: AW: Storing coefficients after seqlogit
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
st: AW: Storing coefficients after seqlogit
Date
Tue, 24 Aug 2010 10:48:09 +0200
<>
Just -replay- via
*************
seqlogit, coefl
*************
and you see all the necessary names to talk to the coefficients:
------------------------------------------------------------------------------
ed | Coef. Legend
-------------+----------------------------------------------------------------
_2_3_4v1 |
byr | 1.217024 _b[_2_3_4v1:byr]
south | -.4400559 _b[_2_3_4v1:south]
white | .7785953 _b[_2_3_4v1:white]
_white_X_byr | -1.099461 _b[_2_3_4v1:_white_X_byr]
_cons | 1.496993 _b[_2_3_4v1:_cons]
-------------+----------------------------------------------------------------
_3_4v2 |
byr | .130491 _b[_3_4v2:byr]
south | -.1913521 _b[_3_4v2:south]
white | .0868792 _b[_3_4v2:white]
_white_X_byr | -.0890195 _b[_3_4v2:_white_X_byr]
_cons | .0403824 _b[_3_4v2:_cons]
-------------+----------------------------------------------------------------
_4v3 |
byr | .1969577 _b[_4v3:byr]
south | .4061487 _b[_4v3:south]
white | .2932548 _b[_4v3:white]
_white_X_byr | -.2764087 _b[_4v3:_white_X_byr]
_cons | -.2636717 _b[_4v3:_cons]
------------------------------------------------------------------------------
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Dominik Becker
Gesendet: Dienstag, 24. August 2010 10:36
An: [email protected]
Betreff: st: Storing coefficients after seqlogit
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/
*
* 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/