The function uses a combination of the area under the curve between valleys and the peak height to detect the main peak.
findMainPeak(x, ab, mStart, withHeight = FALSE, prevPeak = NULL)(list) with the two numeric values peakInd, modEst, and a density list
(numeric) vector of data points
(numeric) vector specifying the lower and higher truncation limit of density estimation
(integer) specifying the width of the smoothing kernel(s) used for density estimation
(logical) specifying if only the area under the curve (FALSE) or a combination of AUC and peak height (TRUE) should be used to detect the main peak
(numeric) specifying the modEst of the previously estimated peak
Tatjana Ammer tatjana.ammer@roche.com