Usage
rda(x, y, xnew=NULL, ynew=NULL, prior=table(y)/length(y),
alpha=seq(0, 0.99, len=10), delta=seq(0, 3, len=10),
regularization="S", genelist=FALSE, trace=FALSE)Arguments
x
The training data set. It must be a numerical matrix.
The columns are sample observations and the rows are variables. For
example, in the microarray settings, "x" is the gene expression
matrix with the columns corresponding to the arrays while the rows
co
y
The class labels of the training samples (columns) in 'x', which
must be consecutive integers starting from 1.
xnew
The test data matrix. It has the same structure as 'x'.
The columns are samples and the rows are variables.
ynew
The class labels of the test samples. Same requirement as for
'y'.
prior
A numerical vector that gives the prior proportion of
each class. Its length is equal to the number of classes. If not
supplied, it is set to the sample proportions by default.
alpha
A numerical vector of the regularization values for alpha.
A single value is allowed. If not supplied, the default one will be used.
delta
A numerical vector of the threshold values for delta.
A single value is allowed. If not supplied, the default one will be used.
regularization
Define which regularization method to use. 'S'
stands for regularization on covariance; 'R' stands for regularization on
correlation. 'S' is the default option.
genelist
A logical flag. If 'TRUE', then the function will return
an array of indices indicating the genes remained for each (alpha, delta)
combination. By default, this is set to 'FALSE'.
trace
A logical flag. If 'TRUE', then the intermediate
computation steps will be displayed. Caution: this would lead to a
very long output display. By default, this is set to 'FALSE'.