baseliner.koch6: Baseline culture or smear status

Description Usage Arguments See Also

View source: R/baseliner.koch6.R

Description

This function takes a list, including nested data frames of TB admission and laboratory programme data, uses a unique patient identifier, dates of treatment start and sample submission and sample results to calculate baseline culture or smear status. The function requires admission and laboratory data to have been prepared with the tbcleanr package and for the admission data to have class of either "epiinfo" or "koch6"

Usage

1
2
3
## S3 method for class 'koch6'
baseliner(adm, lab, baseline_test = c("culture",
  "smear"), baseline_days = 90)

Arguments

adm

data frame containing TB admission data cleaned and allocated object class by tbcleanr package

lab

data frame containing TB laboratory data cleaned and allocated object class by tbcleanr package

baseline_test

define which baseline test result to check

baseline_days

criteria for using pre-treatment samples

See Also

tbgeneratr


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