Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

eggCounts (version 0.4-1)

update_h_invGamma: Update the parameter $theta$ (with FC of form h) using an inverse gamma approximation to the FC as proposal

Description

Update the parameter $theta$ (with FC of form h) using an inverse gamma approximation to the FC as proposal

Usage

update_h_invGamma(theta, argA, argC, a, b)

Arguments

argA
argument a (in parts) of the function h (e.g. n*phi for theta=mu)
argC
argument c of the function h (e.g. sum(mui)*phi for theta=mu)
a
shape parameter of the gamma prior for $theta$
b
rate parameter of the gamma prior for $theta$

Value

  • updated parameter $theta$