Description Usage Arguments Value References Examples
Considered a stratified finite population of accounts where each account is classified as either acceptable or in error. Based on a stratified random sample of accounts an auditor is required to give an upper 95 the population that are in error. Given the sample this uses the posterior distribution from a simple hierarchical Bayes model to simulate possible values for T. The 0.95 quantile for this posterior will be an approximate 95 populations.
1 | simulateT(smp,n,N,grd,R)
|
smp |
numeric vector of the number of accounts in error in each strata in the sample |
n |
numeric vector of the number of accounts sampled in each strata in the population |
N |
numeric vector of the total number of accounts in each strata in the population |
grd |
numeric vector of values usually taken to be seq(0.0001,0.1499,length = 11) |
R |
an integer which is the number of simulated values of T returned |
A vector of length R containing simulated values of T
Meeden, G. and Sargent, D. (2007) Some Bayesian methods for two auditing problems. Communications in Statistics — Theory and Methods, 36, 2727–2740. doi: 10.1080/03610920701386802.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.