predict_hidden_state_by_pic: Predict hidden state under the BM model

View source: R/RasperGade_hidden_state_prediction.R

predTraitByPICR Documentation

Predict hidden state under the BM model

Description

Predict hidden state under the BM model given a phylogeny, some known states, and the rate of BM

Usage

predTraitByPIC(phy, trait)

predict_hidden_state_by_pic(phy, trait)

Arguments

phy

phylo-class object from ape package

trait

named vector of tip trait values; names should match the tip labels; missing values (NA or not present) are hidden states

Value

a list of two elements:

$summary is a data frame listing the means and variances of the hidden states

$error is a list of error distributions where each element is a data frame


wu-lab-uva/RasperGade documentation built on June 24, 2022, 2:47 p.m.