cal_KL_l: Compute KL divergence effect l

View source: R/ELBO.R

cal_KL_lR Documentation

Compute KL divergence effect l

Description

Compute KL divergence effect l

Usage

cal_KL_l(obj, l, X, D, C, indx_lst, ...)

## S3 method for class 'susiF'
cal_KL_l(obj, l, X, D, C, indx_lst, ...)

Arguments

obj

a susisF object defined by init_susiF_obj function

l

integer larger or equal to 1. Corresponds to the effect to be accessed

X

matrix of covariate

D

matrix of wavelet D coefficients from the original input data (Y)

C

vector of wavelet scaling coefficient from the original input data (Y)

indx_lst

list generated by gen_wavelet_indx for the given level of resolution

Value

The KL divergence for effect l


stephenslab/susiF.alpha documentation built on March 1, 2025, 4:28 p.m.