Re: [R] MLE with parameters restricted to a defined range using bbmle

2014-12-10 Thread Bernardo Santos
Thanks, Rolf and Ben, Both solutions worked, but I finished by contraining parameters values using optim(). Best,Bernardo Niebuhr Em Segunda-feira, 8 de Dezembro de 2014 18:36, Rolf Turner escreveu: I know nothing about the bbmle package and its mle2() function, but it is a gene

Re: [R] MLE with parameters restricted to a defined range using bbmle

2014-12-08 Thread Ben Bolker
Rolf Turner auckland.ac.nz> writes: > > > I know nothing about the bbmle package and its mle2() function, but it > is a general truth that if you need to constrain a parameter to be > positive in an optimisation procedure a simple and effective approach is > to reparameterize using exp().

Re: [R] MLE with parameters restricted to a defined range using bbmle

2014-12-08 Thread Rolf Turner
I know nothing about the bbmle package and its mle2() function, but it is a general truth that if you need to constrain a parameter to be positive in an optimisation procedure a simple and effective approach is to reparameterize using exp(). I.e. represent xmin as exp(lxmin) (say) and use l