Description Usage Arguments Details Value See Also
View source: R/estimate_baseline_noise.R
estimateBaselineNoise
returns an EIC with additional vectors containing the estimated baseline at each point, the estimated noise level, and a smoothed EIC.
1 | estimateBaselineNoise(eic, peakwidth)
|
eic |
data.frame A data frame with columns "i" and "rt" |
peakwidth |
integer A two number vector containing the min and max expected peakwidth. Used to determine the smoothing window. |
minslope.peak |
numeric The maximum slope a region may have to be considered a baseline region |
Baseline estimation is performed by excluding all smoothed regions with a slope less than minslope.peak
and interpolating the remaining "baseline" regions.
Local noise estimation is performed by taking the standard deviation of the difference between the smoothed and the unsmoothed EICs.
The original data.frame with additional columns i.sg - the smoothed EIC, baseline.region - 0 for peak regions, 1 for baseline regions, baseline - the estimated baseline intensity at that point, noise.sd - the estimated noise level at that point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.