Draws AUC(t) from a gg_auct() object: a line over time, a bootstrap
confidence ribbon when available, and a dashed reference line at 0.5
(chance). The integrated AUC (iAUC) appears in the caption. Times with a
non-finite AUC are dropped before drawing: from randomForestRHF 2.0.0
the final grid time can be NA, where the censoring-weight denominator is
undefined once the control set is nearly exhausted.
Usage
# S3 method for class 'gg_auct'
plot(x, ...)Arguments
- x
A
gg_auctobject fromgg_auct().- ...
Not currently used.
Examples
# \donttest{
if (requireNamespace("randomForestRHF", quietly = TRUE)) {
data(pbc, package = "randomForestSRC")
d <- randomForestRHF::convert.counting(
survival::Surv(days, status) ~ ., na.omit(pbc))
o <- randomForestRHF::rhf("Surv(id, start, stop, event) ~ .", d, ntree = 30)
plot(gg_auct(o))
}
# }