Skip to contents

Perform mean-field variational inference for a Poisson mixed-effects regression model.

Usage

vb_pois_mm(
  X,
  Zlist,
  y,
  n,
  mu0,
  Sigma0,
  a0,
  tol = 1e-08,
  maxiter = 100L,
  verbose = FALSE
)

Arguments

X

The design matrix

Zlist

The random effect design matrices

y

The response vector

n

The offset term

mu0

The prior mean for beta

Sigma0

The prior covariance for beta

a0

Half-Cauchy scale hyper-parameter

tol

Tolerance for convergence of the elbo

maxiter

Maximum number of iterations allowed

verbose

Print trace of the lower bound to console. Default is FALSE.

Value

v A list of relevant outputs