Learn R Programming

fast (version 0.64)

sa: Calculate sensitivities

Description

sa provides a general interface to sensitivity analysis, similar to optim.

Usage

sa(par, fn, method = c("FAST"), ..., xval = NULL)

Arguments

par
A matrix with to columns. The first giving the lower, the second giving the upper bound to the parameters of fn.
fn
Function for which to analyise sensitivities, with first argument the vector of parameters for which to analyze sensitivities.
method
Currently, only fast is available.
...
Additional arguments passed to fn
xval
Values for the x-axis if fn returnes a vector.

Value

A vector of sensitivities

Details

Let me know what details you would like to know (email to the maintainer)!

References

Reusser, Dominik E., Wouter Buytaert, and Erwin Zehe. "Temporal dynamics of model parameter sensitivity for computationally expensive models with FAST (Fourier Amplitude Sensitivity Test)." Water Resources Research 47 (2011): W07551.

See Also

See Also as sensitivity, sensitivity_rep for the internally used functions.

Examples

Run this code
#Does the same as the example in sensitivity_rep but with less code

sa(par=matrix(c(0,0,0,0,  1,2,2,3), ncol=2), fn=example_model2)

Run the code above in your browser using DataLab