CRAN_Status_Badge GitHub R package version R-CMD-check GitHub issues OpenSSF Best Practices codecov


This package allows the parameter estimation (i.e. calibration) of complex models, including stochastic ones. It implements generic functions that can be used for fitting any type of models, especially those with non-differentiable objective functions, with the same syntax as base::optim. It supports multiple phases estimation (sequential parameter masking), constrained optimization (bounding box restrictions) and automatic parallel computation of numerical gradients. Some common maximum likelihood estimation methods and automated construction of the objective function from simulated model outputs is provided.
See for more details.


# The easiest way to get calibrar is to install it from CRAN:

# Alternatively, install the stable development version from OSMOSE drat repository:
install.packages("calibrar", repo="")

# Or the development version from GitHub:
# install.packages("pak")


For a quick introduction, check the worked the examples available from the package:


For a more detailed explanation of the package philosophy, you can read the pre-print calibrar: an R package for fitting complex ecological models.


If you find any bug, have questions about the documentation or requests for enhancements, please open an issue.

Contributions are accepted as pull requests. Please note that the calibrar package is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.