To identify any individual likelihood predictions that may be more influential or unusual.
Note this function may have a long runtime.
Usage
ind_roc(
xpdb,
mapping = NULL,
cutpoint = 1,
type = "ca",
title = "Individual ROC curves | @run",
subtitle = "Ofv: @ofv, Eps shrink: @epsshk",
caption = "@dir | Page @page of @lastpage",
tag = NULL,
facets,
.problem,
quiet,
...
)
Arguments
- xpdb
<
xp_xtras
> or <xpose_data
> object- mapping
ggplot2
style mapping- cutpoint
<
numeric
> Of defined probabilities, which one to use in plots.- type
See Details.
- title
Plot title
- subtitle
Plot subtitle
- caption
Plot caption
- tag
Plot tag
- facets
Additional facets
- .problem
Problem number
- quiet
Silence extra debugging output
- ...
Any additional aesthetics.
Details
For type-based customization of plots:
c
ROC curve (usinggeom_path
)k
Key points on ROC curve (where on curve the threshold isthres_fixed
) (usinggeom_point
)p
ROC space points (usinggeom_point
)t
ROC space text (usinggeom_text
)a
AUC in bottom right (usinggeom_label
)
Examples
if (FALSE) { # \dontrun{
vismo_pomod %>%
set_var_types(.problem=1, catdv=DV, dvprobs=matches("^P\\d+$")) %>%
set_dv_probs(.problem=1, 0~P0,1~P1,ge(2)~P23) %>%
ind_roc()
} # }