plot_sensitivity {pema} | R Documentation |
Plot posterior distributions for BRMA models
Description
To perform a rudimentary sensitivity analysis, plot the posterior distributions of multiple BRMA models and compare them visually.
Usage
plot_sensitivity(..., parameters = NULL, model_names = NULL)
Arguments
... |
Objects of class |
parameters |
Optional character vector with the names of
parameters that exist in the models in |
model_names |
Optional character vector with the names used
to label the models in |
Value
An object of class ggplot
Examples
plot_sensitivity(samples = list(
data.frame(Parameter = "b",
Value = rnorm(10),
Model = "M1"),
data.frame(Parameter = "b",
Value = rnorm(10, mean = 2),
Model = "M2")),
parameters = "b")
[Package pema version 0.1.3 Index]