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

(v0.7.1.9028) predict update

This commit is contained in:
2019-08-07 15:58:32 +02:00
parent 90c874025a
commit bfa92eb166
11 changed files with 25 additions and 20 deletions

View File

@ -80,7 +80,7 @@ On our website \url{https://msberends.gitlab.io/AMR} you can find \href{https://
}
\examples{
x <- resistance_predict(septic_patients, col_ab = "AMX", year_min = 2010)
x <- resistance_predict(septic_patients, col_ab = "AMX", year_min = 2010, model = "binomial")
plot(x)
ggplot_rsi_predict(x)
@ -89,7 +89,7 @@ library(dplyr)
x <- septic_patients \%>\%
filter_first_isolate() \%>\%
filter(mo_genus(mo) == "Staphylococcus") \%>\%
resistance_predict("PEN")
resistance_predict("PEN", model = "binomial")
plot(x)
@ -105,6 +105,7 @@ if (!require(ggplot2)) {
filter(mo == as.mo("E. coli")) \%>\%
resistance_predict(col_ab = "AMX",
col_date = "date",
model = "binomial",
info = FALSE,
minimum = 15)