Vince Wiggins replied to Friedrich Huebler
> This is a bug. -graph bar- is currently ignoring any specified
weights if
> suboptions -relabel()-, -total-, or -sort- are specified within the
options
> -over()- or -yvaroptions()-. The bug has been fixed and will be
available in
> an ado update either later today or tomorrow.
>
> If Friedrich has an immediate need for a graph with weighted data,
he can get
> the correct bar heights by using -collapse- with -aweight-s and then
use
> -graph bar- with the -asis- option to graph to bars.
Depending on the precise need, another possibility
is to use any program in which the calculation using
weights is separated from the call to -graph bar-.
For example, it appears that -catplot- on SSC doesn't suffer
from this bug for precisely this reason.
Nick
[email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/