Plot the cross entropy loss from a cv.strat_cox object
Source:R/plot.cve.strat_cox.R
plot.cv.strat_cox.Rd
Return the plot of the cross entropy loss from a cv.strat_cox
object
Usage
# S3 method for class 'cv.strat_cox'
plot(
fit,
log.x = T,
vertical.line = T,
col.vertical.line = "blue",
col.dot = "red"
)
Examples
data(ContTime)
data <- ContTime$data
Event.char <- ContTime$Event.char
prov.char <- ContTime$prov.char
Z.char <- ContTime$Z.char
Time.char <- ContTime$Time.char
cv.fit.strat_cox <- cv.strat_cox(data, Event.char, Z.char, Time.char, prov.char, group = c(1, 2, 2, 3, 3), nfolds = 10)
plot(cv.fit.strat_cox)