Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: unhelpful error message for simul


From   rgutierrez@stata.com (Roberto G. Gutierrez, StataCorp.)
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: unhelpful error message for simul
Date   Tue, 24 Sep 2002 17:32:31 -0500

Gabi Huiber <nat1gxh@ups.com> asks: 

> I'm trying to run the simulation on p. 15 of the 'Introduction to Survival
> Analysis Using Stata' by Cleves & al. In response to

> simul genfail, reps(1000)

> I get

> Obs. nos. out of range
> r(198);
> and I'm stumped. Can anybody help me?

Rather than speculate as to the cause, if Gabi would email me privately with 
the output of 

  . program list genfail

or post the output to the list, I'll be glad to take a closer look.  

If I had to speculate, then I would say within the program -genfail- Gabi has

  . replace t = ... in 2/1

instead of 

  . replace t = ... in 2/l

Note the last character.  It is the letter "l" for last, not the number "1".

--Bobby
rgutierrez@stata.com
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index