Plsrsgn

From Eigenvector Research Documentation Wiki
Revision as of 21:32, 8 October 2008 by imported>Chuck
Jump to navigation Jump to search

Purpose

Generates a matrix of PLS models for MSPC.

Synopsis

coeff = plsrsgn(data,lv,out)

Description

Generates a matrix used to calculate residuals from a single data block using partial least squares regression models.

For a given matrix of data data, this function calculates a partial least squares (PLS) regression model of each variable in the data, using all of the remaining variables in the data. The PLS model regression vectors are collected in an output matrix coeff, which can be used like the I=PP' matrix in PCA.

Multiplying a new data matrix by the matrix coeff yields a matrix whose values are the difference between the new data and it's prediction based on the PLS regressions created by plsrsgn.

Inputs

  • data = matrix of input data
  • lv = maximum number of PLS latent variables to calculate

Optional Inputs

  • out = allows the user to suppress intermediate output [out=0 suppresses output]

Outputs

  • coeff = matrix of PLS regression vectors

See Also

plsrsgcv, replace