Gabi Huiber <[email protected]> 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
[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/