Learn R Programming

EMSC (version 0.7)

EMSC_model: Model object for extended multiplicative signal correction (EMSC)

Description

Sets up an EMSC model to be applied to one or more set of spectra.

Usage

EMSC_model(x, reference = NA, degree = 2, interferent = NULL,
  constituent = NULL, weights = NULL, rep_corr = NULL)

Arguments

x
numeric vector containing abcissas of spectra to be corrected, reference spectrum with/without names or matrix to be corrected.
reference
numeric vector containing the reference spectrum.
degree
integer giving the polynomial degree of the baseline; 0 or higher, default = 2.
interferent
numeric vector containing a spectral component to remove.
constituent
numeric vector containing a spectral component to include.
weights
numeric vector of abcissas weights.
rep_corr
proportion of variance or number of subspace components in replicate space (not implemented yet).

Value

  • An EMSC model is returned containing all parameters.

See Also

EMSC