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 (May 1998, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 13 May 1998 10:28:56 -0400
Reply-To:     Claudia Bullock <CBullock@HCFA.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Claudia Bullock <CBullock@HCFA.GOV>
Subject:      Proportion of Sample -Reply

Heres a simple solution :

proc freq; tables dummy; run;

Results will look something like this :

dummy frequency percent cumul. freq cum. percent 0 20 20 20 20

1 80 80 100 100

In this example the ratio of 1's to total observations is 80%.

Claudia

>>> Jie Qin <c674010@SHOWME.MISSOURI.EDU> 05/13/98 08:41am >>> I want to know the proportion of a dummy variable (only having 0 and 1 values) in my data set. That is, the ration of event of interest (numbers of observations with 1/numbers of total observations) over the whole sample. I think my method is very tedious. Is there anyone can contribute a simple way to do that?

Thanks in advance.

Jie Qin 1720 East Broadway Rd. Apt. D Columbia, MO 65201 Tel: (573) 817-3170 http://www.missouri.edu/~c674010


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