updateLuckN: Calculate the posterior canonical parameter n^(n)

Description Usage Arguments Value Author(s) See Also

Description

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

n^{n} = n^{0} + n

Together with updateLuckY, 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.

n

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

Value

The posterior canonical parameter n^(n) (numeric).

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.