Model validation using Y-permutations

opls_perm(smod, n = 10, plot = TRUE, mc = FALSE)

Arguments

smod

OPLS model of the package metabom8

n,

num Number of permutations

plot

logical, indicating if results should be visualised

mc

logical, indicating if tasked should be parallelised using multiple cores

Value

data.frame with perutation indices

NA

See also

Other NMR ++: .hotellingsT2(), cvanova(), es_cdelta(), minmax(), pca(), plotscores(), pqn(), predict_opls(), scRange()

Author

Torben Kimhofer torben.kimhofer@murdoch.edu.au

Torben Kimhofer torben.kimhofer@murdoch.edu.au

Examples

data(covid) model=opls(X, Y=an$type)
#> Performing discriminant analysis.
#> Error in .checkDimXY(X, y_check[[1]]): Error: Dimensions of input X and Y do not match.
perm=opls_perm(model)
#> Error in nrow(smod@summary): object 'model' not found