Description Usage Arguments Value Examples
View source: R/scenario_uncertainty.R
This function performs uncertainty decomposition by scenario based on the second order interaction ANOVA model. The uncertainty from interaction effect from two scenarios is divided equally and assigned to each scenario.
1 2 | scenario_uncertainty(data, var_name, stages = setdiff(names(data),
var_name))
|
data |
a data frame containing scenarios(factor or character) for each stages and the variable of interest(numeric). data should contain all combinations of scenarios. |
var_name |
the name of the variable of interest |
stages |
names of the stages of interest. |
List of 4 elements
summary |
summary of uncertainties |
main_uncer |
list of which element is a vector of uncertainties from the main effects of scenarios in the corresponding stage |
int_uncer |
list of which element is a vector of uncertainties from the interaction effects of scenarios in the corresponding stage |
scenario_uncer |
list of which element is a vector of uncertainties of scenarios in the corresponding stage |
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.