Under all circumstances, search.shift provides a vector of
$rates. If 'cov' values are provided, rates are regressed
against the covariate and the residuals of such regression form the vector
$rates. Otherwise, $rates are the same
rates as with the RR argument.
Under "clade" case without specifying nodes (i.e.
'auto-recognize') a list including:
$all.clades for each detected node, the data-frame includes
the average rate difference (computed as the mean rate over all branches
subtended by the node minus the average rate for the rest of the tree) and
the probability that it do represent a real shift. Probabilities are
contrasted to simulations shuffling the rates across the tree branches for
a number of replicates specified by the argument nrep. Note that the
p-values refer to the number of times the real average rates are larger (or
smaller) than the rates averaged over the rest of the tree, divided by the
number of simulations. Hence, large rates are significantly larger than the
rest of the tree (at alpha = 0.05), when the probability is > 0.975; and
small rates are significantly small for p < 0.025.
$single.clades the same as with 'all.clades' but restricted
to the largest/smallest rate values along a single clade (i.e. nested
clades with smaller rate shifts are excluded). Large rates are
significantly larger than the rest of the tree (at alpha = 0.05), when the
probability is > 0.975; and small rates are significantly small for p <
0.025.
Under "clade" condition by specifying the node
argument:
$all.clades.together if more than one node is tested, this
specifies the average rate difference and the significance of the rate
shift, by considering all the specified nodes as evolving under a single
rate. As with the 'auto-recognize' feature, large rates are significantly
larger than the rest of the tree (at alpha = 0.05), when the probability is
> 0.975; and small rates are significantly small for p < 0.025.
$single.clades this gives the significance for individual
clades, tested separately. As previously, large rates are significantly
larger than the rest of the tree (at alpha = 0.05), when the probability is
> 0.975; and small rates are significantly small for p < 0.025.
Under the "sparse" condition:
$state.results for each state, the data-frame includes the
average rate difference (computed as the mean rate over all leaves evolving
under a given state, minus the average rate for each other state or the
rest of the tree) and the probability that the shift is real. Large rates
are significantly larger (at alpha = 0.05), when the probability is >
0.975; and small rates are significantly small for p < 0.025. States are
compared pairwise.