Skip to contents

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

# \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")
  )
#>  The exposure metric selected was: AUCss_1000

plot_er_exp_sel(ermod_bin_exp_sel) + xgxr::xgx_scale_x_log10()

# }