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

View source: R/Functions.R

calc_var_pi2R Documentation

Function to calculate the sampling variance of pi (Nei 1987, eq. 10.7)

Description

Function to calculate the sampling variance of pi (Nei 1987, eq. 10.7)

Usage

calc_var_pi2(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.