msc.Rd
Performs multiplicative scatter/signal correction on a data matrix.
msc(X, reference = NULL) # S3 method for msc predict(object, newdata, ...) # S3 method for msc makepredictcall(var, call)
X, newdata | numeric matrices. The data to scatter correct. |
---|---|
reference | numeric vector. Spectre to use as reference. If
|
object | an object inheriting from class |
var | A variable. |
call | The term in the formula, as a call. |
... | other arguments. Currently ignored. |
makepredictcall.msc
is an internal utility function; it is not
meant for interactive use. See makepredictcall
for details.
Both msc
and predict.msc
return a multiplicative scatter
corrected matrix, with attribute "reference"
the vector used as
reference spectre. The matrix is given class c("msc",
"matrix")
. For predict.msc
, the "reference"
attribute of object
is used as reference spectre.
Martens, H., Næs, T. (1989) Multivariate calibration. Chichester: Wiley.