Function for computing standard SO-PLS based on the interface of the pls
package.
sopls(
formula,
ncomp,
max_comps = min(sum(ncomp), 20),
data,
subset,
na.action,
scale = FALSE,
validation = c("none", "CV", "LOO"),
sequential = FALSE,
segments = 10,
sel.comp = "opt",
progress = TRUE,
...
)
Model formula accepting a single response (block) and predictor block names separated by + signs.
Numeric vector of components per block or scalar of overall maximum components.
Maximum total number of components from all blocks combined (<= sum(ncomp)).
The data set to analyse.
Expression for subsetting the data before modelling.
How to handle NAs (no action implemented).
Logical indicating if variables should be scaled.
Optional cross-validation strategy "CV" or "LOO".
Logical indicating if optimal components are chosen sequentially or globally.
Optional number of segments or list of segments for cross-validation. (See [pls::cvsegments()]
).
Character indicating if sequential optimal number of components should be chosen as minimum RMSECV ('opt', default) or by Chi-square test ('chi').
Logical indicating if a progress bar should be displayed while cross-validating.
Additional arguments to underlying methods.
An sopls, mvr
object with scores, loadings, etc.
associated with printing (sopls_results
) and plotting methods (sopls_plots
).
SO-PLS is a method which handles two or more input blocks by sequentially performing PLS on blocks against a response and orthogonalising the remaining blocks on the extracted components. Component number optimisation can either be done globally (best combination across blocks) or sequentially (determine for one block, move to next, etc.).
J<U+00F8>rgensen K, Mevik BH, N<U+00E6>s T. Combining designed experiments with several blocks of spectroscopic data. Chemometr Intell Lab Syst. 2007;88(2): 154<U+2013>166.
SO-PLS result functions, sopls_results
, SO-PLS plotting functions, sopls_plots
, SO-PLS M<U+00E5>ge plot, maage
, and SO-PLS path-modelling, SO_TDI
.
Overviews of available methods, multiblock
, and methods organised by main structure: basic
, unsupervised
, asca
, supervised
and complex
.
# NOT RUN {
data(potato)
so <- sopls(Sensory ~ Chemical + Compression, data=potato, ncomp=c(10,10),
max_comps=10, validation="CV", segments=10)
summary(so)
# }
Run the code above in your browser using DataLab