Learn R Programming

BayesERtools (version 0.2.0)

plot_er_exp_sel: 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)

Value

No return value, called for plotting side effect.

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)

Examples

Run this code
# \donttest{
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()
# }

Run the code above in your browser using DataLab