Skip to content
Prev 319230 / 398506 Next

Distribution plus background fitting

On Mar 11, 2013, at 3:40 AM, Richard Longland wrote:

            
When you say "each peak" it suggests either that you know where peaks should be on the basis of theory or your eyeball-brain interaction is producing a filtered assessment of where your wetware peak detectors are registering a probable peak. Yu are implicitly creating some sort of distribution for the major peaks and then looking within the shoulders of those peaks for secondary peaks. (My detectors suggest perhaps as many 8 peaks but human beings are notorious for finding patterns in noise.) 

You have a mixture distribution and one possibility is that these are mixtures of normal distributions (aka Gaussians) with different mixing proportions. I do not think the fitdistrplus functions are designed for that task. When I go looking for packages and functions to do a task I use the sos package and the `findFn` function therein:

install.packages("sos")
library(sos)
findFn("mixture of normals")

The function I see in that list of 93 candidates that seems most likely to address my understanding of the problem is:

http://finzi.psych.upenn.edu/R/library/mixtools/html/normalmixEM.html

But it also looks as though there are other candidates. I would not think that binning of the data should be needed. Leaving it in its original state should allow the proper estimation of the data features by algorithms, unless requested by package authors in their vignettes or help pages.