pair: 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)
Value
A data frame with the transformed data. The dependent variable is moved to the last column of the data.
Arguments
data
A dataset with \(p\) continuous variables or with \(p+1\) variables including a dependent variable.
yvar.name
The column name of the independent variable in data. By default, there is no dependent variable.
Author
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