f_pg: Calls a Polya-Gamma Sampler

View source: R/f_pg.R

f_pgR Documentation

Calls a Polya-Gamma Sampler

Description

This functions takes two numbers b,c as inputs and returns a draw from a PG(b,c) distribution and is written to allow calling of the pgdraw function in the Rcpp code. For usage in R code, it's better to use the pgdraw package directly.

Usage

f_pg(b, c)

Arguments

b

The first parameter in a PG(b,c) distribution

c

The second parameter in a PG(b,c) distribution

Value

A draw from a PG(b,c) distribution

References

Nicholas G. Polson, James G. Scott, and Jesse Windle. Bayesian Inference for logistic models using polya-gamma latent variables. Journal of the American Statistical Association. 108(504):1339-1349. 2013.


PatrickLeBlanc/LTNLDA documentation built on May 22, 2022, 12:49 p.m.