See references for more details. The data is collected between 2003-2009 in Maryland, USA. This is originally from (Xie et al. 2018)

tb_clean

Format

The object is a data frame of dimension 1137x7. Each row is a detected case of TB.

sex

Sex of individual (F/M/Unknown)

county

County in Maryland of individual

race

Race of individual (Asian/Black or African American/White)

spsmear

Smear status of individual (positive/negative/unknown)

hivstatus

HIV status of individual (positive/negative/unknown)

homeless

Homelessness status of individual (yes/no)

groupr

Cluster group

rel_time

detection time relative to first individual in cluster

References

Xie YL, Cronin WA, Proschan M, Oatis R, Cohn S, Curry SR, Golub JE, Barry III CE, Dorman SE (2018). “Transmission of Mycobacterium tuberculosis From Patients Who Are Nucleic Acid Amplification Test Negative.” Clinical Infectious Diseases, 67(11), 1653--1659.

Examples

head(tb_clean)
#> # A tibble: 6 x 8 #> # Groups: group [1] #> sex county race spsmear hivstatus homeless group rel_time #> <chr> <chr> <chr> <chr> <fct> <chr> <chr> <dbl> #> 1 Male "BALTIMORE … Black or Afric… "Negati… pos Yes 2 375 #> 2 Male "BALTIMORE … Black or Afric… "Negati… pos Yes 2 1085 #> 3 Male "" Black or Afric… "" unk Yes 2 1357 #> 4 Male "BALTIMORE … Black or Afric… "Positi… pos Yes 2 1002 #> 5 Female "BALTIMORE … Black or Afric… "Negati… neg No 2 1385 #> 6 Male "BALTIMORE … Black or Afric… "Negati… pos Yes 2 1029
summary(tb_clean)
#> sex county race spsmear #> Length:389 Length:389 Length:389 Length:389 #> Class :character Class :character Class :character Class :character #> Mode :character Mode :character Mode :character Mode :character #> #> #> #> hivstatus homeless group rel_time #> neg:272 Length:389 Length:389 Min. : 0.0 #> unk: 61 Class :character Class :character 1st Qu.: 0.0 #> pos: 56 Mode :character Mode :character Median : 192.0 #> Mean : 463.1 #> 3rd Qu.: 885.0 #> Max. :1938.0