cxr1.1.1 package

A Toolbox for Modelling Species Coexistence in R

RK_pm_alpha_global_lambdacov_none_alphacov_none

Ricker model with a global alpha and no covariate effects

RK_pm_alpha_none_lambdacov_none_alphacov_none

Ricker model with no alphas and no covariate effects

RK_pm_alpha_pairwise_lambdacov_global_alphacov_global

Ricker model with pairwise alphas and global covariate effects on lamb...

RK_pm_alpha_pairwise_lambdacov_global_alphacov_pairwise

Ricker model with pairwise alphas, covariate effects on lambda, and pa...

RK_pm_alpha_pairwise_lambdacov_none_alphacov_none

Ricker model with pairwise alphas and no covariate effects

RK_project_alpha_global_lambdacov_none_alphacov_none

Ricker model for projecting abundances, with a global alpha and no cov...

RK_project_alpha_none_lambdacov_none_alphacov_none

Model for projecting abundances, with no alpha and no covariate effect...

RK_project_alpha_pairwise_lambdacov_global_alphacov_global

Ricker model for projecting abundances, with specific alpha values and...

RK_project_alpha_pairwise_lambdacov_global_alphacov_pairwise

Ricker model for projecting abundances, with specific alpha values and...

RK_project_alpha_pairwise_lambdacov_none_alphacov_none

Ricker model for projecting abundances, with specific alpha values and...

LW_project_alpha_pairwise_lambdacov_global_alphacov_global

Law-Watkinson model for projecting abundances, with specific alpha val...

LW_project_alpha_pairwise_lambdacov_global_alphacov_pairwise

Law-Watkinson model for projecting abundances, with specific alpha val...

LW_project_alpha_pairwise_lambdacov_none_alphacov_none

Law-Watkinson model for projecting abundances, with specific alpha val...

niche_overlap

Niche overlap between two species

RK_er_lambdacov_global_effectcov_global_responsecov_global

Effect response Beverton-Holt model with covariate effects on lambda, ...

RK_er_lambdacov_none_effectcov_none_responsecov_none

Effect response Ricker model without covariate effects

avg_fitness_diff

Average fitness differences

abundance_projection

Project abundances from population dynamics models

BH_project_alpha_pairwise_lambdacov_global_alphacov_pairwise

Beverton-Holt model for projecting abundances, with specific alpha val...

BH_project_alpha_pairwise_lambdacov_none_alphacov_none

Beverton-Holt model for projecting abundances, with specific alpha val...

build_param

Build param structure

calculate_densities

Obtain species densities from transition matrices

LV_er_lambdacov_none_effectcov_none_responsecov_none

Effect response Lotka-Volterra model without covariate effects

LV_pm_alpha_global_lambdacov_none_alphacov_none

Lotka-Volterra model with a global alpha and no covariate effects

LV_pm_alpha_none_lambdacov_none_alphacov_none

Lotka-Volterra model with no alphas and no covariate effects

LV_pm_alpha_pairwise_lambdacov_global_alphacov_global

Lotka-Volterra model with pairwise alphas and global covariate effects...

LV_pm_alpha_pairwise_lambdacov_global_alphacov_pairwise

Lotka-Volterra model with pairwise alphas, covariate effects on lambda...

LV_pm_alpha_pairwise_lambdacov_none_alphacov_none

Lotka-Volterra model with pairwise alphas and no covariate effects

LV_project_alpha_global_lambdacov_none_alphacov_none

Lotka-Volterra model for projecting abundances, with a global alpha an...

LV_project_alpha_none_lambdacov_none_alphacov_none

Model for projecting abundances, with no alpha and no covariate effect...

LV_project_alpha_pairwise_lambdacov_global_alphacov_global

Lotka-Volterra model for projecting abundances, with specific alpha va...

LV_project_alpha_pairwise_lambdacov_global_alphacov_pairwise

Lotka-Volterra model for projecting abundances, with specific alpha va...

LV_project_alpha_pairwise_lambdacov_none_alphacov_none

Lotka-Volterra model for projecting abundances, with specific alpha va...

LW_er_lambdacov_global_effectcov_global_responsecov_global

Effect response Law-Watkinson model with covariate effects on lambda, ...

LW_er_lambdacov_none_effectcov_none_responsecov_none

Effect response Law-Watkinson model without covariate effects

LW_pm_alpha_global_lambdacov_none_alphacov_none

Law-Watkinson model with a global alpha and no covariate effects

LW_pm_alpha_none_lambdacov_none_alphacov_none

Law-Watkinson model with no alphas and no covariate effects

LW_pm_alpha_pairwise_lambdacov_global_alphacov_global

Law-Watkinson model with pairwise alphas and global covariate effects ...

LW_pm_alpha_pairwise_lambdacov_global_alphacov_pairwise

Law-Watkinson model with pairwise alphas, covariate effects on lambda,...

LW_pm_alpha_pairwise_lambdacov_none_alphacov_none

Law-Watkinson model with pairwise alphas and no covariate effects

LW_project_alpha_global_lambdacov_none_alphacov_none

Law-Watkinson model for projecting abundances, with a global alpha and...

LW_project_alpha_none_lambdacov_none_alphacov_none

Model for projecting abundances, with no alpha and no covariate effect...

BH_pm_alpha_pairwise_lambdacov_none_alphacov_none

Beverton-Holt model with pairwise alphas and no covariate effects

BH_project_alpha_global_lambdacov_none_alphacov_none

Beverton-Holt model for projecting abundances, with a global alpha and...

BH_project_alpha_none_lambdacov_none_alphacov_none

Beverton-Holt model for projecting abundances, with no alpha and no co...

BH_project_alpha_pairwise_lambdacov_global_alphacov_global

Beverton-Holt model for projecting abundances, with specific alpha val...

BH_er_lambdacov_global_effectcov_global_responsecov_global

Effect response Beverton-Holt model with covariate effects on lambda, ...

BH_er_lambdacov_none_effectcov_none_responsecov_none

Effect response model without covariate effects

BH_pm_alpha_global_lambdacov_none_alphacov_none

Beverton-Holt model with a global alpha and no covariate effects

BH_pm_alpha_none_lambdacov_none_alphacov_none

Beverton-Holt model with no alphas and no covariate effects

BH_pm_alpha_pairwise_lambdacov_global_alphacov_global

Beverton-Holt model with pairwise alphas and global covariate effects ...

BH_pm_alpha_pairwise_lambdacov_global_alphacov_pairwise

Beverton-Holt model with pairwise alphas, covariate effects on lambda,...

competitive_ability

Competitive ability among pairs of species

cxr-package

cxr: A Toolbox for Modelling Species Coexistence in R

cxr_er_bootstrap

standard error estimates for effect and response parameters

cxr_er_fit

General optimization for effect-response models

cxr_generate_test_data

Generate simulated interaction data

LV_er_lambdacov_global_effectcov_global_responsecov_global

Effect response Lotka-Volterra model with covariate effects on lambda,...

cxr_pm_bootstrap

Standard error estimates for model parameters

cxr_pm_fit

General optimization for population models

cxr_pm_multifit

Multi-species parameter optimization

densities_to_df

Converts a densities list to a tidy dataframe

fill_demography_matrix

Fill the vec-permutation demography matrix

fill_dispersal_matrix

Fill the vec-permutation dispersal matrix

fill_transition_matrix

Fill a transition matrix

fitness_ratio

Fitness ratio among two or more species

generate_vital_rate_coefs

Generate coefficients for obtaining vital rates

species_fitness

Fitness of a species

summary.cxr_er_fit

CXR summary method for effect response model fits

summary.cxr_pm_fit

CXR summary method for population model fits

summary.cxr_pm_multifit

CXR summary method for multispecies fits

vec_permutation_matrices

Generate templates for dispersal, demography, and permutation matrices

vital_rate

Vital rate calculation

Recent developments in modern coexistence theory have advanced our understanding on how species are able to persist and co-occur with other species at varying abundances. However, applying this mathematical framework to empirical data is still challenging, precluding a larger adoption of the theoretical tools developed by empiricists. This package provides a complete toolbox for modelling interaction effects between species, and calculate fitness and niche differences. The functions are flexible, may accept covariates, and different fitting algorithms can be used. A full description of the underlying methods is available in GarcĂ­a-Callejas, D., Godoy, O., and Bartomeus, I. (2020) <doi:10.1111/2041-210X.13443>. Furthermore, the package provides a series of functions to calculate dynamics for stage-structured populations across sites.

  • Maintainer: David Garcia-Callejas
  • License: MIT + file LICENSE
  • Last published: 2023-10-26