calc_error: Calculates the colonisation through time (CTT) statistic,...

View source: R/calc_error.R

calc_errorR Documentation

Calculates the colonisation through time (CTT) statistic, percentage of max age colonists, percentage of endemics, and differences in parameter estimates from DAISIE maximum likelihood estimation on ideal and empirical data simulated from sim_island_with_mainland

Description

Calculates the colonisation through time (CTT) statistic, percentage of max age colonists, percentage of endemics, and differences in parameter estimates from DAISIE maximum likelihood estimation on ideal and empirical data simulated from sim_island_with_mainland

Usage

calc_error(daisie_mainland_data, ideal_ml, empirical_ml)

Arguments

daisie_mainland_data

list containing data of a DAISIE simulation with mainland dynamics, as produced by sim_island_with_mainland and checked by check_daisie_mainland_data

A daisie_mainland_data has two elements:

  • ideal_multi_daisie_data: the ideal data set produced in a simulation, see check_multi_daisie_data for more details

  • empirical_multi_daisie_data: the empirical data sets produced in a simulation see check_multi_daisie_data for more details

ideal_ml

List containing maximum likelihood estimates from DAISIE fitted to ideal data produced from sim_island_with_mainland. Output from DAISIE::DAISIE_ML_CS

empirical_ml

List containing maximum likelihood estimates from DAISIE fitted to empirical data produced from sim_island_with_mainland. Output from DAISIE::DAISIE_ML_CS

Value

List of error metrics

Author(s)

Joshua W. Lambert


joshwlambert/DAISIEmainland documentation built on July 14, 2024, 5:40 p.m.