Open mao223 opened 2 years ago
Hi, thanks for your post. This has alerted us to a bug in the code related to missing values.
We will provide a fix in the next CRAN release, in the meantime there are two workarounds:
na.action="na.impute"
when using cens.model="rfsrc"
rfsrc_pbc
call: rfsrc_pbc$forest$xvar[rfsrc_pbc$imputed.indv, ] <- rfsrc_pbc$imputed.data[, -(1:2)]
Thank you very much!
Good day,
I was wondering if I could get help with an error with one of the randomForestSRC functions. I am trying to plot Brier error over time as specified in the tutorial. When specifying cens.model = "rfsrc" in get.brier.survival(), I am getting the error
To determine if it was a problem with my input data, I used a different dataset: the pbc data that is part of the package. I was able to recapitulate the error above.
Which seems to have ran correctly:
Extracting the brier scores:
Using the km censoring distribution (km.brier) worked, returning:
Using random forest censoring distribution (rfsrc.brier) did not; the error returned:
May I get some guidance on how to fix the error when a random forest censoring distribution is used? Thank you very much for taking the time to read my message.