Description Usage Arguments Details Examples
This function returns a list of expected counts of itons up to n-1, or a plot if specified. It builds the site frequency spectrum using Kingman's coalescent. It works for different values of 'theta' (population mutation parameter).
1 |
n |
sample size |
theta |
population mutation parameter |
plot |
logical |
By default, a list of expected values for each i-ton and its variance is returned.
If plot=TRUE
, then a plot is returned.
1 | sfs(n = 5, theta = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.