Description Usage Arguments Value Examples
Uses optimization to find hyperparameters that approximately yield the specified prior probabilities. May not work well when J is large or target prior probabilities are extreme.
1 | calc.concentration.prior(J, p.1.target, p.J.target, stop.on.error = F)
|
J |
number of customers (haplotypes) to be partitioned |
p.1.target |
prior probability of 1 partition |
p.J.target |
prior probability of J partitions |
stop.on.error |
stop function if error is encountered when using 'integrate'. errors related to roundoff and small values may occur during edge cases |
vector of c(shape, rate) hyperparamters for the gamma distribution
1 | calc.concentration.prior(8, 0.05, 0.01)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.