Where has the R Ape 'chronogram' function gone (Non-Parametric Rate Smoothing)?
1
0
Entering edit mode
7.4 years ago
BlastedBadger ▴ 160

Hi,

I want to use several methods to estimate the age of nodes in a phylogeny. I plan on using Ape's chronos function that relies on a penalized likelihood method (Sanderson 2002), but I also would like to test the NPRS method (Non Parametric Rate Smoothing, Sanderson 1997). I read some tutorial where they say it's in the chronogram function, but I see no such function in Ape v4.1. Where is it? Was it removed?

R ape chronogram NPRS Phylogenetic dating • 2.6k views
ADD COMMENT
2
Entering edit mode
ADD REPLY
1
Entering edit mode
7.4 years ago
BlastedBadger ▴ 160

From Ape's log, chronogram has indeed been deprecated.

CHANGES IN APE VERSION 2.5-2

DEPRECATED & DEFUNCT

o evolve.phylo() and plot.ancestral() have been removed.

o chronogram(), ratogram(), and NPRS.criterion() have been removed.

But as mentionned in this page (thanks @cpad0112), using the parameter lambda=0 in chronos is similar to applying the NPRS.

[EDIT] After looking at the function's code and confirming by reading Sanderson 2002, lambda is the level of penalization of the loglikelihood. So the higher the lambda, the closer you are from NPRS. I am pretty sure the page I quoted here is wrong. Here is the function of interest (penalized likelihood with correlated rate), in chronos:

correlated = function(rate,
        node.time) {
        loglik <- log.lik.poisson(rate, node.time)
        if (!is.finite(loglik)) return(-1e+100)
        loglik - lambda * (sum((rate[ind1] - rate[ind2])^2) +
            var(rate[basal]))
}
ADD COMMENT

Login before adding your answer.

Traffic: 1840 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6