Learn R Programming

calibrar

Overview

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 https://roliveros-ramos.github.io/calibrar/ for more details.

Installation

# The easiest way to get calibrar is to install it from CRAN:
install.packages("calibrar")

# Alternatively, install the stable development version from OSMOSE drat repository:
install.packages("calibrar", repo="https://osmose-model.github.io/drat/")

# Or the development version from GitHub:
# install.packages("pak")
remotes::install_github("roliveros-ramos/calibrar")

Usage

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

library(calibrar)
vignette("calibrar")

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

Contributions

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.

Copy Link

Version

Install

install.packages('calibrar')

Monthly Downloads

237

Version

0.9.0

License

GPL-2

Maintainer

Ricardo OliverosRamos

Last Published

February 14th, 2024

Functions in calibrar (0.9.0)

spline_par

Predict time-varying parameters using splines.
summary.calibrar.results

Summary for calibration results object
objFn

Calcuted error measure between observed and simulated data
gradient

Numerical computation of the gradient, with parallel capabilities
optimh

General-purpose optimization using heuristic algorithms
calibrate

Sequential parameter estimation for the calibration of complex models
calibration_data

Get observed data for the calibration of a model
calibrar-package

Automated Calibration for Complex Models
ahres

Adaptative Hierarchical Recombination Evolutionary Strategy (AHR-ES) for derivative-free and black-box optimization
calibration_setup

Get information to run a calibration using the calibrar package.
.get_command_argument

Get an specific argument from the command line
calibration_objFn

Create an objective function to be used with optimization routines
.read_configuration

Read a configuration file.
optim2

General-purpose optimization with parallel numerical gradient computation
gaussian_kernel

Calculate a discretization of the 2D Gaussian Kernel
calibrar-defunct

Defunct functions in package calibrar.
createObjectiveFunction-defunct

Create an objective function to be used with optimization routines
getCalibrationInfo-defunct

Get information to run a calibration using the calibrar package.
getObservedData-defunct

Get observed data for the calibration of a model
calibrar_demo

Demos for the calibrar package
sphereN

Sphere function with random noise