analyze_survival: Plots the survival curves and compute the Cox p-value

Description Usage Arguments Value See Also

Description

Plots the survival curves and compute the Cox p-value using the package survival.

Usage

1
2
analyze_survival(survival_time, death_status, patients_partition,
  return = FALSE, no_plot = FALSE)

Arguments

survival_time

the follow-up time of the patients.

death_status

integer, 0 = alive, 1 = dead

patients_partition

a partition of the patients

return

logical, TRUE to return the cox p-value

no_plot

logical, set to TRUE to avoid plotting and return the cox p-value.

Value

the cox p-value (if return or no_plot is TRUE).

See Also

Surv, coxph


agapow/subtypr documentation built on May 5, 2019, 1:33 a.m.