powered by
Randomly sample from the posterior distribution resulting from a NLG prior and Binomial data.
nlg.post.sample(sample.size, shape, scale, s, n)
The number of draws from the posterior distribution.
The shape parameter for the NLG prior.
The scale parameter for the NLG prior.
The number of successes for the binomial data (should be a scalar).
The number of tests for the binomial data (should be a scalar).
# NOT RUN { nlg.post.sample(sample.size=50, shape=.2, scale=1, s=29, n=30) # }
Run the code above in your browser using DataLab