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