f_pg | R Documentation |
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.
f_pg(b, c)
b |
The first parameter in a PG(b,c) distribution |
c |
The second parameter in a PG(b,c) distribution |
A draw from a PG(b,c) distribution
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.