Re: [R] Problem with predict.coxph

2009-08-20 Thread Ramon Diaz-Uriarte
Dear Terry, The following is an additional set of two simple examples. In these, no issue with factor levels, etc, arises. It looks like the problem consistently shows up when the number of rows of newdata differs from the number of rows in the original data set AND time and status are not part

Re: [R] Problem with predict.coxph

2009-08-20 Thread Therneau, Terry M., Ph.D.
Ramon and Michael There were 2 simple issues: first a set of fixes I made in May that hadn't been pushed out to CRAN yet; second I needed to replace 'terms' with 'delete.response(terms)' in one place so that predict didn't try to find a response that it doesn't need. You can grab the up to

Re: [R] Problem with predict.coxph

2009-08-20 Thread Marc Schwartz
On Aug 20, 2009, at 9:26 PM, Therneau, Terry M., Ph.D. wrote: Ramon and Michael There were 2 simple issues: first a set of fixes I made in May that hadn't been pushed out to CRAN yet; second I needed to replace 'terms' with 'delete.response(terms)' in one place so that predict didn't try

Re: [R] Problem with predict.coxph

2009-08-19 Thread Michael Conklin
Sent: Tuesday, August 18, 2009 8:26 PM To: r-help@r-project.org Subject: [R] Problem with predict.coxph We occasionally utilize the coxph function in the survival library to fit multinomial logit models. (The breslow method produces the same likelihood function as the multinomial logit). We

Re: [R] Problem with predict.coxph

2009-08-19 Thread Terry Therneau
-- begin included message --- We occasionally utilize the coxph function in the survival library to fit multinomial logit models. (The breslow method produces the same likelihood function as the multinomial logit). We then utilize the predict function to create summary results for various

[R] Problem with predict.coxph

2009-08-18 Thread Michael Conklin
We occasionally utilize the coxph function in the survival library to fit multinomial logit models. (The breslow method produces the same likelihood function as the multinomial logit). We then utilize the predict function to create summary results for various combinations of covariates. For