autoplot.LearnerSurvCoxPH {mlr3viz} | R Documentation |
Plots for Cox Proportional Hazards Learner
Description
Visualizations for LearnerSurvCoxPH
of mlr3proba
.
The argument type
controls what kind of plot is drawn.
The only possible choice right now is "ggforest"
(default) which is a
Forest Plot, using ggforest.
This plot displays the estimated hazard ratios (HRs) and their confidence
intervals (CIs) for different variables included in the (trained) model.
Usage
## S3 method for class 'LearnerSurvCoxPH'
autoplot(object, type = "ggforest", ...)
Arguments
object |
( |
type |
(character(1)): |
... |
Additional parameters passed down to |
Value
Examples
if (requireNamespace("mlr3proba")) {
library(mlr3proba)
library(mlr3viz)
task = tsk("lung")
learner = lrn("surv.coxph")
learner$train(task)
autoplot(learner)
}
[Package mlr3viz version 0.10.1 Index]