Learn R Programming

mdatools (version 0.9.1)

pls.cal: PLS model calibration

Description

Calibrates (builds) a PLS model for given data and parameters

Usage

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

Arguments

x

a matrix with x values (predictors)

y

a matrix with y values (responses)

ncomp

number of components to calculate

center

logical, do mean centering or not

scale

logical, do standardization or not

method

algorithm for computing PLS model (only 'simpls' is supported so far)

cv

logical, does calibration for cross-validation or not

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.

light

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

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 RMSECV and 'wold' for Wold's rule.)

Value

model an object with calibrated PLS model