Error: CANNOT ALLOCATE VECTOR OF SIZE 1.6GB

Hello everyone, Would you help me to resolve this issue?

I´m trying to run a weighted logrank test and i have this error:

>  svylogrank(Surv(TEMPO, EVENTO) ~ PAIS, design = design_new)

}

Error: cannot allocate vector of size 1.6 Gb
In addition: Warning message:
In regularize.values(x, y, ties, missing(ties), na.rm = na.rm) :
collapsing to unique 'x' values

the initial interpretation of the error is that you have run out of available memory for the operation you attempted.
This opens two main possibilities

  1. Your data / code are both 'correct' and simply need more memory available than you have ; if so you would try to reduce if possible your memory footprint to free up more memory, or perhaps invest in more memory
  2. Either your data or code or both or in some way incorrect and the memory run out is a side effect of the calculation generating more data (and needing to take more memory) than would be justified, and that would be needed if the data / code were correct

We would need more information to help further I'm afraid.

Perhaps you could provide a reprex.