Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

surv.glmnet and surv.cvglmnet function X matrix problem #2837

Open
ahucephe opened this issue Jun 29, 2022 · 2 comments
Open

surv.glmnet and surv.cvglmnet function X matrix problem #2837

ahucephe opened this issue Jun 29, 2022 · 2 comments

Comments

@ahucephe
Copy link

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.

@pat-s
Copy link
Member

pat-s commented Aug 11, 2022

@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!

@stale
Copy link

stale bot commented Jun 18, 2023

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 stale bot added the stale label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants