add.Ref.Rd 738 B

12345678910111213141516171819202122232425
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/hypoAfrica.R
  3. \name{add.Ref}
  4. \alias{add.Ref}
  5. \title{Add values from reference (for statistical comparison)}
  6. \usage{
  7. add.Ref(df, dfRef, var, timeVar = "visitid", nVar = "total")
  8. }
  9. \arguments{
  10. \item{df}{data frame with a timeVar, target variable var and count variable nVar}
  11. \item{dfRef}{data frame of same shape as df, considered reference for experiment}
  12. \item{var}{a variable to set reference values for}
  13. \item{timeVar}{variable containg ids of time points, where data will be merged}
  14. \item{nVar}{variable containing counts}
  15. }
  16. \value{
  17. data frame df with new coluns var_ref, var_nRef
  18. }
  19. \description{
  20. Add values from reference (for statistical comparison)
  21. }