Learn R Programming

estar

The estar package provides two sets of functions.

The first set corresponds to functions that measure stability at any level of organisation, from individual to community and can be applied to a time series of a system’s state variables (e.g., body mass, population abundance, or species diversity). The properties included in this set are:

  • Resistance
  • Extent of recovery
  • Rate of recovery
  • Invariability
  • Persistence
  • Overall Ecological Vulnerability

The second set of functions can be applied to Jacobian matrices. The functions in this set measure the stability of a community at short and long time scales. In the short term, you can measure:

  • Reactivity
  • Maximal amplification
  • Initial resilience

In the long term, stability can be measured as:

  • Asymptotic resilience
  • Intrinsic stochastic invariability

The package includes two vignettes demonstrating the use of all functions, as well as a brief introduction to multivariate autoregressive state-space models necessary for the second set of metrics.

Copy Link

Version

Install

install.packages('estar')

Monthly Downloads

155

Version

1.0-1

License

GPL-3

Maintainer

Ludmilla Figueiredo

Last Published

November 28th, 2025

Functions in estar (1.0-1)

max_amp

Calculate the maximal amplification of a community after disturbance
oev

Calculate the overall ecological vulnerability of a community after disturbance
recovery_extent

Calculate the extent of recovery after disturbance
recovery_rate

Calculate the rate of recovery after disturbance
invariability

Calculate the invariability of a state variable after disturbance
stoch_var

Calculate the intrinsic stochastic invariability of a community from its community matrix.
summ_d2b

Summarize the values of the state variable in a disturbed system into a baseline
theme_estar

Custom theme for internal use to demo estar
comm_dist

Macroinvertebrate aquatic community data formatted for calculation of compositional stability metrics
common_params

Define parameters that are common to all functions
asympt_resil

Calculate the asymptotic resilience of a community after disturbance
extractB

Extract the community matrix (B)
init_resil

Calculate the initial resilience of a community after disturbance
aquacomm_fgps

Macroinvertebrate aquatic community.
comm_base

Macroinvertebrate aquatic community data formatted for calculation of compositional stability metrics
aquacomm_resps

Macroinvertebrate aquatic community formatted for univariate metrics.
cv

Calculate coefficient of variation of a vector
format_input

Compose a standardized dataframe to be wrangled by the function
resistance

Calculate the resistance of a state variable to disturbance
persistence

Calculate the persistence of a state variable over a defined time interval
reactivity

Calculate the reactivity of a community after disturbance
calc_dissim

Calculate dissimilarity
sort_response

Organize the response variable upon which the stability metric will be calculated