Date: Fri, 8 Apr 2011 12:20:17 -0700
Reply-To: Dale McLerran <stringplayer_2@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Dale McLerran <stringplayer_2@YAHOO.COM>
Subject: Re: Proc freq for binomial CI
In-Reply-To: <201104081847.p38AkdTQ018021@willow.cc.uga.edu>
Content-Type: text/plain; charset=iso-8859-1
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 <ya.huang@AMYLIN.COM> wrote:
> From: Ya Huang <ya.huang@AMYLIN.COM>
> 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
>
|