Description Usage Arguments Details
Group the data based on log rank test.
1 | cutoff(datasurv, gene_expr, criterion)
|
datasurv |
A dataset. A dataset contains time and event information. |
gene_expr |
A vector. A vector contains gene expression information. |
criterion |
A number. A criterion that is used to split two groups. Range from 0 to 1. |
The data set is grouped by the p-value of log-rank test.
First: We will order the gene expression.
Second: Divide them as two group for any possibility, the minimal size of each group is 10 percent of total sample size.
Third: Based on the group, we will have the p-values of log-rank test for each possibility
Fourth: Order the p-values from minimal to maximum.
Fifth: The smallest p-value will be the cutoff point. The data will be separated based on that cutoff point. If gene expression is bigger than or equal to the gene expression of cutoff point, then groups 1, otherwise groups 0.
Then it will create a KM plot based on the group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.