| get_simulate_function.glm {enrichwith} | R Documentation |
Function to compute/extract a simulate function for response
vectors from an object of class glm/enriched_glm
Description
Function to compute/extract a simulate function for response
vectors from an object of class glm/enriched_glm
Usage
## S3 method for class 'glm'
get_simulate_function(object, ...)
Arguments
object |
an object of class |
... |
currently not used |
Details
The computed/extracted simulate function has arguments
- coefficients
the regression coefficients at which the response vectors are simulated. If missing then the maximum likelihood estimates are used
- dispersion
the dispersion parameter at which the response vectors are simulated. If missing then the maximum likelihood estimate is used
- nsim
number of response vectors to simulate. Defaults to
1- seed
an object specifying if and how the random number generator should be initialized ('seeded'). It can be either
NULLor an integer that will be used in a call toset.seedbefore simulating the response vectors. If set, the value is saved as theseedattribute of the returned value. The default,NULLwill not change the random generator state, and return.Random.seedas theseedattribute, seeValue