get_scores: Get axis scores from models created by 'ropls::opls()'...

View source: R/ropls_helpers.R

get_scoresR Documentation

Get axis scores from models created by ropls::opls() Returns a dataframe of PC axis scores for PCA, predictive axis scores for PLS and PLS-DA, and predictive and orthogonal axis scores for OPLS and OPLS-DA models.

Description

Get axis scores from models created by ropls::opls() Returns a dataframe of PC axis scores for PCA, predictive axis scores for PLS and PLS-DA, and predictive and orthogonal axis scores for OPLS and OPLS-DA models.

Usage

get_scores(model)

Arguments

model

a model object created by opls()

Value

a dataframe

Examples

## Not run: 
pls.model <- opls(X, Y)
get_scores(pls.model)

## End(Not run)

Aariq/chemhelper documentation built on Feb. 24, 2023, 8:16 p.m.