Extracts the sign for the f_4 statistics predicted by the graph for all rows in a data frame and extends the data frame with the graph f_4.
The data frame to get the labels to compute the f_4 statistics from.
The admixture graph.
The data frame,
data, must contain columns
Z. The function then computes the sign of the
f4(W, X; Y, Z) statistics for all rows and adds these as a column,
graph_f4_sign, to the data frame.
A data frame identical to
data except with an additional
graph_f4_sign, containing the sign of the f_4
statistics as determined by the graph.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.