loo: Performs the leave-one-out analysis

View source: R/leave_one_out.R

looR Documentation

Performs the leave-one-out analysis

Description

Repeat the reconstructions by removing one taxon at a time.

Usage

loo(x, verbose = TRUE)

Arguments

x

a crestObj produced by the crest.reconstruct or crest functions.

verbose

A boolean to print non-essential comments on the terminal (default TRUE).

Value

A crestObj object containing the reconstructions and all the associated data.

Examples

## Not run: 
  data(crest_ex)
  data(crest_ex_pse)
  data(crest_ex_selection)
  reconstr <- crest(
    df = crest_ex, pse = crest_ex_pse, taxaType = 0,
    climate = c("bio1", "bio12"), bin_width = c(2, 20),
    shape = c("normal", "lognormal"),
    selectedTaxa = crest_ex_selection, dbname = "crest_example"
  )
  reconstr <- loo(reconstr)

## End(Not run)
## example using pre-saved reconstruction obtained with the previous command.
data(reconstr)
lapply(reconstr$reconstructions$bio12$loo, head)
plot_loo(reconstr)


crestr documentation built on Jan. 6, 2023, 5:23 p.m.