EMSC_model {EMSC} | R Documentation |
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,
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
[Package
EMSC version 0.9.4
Index]