pair | R Documentation |
The function transforms a dataset with p
continuous predictors into \frac{p*(p-1)}{2}
binary predictors of ranked pairs
pair(data, yvar.name = NULL)
data |
A dataset with |
yvar.name |
The column name of the independent variable in |
A data frame with the transformed data. The dependent variable is moved to the last column of the data.
The function is efficiently coded in C++.
Ruijie Yin (Maintainer,<ruijieyin428@gmail.com>), Chen Ye and Min Lu
Lu M. Yin R. and Chen X.S. Ensemble Methods of Rank-Based Trees for Single Sample Classification with Gene Expression Profiles. Journal of Translational Medicine. 22, 140 (2024). doi: 10.1186/s12967-024-04940-2
data(tnbc)
datp <- pair(tnbc[101:105,c(1:5,337)],"subtype")
datp
datp <- pair(tnbc[105:110,1:5])
datp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.