Skip to content
Prev 15860 / 20628 Next

Questions about design and convergence warnings

Thanks.


---


David,


I only have 3 species after dropping the one for which I had incomplete data. Adding the term species:tissue doesn't seem to impact my results .



Generalized linear mixed model fit by maximum likelihood (Laplace Approximation) ['glmerMod']
 Family: binomial  ( logit )
Formula: NP.1 ~ RIN_scale + SEX + AOD_scale + PMI_scale + Species + Tissue +
    (1 | batch) + (1 | Tissue:Organ) + Gene_scale
   Data: regress_MSBB
Control: glmerControl(optCtrl = list(maxfun = 1e+09))

     AIC      BIC   logLik deviance df.resid
   741.9    800.4   -357.9    715.9      653

Scaled residuals:
    Min      1Q  Median      3Q     Max
-3.2476 -0.7030  0.3109  0.6412  3.5852

Random effects:
 Groups                            Name        Variance  Std.Dev.
 Tissue:Organ (Intercept) 0.0001335 0.01155
 batch                             (Intercept) 0.3555065 0.59624
Number of obs: 666, groups:  Tissue:Organ, 666; batch, 28

Fixed effects:
                 Estimate Std. Error z value Pr(>|z|)
(Intercept)        0.3087     0.3000   1.029  0.30348
RIN_scale         -0.3812     0.1290  -2.956  0.00312 **
SEXF               0.4868     0.2030   2.398  0.01650 *
AOD_scale         -0.1094     0.1039  -1.053  0.29217
PMI_scale         -0.5463     0.1081  -5.055 4.31e-07 ***
Species1             -0.1406     0.2891  -0.486  0.62680
Species2             -1.5740     0.3873  -4.064 4.83e-05 ***
Tissue1  -0.2696     0.3788  -0.712  0.47660
Tissue2  -0.1634     0.3661  -0.446  0.65528
Tissue3   0.6631     0.4109   1.614  0.10661
Gene_scale      -0.8184     0.1250  -6.548 5.85e-11 ***




Generalized linear mixed model fit by maximum likelihood (Laplace Approximation) ['glmerMod']
 Family: binomial  ( logit )
Formula: NP.1 ~ RIN_scale + SEX + AOD_scale + PMI_scale + Species + Tissue +
    (1 | batch) + (1 | Tissue:Organ) + Species:Tissue +      Gene_scale
   Data: regress_MSBB
Control: glmerControl(optCtrl = list(maxfun = 1e+09))

     AIC      BIC   logLik deviance df.resid
   751.7    837.2   -356.8    713.7      647

Scaled residuals:
    Min      1Q  Median      3Q     Max
-3.2554 -0.7252  0.3088  0.6355  3.6163

Random effects:
 Groups                            Name        Variance  Std.Dev.
 Tissue:Organ (Intercept) 0.0005321 0.02307
 batch                             (Intercept) 0.3613201 0.60110
Number of obs: 666, groups:  Tissue:Organ, 666; batch, 28

Fixed effects:
                       Estimate Std. Error z value Pr(>|z|)
(Intercept)             0.29375    0.31057   0.946  0.34423
RIN_scale              -0.38955    0.13092  -2.975  0.00293 **
SEXF                    0.48576    0.20366   2.385  0.01707 *
AOD_scale              -0.10533    0.10418  -1.011  0.31199
PMI_scale              -0.54720    0.10877  -5.031 4.88e-07 ***
Species1                  -0.09427    0.55332  -0.170  0.86472
Species2                  -1.35744    0.68746  -1.975  0.04832 *
Tissue1       -0.32254    0.40243  -0.801  0.42286
Tissue2       -0.14617    0.39294  -0.372  0.70989
Tissue3        0.76621    0.43232   1.772  0.07634 .
Gene_scale           -0.81542    0.12527  -6.509 7.56e-11 ***
Species1:Tissue1  0.17224    0.80081   0.215  0.82971
Species2:Tissue1  0.42202    1.00304   0.421  0.67395
Species1:Tissue2  0.02979    0.78221   0.038  0.96962
Species2:Tissue2 -0.49815    1.08503  -0.459  0.64616
Species1:Tissue3 -0.39867    0.80706  -0.494  0.62132
Species2:Tissue3 -1.03753    1.16070  -0.894  0.37139



---


All,


1) I have been trying to use a very similar model in a lmer for a continuous variable, weight of the organ as a proxy for disease. However, I get an error when I try and run the following model:
lmer(Weight ~ RIN_scale + SEX + AOD_scale + PMI_scale + Species+ Tissue + (1|batch) + (1|Tissue:Organ) + Gene_scale, data=regress_MSBB, family=gaussian(), control=lmerControl(optCtrl=list(maxfun=1e9) ) )


Error: number of levels of each grouping factor must be < number of observations


This error goes away when I drop the (1|Tissue:Organ) term, but I'm concerned that I am no longer faithfully modeling the random effects in doing so.


Does anyone have advice with how to deal with this error?


2) Should I be including Gene expression in front of the | in my random effect terms if I believe that the change in gene expression between disease and healthy are different in the different tissues? If so, should I be including a term for (GeneExpression|Tissue) in addition to Tissue + (1|Tissue:Organ)? I know I can't use (GeneExpression|Tissue:Organ) as this produces the following error: Error: number of observations (=666) < number of random effects (=1332).



Thanks,


Umber
Message-ID: <MWHPR0201MB3513C53EE4CFB27C8252BA37AA730@MWHPR0201MB3513.namprd02.prod.outlook.com>
In-Reply-To: <BY1PR09MB05338F5ECB0E060575CFE3219A720@BY1PR09MB0533.namprd09.prod.outlook.com>