[R] conditional gap time frailty cox model for recurrent events

Elisabetta Petracci elisabetta.petracci at gmail.com
Mon Sep 5 11:42:40 CEST 2016

Dear users,

I am fitting a conditional gap time frailty cox model weighting
observations by means of inverse probability time dependent weigths.
Attached find the self-explaining dataset.

I have used the following sintax:


And I get the following warning:

Warning message:
In coxpenal.fit(X, Y, strats, offset, init = init, control, weights =
weights,  :
  Inner loop failed to coverge for iterations 3 4

I have tried to:
- leave out the weights but I get the error anyway
- to randomly select a subset of patients and I don't get the error. This
seems to suggest that the problem is with some observations.

Any suggestion?

Many thanks,


More information about the R-help mailing list