Modlpred: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
 
imported>Jeremy
(Importing text file)
Line 1: Line 1:
===Purpose===
===Purpose===
Predictions based on models created by ANALYSIS.
Predictions based on models created by ANALYSIS.
===Synopsis===
===Synopsis===
:[yprdn,resn,tsqn,scoresn] = modlpred(newx,modl,''plots'')
:[yprdn,resn,tsqn,scoresn] = modlpred(newx,modl,''plots'')
:[yprdn,resn,scoresn] = modlpred(newx,bin,p,q,w,lv,''plots'');
:[yprdn,resn,scoresn] = modlpred(newx,bin,p,q,w,lv,''plots'');
===Description===
===Description===
MODLPRED makes Y-block predictions based on an X-block and an existing regression model created using ANALYSIS.
MODLPRED makes Y-block predictions based on an X-block and an existing regression model created using ANALYSIS.
Inputs are the new X-block data newx in the units of the original data, the structure variable that contains the regression model modl, and an optional variable ''plots'' which suppresses the plots when set to 0 {default = 1}.
Inputs are the new X-block data newx in the units of the original data, the structure variable that contains the regression model modl, and an optional variable ''plots'' which suppresses the plots when set to 0 {default = 1}.
Outputs are the Y-block predictions yprdn, residuals resn, T<sup>2</sup> values tsqn, and scores scoresn.
Outputs are the Y-block predictions yprdn, residuals resn, T<sup>2</sup> values tsqn, and scores scoresn.
MODLPRED can also make predictions based on an existing PLS model constructed with the NIPALS algorithm from the PLS function. Inputs are the matrix of predictor variables newx, the PLS model inner-relation coefficients bin, the x-block loadings p, the y-block loadings q, the x-block weights w, the number of latent variables to use in prediction lv, and an optional variable ''plots'' which suppresses the plots when set to 0 {default = 1}.
MODLPRED can also make predictions based on an existing PLS model constructed with the NIPALS algorithm from the PLS function. Inputs are the matrix of predictor variables newx, the PLS model inner-relation coefficients bin, the x-block loadings p, the y-block loadings q, the x-block weights w, the number of latent variables to use in prediction lv, and an optional variable ''plots'' which suppresses the plots when set to 0 {default = 1}.
Outputs are the Y-block predictions yprdn, residuals resn, and the scores scoresn. Note that T<sup>2</sup> are not calculated.
Outputs are the Y-block predictions yprdn, residuals resn, and the scores scoresn. Note that T<sup>2</sup> are not calculated.
===See Also===
===See Also===
[[analysis]], [[explode]], [[modlrder]], [[pca]], [[pcapro]], [[pcr]], [[pls]]
[[analysis]], [[explode]], [[modlrder]], [[pca]], [[pcapro]], [[pcr]], [[pls]]

Revision as of 14:25, 3 September 2008

Purpose

Predictions based on models created by ANALYSIS.

Synopsis

[yprdn,resn,tsqn,scoresn] = modlpred(newx,modl,plots)
[yprdn,resn,scoresn] = modlpred(newx,bin,p,q,w,lv,plots);

Description

MODLPRED makes Y-block predictions based on an X-block and an existing regression model created using ANALYSIS.

Inputs are the new X-block data newx in the units of the original data, the structure variable that contains the regression model modl, and an optional variable plots which suppresses the plots when set to 0 {default = 1}.

Outputs are the Y-block predictions yprdn, residuals resn, T2 values tsqn, and scores scoresn.

MODLPRED can also make predictions based on an existing PLS model constructed with the NIPALS algorithm from the PLS function. Inputs are the matrix of predictor variables newx, the PLS model inner-relation coefficients bin, the x-block loadings p, the y-block loadings q, the x-block weights w, the number of latent variables to use in prediction lv, and an optional variable plots which suppresses the plots when set to 0 {default = 1}.

Outputs are the Y-block predictions yprdn, residuals resn, and the scores scoresn. Note that T2 are not calculated.

See Also

analysis, explode, modlrder, pca, pcapro, pcr, pls