pair {ranktreeEnsemble} | R Documentation |
Transform Continuous Variables into Ranked Binary Pairs
Description
The function transforms a dataset with p
continuous predictors into \frac{p*(p-1)}{2}
binary predictors of ranked pairs
Usage
pair(data, yvar.name = NULL)
Arguments
data |
A dataset with |
yvar.name |
The column name of the independent variable in |
Value
A data frame with the transformed data. The dependent variable is moved to the last column of the data.
Note
The function is efficiently coded in C++.
Author(s)
Ruijie Yin (Maintainer,<ruijieyin428@gmail.com>), Chen Ye and Min Lu
References
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
Examples
data(tnbc)
datp <- pair(tnbc[101:105,c(1:5,337)],"subtype")
datp
datp <- pair(tnbc[105:110,1:5])
datp
[Package ranktreeEnsemble version 0.23 Index]