single_prop_ci {CIfinder} | R Documentation |

## Compute the confidence interval for a single proportion based on different methods

### Description

Compute the confidence interval for a single proportion based on different methods

### Usage

```
single_prop_ci(
x,
n,
method = "all",
alternative = "two.sided",
conf.level = 0.95,
prior = c(1, 1)
)
```

### Arguments

`x` |
number of successes |

`n` |
number of trials |

`method` |
one of these options "all", "clopper.pearson", "wald", "wislon", "wislon.correct", "agresti", or "beta" |

`alternative` |
indicates "two.sided", "one.sided" |

`conf.level` |
confidence level |

`prior` |
the prior values for "beta" method |

### Value

Estimated confidence intervals for the probability of success

### Examples

```
single_prop_ci(53, 57, method = "all")
```

[Package

*CIfinder*version 2.0.0 Index]