Sanitizing labels
topherconley opened this issue · 1 comments
topherconley commented
If by some mistake the label input y
contains missing values in psupertime::psupertime
, this error from glmnet
occurs.
Error in if (!all(o)) { : missing value where TRUE/FALSE needed
Perhaps something like would help users.
if (any(is.na(y)) {
stop('Input y contains missing values.')
}
wmacnair commented
Thanks for reporting this - somewhat belatedly getting round to addressing it... I'll add this to the function check_params
.
Cheers!
Will