doSim function

Generate simulated response variables.

Generate simulated response variables.

This is normally an internal function, but it can be overloaded to extend simr to other packages.

doSim(object, ...)

Arguments

  • object: an object to simulate from, usually a fitted model.
  • ...: additional options.

Returns

a vector containing simulated response values (or, for models with a multivariate response such as binomial gl(m)m's, a matrix of simulated response values). Suitable as input for doFit.

  • Maintainer: Peter Green
  • License: GPL (>= 2)
  • Last published: 2023-04-13