Runs the sensitivity analysis module on a finished run

run.sensitivity.analysis(
  settings,
  plot = TRUE,
  ensemble.id = NULL,
  variable = NULL,
  start.year = NULL,
  end.year = NULL,
  pfts = NULL,
  ...
)

Arguments

settings

a PEcAn settings object

plot

logical. Option to generate sensitivity analysis and variance decomposition plots (plot=TRUE) or to turn these plots off (plot=FALSE).

ensemble.id

ensemble ID

variable

which varibable(s) to do sensitivity analysis for. Defaults to all specified in `settings`

start.year

defaults to what is specified in `settings`

end.year

defaults to what is specified in `settings`

pfts

a vector of PFT names found in `settings` to run sensitivity analysis on

...

currently unused

Value

nothing, saves sensitivity.results as sensitivity.results.Rdata, sensitivity plots as sensitivityanalysis.pdf, and variance decomposition 'popsicle plot' as variancedecomposition.pdf a side effect (OPTIONAL)

Author

David LeBauer, Shawn Serbin, Ryan Kelly

Examples

if (FALSE) { # \dontrun{
library(PEcAn.settings)
library(PEcAn.uncertainty)
settings <- read.settings("path/to/pecan.xml")
run.sensitivity.analysis(settings)
} # }