Re: [R] Capturing coxph warnings and errors

From: Daniel Brewer <daniel.brewer_at_icr.ac.uk>
Date: Wed, 18 Jun 2008 13:35:44 +0100

Hi,

I have enclosed the data load("coxtest.rdata") to get it into R. Here is the command line to produce the error

coxph(Surv(RecFollowUpTime,Rec)~values,data=test)

As you can see the values are almost all the same value, which is probably causing the problem.

Dan

Terry Therneau wrote:
> Error in fitter(X, Y, strats, offset, init, control, weights = weights, :
> NA/NaN/Inf in foreign function call (arg 6)
> In addition: Warning message:
> In fitter(X, Y, strats, offset, init, control, weights = weights, :
> Ran out of iterations and did not converge
>
> -------
>
> The warning message could be ignored. However, I am very interested in the
> error message; it is one I have not seen before. If you could recreate the data
> set that produces it and send it to be that would be useful.
>
> Terry Therneau
> (author of coxph)
>
>

-- 
**************************************************************
Daniel Brewer, Ph.D.

Institute of Cancer Research
Molecular Carcinogenesis
Email: daniel.brewer_at_icr.ac.uk
**************************************************************


The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP.

This e-mail message is confidential and for use by the addressee only.  If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.

______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Received on Wed 18 Jun 2008 - 13:39:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 18 Jun 2008 - 14:31:00 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive