Hi mesude, Achim's example seems particularly clear. Install the "betareg" and "flexmix" packages. I obtain a reasonable looking result for alpha and beta for a simulated dataset very similar to yours.
> a Comp.1 Comp.2 10.0674445 0.6452801 > b Comp.1 Comp.2 2.830934 0.769768 Jim On Tue, Dec 29, 2015 at 6:40 AM, mesude bayrakci <mesudebayra...@gmail.com> wrote: > Hello, > > I have data; one column and 310 rows. When I plot the histogram, it has two > peaks; please see the attachment. I would like to find appropriate > distribution that fits the data. I tried to mixtools in R, but it did not > fit well. > > I want to mix two beta distribution. I found that there is betareg package > in R but the shape1,shape2 were known or there were two different data in > the all examples. > > I do not know where to start. How can I use betamix in R to fit the data? > Any hint? > > I really appreciate. > > > Thank you > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.