[R] Glmnet survival cox predict

2019-11-15 Thread Amir Hadanny
Hi all, i'm trying to get the prediction probabilities for a survival elastic net. When i use try to predict using the train model on the test set, it creates an object with the number rows of the train data (6400 rows) instead of the test data (2400 rows). I really don't understand why, and that d

Re: [R] Glmnet survival cox predict

2019-11-16 Thread Amir Hadanny
data1,] test<-data[-data1,] so test should be the exact same, and i still can't find the issue, thank you Amir On Sat, Nov 16, 2019 at 12:00 AM David Winsemius wrote: > > On 11/15/19 10:49 AM, Amir Hadanny wrote: > > Hi all, > > i'm trying to get the prediction p