Skip to contents

One entry per family: the parameter names in Stan's order, the R density/CDF/quantile trio behind them, and the natural support. Everything else in this file is generic over that entry, which is why registering a family is all it takes for prior_truncated() to renormalize it and for stan_code() to write it out.

Usage

prior_family(family)

Arguments

family

Family name, or anything else to get NULL back.

Value

A list, or NULL for an unregistered name.

Details

The d, p and q functions are always called with the value positionally and the distribution parameters by name, since R spells the first argument x, q and p in turn while the parameters keep their names throughout.