View source: R/PLSDA_from_file_and_predict_second_dataset.R
PLSDA_from_file_and_predict_second_dataset | R Documentation |
Builds PLS model from training dataset and Writes out loadings. Predicts classifications of test dataset and returns dataframe of predictions
PLSDA_from_file_and_predict_second_dataset(file, file2, sample.names,
response.values, sample.names2 = NULL, response.values2 = NULL,
comps = 3, scale = F, ind.names = F)
file |
file for X matirx |
file2 |
file for test data matrix |
sample.names |
Vector of sample names in X matrix |
response.values |
Vector of response values in same order matching sample.names |
sample.names2 |
Vector of sample names in 2nd dataset, if needed |
comps |
number of components to compute |
scale |
default=T |
ind.names |
Labels the samples, default =F |
response.values |
Vector of response values in same order matching sample.names2, if available |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.