Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

phylo.impute

Phylogenetic imputation for multivariate continuous character data


Description

This function performs phylogenetic imputation using Maximum Likelihood.

Usage

phylo.impute(tree, X, ...)

Arguments

tree

an object of class "phylo".

X

data matrix with species names as row labels. Missing data to be imputed should be coded NA.

...

optional arguments.

Details

This function performs phylogenetic imputation in which the evolution of the characters in X is assumed to have occured by correlation multivariate Brownian motion. Missing values are imputed by maximizing their likelihood jointly with the parameters of the Brownian model. The function evol.vcv is used internally to compute the likelihood. Note that the Rphylopars package (https://CRAN.R-project.org/package=Rphylopars) also does phylogenetic imputation for multivariate trait data and it seems to be much faster.

Value

An object of class "phylo.impute" consisting of a complete data frame with missing values imputed.

Since optimization is performed numerically using likelihood, a summary of the optimization can be seen by evaluating attr(object,"optim"), in which object is of class "phylo.impute".

Author(s)

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also


phytools

Phylogenetic Tools for Comparative Biology (and Other Things)

v0.7-70
GPL (>= 2)
Authors
Liam J. Revell
Initial release
2020-9-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.