plot_er_exp_sel {BayesERtools}R Documentation

Plot exposure metric selection comparison

Description

Plot ER curve for each exposure metric and compare them.

Usage

plot_er_exp_sel(x, n_draws_sim = NULL)

Arguments

x

An object of class ermod_bin_exp_sel

n_draws_sim

Number of draws to simulate response for each exposure value. Default is NULL (use all draws in the model object)

Value

No return value, called for plotting side effect.

Examples



data(d_sim_binom_cov_hgly2)

ermod_bin_exp_sel <-
  dev_ermod_bin_exp_sel(
    data = d_sim_binom_cov_hgly2,
    var_resp = "AEFLAG",
    var_exp_candidates = c("AUCss_1000", "Cmaxss", "Cminss")
  )

plot_er_exp_sel(ermod_bin_exp_sel) +
  xgxr::xgx_scale_x_log10(guide = ggplot2::guide_axis(minor.ticks = TRUE))



[Package BayesERtools version 0.2.3 Index]