Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getResid

For data correction, fits a model (but ignores plotting commands) in order to obtain the SVD of the residuals, which then can be used in data-correction.


Description

For data correction, fits a model exactly as does fitModel (but ignores plotting commands) in order to obtain the SVD of the residuals. These residuals can then be subtracted away from the original data to some extent with the preProcess function.

Usage

getResid(data, modspec=list(), datasetind = vector(),
     modeldiffs = list(), opt = opt() )

Arguments

data

As in the fitModel function

modspec

As in the fitModel function

datasetind

As in the fitModel function

modeldiffs

As in the fitModel function

opt

As in the fitModel function

Value

list containing the first five left and right singular vectors of the residuals, as well as the first five singular values. A weight matrix (if used) is also included in this list.

See Also


TIMP

Fitting Separable Nonlinear Models in Spectroscopy and Microscopy

v1.13.2
GPL (>= 2)
Authors
Katharine M. Mullen, Joris J. Snellenburg, Sergey P. Laptenok, David Nicolaides, Ivo H.M. van Stokkum
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.