| tulpa_rpg | R Documentation |
Vectorized PG(b, z) draws via the Polson, Scott & Windle (2013) sampler
(tulpa::rpg_vec()), the kernel every Polya-Gamma Gibbs fitter in this
package draws its auxiliary weights from. Exposed as a door for consumer
packages fitting their own Polya-Gamma Gibbs models, which cannot reach an
RNG through LinkingTo the way a likelihood kernel would.
tulpa_rpg(b, z)
b |
Integer vector of PG shape parameters (trial counts); one draw per element. |
z |
Numeric vector of tilting parameters, the same length as |
A numeric vector of PG(b, z) draws, the same length as b.
tulpa_rpg(rep(1L, 5), rnorm(5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.