zinb.regression.parseModel: Parse ZINB regression model

View source: R/zinb_fit.R

zinb.regression.parseModelR Documentation

Parse ZINB regression model

Description

Given the parameters of a ZINB regression model, this function parses the model and computes the vector of log(mu), logit(pi), and the dimensions of the different components of the vector of parameters. See zinb.loglik.regression for details of the ZINB regression model and its parameters.

Usage

zinb.regression.parseModel(alpha, A.mu, B.mu, C.mu, A.pi, B.pi, C.pi)

Arguments

alpha

the vectors of parameters c(a.mu, a.pi, b) concatenated

A.mu

matrix of the model (see above, default=empty)

B.mu

matrix of the model (see above, default=empty)

C.mu

matrix of the model (see above, default=zero)

A.pi

matrix of the model (see above, default=empty)

B.pi

matrix of the model (see above, default=empty)

C.pi

matrix of the model (see above, default=zero)

Value

A list with slots logMu, logitPi, dim.alpha (a vector of length 3 with the dimension of each of the vectors a.mu, a.pi and b in alpha), and start.alpha (a vector of length 3 with the starting indices of the 3 vectors in alpha)

See Also

zinb.loglik.regression


drisso/zinbwave documentation built on March 18, 2024, 5:13 p.m.