sampleBeta {AutoWMM} | R Documentation |
sampleBeta
Description
Helper function: Method for sampling from a Beta distribution given the survey estimates
Usage
sampleBeta(x, n, pop, node)
Arguments
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 |
Value
Returns sample from Beta distribution with parameters dependent on x, n
Examples
data(treeData1)
tree <- makeTree(treeData1)
Zhats <- wmmTree(tree, sample_length = 3)
sampleBeta(10, 55, pop = FALSE, tree$A)
[Package AutoWMM version 1.0.1 Index]