plot_cox.event.list {Coxmos}R Documentation

plot_cox.event.list

Description

Run the function "plot_cox.event" for a list of models. More information in "?plot_cox.event".

Usage

plot_cox.event.list(lst_models, type = "lp", n.breaks = 20)

Arguments

lst_models

List of Coxmos models.

type

Character. Prediction type: "lp", "risk", "expected" or "survival" (default: "lp").

n.breaks

Numeric. Number of time-break points to compute (default: 20).

Value

A list containing three elements per each model: df: A data.frame with the computed predictions based on the specified type and the corresponding event status. plot.density: A ggplot object representing the density plot of the event distribution, with separate curves for censored and occurred events. plot.histogram: A ggplot object representing the histogram of the event distribution, with bins stacked by event type.

Author(s)

Pedro Salguero Garcia. Maintainer: pedsalga@upv.edu.es

Examples

data("X_proteomic")
data("Y_proteomic")
X <- X_proteomic[,1:50]
Y <- Y_proteomic
splsicox.model <- splsicox(X, Y, n.comp = 2, penalty = 0.5, x.center = TRUE, x.scale = TRUE)
splsdrcox.model <- splsdrcox(X, Y, n.comp = 2, penalty = 0.5, x.center = TRUE, x.scale = TRUE)
lst_models = list("sPLSICOX" = splsicox.model, "sPLSDRCOX" = splsdrcox.model)
plot_cox.event.list(lst_models)

[Package Coxmos version 1.0.2 Index]