LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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

Dear All,

Would appreciate a prompt guidance on this one.

Regards, Amit

On Tue, 10 Jun 2008 14:27:18 -0400, Amit Sharma <amitshamit@REDIFFMAIL.COM> wrote:

>Dear All, > >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 >Attribute=0 Attribute=1 >10% 3% >20% 7% >30% 12% >40% 19% >50% 24% >60% 30% >70% 37% >80% 57% >90% 74% >100% 89% >100% 100% > >Thanks and Regards, >Amit


Back to: Top of message | Previous page | Main SAS-L page