Skip to content

Commit

Permalink
try collapse na_omit and drop the oobag guard
Browse files Browse the repository at this point in the history
  • Loading branch information
bcjaeger committed Oct 8, 2023
1 parent f755ea9 commit dbe816a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions R/orsf.R
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,6 @@ orsf <- function(data,

)

# TODO: drop this; importance is computed with mort
if(importance %in% c("permute", "negate") && !oobag_pred){
# oobag_pred <- TRUE # Should I add a warning?
oobag_pred_type <- 'surv'
}

if(is.null(oobag_fun)){

f_oobag_eval <- function(x) x
Expand Down Expand Up @@ -651,9 +645,9 @@ orsf <- function(data,
},

'omit' = {
# data <- collapse::na_omit(data, cols = names_x_data)
cc <- stats::complete.cases(data[, names_x_data])
data <- data[cc, ]
data <- collapse::na_omit(data, cols = names_x_data)
# cc <- stats::complete.cases(data[, names_x_data])
# data <- data[cc, ]
},

'impute_meanmode' = {
Expand Down

0 comments on commit dbe816a

Please sign in to comment.