d stgrby. Graph median and mean survival time by categorical variables. d Program by Mario A. Cleves, Stata Corporation . d Statalist distribution, 23 April 1999. d d ^stgrby^ stgrby graphs the median or mean (optionally restricted mean) of d survival time according to the values of the variables in varlist. The d variables in varlist may be string or numerical and, if numerical, may be d labeled. f stgrby/stgrby.ado f stgrby/stgrby.hlp