Simulate method for GLMMs fitted with MCMCglmm
Simulated response vectors for GLMMs fitted with MCMCglmm
## S3 method for class 'MCMCglmm' simulate(object, nsim = 1, seed = NULL, newdata=NULL, marginal = object$Random$formula, type = "response", it=NULL, posterior = "all", verbose=FALSE, ...)
object |
an object of class |
nsim |
number of response vectors to simulate. Defaults to |
seed |
Either |
newdata |
An optional data frame for which to simulate new observations |
marginal |
formula defining random effects to be maginalised |
type |
character; either "terms" (link scale) or "response" (data scale) |
it |
integer; optional, MCMC iteration on which predictions should be based |
posterior |
character; if |
verbose |
logical; if |
... |
Further arguments to be passed |
A matrix (with nsim columns) of simulated response vectors
Jarrod Hadfield j.hadfield@ed.ac.uk
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.