getStatesAtNodes: returns the states at each node corresponding to the state...

View source: R/asr_diagnostics.R

getStatesAtNodesR Documentation

returns the states at each node corresponding to the state with the max likelihood

Description

returns the states at each node corresponding to the state with the max likelihood

Usage

getStatesAtNodes(ancliks, confidence_threshold = NULL)

Arguments

ancliks

a table of ancestral likelihoods with rows in node order and columns corresponding to phenotype states

confidence_threshold

the default is NULL, but if provided it will only obtain states from nodes whose max likelihood is greater than or equal to the confidence threshold

Value

a vector of states for the internal nodes in order of the internal nodes


nclark-lab/RERconverge documentation built on March 2, 2024, 8:51 a.m.