Re: [R] Problems if optimization

2010-03-26 Thread Berend Hasselman
Francisco Silva wrote: > > > I am a begginer in R and i am trying to find the parameters of one > likelihood function, but when i otimize it, always appers a error or > advertisement and the solve does not occur. > The problem seems like that: > > "lMix<-function(pars,y){ > > Shouldn't

[R] Problems if optimization

2010-03-26 Thread Francisco Silva
What's up fellows... I am a begginer in R and i am trying to find the parameters of one likelihood function, but when i otimize it, always appers a error or advertisement and the solve does not occur. The problem seems like that: "lMix<-function(pars,y){ beta1<-pars[1] beta2<-pars[2] beta3<-pars