Learn R Programming

VBMS (version 1.0.0)

vb_lap_local: Local Laplace VB

Description

A variational Bayesian algorithm, based on the Laplace Spike-and-Slab prior, is tailored for multi-source heterogeneous models and focuses on variable selection exclusively for the homogeneous covariates.

Usage

vb_lap_local(X, Z, Y, max_iter = 1000, tol = 1e-06, a = 1, b = 10, lambda = 1)

Value

The mean of the homogeneity coefficient:mu; The variance of homogeneity coefficient:sigma; Selection coefficient:gamma; Mean and covariance of heterogeneity coefficients:m, s2.

Arguments

X

Homogeneous covariates

Z

Heterogeneous covariates

Y

Response covariates

max_iter

Maximum number of iterations, Defaut:1000

tol

Algorithm convergence tolerance, Defaut:1e-6

a

A prior of Beta distribution, Defaut:1

b

A prior of Beta distribution, Defaut:10

lambda

A prior of Laplace distribution, Defaut:1