Description Usage Arguments Value Author(s) See Also
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
.
1 | updateLuckY(n0, y0, tau, n)
|
n0 |
The prior canonical parameter n^(0),
which can be taken from the slot |
y0 |
The prior canonical parameter y^(0), possibly vectorial,
which can be taken from the slot |
tau |
The sample statistic τ(x), possibly vectorial of the same dimension as |
n |
The sample size n,
which can be taken form the slot |
The posterior canonical parameter y^(n) (possibly vectorial).
Gero Walter
luck
for a general description of the package,
LuckModel
for its central class.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.