graph_equations: Find well fitting admixture graphs

graph_equationsR Documentation

Find well fitting admixture graphs

Description

This function generates and evaluates admixture graphs in numgen iterations to find well fitting admixturegraphs.

Usage

graph_equations(
  graph,
  substitute = TRUE,
  nam = c("a", "e", "f"),
  return_everything = FALSE
)

Arguments

graph

An admixture graph

substitute

Should edge names be represented by shorter symbols?

nam

Symbols used to shorten edge names

Value

A list with two data frames: equations holds the equtions for all f2-statistics; coding has the mapping from edge names to edge symbols, which is used when substitute = TRUE


uqrmaie1/admixtools documentation built on April 25, 2024, 11:30 a.m.