finalise_outcome: Finalise TB treatment outcome

Description Usage Arguments Details Author(s) See Also

View source: R/finalise_outcome.R

Description

Finalise TB outcome variable to align with WHO definitions

Usage

1
finalise_outcome(x, bin_outcome = TRUE, ...)

Arguments

x

data frame containing outcome variables

bin_outcome

create new binary factor variable simplifying treatment outcome

...

further arguments passed to or from other methods

Details

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.

Author(s)

Jay Achar

See Also

tbgeneratr


JayAchar/tbgeneratr documentation built on Oct. 13, 2019, 1:47 a.m.