lol.project.pls {lolR} | R Documentation |
Partial Least-Squares (PLS)
Description
A function for implementing the Partial Least-Squares (PLS) Algorithm.
Usage
lol.project.pls(X, Y, r, ...)
Arguments
X |
[n, d] the data with |
Y |
[n] the labels of the samples with |
r |
the rank of the projection. |
... |
trailing args. |
Value
A list containing the following:
A |
|
ylabs |
|
centroids |
|
priors |
|
Xr |
|
cr |
|
Details
For more details see the help vignette:
vignette("pls", package = "lolR")
Author(s)
Eric Bridgeford
Examples
library(lolR)
data <- lol.sims.rtrunk(n=200, d=30) # 200 examples of 30 dimensions
X <- data$X; Y <- data$Y
model <- lol.project.pls(X=X, Y=Y, r=5) # use pls to project into 5 dimensions
[Package lolR version 2.1 Index]