add.conf.int.Rd 693 B

123456789101112131415161718192021
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/hypoAfrica.R
  3. \name{add.conf.int}
  4. \alias{add.conf.int}
  5. \title{Add binomial confidence intervals to var, fraction estimates, evaluated over nVar participants}
  6. \usage{
  7. add.conf.int(df, var, nVar = "total")
  8. }
  9. \arguments{
  10. \item{df}{a data frame that contains var and nVar columns}
  11. \item{var}{variable to calculate CI for, should be a fraction 0..1}
  12. \item{nVar}{variable that contains number of participants}
  13. }
  14. \value{
  15. data frame with added var_low and var_high columns containing low and high CI95 values
  16. }
  17. \description{
  18. Add binomial confidence intervals to var, fraction estimates, evaluated over nVar participants
  19. }