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: Storing coefficients after seqlogit
From
Dominik Becker <[email protected]>
To
[email protected]
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/