Osccalc: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
imported>Scott
Line 1: Line 1:
===Purpose===
===Purpose===


Line 10: Line 9:
===Description===
===Description===


Inputs are the matrix of scaled predictor variables x, scaled predicted variable(s) y, and the number of OSC components nocomp.
Inputs are the matrix of scaled predictor variables <tt>x</tt>, scaled predicted variable(s) <tt>y</tt>, and the number of OSC components <tt>nocomp</tt>.


Optional inputs are the maximum number of iterations used in attempting to maximize the variance captured by othogonal components iter {default = 0}, and the tolerance on percent of x variance to consider when forming the final w vector tol {default = 99.9}.
Optional inputs are the maximum number of iterations used in attempting to maximize the variance captured by othogonal components iter {default = 0}, and the tolerance on percent of x variance to consider when forming the final w vector <tt>tol</tt> {default = 99.9}.


Outputs are the OSC corrected predictor matrix nx, and the x-block weigths nw, loads np, and scores nt that were used in making the correction.
Outputs are the OSC corrected predictor matrix <tt>nx</tt>, and the x-block weigths <tt>nw<t/t>, loads <tt>np</tt>, and scores <tt>nt</tt> that were used in making the correction.


Once the calibration is done, new (scaled) X data can be corrected by newx = x - x\*nw\*inv(np'\*nw)\*np';. See OSCAPP.
Once the calibration is done, new (scaled) X data can be corrected by <tt>newx = x - x\*nw\*inv(np'\*nw)\*np';</tt>. See OSCAPP.


===See Also===
===See Also===


[[crossval]], [[oscapp]]
[[crossval]], [[oscapp]]

Revision as of 20:27, 7 October 2008

Purpose

Calculates orthogonal signal correction.

Synopsis

[nx,nw,np,nt] = osccalc(x,y,nocomp,iter,tol)

Description

Inputs are the matrix of scaled predictor variables x, scaled predicted variable(s) y, and the number of OSC components nocomp.

Optional inputs are the maximum number of iterations used in attempting to maximize the variance captured by othogonal components iter {default = 0}, and the tolerance on percent of x variance to consider when forming the final w vector tol {default = 99.9}.

Outputs are the OSC corrected predictor matrix nx, and the x-block weigths nw<t/t>, loads np, and scores nt that were used in making the correction.

Once the calibration is done, new (scaled) X data can be corrected by newx = x - x\*nw\*inv(np'\*nw)\*np';. See OSCAPP.

See Also

crossval, oscapp