Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: xtlogit and starting values


From   [email protected] (Jean Marie Linhart, StataCorp LP)
To   [email protected]
Subject   Re: st: xtlogit and starting values
Date   Wed, 28 May 2008 14:47:48 -0500

"E. Michael Foster" <mike4kids at gmail dot com> writes:

> stata seems to be ignoring the starting values I'm trying to pass 
> it--I'm sure I'm doing something dumb--can anyone spot my error?
> 
> sysuse auto
> sort mpg
> gen mpgg=group(10)                // make up a fake nesting
> xi: logit foreign weight length i.mpgg
> matrix b=e(b)
> matrix b=b[1,1..2]'                // doesn't seem to matter

<commands deleted>

> matrix list b
> xtlogit foreign weight length , i(mpgg) fe from(b, copy ) trace

Michael is not doing anything wrong; -xtlogit, fe- is ignoring the -from()-
option.  This only affects fixed effects -xtlogit-.  This bug will be fixed in
the next ado-file update.

-xtlogit, fe- is a wrapper for -clogit-.  In the meantime, Michael can work
around this problem by calling -clogit- directly:

. clogit foreign weight length, group(mpgg) from(b, copy)

--Jean Marie
[email protected]
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index