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:
@ -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,
|
||||
|
Reference in New Issue
Block a user