Pcrengine: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Chuck |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
===Purpose=== | ===Purpose=== | ||
Principal components regression computational engine. | Principal components regression computational engine. | ||
===Synopsis=== | ===Synopsis=== | ||
:[reg,ssq,loads,scores,pcassq] = pcrengine(x,y,''ncomp,options'') | :[reg,ssq,loads,scores,pcassq] = pcrengine(x,y,''ncomp,options'') | ||
===Description=== | ===Description=== | ||
PCRENGINE calculates the basic elements of a PCR model (see PCR). | |||
Inputs | PCRENGINE calculates the basic elements of a PCR model (see PCR), given a matching set of x-block and y-block data belonging to the same set of samples. | ||
Optional | |||
Outputs | ====Inputs==== | ||
* '''x''' = the x-block data, and | |||
* '''y''' = the corresponding y-block data. | |||
====Optional Inputs==== | |||
* '''ncomp''' = the number of components to to be calculated (positive integer scalar). If the number of components is not specified, the routine will return components up to the rank of the x-block. | |||
* '''options''', which is discussed below. | |||
====Outputs==== | |||
* '''reg''' = the matrix of regression vectors | |||
* '''ssq''' = the sum of squares captured ssq | |||
* '''loads''' = x-block loadings | |||
* '''scores''' = x-block scores | |||
* '''pcassq''' = the PCA sum-of-squares table | |||
===Options=== | ===Options=== | ||
* display: [ 'off' | {'on'} ], governs level of display to command window, | '''options''' = a structure array with the following fields: | ||
* sortorder: [ {'x'} | 'y' ], governs order of factors in outputs. 'x' is standard PCR sort order (ordered in terms of X block variance captured). 'y' is Correlation PCR sort order (ordered in terms of Y block variance captured). | |||
* '''display''': [ 'off' | {'on'} ], governs level of display to command window, | |||
* '''sortorder''': [ {'x'} | 'y' ], governs order of factors in outputs. 'x' is standard PCR sort order (ordered in terms of X block variance captured). 'y' is Correlation PCR sort order (ordered in terms of Y block variance captured). | |||
The default options can be retreived using: options = pcrengine('options');. | The default options can be retreived using: options = pcrengine('options');. | ||
===See Also=== | ===See Also=== | ||
[[analysis]], [[pcr]], [[pls]] | [[analysis]], [[pcr]], [[pls]] |
Latest revision as of 14:49, 8 October 2008
Purpose
Principal components regression computational engine.
Synopsis
- [reg,ssq,loads,scores,pcassq] = pcrengine(x,y,ncomp,options)
Description
PCRENGINE calculates the basic elements of a PCR model (see PCR), given a matching set of x-block and y-block data belonging to the same set of samples.
Inputs
- x = the x-block data, and
- y = the corresponding y-block data.
Optional Inputs
- ncomp = the number of components to to be calculated (positive integer scalar). If the number of components is not specified, the routine will return components up to the rank of the x-block.
- options, which is discussed below.
Outputs
- reg = the matrix of regression vectors
- ssq = the sum of squares captured ssq
- loads = x-block loadings
- scores = x-block scores
- pcassq = the PCA sum-of-squares table
Options
options = a structure array with the following fields:
- display: [ 'off' | {'on'} ], governs level of display to command window,
- sortorder: [ {'x'} | 'y' ], governs order of factors in outputs. 'x' is standard PCR sort order (ordered in terms of X block variance captured). 'y' is Correlation PCR sort order (ordered in terms of Y block variance captured).
The default options can be retreived using: options = pcrengine('options');.