| 12345678910111213141516171819202122232425 |
- % Generated by roxygen2: do not edit by hand
- % Please edit documentation in R/hypoAfrica.R
- \name{add.p.values.fisher}
- \alias{add.p.values.fisher}
- \title{Add statistical significance to df/dfRef difference using Fisher exact method}
- \usage{
- add.p.values.fisher(df, dfRef, var, timeVar = "visitid", nVar = "total")
- }
- \arguments{
- \item{df}{data frame with target variable var, timeVar and count variable nVar}
- \item{dfRef}{a reference data frame of the same shape as df}
- \item{var}{the target variable}
- \item{timeVar}{variable indicating comparable visits}
- \item{nVar}{count variable}
- }
- \value{
- data frame with var_pF column of calculated signficance of difference (fisher.test) and var_sF, coded (+<0.05,*<0.01,**<0.001) statistical significance
- }
- \description{
- Add statistical significance to df/dfRef difference using Fisher exact method
- }
|