sfs: Site Frequency Spectrum

Description Usage Arguments Details Examples

View source: R/sfs.R

Description

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).

Usage

1
sfs(n, theta = 2, plot = FALSE)

Arguments

n

sample size

theta

population mutation parameter

plot

logical

Details

By default, a list of expected values for each i-ton and its variance is returned. If plot=TRUE, then a plot is returned.

Examples

1
sfs(n = 5, theta = 3)

aumath-advancedr2019/ticphasetype documentation built on Jan. 29, 2020, 12:24 p.m.