Description Usage Arguments Value Author(s) References See Also Examples
Model 1 depends on a flexible number of parameters. It is documented in Saltelli and Sobol 1995 and Davis and Rabinowith 1984.
Model 2 depends on 4 parameters. It produces a weighted sum of the 4 parameters and returns this sum. The weights depend on an additional parameter x=1:200.
1 2 | example_model1(par,a, output=c("model", "analytical sensitivities"))
example_model2(p, fig=FALSE)
|
par |
A vector with parameters |
a |
A vector with a values of the same length as par. |
output |
A character indicating whether to return the model results or the analytical parameter sensitivities |
p |
A vector of 4 parameters |
fig |
boolean: Plot the model(x) |
A vector of the weighted sum of parameters.
Dominik Reusser
Saltelli, Andrea, and Ilya M Sobol. "About the use of rank transformation in sensitivity analysis of model output." Reliability Engineering & System Safety 50, no. 3 (1995): 225-239.
Davis, P. J. & Rabinowitz, P., Methods of Numerical Integration, 2nd edition, Academic Press, New York, 1984.
1 2 3 4 5 6 7 8 9 | example_model1(par=c(0.5,0.5,0.5),a=c(1,1,1))
#The model depends on 4 parameters
#
#It produces a weighted sum of the 4 parameters and returns this sum
#
#The weights depend on an additional parameter x=1:200
example_model2(p=c(1,3,1,1),fig=TRUE)
example_model2(p=c(1,2,2,3),fig=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.