It is a wrapper for running APSIM-X and evaluating different parameters values
Summary computes variance-based sensitivity indexes from an object of class ‘sens_apsim’
sens_apsimx(
file,
src.dir = ".",
parm.paths,
convert,
replacement,
grid,
summary = c("mean", "max", "var", "sd", "none"),
root,
verbose = TRUE,
...
)# S3 method for sens_apsim
summary(object, ..., scale = FALSE, select = "all")
file name to be run (the extension .apsimx is optional)
directory containing the .apsimx file to be run (defaults to the current directory)
absolute or relative paths of the coefficients to be evaluated.
It is recommended that you use inspect_apsimx
for this
(logical) This argument is needed if there is a need to pass a vector instead of a single value. The vector can be passed as a character string (separated by spaces) and it will be converted to a numeric vector. It should be either TRUE or FALSE for each parameter.
TRUE or FALSE for each parameter. Indicating whether it is part of the ‘replacement’ component. Its length should be equal to the length or ‘parm.paths’.
grid of parameter values for the evaluation. It can be a data.frame.
function name to use to summarize the output to be a sinlge row (default is the mean).
root argument for edit_apsimx_replacement
whether to print progress in percent and elapsed time.
additional arguments (none used at the moment)
object of class ‘sens_apsim’
if all inputs are numeric it is better to scale them. The default is FALSE as some inputs might be characters or factors. In this case all inputs will be treated as factors in the sum of squares decomposition.
option for selecting specific variables in the APSIM output. It will be treated as a regular expression
object of class ‘sens_apsim’, but really just a list with results from the evaluations.
prints to console
Suggested reading on the topic of sensitivity analysis:
Pianosa et al (2016). Sensitivity analysis of environmental models: A systematic review with practical workflow. 10.1016/j.envsoft.2016.02.008
Saltelli et al. . Global Sensitivity Analysis.
# NOT RUN {
## See the vignette for examples
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab