Learn R Programming

⚠️There's a newer version (1.7-1) of this package.Take me there.

polyapost (version 1.7)

Simulating from the Polya Posterior

Description

Simulate via Markov chain Monte Carlo (hit-and-run algorithm) a Dirichlet distribution conditioned to satisfy a finite set of linear equality and inequality constraints (hence to lie in a convex polytope that is a subset of the unit simplex).

Copy Link

Version

Install

install.packages('polyapost')

Monthly Downloads

248

Version

1.7

License

GPL (>= 2)

Maintainer

Glen Meeden

Last Published

October 7th, 2021

Functions in polyapost (1.7)

constrppprob

Dependent Sampling from the Uniform Distribution on a Polytope.
wtpolyap

Polya Sampling from an Urn with Possibly Unequal Weights
constrppmn

Estimating a Population Mean Using the Constrained Polya Posterior.
polyap

Polya Sampling from an Urn
feasible

Feasible Solution for a Probability Distribution which must Satisfy a System of Linear Equality and Inequality Constraints.
hitrun

Hit and Run Algorithm for Constrained Dirichlet Distribution