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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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