CPCM2SSP: Check Proportional Hazards for a given model

View source: R/2SSPmodel.R

CPCM2SSPR Documentation

Check Proportional Hazards for a given model

Description

Check Proportional Hazards for a given model

Usage

CPCM2SSP(
  time,
  event,
  group,
  changepoints,
  silent,
  xlab = "",
  ylab = "",
  main = "",
  cex.axis,
  cex.lab,
  lty,
  legend.inset,
  legend.cex,
  lwd
)

Arguments

time

Time to event or censoring.

event

An indicator vector with values of 1 for individuals who had the event occur or 0 if the participant was censored.

group

An indicator vector with values of 1 if the the participant was in the treatment arm and 0 otherwise.

changepoints

A vector with times where we will cut as part of a time-varying covariate.

silent

Logical argument, FALSE indicates the user wants plots and TRUE indicates no plots only AUC calculations (default is FALSE).

xlab

String argument for the horizontal axis label of the ROC curve.

ylab

String argument for the vertical axis label of the ROC curve.

main

String argument for the title of the ROC curve.

cex.axis

Optional graphical parameter for magnification of axis annotation. See par for more details.

cex.lab

Optional graphical parameter for magnification of x and y labels. See par for more details.

lty

Optional graphical parameter to set the type of line to use. Can be a number or a vector. See par for more details.

legend.inset

Optional graphical parameter controling the inset of the legend.

legend.cex

Optional graphical parameter for magnification of the legend's text.

lwd

Optional graphical parameter for line width relative to the default. See par for more details.

Value

A plot of the curve and object containing:

  • A cox model object based on the change points.

  • The area under the curve for the given plot.


SandraCastroPearson/2SPcurves documentation built on June 15, 2022, 3:42 a.m.