Description Usage Arguments Details Value Examples
View source: R/risk.classification.R
The function returns the ranks (1=the lowest risk, 2=the 2nd lowest risk, ..., k=the highest risk) predicted for the samples.
1 | risk.classification(tree, X.mat)
|
tree |
:an object made from the "uni.tree" function |
X.mat |
:n by p matrix of covariates from the samples, where n is the sample size and p is the number of covariates |
If the tree has k terminal nodes, then the response 1 respresents the lowest risk and k represents the highest risk.
A vector of integers, 1, 2, ..., k, that represent the ranks predicted for the samples.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.