SuccessRate.RdSuccessRate calculates the Wilson-confidence interval for a sucess-rate (using prop.test).
SuccessRate(FAC, SUCCESS = 2, CONF.LEVEL = 0.95, DIGITS = 1)
| FAC | is a factor. Will be converted to a factor if not a factor. |
|---|---|
| SUCCESS | =2, factor level that defines success. If numeric, the respective level of FAC is assumed. |
| CONF.LEVEL | =0.95, desired confidence level |
| DIGITS | =7 number of digits |
data.frame with SuccessCategory, Number of Successes, Nvalid, Rate estimate in procent and lower and upper of the CONF.LEVEL confidence interval.