Calculates summary statistics useful for analyzing DNA.
## S3 method for class 'SFS_class' summary(SFS)
SFS | vector with the site frequency spectrum of class 'SFS_class'. |
---|
List containing the following components:
Watterson's estimator.
The pairwise difference estimator.
Tajima's D
# Using the function SFS: DNAmat <- matrix(c(0,1,0,0, 0,1,0,1, 0,0,0,0, 0,0,0,0), 4,4, byrow=TRUE) summary(SFS(DNAmat))#> Summary statistics: #> Estimators of the mutation rate: #> Watterson's estimator: 1.090909 #> Pairwise difference estimator: 1.166667 #> Tajima's D: 0.5915801#> Summary statistics: #> Estimators of the mutation rate: #> Watterson's estimator: 1.471748 #> Pairwise difference estimator: 1.333333 #> Tajima's D: -0.3822722