Calcite | Level 5

## How to find Max and Min values for the probability ?

Hi,

I'm a beginner in SAS....

Could you please clarify on below -

How to check Max and Min values for a probability in SAS ?

Which SAS procedure I should use ?

Version --> Release: 3.6 (Basic Edition)

Regards,

Senthilkumar Ks

4 REPLIES 4
Diamond | Level 26

## Re: How to find Max and Min values for the probability ?

Describe the process you want to use. Also, please describe what probabilities are you referring to? Probabilities that you are calculating? How are you calculating them? Where are they stored?

--
Paige Miller
Opal | Level 21

## Re: How to find Max and Min values for the probability ?

If you want to estimate a proportion and its conficence limits, consider using proc freq with the binomial option. An example estimating the proportion of the sexes in dataset sashelp.class:

``````proc freq data=sashelp.class;
table sex / binomial(cl=exact);
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
Sex = F

Proportion      0.4737
ASE             0.1145

Confidence Limits for the Binomial Proportion
Proportion = 0.4737

Type                       95% Confidence Limits

Clopper-Pearson (Exact)    0.2445         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
```
PG
Calcite | Level 5

## Re: How to find Max and Min values for the probability ?

Thank you...

could you please explain below piece of code ? what is C1 stands for and the value 'exact'  ?

``binomial(cl=exact)``

Regards

Senthilkumar KS

Opal | Level 21

## Re: How to find Max and Min values for the probability ?

Please note that the option is CL=, not C1=. CL stands for Confidence Limits. Option EXACT requests one of the methods available to compute the confidence limits for the binomial proportion estimates.

Please refer to the proc freq documentation for details.

PG
Discussion stats
• 4 replies
• 1931 views
• 5 likes
• 3 in conversation