You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the docu of getTaskData it says under recode.target: "For survival, you may choose to recode the survival times to 'left', 'right' or 'interval2' censored times using 'lcens', 'rcens' or 'icens', respectively."
This is not consistent with the implementation. If one of these options is chosen, e.g.recode.target = "rcens", an error occurs. Instead, recode.traget = "surv" works. See example:
The text was updated successfully, but these errors were encountered:
HerrMo
changed the title
argument target.extra of getTaskData is not consistent with the documentation
argument recode.target of getTaskData is not consistent with the documentation
Mar 8, 2019
I've taken a look but couldn't find the commit that changed the implementation. I just found that there were valid options for 'lcens', 'rcens' or 'icens' in the package at some point.
Could you explain shortly what the current option "surv" does? I cannot infer that by just looking at the example and the transformation.
Many methods require an object of class Surv (s. survival::Surv). Option "surv" changes the target into such a Surv-object with censoring being set to right censoring (most standard censoring type) via type = "right"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi,
in the docu of
getTaskData
it says under recode.target: "For survival, you may choose to recode the survival times to 'left', 'right' or 'interval2' censored times using 'lcens', 'rcens' or 'icens', respectively."This is not consistent with the implementation. If one of these options is chosen, e.g.
recode.target = "rcens"
, an error occurs. Instead,recode.traget = "surv"
works. See example:As far as I understand that, the options listed in the docu are simply not implemented.
If you look at the source code, you will see that.
mlr/R/Task_operators.R
Lines 333 to 335 in 1a2d34b
mlr/R/Task_operators.R
Lines 340 to 354 in 1a2d34b
Kind regards
The text was updated successfully, but these errors were encountered: