mirror of
https://github.com/msberends/AMR.git
synced 2026-10-01 04:13:33 +02:00
resistance predict
This commit is contained in:
1 parent
cda7087722
commit
046d195064
16 files changed
+306
-209
No files matched your search
@@ -32,6 +32,11 @@ test_that("prediction of rsi works", {
|
||||
# amox resistance will increase according to data set `septic_patients`
|
||||
expect_true(amox_R[3] < amox_R[20])
|
||||
|
||||
x <- resistance_predict(septic_patients, col_ab = "amox", year_min = 2010)
|
||||
plot(x)
|
||||
ggplot_rsi_predict(x)
|
||||
expect_error(ggplot_rsi_predict(septic_patients))
|
||||
|
||||
library(dplyr)
|
||||
|
||||
expect_output(rsi_predict(tbl = filter(septic_patients, mo == "B_ESCHR_COL"),
|
||||
|
||||
Reference in new issue
Block a user