Description Usage Arguments Value Examples
Given a cut-off-point and selected covariate, return the survival curve for binary classification and the P-value of two sample log-rank test.
1 | KM.split(t.vec, d.vec, X.mat, x.name, cutoff)
|
t.vec |
:Vector of survival times (time to either death or censoring) |
d.vec |
:Vector of censoring indicators (1=death, 0=censoring) |
X.mat |
:n by p matrix of covariates, where n is the sample size and p is the number of covariates |
x.name |
:the name of covariate |
cutoff |
:cut-off-point |
P-value of two sample logrank test and a plot of two KM estimates
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.