1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 07:11:57 +02:00

(v0.7.1.9090) factor levels of mdr_tb

This commit is contained in:
2019-09-26 21:58:06 +02:00
parent b9f01d686e
commit b39e7feae6
12 changed files with 73 additions and 65 deletions

View File

@ -31,7 +31,7 @@ As an example, I will make a data set to determine multi-drug resistant TB:
```{r}
# a helper function to get a random vector with values S, I and R
# with the probabilities 50%-10%-40%
# with the probabilities 50% - 10% - 40%
sample_rsi <- function() {
sample(c("S", "I", "R"),
size = 5000,