make.beta | R Documentation |
Make appropriate beta values
make.beta(n, method = c("step-stones", "gauss-quad"), a = 5)
n |
numeric, number of beta points |
method |
character, the method to choose the beta points, see details |
a |
numeric, exponent for stepping stones beta generation, see details |
If method = "step-stones"
, the beta values are given by the
formula
\beta_{i}=\left(\frac{i-1}{n}\right)^{a}.
Values of a
between 5 to 8 appear appropriate. Large a
values
produce beta values close to zero.
If method = "gauss-quad"
, the beta values are calculated according to
the n
Gauss-Legendre quadrature rule (see Rannala and Yang, 2017).
Numeric vector with n
beta values
Mario dos Reis
Rannala B and Yang Z (2017) Efficient Bayesian species tree inference under the multispecies coalescent. Systematic Biology, 66: 823–842.
The generated beta values are suitable input for make.bfctlf
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.