Skip to content
Prev 13215 / 20628 Next

contrast of predicted slopes from MCMCglmm model

Hi Russ,

Thanks a ton!  I did notice that lsmeans could be extended, but wasn't 
sure of how to get all the pieces from my MCMCglmm model object.  I was 
going to start getting the slopes from predictions on a grid of 'day' 
values to then average and finally subtract averages to contrast, but 
you've spared me that trouble.  Plus, I already have code to summarize 
and plot growth rate results from lsmeans, which I can now reuse.

I have one question about your example code, though.  Since I have 
posterior estimates, wouldn't it be better to get the bhat vector by 
using posterior.mode() instead of mean()?

Thanks,
Dan.
Lenth, Russell V wrote: