Re: [R] Using betareg package to fit beta mixture with given initial parameters

2017-03-24 Thread Michael Dayan
Dear Achim, Thank you for your help, this is exactly what I needed. Your help and didactic example is very much appreciated. Best wishes, Michael On Wed, Mar 22, 2017 at 11:34 AM, Achim Zeileis wrote: > On Wed, 22 Mar 2017, Michael Dayan wrote: > > The method of setting the initial values giv

Re: [R] Using betareg package to fit beta mixture with given initial parameters

2017-03-22 Thread Santiago Bueno
Tree dbh haut Btot 1 35.00 18.90 0.357 2 25.00 16.60 0.214 3 23.00 19.50 0.173 4 13.50 15.60 0.060 5 20.00 18.80 0.134 6 23.00 17.40 0.137 7 29.00 19.90 0.428 8 17.60 18.20 0.100 9 31.00 25.30 0.514 10 26.00 23.50 0.273 11 13.00 13.00 0.031 12 32.00 20.70 0.356 13 28.00 28.50 0.349 14 15.00 18.20 0

Re: [R] Using betareg package to fit beta mixture with given initial parameters

2017-03-22 Thread Achim Zeileis
On Wed, 22 Mar 2017, Michael Dayan wrote: The method of setting the initial values given lambda, alpha1, etc. should not depend on the exact values of lambda, alpha1, etc. in my situation, i.e. it does not depend on my data. Presently, flexmix() that betamix() is built on cannot take the param

Re: [R] Using betareg package to fit beta mixture with given initial parameters

2017-03-21 Thread Michael Dayan
The method of setting the initial values given lambda, alpha1, etc. should not depend on the exact values of lambda, alpha1, etc. in my situation, i.e. it does not depend on my data. On Mar 22, 2017 04:30, "David Winsemius" wrote: > On Mar 21, 2017, at 5:04 AM, Michael Dayan wrote: > > Hi, > >

Re: [R] Using betareg package to fit beta mixture with given initial parameters

2017-03-21 Thread David Winsemius
> On Mar 21, 2017, at 5:04 AM, Michael Dayan wrote: > > Hi, > > I would like to fit a mixture of two beta distributions with parameters > (alpha1, beta1) for the first component, (alpha2, beta2) for the second > component, and lambda for the mixing parameter. I also would like to set a > maximu

[R] Using betareg package to fit beta mixture with given initial parameters

2017-03-21 Thread Michael Dayan
Hi, I would like to fit a mixture of two beta distributions with parameters (alpha1, beta1) for the first component, (alpha2, beta2) for the second component, and lambda for the mixing parameter. I also would like to set a maximum of 200 iterations and a tolerance of 1e-08. My question is: how to