Learn R Programming

Morpho (version 2.12)

plsCoVar: Get the shape changes from pls2B associated with each latent variable

Description

Get the shape changes from pls2B associated with each latent variable

Usage

plsCoVar(pls, i, sdx = 3, sdy = 3)

Value

x

matrix/array with reconstructed x

y

matrix/array with reconstructed y, with each prediction named accordingly: e.g. neg_x_sd_3 means the prediction of x at a score of -3*sd(Xscores)

.

Arguments

pls

output of pls2B

i

integer: which latent variable to show. E.g. i=3 will show the changes associated with the 3rd latent variable.

sdx

standard deviation on the xscores. sdx=3 will show the effecs of -3sd vs +3sd

sdy

standard deviation on the yscores. sdy=3 will show the effecs of -3sd vs +3sd

See Also

pls2B, getPLSfromScores, predictPLSfromScores, getPLSscores, predictPLSfromData,svd, plsCoVarCommonShape