| 12345678910111213141516171819202122232425 |
- % Generated by roxygen2: do not edit by hand
- % Please edit documentation in R/hypoAfrica.R
- \name{add.Ref}
- \alias{add.Ref}
- \title{Add values from reference (for statistical comparison)}
- \usage{
- add.Ref(df, dfRef, var, timeVar = "visitid", nVar = "total")
- }
- \arguments{
- \item{df}{data frame with a timeVar, target variable var and count variable nVar}
- \item{dfRef}{data frame of same shape as df, considered reference for experiment}
- \item{var}{a variable to set reference values for}
- \item{timeVar}{variable containg ids of time points, where data will be merged}
- \item{nVar}{variable containing counts}
- }
- \value{
- data frame df with new coluns var_ref, var_nRef
- }
- \description{
- Add values from reference (for statistical comparison)
- }
|