summary.cropr_simulation | R Documentation |
Summary statistics for one or several situations with observations, eventually grouped by a model version (or any group actually)
## S3 method for class 'cropr_simulation'
summary(
...,
obs,
stats = "all",
all_situations = TRUE,
verbose = TRUE,
stat = lifecycle::deprecated()
)
... |
Simulation outputs (each element= model version),
each being a named list of |
obs |
A list (each element= situation) of observations |
stats |
A character vector of required statistics, "all" for all,
or any of |
all_situations |
Boolean (default = TRUE). If |
verbose |
Logical value for displaying information while running |
stat |
A list of statistics data.frame
s named by situation
All the functions used to compute the statistics:
predictor_assessment()
.
## Not run:
# Importing an example with three situations with observation:
workspace <- system.file(file.path("extdata", "stics_example_1"),
package = "CroPlotR")
situations <- SticsRFiles::get_usms_list(usm_path =
file.path(workspace, "usms.xml"))
sim <- SticsRFiles::get_sim(workspace = workspace, usm = situations)
obs <- SticsRFiles::get_obs(workspace = workspace, usm = situations)
# All stats for the simulation:
summary(sim, obs = obs)
# All stats for two groups of simulations:
summary(sim1 = sim, sim2 = sim, obs = obs)
# Only R2 and nRMSE for one group:
summary(sim, obs = obs, stats = c("R2", "nRMSE"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.