turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- How to calculate 95% CI for a proportion of 100%

Topic Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

a week ago

Dear all,

Does anyone know how to calculate the 95% CI for a proportion when the proportion is exactly 100% ? Thanks !

Feng Liang

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Lao_feng

a week ago

```
data x;
x=1;output;
x=1;output;
run;
proc freq data=x;
table x/binomial cl;
run;
```

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Lao_feng

a week ago

The problem is that if all trials resulted in 'success' then (to a frequentist) the standard error is 0 and the confidence interval collapses to [1, 1]. There are ways to adjust the CI. See the Hanley's 1983 JAMA paper

http://www.medicine.mcgill.ca/epidemiology/hanley/reprints/If_Nothing_Goes_1983.pdf

which suggests that you should use a 95% CI of [1 - 3/n, 1] for the rate, where n is the number of observations.

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Lao_feng

a week ago

You can get an exact lower confidence limit by using the EXACT BINOMIAL statement in PROC FREQ:

```
data a; input x w; datalines;
1 20
0 0
;
proc freq; table x; exact binomial; weight w; run;
```

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to StatDave_sas

a week ago

Thanks a lot for your help !

Regards,

Feng Liang