View source: R/RasperGade_hidden_state_prediction.R
predTraitByPIC | R Documentation |
Predict hidden state under the BM model given a phylogeny, some known states, and the rate of BM
predTraitByPIC(phy, trait) predict_hidden_state_by_pic(phy, trait)
phy |
phylo-class object from |
trait |
named vector of tip trait values; names should match the tip labels; missing values (NA or not present) are hidden states |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.