EMSC_model: Model object for extended multiplicative signal correction...

Description Usage Arguments Value See Also

View source: R/EMSC.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
EMSC_model(
  x,
  reference = NA,
  degree = 2,
  interferent = NULL,
  constituent = NULL,
  weights = NULL,
  replicates = NULL,
  rep_corr = 0.9
)

Arguments

x

numeric vector containing abcissas of spectra to be corrected or matrix to be corrected with/without names colnames.

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.

replicates

optional vector which identifies replicates. Default = NULL, meaning no replicate correctio will be performed.

rep_corr

proportion of variance or number of subspace components in replicate space (default = 0.9).

Value

An EMSC model is returned containing all parameters.

See Also

EMSC predict.EMSC plot.EMSC


EMSC documentation built on Sept. 21, 2021, 1:06 a.m.