impute.data.Rphylopars
uses function phylopars
from package Rphylopars
to impute missing data.
impute.data.Rphylopars(phylo, Y_data, process, random.init)
a phylogenetic tree, class phylo
.
data at the tips.
the stochastic process
whether root is random or fixed.
Y_data_imp the imputed data using Rphylopars
This function assume that there are no shifts on the tree. It is only a first approximation for initialization purposes.