predSimNBinom | R Documentation |
Predict and simulate continuous value from negative binomial distribution with mean = exp(predicted) and size=1/alpha where alpha is specified in the model.
predSimNBinom(model.glm, envir = parent.frame(), set = NULL, alpha = NULL)
model.glm |
model specifying variables to evaluate and coefficients to multiple by. |
envir |
environment in which to evaluate model variables. if unspecified, uses caller's environment |
set |
logical vector indicating elements or rows to simulate, or NULL to simulate using all values in envir |
alpha |
if supplied, use this value for alpha rather than the value in the model |
a vector of predicted value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.