Skip to content
Prev 19091 / 20628 Next

MCMCglmm interaction and posterior mode

Hello Kamal,

One way to do this with MCMCglmm is to use the at.level() function. You can
determine for which level of your categorical variable you want the
interaction, ex. at.level(tactic,2):a.level(period,2):env.

However, in doing so you are only estimating the coefficient for that
specific interaction and ignoring the rest. That to me would seem a bit odd
given that for the 2-way interactions you are still including the other
levels, but of course it depends on what assumptions you are making for
your model.

and regarding automating the computation of the posterior mean, I think
(not sure though) that the broom package offers some wrap functions for
MCMCglmm and computing posterior estimates.

Good luck
Message-ID: <CAJtCY7V92MjygOPt6L1Et8i=jYOkor3dmhWcc1H+K5qEgq-=Vw@mail.gmail.com>
In-Reply-To: <PA4P189MB13438F732ADBB30695245606FE989@PA4P189MB1343.EURP189.PROD.OUTLOOK.COM>