knitr::opts_chunk$set( collapse = TRUE, comment = "#>", out.width = "100%" )
Generate variables from cleaned MSF TB programme data
The R package tbgeneratr
was developed to be used in synergy with tbcleanr
to simplify cleaning and processing for routinely collected TB programme data. tbgeneratr
compliments tbcleanr
output data frames by processing and generating more complex data points, such as individual patient culture conversion dates. Following development of tbreportr
, a simplified workflow from raw data to automated reporting will be realised through tbcleanr
, tbgeneratr
and tbreportr
.
You can install the released version of tbgeneratr
from Github with:
require(devtools) install_github("JayAchar/tbgeneratr") library(tbgeneratr)
Function | Use it for
-------------- | ------------------------------------------
adm_generator()
| Calculate age and BMI variables, and split start treatment date to allow easier analysis
adm_lab_generator()
| Calculate baseline smear and culture status, and associated conversion dates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.