Hi, I'm using Stata 14.1 and trying to format the appearance of a global macro when I use the macro in a title for a graph. The global macro value is 1000, but when I use this in the title of my graph, I wish to display the text as 1,000 - with a comma separating the thousand. However while I can change the display to show the comma, I now have a leading zero in the text:
Does anyone know how I remove the zero from
Incidence (per 01,000 patients)
Thanks in advance
Tim
Code:
global rate = 1000 di ${rate} 1000 di %5.0fc ${rate} 1,000 di as text "Incidence (per " di %5.0fc ${rate} " patients)" Incidence (per 01,000 patients)
Does anyone know how I remove the zero from
Incidence (per 01,000 patients)
Thanks in advance
Tim
Comment