BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
chinna0369
Pyrite | Level 9

Hi all, 

 

How to take 95% CI when _BIN_ value is 1 like below.

anyalamadugu_0-1593625547258.png

 

Thanks in advance!

Adithya

1 ACCEPTED SOLUTION

Accepted Solutions
chinna0369
Pyrite | Level 9

@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

View solution in original post

4 REPLIES 4
Watts
SAS Employee

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.

 

 

 

chinna0369
Pyrite | Level 9

@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

Watts
SAS Employee

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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 960 views
  • 1 like
  • 2 in conversation