Description Usage Arguments Details Value Author(s) Examples
Conducts a "stochastic contribution analysis" by calculating the change in propagated uncertainty when each of the simulated variables is kept constant at its mean, i.e. the uncertainty is removed.
1 | stochContr(prop, plot = TRUE)
|
prop |
a |
plot |
logical. If |
This function takes the Monte Carlo simulated data X_n from a propagate
object (...$datSIM
), sequentially substitutes each variable β_i by its mean \bar{β_i} and then re-evaluates the output distribution Y_n = f(β, X_n). Optional boxplots are displayed that compare the original Y_n\mathrm{(orig)} to those obtained from removing σ from each β_i. Finally, the relative contribution C_i for all β_i is calculated by C_i = σ(Y_n\mathrm{(orig)})-σ(Y_n), and divided by its sum so that ∑_{i=1}^n C_i = 1.
The relative contribution C_i for all variables.
Andrej-Nikolai Spiess
1 2 3 4 5 6 7 | a <- c(15, 1)
b <- c(100, 5)
c <- c(0.5, 0.02)
DAT <- cbind(a, b, c)
EXPR <- expression(a * b^sin(c))
RES <- propagate(EXPR, DAT, nsim = 100000)
stochContr(RES)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.