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');
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.