|Date: ||Wed, 11 Jun 2008 13:26:24 -0400|
|Reply-To: ||Amit Sharma <amitshamit@REDIFFMAIL.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||Amit Sharma <amitshamit@REDIFFMAIL.COM>|
|Subject: ||Re: group count and plot|
Would appreciate a prompt guidance on this one.
On Tue, 10 Jun 2008 14:27:18 -0400, Amit Sharma
>As I am new to the SAS world, am again stuck and need help.
>There is a dataset (name = ds) having var 'A' and 'B'.
>'A' is a binary var (attribute = 0 or 1). I wish to plot a graph of
>fraction of '0's versus fraction of '1's of var A. These values of 'A' are
>already arranged (and have to be kept like that only) in increasing order
>of a var B (var B is a continous variable).
>So, I want to find that "when one of the attributes(say '0') reaches a
>multiple of decile (10%, 20%, 30%...100%), what part (%age) of the other
>attribute had been covered till then".
>For plotting the graph, I would want this kind of a table:
>PLEASE NOTE THAT one of the attribute will surely reach 100% before the
>other. So, there have to to be 11 pair of x and y values.
>Dummy Table: plot_this
>Thanks and Regards,