calc_var_pi: Function to calculate the sampling variance of pi (Nei 1987,...

View source: R/Functions.R

calc_var_piR Documentation

Function to calculate the sampling variance of pi (Nei 1987, eq. 10.7; from source code of DNAsp)

Description

Function to calculate the sampling variance of pi (Nei 1987, eq. 10.7; from source code of DNAsp)

Usage

calc_var_pi(x, nsites = NULL)

Arguments

x

An object of class DNAbin or a matrix where rows are sequences and columns are nucleotide positions (assumed to be already aligned)

nsites

Optional integer specifying the total number of nucleotide sites in the alignment if fastsimcoal2 does not output all sites


trevorjwilli/fscSS documentation built on Jan. 11, 2023, 7:45 a.m.