When running the MCMCglmm function I get the following error message:
fit_mcmc <- MCMCglmm(exchange ~ assocSRI,random=~mm(ID1 + ID2), data=within_dyad) Error in buildZ(rmodel.terms[r], data = data, nginverse = names(ginverse)) : terms involved in mm/str structures must have identical levels in the same order
All of the terms have the same number of levels, so I'm just not sure how to rectify the issue. I have 41 "obs" of 6 variables.