Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h1>Alternative solution : Changing the variance factor</h1> <p>Changing the method of the variance of the random effect, seems to fix the problem.</p> <p>e.g:</p> <pre><code>mod.aic &lt;- coxph(Surv(time, event) ~ x + frailty.gamma(cluster, eps=1e-10, method="aic", sparse=0), outer.max=1000, iter.max=10000, data=dat) plot(survfit(mod.aic), col=4) </code></pre> <p><img src="https://i.stack.imgur.com/zYYIQ.png" alt="enter image description here"></p> <h1>ddd hoc solution: works if we remove one cluster</h1> <p>Maybe this don't answer exactly your question , but when I remove any cluster e.g:</p> <pre><code>par(mfrow=c(2,3)) res &lt;- sapply( 1:6 , function(x) { mod &lt;- coxph(Surv(time, event) ~ x + frailty.gamma(cluster, eps=1e-10, method="em", sparse=0), outer.max=1000, iter.max=10000, data=subset(dat,cluster != x) ) plot(survfit(mod), col=4,main= paste ('cluster', x, 'is removed')) legend(10,1,mod$iter) }) </code></pre> <p>the coxph converge and I have the same result for all samples.</p> <p><img src="https://i.stack.imgur.com/XYLfF.png" alt="enter image description here"></p> <p>I don't have enough information about your data for further analysis but I Tried to do some comparison between different clusters.</p> <pre><code>library(ggplot2 qplot(data = dat, x=time , y = x , facets= event~cluster) </code></pre> <p><img src="https://i.stack.imgur.com/cP4lp.png" alt="enter image description here"></p> <p>I notice that 3 groups : </p> <ol> <li>clusters 1,3,5 : events uniformally distributed </li> <li>clusters 2 ,4 : events just for small times. </li> <li>cluster 6 : amazing one ( only event 1)</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload