- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.