```Date: Fri, 8 Apr 2011 15:23:35 -0400 Reply-To: Ya Huang Sender: "SAS(r) Discussion" From: Ya Huang Subject: Re: Proc freq for binomial CI Comments: To: Dale McLerran Thanks Dale, I didn't see your post before I sent out the other one. I actually asked this question. Thanks for confirm. Ya On Fri, 8 Apr 2011 12:20:17 -0700, Dale McLerran wrote: >For males, the confidence limits would be > > LB(Male) = 1 - UB(Female) > UB(Male) = 1 - LB(Female) > >Dale > >--------------------------------------- >Dale McLerran >Fred Hutchinson Cancer Research Center >mailto: dmclerra@nFoHsCpRaCm.org >Ph: (206) 667-2926 >Fax: (206) 667-5977 >--------------------------------------- > > >--- On Fri, 4/8/11, Ya Huang wrote: > >> From: Ya Huang >> Subject: Proc freq for binomial CI >> To: SAS-L@LISTSERV.UGA.EDU >> Date: Friday, April 8, 2011, 11:47 AM >> Hi there, >> >> The following code only shows the proportion and CI of >> female. Is there a >> way to get male too? >> >> Thanks >> >> Ya >> >> proc freq data=sashelp.class; >> table sex / binomial; >> run; >> >> >> The FREQ Procedure >> >> >> >> Cumulative Cumulative >> Sex Frequency >> Percent >> Frequency Percent >> ------------------------------------------------------------- >> F >> 9 47.37 >> 9 >> 47.37 >> M >> 10 52.63 >> 19 >> 100.00 >> >> >> >> Binomial Proportion for Sex = F >> >> -------------------------------- >> >> Proportion >> 0.4737 >> >> ASE >> 0.1145 >> >> 95% Lower Conf Limit >> 0.2492 >> >> 95% Upper Conf Limit >> 0.6982 >> >> >> Exact Conf Limits >> >> 95% Lower Conf Limit >> 0.2445 >> >> 95% Upper Conf Limit >> 0.7114 >> >> >> Test of H0: Proportion = 0.5 >> >> >> ASE under H0 >> 0.1147 >> >> Z >> -0.2294 >> >> One-sided Pr < Z >> 0.4093 >> >> Two-sided Pr > |Z| >> 0.8185 >> >> >> Sample Size = 19 >> ```

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