I am investigating how environmental conditions influence reproductive trade-offs, especially in terms of residual covariance (allocation trade-offs). Instead of fitting a standard univariate model with one trait as the response and the other as a fixed effect in interaction with environmental characteristics, I am trying to use my previous bivariate framework and would need to estimate the covariance between traits for different levels of my environmental variable. However, in MCMCglmm, I am still unsuccessful at designing a covariance matrix structure with null residual covariances between the same trait measured in environments (not meaningful) but with non-null covariances between the two traits in a given environment. I expect the function cors could help me build a residual covariance matrix with estimated submatrices for the covariance between traits but null covariances between environments. However, I do not know and could not find which syntax to use to do this and how to specify the priors. All I manage to estimate for now is a residual matrix with null covariances: ~idh(trait:environment):units . Any help with this would be great!

Similar questions and discussions