Date: Tue, 14 Jun 2005 14:08:51 -0700
Reply-To: cassell.david@EPAMAIL.EPA.GOV
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "David L. Cassell" <cassell.david@EPAMAIL.EPA.GOV>
Subject: Re: gchart, midpoint range?
In-Reply-To: <200506141834.j5EIYhHi010773@listserv.cc.uga.edu>
Content-type: text/plain; charset=US-ASCII
Ya Huang <ya.huang@AMYLIN.COM> wrote:
> When gchart is used to draw histogram for a continues variable
> , gchart will automatically calculate the midpoint.
> Is there a way I can get the range for each midpoint? For example,
> in the following code, I see 4 midpoints, I basically want to know
> who falls in 60, who falls in 90 etc.
>
> proc gchart data=sashelp.class;
> vbar weight / level=4;
> run;
Well, there's a way to get the ranges to print.. but then
you don't see the midpoints. If you change your code to:
proc gchart data=sashelp.class;
vbar weight / level=4 RANGE;
run;
This cause the x-axis to show the ranges for each of the
bars, *instead* of the midpoints. If you want both, then you'll
have to do some gyrations.
Oh, and if a value hits on a border between two bars, I think
that it gets put into the higher category.
HTH,
David
--
David Cassell, CSC
Cassell.David@epa.gov
Senior computing specialist
mathematical statistician
|