mirror of
https://github.com/msberends/AMR.git
synced 2026-10-01 04:13:33 +02:00
Update freq function
This commit is contained in:
1 parent
0d80647d41
commit
dcc26dd942
71 files changed
+26
-28
No files matched your search
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
+3
-3
@@ -2,12 +2,12 @@ context("rsi_analysis.R")
|
||||
|
||||
test_that("rsi works", {
|
||||
# amox resistance in `septic_patients` should be around 53.86%
|
||||
expect_equal(rsi(septic_patients$amox), 0.5386, tolerance = 0.0001)
|
||||
expect_equal(rsi(septic_patients$amox), 0.5386, tolerance = 0.0001)
|
||||
expect_equal(rsi(septic_patients$amox), 0.5756, tolerance = 0.0001)
|
||||
expect_equal(rsi(septic_patients$amox), 0.5756, tolerance = 0.0001)
|
||||
expect_equal(rsi_df(septic_patients,
|
||||
ab = "amox",
|
||||
info = FALSE),
|
||||
0.5386,
|
||||
0.5756,
|
||||
tolerance = 0.0001)
|
||||
# pita+genta susceptibility around 98.09%
|
||||
expect_equal(rsi(septic_patients$pita,
|
||||
|
||||
Reference in new issue
Block a user