rzi: random number generation of zero-inflated count response

Description Usage Arguments Details Value Author(s) References

Description

random number generation of zero-inflated count response

Usage

1
rzi(n, x, z, a, b, theta=1, family=c("poisson", "negbin", "geometric"), infl=TRUE)

Arguments

n

sample size of random number generation

x

design matrix of count model

z

design matrix of zero model

a

coefficient vector for x, length must be the same as column size of x

b

coefficient vector for z, length must be the same as column size of z

theta

dispersion parameter for family="negbin"

family

distribution of count model

infl

logical value, if TRUE, zero-inflated count response

Details

random number generation of zero-inflated count response

Value

numeric vector of zero-inflated count response

Author(s)

Zhu Wang <zwang@connecticutchildrens.org>

References

Zhu Wang, Shuangge Ma, Ching-Yun Wang, Michael Zappitelli, Prasad Devarajan and Chirag R. Parikh (2014) EM for Regularized Zero Inflated Regression Models with Applications to Postoperative Morbidity after Cardiac Surgery in Children, Statistics in Medicine. 33(29):5192-208.

Zhu Wang, Shuangge Ma and Ching-Yun Wang (2015) Variable selection for zero-inflated and overdispersed data with application to health care demand in Germany, Biometrical Journal. 57(5):867-84.



Search within the mpath package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.