Skip to content
Prev 278852 / 398502 Next

Parameters setting in functions optimization

I also think your last write-up for LogLiketot (using a single
argument "par") is the correct approach if you want to feed it to
optim().

So now you have a problem with  log(LikeGi(l, i, par[1], par[2])) for
some values of par[1] and par[2].

Where is LikeGi coming from? a package or is it your own function?

You could add some print statements (if you are familiar with
"browser()" it is even better) so you may see what values of "par" are
causing trouble.


On Tue, Nov 29, 2011 at 1:15 PM, Diane Bailleul
<diane.bailleul at u-psud.fr> wrote: