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

Re: st: Graph bar: yvaroptions disable weights

From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: Graph bar: yvaroptions disable weights
Date   Tue, 29 Apr 2003 20:31:06 +0100

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
> -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
> -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. 

[email protected]
*   For searches and help try:

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