Learn R Programming

updog (version 1.1.3)

get_uni_rep: Get the representation of a discrete unimodal probability distribution.

Description

NB: In get_uni_rep, we count the mode starting at 1. In get_probk_vec, we count the mode starting at 0.

Usage

get_uni_rep(probvec)

Arguments

probvec

A probability vector. It assumes the probabilities are ordered according to the ordering of the discrete set.

Value

A list with the following elements

pivec

The mixing weights for the unimodal representation.

mode

The central value of the unimodal distribution.

See Also

get_probk_vec with option model = "ash" for the inverse of this function.