Skip to content
Prev 19117 / 20628 Next

A three-level GLMM with binomial link in R

Here are my comments/questions:

  1.  I have tried changing the site, family, and id to factor and I get the same results.
  2.  Unfortunately, I can't share my data due to privacy issues but if you tell me what other information you need, I can provide it.
  3.  Note that when I run the three-way interaction code in my PC it again runs out of memory and the error says the following. When I tried to run it on interactive HPC, it kicks me out as it takes too much memory/time so I will have to submit a batch script.
"Error: cannot allocate vector of size 18.1 Gb
In addition: Warning message:
In ans * length(l) :
Error: cannot allocate vector of size 18.1 Gb"
  4.  When I take out all the fixed effects, the problem still exists.
  5.  Question: Also note that my data has 22945 rows, and some individuals have only baseline measurement only, some individuals have baseline and 1 year measurement. A variable called eventname is the indicator of that. I am now confused as my "id" variable does not have this information (i.e. the order of measurement). How would the model recognize that which repeated measure is measurment1 (i.e. baseline) and which one is measurment2(i.e. 1 year)?  Or maybe because I don't have a random slope, I don't need to define the repeated measure structure and adding eventname as a fixed effect is sufficient?

Thanks again for all your help on this.

Best,

Hedyeh Ahmadi, Ph.D.
Statistician
Keck School of Medicine
Department of Preventive Medicine
University of Southern California

Postdoctoral Scholar
Institute for Interdisciplinary Salivary Bioscience Research (IISBR)
University of California, Irvine

LinkedIn
www.linkedin.com/in/hedyeh-ahmadi<http://www.linkedin.com/in/hedyeh-ahmadi>
<http://www.linkedin.com/in/hedyeh-ahmadi><http://www.linkedin.com/in/hedyeh-ahmadi>