How can one simulate quantities of interest from the posterior density in MCMCglmm?
问题 I would like to simulate quantities of interest from a model estimated with MCMCglmm more or less the way Zelig package does. In Zelig you can set the values you want for the independent values and software calculates the result for the outcome variable (expected value, probability, etc). An example: # Creating a dataset: set.seed(666) df <- data.frame(y=rnorm(100,20,20),z=rnorm(100,50,70)) # Loading Zelig library(Zelig) # Model m1.zelig <- zelig(y~z, data=df, model="ls") summary(m1.zelig) #