add_graph_f4: Evalutes the f_4 statistics for all rows in a data frame and...

Description Usage Arguments Value

View source: R/evaluate-f-statistics.R

Description

The data frame, data, must contain columns W, X, Y, and Z. The function then computes the f_4(W, X; Y, Z) statistics (also known as the D statistics) for all rows and adds these as a column, graph_f4, to the data frame.

Usage

1
add_graph_f4(data, graph, env)

Arguments

data

The data frame to get the labels to compute the f_4 statistics from.

graph

The admixture graph.

env

The environment to evaluate the f_4 statistics in.

Value

A data frame identical to data except with an additional column, graph_f4, containing the f_4 values as determined by the graph and the environment.


mailund/admixture_graph documentation built on May 21, 2019, 11:06 a.m.