Built site for AMR@3.1.0.9011: 944078c

This commit is contained in:
github-actions committed 2026-10-30 11:54:22 +00:00
1 parent 578406c4c9
commit 268d60edec
121 files changed
+537 -528

No files matched your search

+16 -18
View File
@@ -111,16 +111,15 @@ the `skew` and `severity` arguments:
``` r
random_mic(25)
#> Class <mic>
#> [1] 0.032 0.002 0.25 0.064 0.064 0.125 0.004 4
#> [9] 0.008 2 0.001 0.016 0.001 128 <=0.0005 512
#> [17] 0.001 256 4 4 0.004 0.002 0.125 0.004
#> [25] 0.001
#> [1] 0.002 0.0005 0.125 0.0005 0.5 0.008 0.008 2 >=8 0.016
#> [11] 0.008 0.25 0.016 0.008 0.002 0.0002 0.0002 0.0002 0.125 0.001
#> [21] 1 0.125 0.5 0.002 0.016
random_disk(25)
#> Class <disk>
#> [1] 29 36 36 29 43 10 39 39 39 49 21 43 34 45 38 43 33 47 48 26 26 39 27 29 26
#> [1] 46 48 39 28 25 42 40 50 46 34 29 20 35 29 20 41 38 18 24 28 49 24 46 41 23
random_sir(25)
#> Class <sir>
#> [1] I I R S R S S R I S S R S R S I S S I S R I R I R
#> [1] I R I S R I I R I S S I I R S I R I I S I I I R S
# add more skewedness, make more realistic by setting a bug and/or drug:
disks <- random_disk(100, severity = 2, mo = "Escherichia coli", ab = "CIP")
@@ -133,28 +132,27 @@ plot(disks, mo = "Escherichia coli", ab = "CIP", guideline = "CLSI")
# \donttest{
random_mic(25, "Klebsiella pneumoniae") # range 0.0625-64
#> Class <mic>
#> [1] 0.064 0.008 0.25 0.0005 0.016 0.25 0.032 0.0005
#> [9] 0.016 1 0.002 0.0002 0.125 8 0.001 0.032
#> [17] 2 2 0.0005 <=0.0001 0.125 <=0.0001 0.0005 0.004
#> [25] 0.002
#> [1] 4 0.001 0.004 0.0001 0.002 0.008 0.008 1 0.125 0.064
#> [11] >=16 0.002 0.0001 0.0002 0.0001 0.064 0.0002 0.001 0.002 0.0005
#> [21] 0.0005 0.016 0.004 0.0005 0.0005
random_mic(25, "Klebsiella pneumoniae", "meropenem") # range 0.0625-16
#> Class <mic>
#> [1] <=2 8 8 8 8 <=2 <=2 8 <=2 <=2 <=2 8 <=2 <=2 4 16 4 4 16
#> [20] <=2 16 8 4 <=2 4
#> [1] <=2 <=2 <=2 <=2 4 <=2 4 <=2 4 <=2 4 4 4 <=2 4 <=2 <=2 4 <=2
#> [20] 4 4 <=2 <=2 <=2 4
random_mic(25, "Streptococcus pneumoniae", "meropenem") # range 0.0625-4
#> Class <mic>
#> [1] 0.5 0.5 0.25 <=0.064 0.25 1 <=0.064 <=0.064 2
#> [10] 0.25 0.5 1 0.125 <=0.064 0.125 0.25 0.5 <=0.064
#> [19] 1 <=0.064 <=0.064 2 <=0.064 0.125 0.125
#> [1] <=0.064 <=0.064 <=0.064 0.25 <=0.064 0.25 <=0.064 <=0.064 0.25
#> [10] <=0.064 <=0.064 0.125 0.125 <=0.064 0.125 0.25 0.125 <=0.064
#> [19] 0.125 <=0.064 0.125 0.25 0.25 <=0.064 <=0.064
random_disk(25, "Klebsiella pneumoniae") # range 8-50
#> Class <disk>
#> [1] 31 28 32 34 27 31 24 28 29 27 23 33 29 27 26 32 34 33 34 19 23 30 34 21 33
#> [1] 27 15 20 29 32 34 27 24 23 22 32 31 26 34 32 20 12 26 25 30 25 23 23 20 22
random_disk(25, "Klebsiella pneumoniae", "ampicillin") # range 11-17
#> Class <disk>
#> [1] 18 15 13 17 17 13 18 17 18 17 16 18 18 14 18 18 13 14 18 16 15 18 18 14 11
#> [1] 17 18 15 17 18 17 18 13 17 17 13 15 15 16 15 15 14 16 14 14 13 17 18 14 17
random_disk(25, "Streptococcus pneumoniae", "ampicillin") # range 12-27
#> Class <disk>
#> [1] 22 28 21 17 25 25 15 25 22 27 20 25 24 19 22 22 28 28 24 17 22 28 26 25 28
#> [1] 18 27 18 24 23 24 25 24 27 15 19 18 25 25 24 26 27 25 24 20 26 27 28 24 23
# }
```