View source: R/diss_projection.R
| diss_pls | R Documentation |
Creates a configuration object for computing dissimilarity based on
Mahalanobis distance in PLS score space. Requires Yr in
dissimilarity().
diss_pls(
ncomp = ncomp_by_opc(),
method = c("pls", "mpls"),
scale = FALSE,
return_projection = FALSE
)
ncomp |
Component selection method. Can be:
|
method |
Character. PLS algorithm: |
scale |
Logical. Scale data? Default |
return_projection |
Logical. Return projection object?
Default |
An object of class c("diss_pls", "diss_method").
Component selection: ncomp_by_var, ncomp_by_cumvar,
ncomp_by_opc, ncomp_fixed
Other dissimilarity methods: diss_pca,
diss_correlation, diss_euclidean,
diss_cosine, diss_mahalanobis
# Default: OPC optimization (recommended)
diss_pls()
# Fixed number of components
diss_pls(ncomp = 15)
# Custom opc settings
diss_pls(ncomp = ncomp_by_opc(max_ncomp = 50))
# Modified PLS
diss_pls(ncomp = 10, method = "mpls")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.