Skip to content

Error using MCMCglmm

1 message · Kamal Atmeh

#
Dear all,

I have shared the data with Ben and Jarrod and the code works for Ben 
(please see below his answer). I decided to go for the old 
uninstall-reinstall of the MCMCglmm package and the code works now. 
Thank you again all for your help and time with this problem.

Cheers,

Kamal


-------- Message transf?r? --------
Sujet?: 	Re: [R-sig-ME] Error using MCMCglmm
Date?: 	Mon, 27 Dec 2021 15:08:28 -0500
De?: 	Ben Bolker <bbolker at gmail.com>
Pour?: 	Kamal Atmeh <kamal.atmeh at hotmail.com>
Copie ??: 	Jarrod Hadfield <j.hadfield at ed.ac.uk>



Your data + code runs for me, although with a warning:

Warning message:
In MCMCglmm(y ~ x * x2 + x3 + x4 + x5 + x6 + x7 + x8, random = ~r + :
some fixed effects are not estimable and have been removed. Use 
singular.ok=TRUE to sample these effects, but use an informative prior!

The trace plots of the fixed effects look mediocre but not awful, 
presumably fixable by the old brute force run-it-much-longer strategy (I 
assume you kept the runs short here for troubleshooting efficiency ...)

mod_tau_mc <- readRDS("mod_tau_mc.rds")
library(coda)
library(lattice)
ss <- mod_tau_mc$Sol
ff <- as.mcmc(ss[,startsWith(colnames(ss), "x")])
library(coda)
library(lattice)
xyplot(ff)



Results attached.

Slightly redacted sessionInfo():

R Under development (unstable) (2021-12-11 r81355)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Pop!_OS 21.04

Matrix products: default
BLAS: /usr/local/lib/R/lib/libRblas.so
LAPACK: /usr/local/lib/R/lib/libRlapack.so

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] MCMCglmm_2.32 ape_5.6 coda_0.19-4 Matrix_1.4-0

loaded via a namespace (and not attached):
[1] cubature_2.0.4.2 compiler_4.2.0 tools_4.2.0 corpcor_1.6.10
[5] parallel_4.2.0 Rcpp_1.0.7 nlme_3.1-153 grid_4.2.0
[9] tensorA_0.36.2 lattice_0.20-45
 >

[I'm cc'ing Jarrod; it would actually be best to have as much of this 
discussion in public/on the list as possible, in case we discover 
something of general interest, and it's definitely best to keep both me 
and Jarrod in the loop so that we don't duplicate effort -- we're both 
pretty busy ...]

cheers
Ben Bolker
On 12/27/21 2:55 PM, Kamal Atmeh wrote: