Skip to content

Commit

Permalink
fixed negative EQR
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarayon committed Mar 27, 2019
1 parent c594426 commit 5180cb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Metric2EQR <- function(metric,HER,par) {
dplyr::select(ref) %>% dplyr::pull()
value = metric/refvalue
EQR = round(ifelse(value > 1, yes = 1, no = value),3)
EQR = ifelse(EQR < 0, yes = 0, no = EQR)
return(EQR)

}
Expand Down

0 comments on commit 5180cb7

Please sign in to comment.