compare.fitted.fstats: Compare fitted f2, f3 and f4 f-statistics of an admixture...

View source: R/compare.fitted.fstats.R

compare.fitted.fstatsR Documentation

Compare fitted f2, f3 and f4 f-statistics of an admixture graph with estimated ones

Description

Compare fitted f2, f3 and f4 f-statistics of an admixture graph with estimated ones

Usage

compare.fitted.fstats(fstats, fitted.graph, n.worst.stats = 5)

Arguments

fstats

Object of class fstats containing estimates of fstats (as obtained with compute.fstats)

fitted.graph

Object of class fitted graph (as obtained with fit.graph function).

n.worst.stats

The number of worst statistics to be displayed in the terminal

Details

Compare fitted and estimated f-statistics may allow identifying problematic edges on the graph.

Value

A matrix with 3 columns for each test (row names of the matrix corresponding to the test):

  1. The estimated f-statistics (mean across block-Jackknife samples)

  2. The fitted f-statistics (obtained from the fitted grah parameters

  3. A Z-score measuring the deviation of the fitted values from the estimated values in units of standard errors (i.e., Z=(fitted.value-target.value)/se(target.value))

See Also

See compute.fstats and fit.graph


poolfstat documentation built on Sept. 8, 2023, 5:49 p.m.