nlg.post.sample {serieslcb} | R Documentation |
Randomly sample from the posterior distribution resulting from a NLG prior and Binomial data.
nlg.post.sample(sample.size, shape, scale, s, n)
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). |
nlg.post.sample(sample.size=50, shape=.2, scale=1, s=29, n=30)