mlr icon indicating copy to clipboard operation
mlr copied to clipboard

surv.glmnet and surv.cvglmnet function X matrix problem

Open ahucephe opened this issue 3 years ago • 2 comments

Thank you for your great R package "mlr". I am interested in calculate survival probability for my RNA-seq data. I want to use surv. function in "mlr" package for this. I applied surv.glmboost, surv.gamboost, surv.cforest, surv.ranger etc. for calculating c-index and I did not encounter a problem. However, I get an error when I use surv.glmnet or surv.cvglmnet function. The error is below:

"Error in (function (x, y, family = c("gaussian", "binomial", "poisson", : x should be a matrix with 2 or more columns"

So, how should I define "matrix X" ?

I try to use mlr3 and mlr3proba for survival analysis, but I don't apply feature selection methods.

ahucephe avatar Jun 29 '22 09:06 ahucephe

@ahucephe

Thanks for posting your issue.

Please provide a reproducible example, preferably using the reprex package.

If this is an issue with {mlr3proba}, I can transfer the issue to this repo. I highly suggest using {mlr} going forward instead of {mlr}. If there's something you missing in {mlr3}, please let us know!

pat-s avatar Aug 11 '22 09:08 pat-s

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.

stale[bot] avatar Jun 18 '23 03:06 stale[bot]