R/zip-reg.R

Defines functions fitted.zip.internal

fitted.zip.internal = function(X, W, beta, zeta, off.x, off.w)
{
	list(
		lambda = as.numeric(exp(X %*% beta + off.x)),
		p = as.numeric(plogis(W %*% zeta + off.w))
	)
}

Try the COMPoissonReg package in your browser

Any scripts or data that you put into this service are public.

COMPoissonReg documentation built on Dec. 2, 2022, 5:07 p.m.