surfaceForward
, tests pairwise collapses of regimes and identifies collapses that improve the fit. Continues this iterative process until the model stops improving beyond the given AIC threshold
surfaceBackward(otree, odata, starting_model, aic_threshold = 0,
max_steps = NULL, save_steps = FALSE, filename = "temp_back_list.R",
verbose = FALSE, only_best = FALSE, plotaic = FALSE,
error_skip = FALSE, sample_shifts = FALSE, sample_threshold = 2)
collapseRegimes(otree, odata, oldshifts, oldaic, oldfit, aic_threshold = 0,
only_best = FALSE, verbose = TRUE, plotaic = TRUE, error_skip = FALSE,
sample_shifts = FALSE, sample_threshold = 2)
ouchtree
format
otree@labels
surfaceForward
analysis
aic_threshold
aic_threshold
)
filename
(defaults to FALSE
)
savesteps=TRUE
FALSE
)
FALSE
, igraph
functions are used to identify pairs of regimes that can be collapsed to improve the model without any inconsistencies (defaults to FALSE
)
FALSE
)
FALSE
)
sample_threshold
of the best AICc), rather than always selecting the best candidate model (defaults to FALSE
; both sample_shifts
and only_best
must be set to TRUE
to use this option during the backward phase
sample_shifts=TRUE
and only_best=TRUE
)
collapseRegime
returns a list corresponding to one iteration of the backward phase of the SURFACE analysis; surfaceBackward
returns a list of such lists consisting of each step of the stepwise process
hansentree
object if the number of traits m = 1
, or a list of hansentree
objects if m > 1
k(k-1)/2
, where k
is the number of regimes in the model.
Ingram, T. & Mahler, D.L. (2013) SURFACE: detecting convergent evolution from comparative data by fitting Ornstein-Uhlenbeck models with stepwise AIC. Methods in Ecology and Evolution 4: 416-425.
Mahler, D.L., Ingram, T., Revell, L.J. & Losos, J.B. (2013) Exceptional convergence on the macroevolutionary landscape in island lizard radiations. Science 341: 292-295.
surfaceForward
, surfaceSimulate
, surfaceTreePlot
, surfaceSummary