pred.opls: OPLS model predictions

Description Usage Arguments Details Value Author(s) References See Also

View source: R/pred.opls.R

Description

Calculation of OPLS model predictions using new data

Usage

1
pred.opls(opls_model, newdata)

Arguments

opls_model

OPLS model (regression of discriminant analysis) of class OPLS_MetaboMate.

newdata

NMR data matrix or dataframe with rows representing spectra and identical features in columns as data matrix used to calculate original OPLS model.

Details

Class predictions for discriminant analysis are not adjusted for unbalanced sample sizes and therefore, predictions can be biased towards the group with the largest number of samples. The list element t_orth_pca represent scores of the first principal component of a PCA model caclulated with all orthogonal components, therefore, summarises all orthogonal components into a single one. This can only be done if there are more than one orthogonal components in opls_modelel, otherwise this list element is NULL.

Value

Returned is a list with the following elements:

Y_predicted

Class or numeric outcome predictions for discriminant analysis or regression, repspectively.

t_pred

Predicted OPLS model scores for predictive component(s).

t_orth

Predicted OPLS model scores for orthogonal component(s).

t_orth_pca

Scores of a PCA model (first component) calculated using all predicted OPLS orthogonal component scores - only done when there are more than one orthogonal components in opls_model.

Author(s)

Torben Kimhofer tkimhofer@gmail.com

References

Trygg J. and Wold, S. (2002) Orthogonal projections to latent structures (O-PLS). Journal of Chemometrics, 16.3, 119-128.

Geladi, P and Kowalski, B.R. (1986), Partial least squares and regression: a tutorial. Analytica Chimica Acta, 185, 1-17.

See Also

opls


kimsche/MetaboMate documentation built on Aug. 8, 2020, 1:14 a.m.