R/mvr.R
mvr.RdSimplified version of pls::mvr, using computationally faster versions of PCA and PLS.
Matrix (dense or sparse).
Matrix.
Integer.
Character.
Logic.
Not used; kept for backward compatibility.
Logic.
Logic. Whether to return dimension reduction information from PCA or PLS. Disable to save memory.
Integer vector. Numbers of components for which to return
regression coefficients. The default returns all, 1:ncomp. Use
keepComps = ncomp to return only the final coefficients and save memory.
A list containing
Array of regression coefficients with dimensions
features x responses x length(keepComps). The third dimension is named
"<k> comps", so coefficients[, , paste(ncomp, "comps")] selects the
coefficients for ncomp components.
A sparse X (for example a dgCMatrix) stays sparse: centring and
scaling are applied implicitly, without a dense copy of X. PLS uses the
kernel algorithm of pls::kernelpls.fit.