Description Usage Arguments Value Examples
View source: R/stage_uncertainty.R
This function performs uncertainty decomposition by stage based on the second order interaction ANOVA model. The uncertainty from interaction effect from two stages is divided equally and assigned to each stage.
1 2 | stage_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. columns scenarios |
var_name |
the name of the variable of interest |
stages |
names of the stages in the model. |
List of 4 elements
summary |
summary of uncertainties |
main_uncer |
a vector of uncertainties from the main effects of the stages |
int_uncer |
a vector of uncertainties from the interaction effects of the stages |
scenario_uncer |
a vector of uncertainties of the stages |
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.