quest | R Documentation |
Construct and apply the QuEST model with your own data
quest(x, y, newx = x, method = "linear", lower.thr = 0, n.gene = 0)
x |
A data matrix (row: samples, col: genes). |
y |
A vector of an environment in which the samples were collected. |
newx |
A data matrix (row: samples, col: genes). |
method |
A string to specify the method of regression for calculating R-squared values. "linear" (default), "quadratic" or "cubic" regression model can be specified. |
lower.thr |
The lower threshold of R-squared value to be used in QuEST model (default: 0). |
n.gene |
The number of candidate genes to be used in QuEST model (default: 30). |
A vector of the environment in which the samples of newx were collected
Takahiko Koizumi
data(Pinus) train <- q.clean(Pinus$train) test <- Pinus$test test <- test[, colnames(train)] target <- Pinus$target cor(target, quest(train, target, newx = test, method = "cubic"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.