plot_sensitivity: Plot posterior distributions for BRMA models

View source: R/plot_sensitivity.R

plot_sensitivityR 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 brma. If the argument model_names is NULL, the names of these objects are used to label the plot.

parameters

Optional character vector with the names of parameters that exist in the models in ..., Default: NULL.

model_names

Optional character vector with the names used to label the models in ..., Default: NULL

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")

pema documentation built on March 31, 2023, 11:38 p.m.