Perform mean-field variational inference for
a Poisson regression model.
Usage
vb_pois_reg(X, y, n, mu0, Sigma0, tol = 1e-08, maxiter = 100L, verbose = FALSE)
Arguments
- X
The design matrix
- y
The response vector
- n
The offset term
- mu0
The prior mean for beta
- Sigma0
The prior covariance for beta
- 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