km_combine: Comparing two Kaplan Meier curves in one plot
Description
The function compares two Kaplan Meier curves in one plot
Usage
km_combine(x1, x2, pos = 0)
Arguments
x1
Nx2 data matrix,first columen represents survival time of the i-th subject, second column represents censored flag (0 if not censored, 1 if censored)
x2
Nx2 data matrix,first columen represents survival time of the i-th subject, second column represents censored flag (0 if not censored, 1 if censored)
pos
The position of the legend. Can be 0 or 1. The legend will be
on the topright if set to 0. The legend will be on the bottomleft if set to 1. Default is 0.