# Generalized linear mixed models: problem of interpretation

#### ptauvel

##### New Member
Hi,

I am dealing with a problem of interpretation concerning an error message due to a generalized linear mixed model.
Datafile is attached to this message.

I try to model the percentage of flowering of different varietes of mustards in function of sum of degrees days (DEGJ_B3), variety (VAR_LIB), photoperiod (PTP).
In our field trials, we score the flowering of mustards at different dates.

Code:
library(lme4)

MYDATA[,7]=as.factor(MYDATA[,7])
class(MYDATA[,7])
attach(MYDATA)
Y=cbind(FLEURI,NON_FLEURI)

glmm1=glmer(Y~DEGJ_B3*VAR_LIB+PTP*VAR_LIB+(1|IND_ID),family="binomial",control=glmerControl(optCtrl=list(maxfun=2e6)))
summary(glmm1)
anova(glmm1,type='Chisq'))
And the following message appears:

Code:
Warning messages:
1: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :
Model failed to converge with max|grad| = 0.0593365 (tol = 0.001, component 1)
2: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :
Model is nearly unidentifiable: very large eigenvalue
- Rescale variables?;Model is nearly unidentifiable: large eigenvalue ratio
- Rescale variables?
I did few research on the internet:
To solve the first message, I tried to increase the number of iterations and to use a "bobyqa" optimization but without any result.
To solve the second issue, I have no idea how to proceed.
I do not understand very well (or at all...) the theory behind this kind of models so I am not very comfortable with making huge modifications in this model.

Do you have an idea of the problem behind these message errors?
Does it come from my dataset which is not good enough?

Do you confirm that I am in a situation in which I have to use a mixed model? A generalized linear model without considering a mixed effect shows good results... Thanks a lot.

Paul.

#### Attachments

• 517.5 KB Views: 2

#### ptauvel

##### New Member
If I include IND_ID as a fixed effect too (proposed by j58):
Code:
glmm1=glmer(Y~DEGJ_B3*VAR_LIB+PTP*VAR_LIB+IND_ID+(1|IND_ID),family="binomial",control=glmerControl(optCtrl=list(maxfun=2e6)))
I get this:
Code:
fixed-effect model matrix is rank deficient so dropping 22 columns / coefficients
Warning messages:
1: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :
2: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :
Model failed to converge: degenerate  Hessian with 3 negative eigenvalues
>

#### j58

##### Active Member
Actually, I realized that was a dumb idea as soon as I posted it, and deleted my post—apparently not quickly enough. Sorry about that.

#### ptauvel

##### New Member
I received the email but I could not see your message so I did not understand
{"ft_lang_label":"__label__en","ft_lang_prob":0.86180925,"math_prob":0.6724747,"size":2860,"snap":"2020-24-2020-29","text_gpt3_token_len":700,"char_repetition_ratio":0.09103642,"word_repetition_ratio":0.8134831,"special_character_ratio":0.23216783,"punctuation_ratio":0.1446208,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9623166,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-10T23:27:59Z\",\"WARC-Record-ID\":\"<urn:uuid:4e5744b3-2113-4c2b-8697-ce889f635064>\",\"Content-Length\":\"45918\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e6cb26a1-96bb-42b6-899a-96012b2dec44>\",\"WARC-Concurrent-To\":\"<urn:uuid:69c33c48-78f3-45b3-a564-10fcc1311d46>\",\"WARC-IP-Address\":\"199.167.200.62\",\"WARC-Target-URI\":\"http://www.talkstats.com/threads/generalized-linear-mixed-models-problem-of-interpretation.71651/\",\"WARC-Payload-Digest\":\"sha1:KMNFVOUJICKUST364L33YEZ7Z2GWRFY3\",\"WARC-Block-Digest\":\"sha1:G6C6EOCA4ZUOBQDFP5V7Y24T5SU3VEKN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655912255.54_warc_CC-MAIN-20200710210528-20200711000528-00066.warc.gz\"}"}