updateLuckY: Calculate the posterior canonical parameter y^(n)

Description Usage Arguments Value Author(s) See Also

Description

This function serves to calculate the posterior canonical parameter y^(n) from its prior counterpart y^(0), n^(0), the sample statistic τ(x), and the sample size n, by

y^{n} = (n^{0}y^{0} + τ(x))/(n^{0} + n)

Together with updateLuckN, this formula thus executes the Bayesian update step. It is mostly used internally to determine posterior characteristics and inferences, e.g., when plotting the posterior parameter set via plot, or when calculating the posterior union of highest density intervals via unionHdi.

Usage

1

Arguments

n0

The prior canonical parameter n^(0), which can be taken from the slot n0 of LuckModel objects.

y0

The prior canonical parameter y^(0), possibly vectorial, which can be taken from the slot y0 of LuckModel objects.

tau

The sample statistic τ(x), possibly vectorial of the same dimension as y0, which can be taken from the slot tau of LuckModelData objects.

n

The sample size n, which can be taken form the slot n of LuckModelData objects.

Value

The posterior canonical parameter y^(n) (possibly vectorial).

Author(s)

Gero Walter

See Also

luck for a general description of the package, LuckModel for its central class.


luck documentation built on May 2, 2019, 4:43 p.m.