response.zigp {ZIGP}R Documentation

ZIGP response generator

Description

'response.zigp' generates a ZIGP response vector for a given setting of linear predictors.

Usage

response.zigp(X, W, Z, beta, alpha, gamma)

Arguments

X design matrix of dim (n x p) for modelling of mean
W design matrix of dim (n x r) for modelling of overdispersion
Z design matrix of dim (n x q) for modelling of zero inflation
beta regression parameters for mean of length p
alpha regression parameters for overdispersion of length r
gamma regression parameters for zero inflation of length q

Value

Generates a ZIGP response vector of length n.

Examples

X <- matrix(c(1:3,4,3,5),3,2)
W <- c(3,-4,-1)
Z <- rep(1,3)
beta  <- c(5,-2)
alpha <- 3.4
gamma <- -10
# set seed for random variable generator
set.seed(1)
response.zigp(X,W,Z,beta,alpha,gamma)
#[1]   0  55 132

[Package ZIGP version 3.3 Index]