sampleBeta {AutoWMM} | R Documentation |
Helper function: Method for sampling from a Beta distribution given the survey estimates
sampleBeta(x, n, pop, node)
x |
An integer; typical use case is survey numerator |
n |
An integer; typical use case is survey sample size |
pop |
A logical value which takes TRUE if sample size is population size |
node |
A node from a makeTree object; carried forever from |
Returns sample from Beta distribution with parameters dependent on x, n
data(treeData1)
tree <- makeTree(treeData1)
Zhats <- wmmTree(tree, sample_length = 3)
sampleBeta(10, 55, pop = FALSE, tree$A)