Skip to content
Prev 317471 / 398502 Next

NA/NaN/Inf in foreign function call (arg 6) error from coxph function

On Feb 13, 2013, at 7:46 AM, Cindy Yao wrote:

            
I cannot tell whether your method of calling coxph() could be part of the problem, or whether you just have a dataset that creates numerical difficulties. I would have constructed a dataset that did not have a Surv-object incorporated into that dataframe, sbut rather it would have been a list of five columns with 'time' and 'status' kept separate, and the call would have looked like:

coxph( Surv(time, status) ~ therapy + ReceptorA + ReceptorB , data= sample.data)

I know that people have had (occasional) problems in the past related merely to creating Surv-objects outside of the formula interface and your approach appears even more dangerous than that approach.

Once you have a more more data arrangement, you could investigate the possibility of a pathological arrangement of data with this since it appears all of you predictors are binomial.

with(sample.data, table( status, therapy,  ReceptorA ,  ReceptorB) )