Skip to contents

This function generates a plot of the estimated mass drug administration (MDA) impact function based on a fitted decay-adjusted spatio-temporal (DAST) model.

Usage

plot_mda(
  object,
  n_sim = 10000,
  x_max = 10,
  conf_level = 0.95,
  lower_f = NULL,
  upper_f = NULL,
  ...
)

Arguments

object

A fitted DAST model object, obtained as an output from the function dast.

n_sim

Number of posterior samples to simulate (default: 10000).

x_max

Maximum value for the x-axis (default: 10 years).

conf_level

Confidence level for the uncertainty interval (default: 0.95).

lower_f

Optional lower bound for the y-axis.

upper_f

Optional upper bound for the y-axis.

...

Additional arguments (currently unused).

Value

A ggplot2 object visualizing the MDA impact function, showing the median and confidence interval of the estimated function.