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

st: RE: legend sample size

From   "Nick Cox" <>
To   <>
Subject   st: RE: legend sample size
Date   Thu, 3 Jun 2004 16:00:13 +0100

If for some reason you are determined not 
to use macros (NB to me the phrase "macro 
variables" has no clear Stata meaning), 
then I would have thought that your only 
alternative was to type them in by hand. 

sts graph, by(sex) legend(order(1 "females (1776)" 2 "males (1812)")) 


E. Michael Foster

>   I'm producing graphs of hazards using -sts graph- with a 
> -by- variable.
> I'd like the legend to show the sample size for each group.
>   Anyway to do this without storing the sample sizes in macro 
> variables
> and then passing them to -sts graph- in a legend option?

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index