predSimNBinom: Predict and simulate continuous value from negative binomial...

View source: R/Models.R

predSimNBinomR 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.

Description

Predict and simulate continuous value from negative binomial distribution with mean = exp(predicted) and size=1/alpha where alpha is specified in the model.

Usage

predSimNBinom(model.glm, envir = parent.frame(), set = NULL, alpha = NULL)

Arguments

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

Value

a vector of predicted value


kcha193/simarioV2 documentation built on April 8, 2024, 4:51 p.m.