Skip to content

Commit

Permalink
fix problems with chf
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyzinskim committed Oct 25, 2023
1 parent 460f253 commit 8c0c8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/unify_ranger_surv.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ranger_surv.unify <- function(rf_model, data, type = c("risk", "survival", "chf"
stopifnot(
"`times` must be a numeric vector and argument \
`type = 'survival'` or `type = 'chf'` must be set." =
ifelse(!is.null(times), is.numeric(times) && type == "survival", TRUE)
ifelse(!is.null(times), is.numeric(times) && (type == "survival" || type == "chf"), TRUE)
)

surv_common <- ranger_surv.common(rf_model, data)
Expand Down

0 comments on commit 8c0c8fd

Please sign in to comment.