expectedLogTheta: Theta-related Expectation Helpers

View source: R/helpers_inclusion.R

expectedLogThetaR Documentation

Theta-related Expectation Helpers

Description

Computes E[\log\theta] and E[\log(1-\theta)] for a \text{Beta}(a_1, a_2) distribution. These terms appear in the variational updates for the inclusion indicators Z_{ki}.

Usage

expectedLogTheta(a1_ki, a2_ki)

Arguments

a1_ki

shape1 parameter of the Beta distribution.

a2_ki

shape2 parameter of the Beta distribution.

Value

Numeric expected values (scalar).


fda.vi documentation built on June 20, 2026, 5:06 p.m.