Hi all,
How to take 95% CI when _BIN_ value is 1 like below.
Thanks in advance!
Adithya
@Watts , I got the answer. When BIN value is 1 then we need to take inverse values which means we need to subtract those values from 1.
Thanks,
Adithya
Are you asking how PROC FREQ computes the exact confidence limits for the binomial proportion?
This computation is documented here:
Binomial Proportion: Exact (Clopper-Pearson) Confidence Limits
When the observed proportion is 1, the upper confidence limit is set to 1, and the lower limit is computed as described for P_L.
@Watts , I got the answer. When BIN value is 1 then we need to take inverse values which means we need to subtract those values from 1.
Thanks,
Adithya
You can specify the level (for which to compute the binomial proportion) by using the
BINOMIAL(LEVEL=) option in the PROC FREQ TABLES statement.
For example,
tables Response / binomial(level='yes');
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: