R Memory problem with Panelvar package

Hi everyone,

I am a new user of R. I have been having problems running the 'pvargmm' function from the package PanelVar for several weeks now.
It is a small code, but so far I've only been able to use it for a tiny dataset.

I even tried running it on a virtual machine but I always get errors related to insufficient memory, such as "cannot allocate vector of size...", or "cholmod error 'out of memory' ..."
My dataset contains 2784 observations, population 48, 58 years and 4 variables.

Could you please help me with some solutions?

To be honest, I'm not sure what the solution is, but I know lots of people have asked similar questions here. So in case you haven't read them, it's possible that someone already solved the same question. I'll link some here

3 Likes

If you can share your code and some data that causes the memory problem, that would also help. Could be thereā€™s something in the code that could be optimized, or at least somebody else can verify whatā€™s going on and be in a better position to suggest workarounds.

For advice on how to share code and data, see here:

Have you solved the problem? I encountered the same memory issue with pvargmm.

Hi,
After setting the collapse option to true it worked for me.

1 Like

thank youļ¼I will try.