[R] Fitting data to gaussian distributions

From: Luis Gracia <lug2002_at_med.cornell.edu>
Date: Fri 26 Aug 2005 - 10:31:30 EST


Hi!

I need to fit a data that shows up as two gaussians partially superimposed to the corresponding gaussian distributions, i.e.

data=c(rnorm(100,5,2),rnorm(100,-6,1))

I figured it out how to do it with mle or fitdistr when only one gaussian is necessary, but not with two or more. Is there a function in R to do this?

Thank you very much in advance,

Luis



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Aug 26 10:37:48 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:56 EST