title: How can I solve memory allocation error in R?
body: <p>I am using a package named <code>timereg</code> in R. But, when I am fitting a model this shows some kind of problem. (My sample size is n=4500) </p>
  
  <pre><code>library(timereg)    
  fit &lt;- Gprop.odds(Surv(time,status==1)~prop(age)+prop(sex)+prop(fedu)+ prop(wi) ,dat,max.time=7,n.sim=400)
      Error in Gprop.odds(Surv(time, B5 == 1) ~ prop(mageB) + prop(B4) + prop(fedu) +  : 
        'Calloc' could not allocate memory (13583 of 8 bytes)
  </code></pre>
  
  <p>How can I solve this problem? Thanks for your time.</p>