Statalist The Stata Listserver

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

st: RE: Problems with xtlogit during a simulation

From   "Feiveson, Alan H. (JSC-SK311)" <>
To   <>
Subject   st: RE: Problems with xtlogit during a simulation
Date   Tue, 1 Aug 2006 13:29:19 -0500

You need to use -cap- before the -xtlogit- command to keep going after
non-convergence. Also put an iteration limit using the -iter- option .
Then check that e(converged)=1 and that _rc is zero. If both of these
are OK, then your output is valid. If either you get failure (_rc >0) or
nonconvergence (e(converged)==0), then your simulaton will go on, but
you shouldn't include the bad estimation results in your analysis.

al Feiveson

-----Original Message-----
[] On Behalf Of Joseph
Sent: Tuesday, August 01, 2006 1:10 PM
Subject: st: Problems with xtlogit during a simulation


I'm looking at xtlogit in simulated samples. Each sample has 100 cases
and each case may undergo a maximum of 3 cycles. Each case has a random
age (between 25 and 40) and a constant (per-case), per-cycle chance of
The probability is based on a known, linear function of age and is
logistic in form. No other covariates are used. The simulation involves
generating a uniform random variable and comparing it to the chance of
success. If it is lower than this chance, success is 'achieved'. If
success is achieved in one cycle, no further cycles are undertaken.
Cases are not censored and 'leave' 
only after 3 cycles or the achievement of success.

However, I encounter the following message...

discontinuous region encountered
cannot compute an improvement

I'm surprised by this message. I have an extremely simple data structure
and would expect no problems in the likelihood function. But I have this
problem and it occurs quite early in the simulation suggesting it occurs
quite frequently. I've tried several options (intpoints, difficult) but
to no real avail.

I've used xtlogit many a time on real data and never had this problem.
Is the simplicity of my data set itself a problem?

I'd be interested to hear if others have had similar problems and how
they solved them.



Play online games with your friends with MSN Messenger

*   For searches and help try:

*   For searches and help try:

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