| nvar | R Documentation |
Normalised heteroplasmy variance
nvar(H, percent = TRUE)
H |
numeric vector of heteroplasmy fractions, either in |
percent |
logical; are values in H represented as percentage points? |
The normalised heteroplasmy variance, which is typically in
[0; 1]. Lower values imply lower variance and less genetic
drift, with 0 corresponding to all values of H being equal.
Note nvar(H) is equivalent to 1-estimate_parameters(H)["b"].
# Using percentage points
H <- sample(0:100, 10)
nvar(H)
# Using heteroplasmy fractions between 0 and 1
h <- stats::runif(10)
nvar(h, percent = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.