Bookmark and Share

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]

Re: st: stpiece


From   Joerg Luedicke <[email protected]>
To   [email protected]
Subject   Re: st: stpiece
Date   Tue, 8 Mar 2011 12:17:01 -0500

On Tue, Mar 8, 2011 at 11:29 AM, Chiara Mussida <[email protected]> wrote:
> Dear All,
> i'm attempting the the estimate of a picewise constant hazard model by
> using STATA 10 IC version. I'm worried because, when I type the
> command
> stpiece $xlist , tp(2 5 11 23 35 58 180) nohr (the data have already
> been stset and the global list is definted)
>
> the error message: ml model not found
> r(304);
>
> lock the process of estimation. It is strange, since I have the
> ml_model ado file, and also I have already estimated this model in the
> past with STATA 9.
> thanks for any kind of help
> regards
> CM

stpiece is a user written function, so first you should make sure that
you really have the latest version properly installed etc.. If that is
the case, I would try running the model "manually" with time period
dummies. For instance you could try something like:

stsplit tp, at(2 5 11 23 35 58 180)
tab tp, g(t)
stset ...
streg t*  $xlist, dist(exp) nohr

That should produce the same model and if that works, however, there
might be something wrong with your stpiece ado-file.

hth,

J.
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index