Allows to remove a model from the model comparisons of shift.estimates output.
remove.model(shift.res, model)
the same output resulting from shift.estimates but without the chosen model in model comparisons.
the output resulting from shift.estimates.
character. Specifies the model to remove from the set of model of diversification applied in shift.res.
Nathan Mazet
This function allow to remove model one at a time. The idea is to remove a model without having to reanalyse the phylogeny and all the combinations of shifts if a model (e.g. BVAR_DVAR) behaves strangely on the studied phylogeny.
Mazet, N., Morlon, H., Fabre, P., Condamine, F.L., (2023). Estimating clade‐specific diversification rates and palaeodiversity dynamics from reconstructed phylogenies. Methods in Ecology and in Evolution 14, 2575–2591. https://doi.org/10.1111/2041-210X.14195
shift.estimates
# loading data
data("shifts_cetacea")
# Removing "BVAR_DCST" model for the example
shifts_cetacea_noBVAR_DCST <- remove.model(shift.res = shifts_cetacea,
model = "BVAR_DCST")
Run the code above in your browser using DataLab