Learn R Programming

Coxmos (version 1.1.2)

plot_proportionalHazard.list: plot_proportionalHazard.list

Description

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

Usage

plot_proportionalHazard.list(lst_models)

Value

A ggplot2 object per model visualizing the assessment of the proportional hazards assumption for the given Coxmos model. The plot displays the Schoenfeld residuals against time for each variable or factor level from the model. A line is fitted to these residuals to indicate any trend, which can suggest a violation of the proportional hazards assumption.

Arguments

lst_models

List of Coxmos models.

Author

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

Examples

Run this code
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_penalty(X, Y, n.comp = 2, penalty = 0.5,
x.center = TRUE, x.scale = TRUE)
lst_models = list("sPLSICOX" = splsicox.model, "sPLSDRCOX" = splsdrcox.model)
plot_proportionalHazard.list(lst_models)

Run the code above in your browser using DataLab