Skip to content
Prev 9766 / 20628 Next

Error en mer_finalize(ans) : Downdated X'X is not positive definite, 1. What is wrong with my model?

You are right! This is weird since when I check the data table  
"species" I can see values of the variable Bud_type for both  
species... Vu has "sc" and Vv has "hy"...

Then, if I follow your suggestion and try to run the model in glmer  
without these two species it still gives the same error:

Error en mer_finalize(ans) : Downdated X'X is not positive definite, 1.

If I then run the model in glm to see where the NAs are, I get this  
output, where, surprisingly, the species "En" that in the previous run  
had But_type=hy, now has NAs for all the levels of Bud_type!:

Call:
glm(formula = Dead ~ Treatment * fBud_type + fBud_type:Species,
     family = binomial, data = species)

Deviance Residuals:
     Min       1Q   Median       3Q      Max
-5.4628  -0.1953   0.0599   0.3561   2.6043

Coefficients: (14 not defined because of singularities)
                       Estimate Std. Error z value Pr(>|z|)
(Intercept)           -5.89770    0.81116  -7.271 3.58e-13 ***
Treatment             -0.38498    0.04952  -7.774 7.63e-15 ***
fBud_typena           -1.68437    1.36330  -1.236  0.21664
fBud_typesc            2.61123    0.94512   2.763  0.00573 **
Treatment:fBud_typena  0.01934    0.07001   0.276  0.78234
Treatment:fBud_typesc  0.15635    0.05528   2.828  0.00468 **
fBud_typehy:SpeciesEc  1.08250    0.38154   2.837  0.00455 **
fBud_typena:SpeciesEc       NA         NA      NA       NA
fBud_typesc:SpeciesEc       NA         NA      NA       NA
fBud_typehy:SpeciesEn       NA         NA      NA       NA
fBud_typena:SpeciesEn       NA         NA      NA       NA
fBud_typesc:SpeciesEn       NA         NA      NA       NA
fBud_typehy:SpeciesLp       NA         NA      NA       NA
fBud_typena:SpeciesLp  1.21835    0.49763   2.448  0.01435 *
fBud_typesc:SpeciesLp       NA         NA      NA       NA
fBud_typehy:SpeciesRf       NA         NA      NA       NA
fBud_typena:SpeciesRf       NA         NA      NA       NA
fBud_typesc:SpeciesRf  1.18017    0.44178   2.671  0.00755 **
fBud_typehy:SpeciesRh       NA         NA      NA       NA
fBud_typena:SpeciesRh       NA         NA      NA       NA
fBud_typesc:SpeciesRh -0.08258    0.40105  -0.206  0.83686
fBud_typehy:SpeciesVm       NA         NA      NA       NA
fBud_typena:SpeciesVm       NA         NA      NA       NA
fBud_typesc:SpeciesVm       NA         NA      NA       NA
---
Signif. codes:  0 ?***? 0.001 ?**? 0.01 ?*? 0.05 ?.? 0.1 ? ? 1

(Dispersion parameter for binomial family taken to be 1)

     Null deviance: 1313.62  on 1015  degrees of freedom
Residual deviance:  522.38  on 1006  degrees of freedom
AIC: 542.38

Number of Fisher Scoring iterations: 8

I really don't know what is going on, but thanks heaps for your help!!

Sara Palacio

Quoting Emmanuel Curis <emmanuel.curis at parisdescartes.fr>: