nlg.post.sample {serieslcb}R Documentation

Sampling from Posterior of Negative Log Gamma prior and Binomial data.

Description

Randomly sample from the posterior distribution resulting from a NLG prior and Binomial data.

Usage

nlg.post.sample(sample.size, shape, scale, s, n)

Arguments

sample.size

The number of draws from the posterior distribution.

shape

The shape parameter for the NLG prior.

scale

The scale parameter for the NLG prior.

s

The number of successes for the binomial data (should be a scalar).

n

The number of tests for the binomial data (should be a scalar).

Examples

nlg.post.sample(sample.size=50, shape=.2, scale=1, s=29, n=30)

[Package serieslcb version 0.4.0 Index]