Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: RE: error messages while using the stgest command

From   "Nick Cox" <>
To   <>
Subject   st: RE: RE: error messages while using the stgest command
Date   Thu, 3 Jun 2010 10:48:33 +0100

It's indeed difficult to add to Martin's diagnosis of the first error
because, although meticulous about other details, Victor omitted to
specify exactly what he typed. But the graph call in question 

graph z psi if z<2.5&z>-2.5, yline(-1.96, 0, 1.96) xlab ylab
xline(`gestl', `gest', `gestu') `options'

is under Stata 7 syntax (in Stata 8 up documented under -graph7-). Here
`options' is, or should be, whatever graph options Victor typed on his
command line. Any attempt to add options for the graphics introduced in
Stata 8 is likely to produce an error message. 


Martin Weiss

The second error occurs because -gesttowb- is looking for results left
behind by a Weibull estimation. If you have not run this estimation
previously, the macros that -gesttowb- is trying to multiply do not
The example code "" delivered with the package runs without a
hitch for me, btw, and executes -gesttowb- repeatedly.

The first error does have something to do with the -graph- command on
304 of -stgest.ado-, though the problem is difficult to track down. 

Victor Mauricio Herrera

I wonder if anyone could shed light on the following. I consistently get
error messages while using the stgest command (Stata Journal 2002,
2(2):164-182) in Stata/MP 11.0.  The first one happens after the causal
survival ratio is reported:  

                "Note - these estimates should be confirmed with an
                  interval bisection search by omitting the step option
                  option ( not allowed

I guess this has something to do with the instructions to graph the

The second error occurs when using gesttowb:
                 g-estimated hazard ratio *:  operator invalid

My versions of these programs are:

                   which gesttowb
                   *! Version 1.0         (SJ2-2: st0014)
                   which stgest
                   *! version 5.5 JACS/KT g-estimation, June 2002

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index