Description Usage Arguments Details Author(s) See Also
View source: R/finalise_outcome.R
Finalise TB outcome variable to align with WHO definitions
1 | finalise_outcome(x, bin_outcome = TRUE, ...)
|
x |
data frame containing outcome variables |
bin_outcome |
create new binary factor variable simplifying treatment outcome |
... |
further arguments passed to or from other methods |
This is a generic function. Methods for EpiInfo and Koch6 data have been defined within this package. They are designed to standardise outcome factor levels according to WHO (2013) TB definitions.
If bin_outcome
is TRUE
, an additional simplified factor outcome variable is generated with
levels Successful
, Unsuccessful
and Not evaluated
, corresponding to definitions
in the WHO document.
The original data frame with generated variables appended is returned.
Any original data not represented in the WHO definitions are converted to NA
.
Jay Achar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.