Learn R Programming

mdatools (version 0.9.4)

plsda.cal: Calibrate PLS-DA model

Description

Calibrate PLS-DA model

Usage

plsda.cal(x, c, ncomp, center, scale, cv, method, light, alpha, coeffs.ci,
  coeffs.alpha, info, exclcols = NULL, exclrows = NULL, ncomp.selcrit,
  classname = NULL)

Arguments

x

matrix with predictors.

c

vector with reference class values.

ncomp

maximum number of components to calculate.

center

logical, center or not predictors and response values.

scale

logical, scale (standardize) or not predictors and response values.

cv

number of segments for cross-validation (if cv = 1, full cross-validation will be used).

method

method for calculating PLS model.

light

run normal or light (faster) version of PLS without calculationg some performance statistics.

alpha

significance level for calculating statistical limits for residuals.

coeffs.ci

method to calculate p-values and confidence intervals for regression coefficients (so far only jack-knifing is availavle: ='jk').

coeffs.alpha

significance level for calculating confidence intervals for regression coefficients.

info

short text with information about the model.

exclcols

columns of x to be excluded from calculations (numbers, names or vector with logical values)

exclrows

rows to be excluded from calculations (numbers, names or vector with logical values)

ncomp.selcrit

criterion for selecting optimal number of components ('min' for first local minimum of

classname

name of class in case of one-class PLS-DA model