nlg.post.sample: Sampling from Posterior of Negative Log Gamma prior and...

Description Usage Arguments Examples

View source: R/functions.R

Description

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

Usage

1
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

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

serieslcb documentation built on July 9, 2019, 9:03 a.m.