| sqi_sensitivity | R Documentation |
Quantifies the contribution of each soil variable to the overall Soil Quality Index by a leave-one-out approach: each variable is removed in turn and the resulting index is compared to the full index. A larger change indicates a higher-sensitivity (more important) variable.
sqi_sensitivity(
scored,
config,
group_cols = "LandUse",
method = c("linear", "fuzzy", "entropy", "topsis"),
mds_vars = NULL
)
scored |
A scored data frame from |
config |
A |
group_cols |
Character vector of grouping columns. |
method |
Character. Which indexing method to use for sensitivity
analysis: |
mds_vars |
Character vector of MDS variable names. If |
A data frame with columns variable, mean_change
(mean absolute change in SQI when variable is removed),
sd_change, and relative_importance (0–1, normalised).
Saltelli, A., Ratto, M., Andres, T., Campolongo, F., Cariboni, J., Gatelli, D., Saisana, M., & Tarantola, S. (2008). Global Sensitivity Analysis: The Primer. John Wiley & Sons, Chichester. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1002/9780470725184")}
data(soil_data)
cfg <- make_config(
variable = c("pH","EC","BD","OC","MBC","Clay"),
type = c("opt","less","less","more","more","opt"),
opt_low = c(6.0, NA, NA, NA, NA, 20),
opt_high = c(7.0, NA, NA, NA, NA, 35)
)
scored <- score_all(soil_data, cfg, group_cols = c("LandUse","Depth"))
sa <- sqi_sensitivity(scored, cfg, group_cols = c("LandUse","Depth"))
print(sa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.