xpredict | R Documentation |
Given two matrices, train the model on the first, apply to the second
xpredict(x, y, x.response, y.response, nvar = NULL, cleanx = FALSE,
cleany = FALSE, cutoff.method = "MaxProdSpSe", return.list = FALSE,
rf = NULL)
x , y |
data matrix, rows=variables, cols=samples. row names matter |
x.response , y.response |
vector of responses |
nvar |
If not NULL, build a secondary model with nvar variables |
cleanx |
drop samples from x if they are absent in y |
cleany |
drop samples from y if they are absent in x |
cutoff.method |
See "methods" from optimal.cutpoints |
return.list |
if TRUE, returns a list with all additional information rather than a data frame |
rf |
if rf model provided, it will be used instead of creating a new one |
rep |
number of replicates for each number of variables |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.