BookmarkSubscribeRSS Feed
Senthil_SAS
Calcite | Level 5

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
PaigeMiller
Diamond | Level 26

More information is needed.

 

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
PGStats
Opal | Level 21

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
Senthil_SAS
Calcite | Level 5

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

PGStats
Opal | Level 21

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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 2779 views
  • 5 likes
  • 3 in conversation