Dear statalist,
When Stata runs histogram, it provides a little note on-screen with the number of bins, start value and bin width, e.g.:
which then displays
(bin=8, start=1760, width=385)
I would like to put these values into local macros. It would be almost as good to put the whole string into a local, or to add the string to the graph as a note.
Is this possible?
I have a somewhat complicated workaround that recalculates these values but needless to say it would be simpler just to capture the work Stata is already doing.
Best,
BL
PS - Stata 16.1 MP (17 Sep 2020) on W10
When Stata runs histogram, it provides a little note on-screen with the number of bins, start value and bin width, e.g.:
Code:
sysuse auto hist weight
(bin=8, start=1760, width=385)
I would like to put these values into local macros. It would be almost as good to put the whole string into a local, or to add the string to the graph as a note.
Is this possible?
I have a somewhat complicated workaround that recalculates these values but needless to say it would be simpler just to capture the work Stata is already doing.
Best,
BL
PS - Stata 16.1 MP (17 Sep 2020) on W10
Comment