Replies: 1 comment 2 replies
-
|
Hm, I wonder if this isn’t a bug. So if I understand well, you have 20 isolates available where |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone
Am trying to calculate sir_confidence_intervals and it's throwing the error
Error insummarise(): ℹ In argument:ci_min = sir_confidence_interval(...). ℹ In group 1:state = ACT. Caused by error instats::binom.test(): ! 'n' must be a positive integer >= 'x'Whilst I do only have small numbers in my results, I haven't come across this issue with other bug/drug combos with similarly small numbers
Here's my code for what I'm trying to calculate:
sau%>%
group_by(state)%>%
summarise(count = n(),
no. tested= n_sir(ERY),no. R= count_R(ERY),ERY = proportion_R(ERY, as_percent = T, minimum = 0),
ci_min = sir_confidence_interval(ERY, ab_result = "R", side = "min", as_percent = T, minimum = 1),
ci_max = sir_confidence_interval(ERY, ab_result = "R", side = "max", as_percent = T, minimum = 1))
and here's my aggregated data
/state/tested/resistant
Beta Was this translation helpful? Give feedback.
All reactions