nh_preCheckR: Annotate Classes

View source: R/nh_preCheckR.R

nh_preCheckRR Documentation

Annotate Classes

Description

nh_preCheckR detects cases where the NewHybrids MCMC chains fail to converge, and warns the user that the identified analyses should be repeated. When NewHybrids fails to converge, it is generally visible in cumulative probability plots (see nh_multiplotR) and identifiable in the PofZ file as an excess of F2 posterior probability. This function checks that the proportion of known Pure Population 1 or Pure Population 2 individuals assigned at least a

Usage

nh_preCheckR(PreDir, propCutOff = 0.5, PofZCutOff = 0.1)

Arguments

PreDir

the directory in which the NewHybrids results (in individual folders as returned by parallelNH_XX) are located.

propCutOff

The proportion of individuals in either Pure Population 1 OR Pure Population 2 allowed to exceed the F2 assignment threshold (PofZCutOff). The default is 0.5.

PofZCutOff

The threshold posterior probability of assignment (PofZ) to F2 above which Pure Population 1 or Pure Population 2 individuals are flagged to indicate possible non-convergence. The default is 0.1.


bwringe/hybriddetective documentation built on March 22, 2023, 6:52 a.m.