Learn R Programming

laser (version 2.4-1)

fitdAICrc.batch: Generate Null Distribution of dAICrc

Description

Generates null distribution of dAICrc test statistic and determines significance of dAICrc indices calculated for 'real' phylogenies.

Usage

fitdAICrc.batch(x, observed=NULL, ...)

Arguments

x
a numeric matrix or dataframe of branching times
observed
the dAICrc statistic for the 'real' phylogeny
...
other parameters, e.g., ints for yule2rate

Value

A dataframe with N rows, where N is the number of sets of branching times analyzed. Columns of the data frame are the AIC scores for each of the models. The final column, with name dAIC, is the deltaAICrc test statistic for that particular tree.

Details

For details on input format, see getBtimes.batch. This fits the following models: pure birth, birth death, density-dependent (exponential), density-dependent (logistic), yule-2-rate 'observed' is the calculated dAICrc statistic obtained for a test phylogeny for which you would like to obtain a p-value (using fitdAICrc).

References

Rabosky, D. L. 2006. Likelihood methods for inferring temporal shifts in diversification rates. Evolution 60:1152-1164.