Programming the statistical procedures from SAS

How to find Max and Min values for the probability ?

Reply
New Contributor
Posts: 2

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

Respected Advisor
Posts: 2,989

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

Posted in reply to Senthil_SAS

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
Esteemed Advisor
Posts: 5,523

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

Posted in reply to Senthil_SAS

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
New Contributor
Posts: 2

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

Esteemed Advisor
Posts: 5,523

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

[ Edited ]
Posted in reply to Senthil_SAS

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
Ask a Question
Discussion stats
  • 4 replies
  • 258 views
  • 5 likes
  • 3 in conversation