[R] Survival model error

2017-11-05 Thread Meghna Govil via R-help
Hi - Below is my code and then the error when I run the last line. time_np <- train1_na$tte event_np <- train1_na$censored X_np <- cbind( train1_na$AMT, train1_na$DISCOUNT_AMT, train1_na$high_price_pcnt, train1_na$EM_RECEIVED, train1_na$DM_RECEIVED, train1_na$TXN_WITH_RINGCODE,

Re: [R] Survival model error

2017-11-06 Thread Meghna Govil via R-help
ormula refer > to column names. > > — > David > > Sent from my iPhone > >> On Nov 5, 2017, at 7:21 PM, Meghna Govil via R-help >> wrote: >> >> >> Hi - Below is my code and then the error when I run the last line. >> >>

[R] survival analysis - predict function

2017-10-16 Thread Meghna Govil via R-help
> Hi > > I'm trying to predict the values for a survreg object called loglogistic_na. > Here is the definition of loglogistic_na and following that the syntax used > for the predict function. But upon execution I don't get any output. Not sure > what I'm doing wrong: > > loglogistic_na <- sur