search for: llmix

Displaying 1 result from an estimated 1 matches for "llmix".

2010 Mar 26
1
Problems if optimization
...] beta5<-pars[5] alfa1<-pars[6] Fsp<-log(1/(1+exp(beta1*y[,10]+beta2*y[,3]+beta3*y[,3]+beta4*y[,5]+beta5*y[,6]+alfa1*y[,11]))) Frp<-log(1/(1+exp(beta1*y[,10]+beta2*y[,3]+beta3*y[,3]+beta4*y[,5]+beta5*y[,6]))) logl<- sum((y[,15]*Fsp)+(y[,19]*Frp)) return(-logl) } optim(c(1,1,1,1,1,1), llMix, y=Mix, method="CG") Erro em optim(c(1, 1, 1, 1, 1, 1), llMix, y = Mix, method = "CG") : Função não pode ser calculada nos parâmetros iniciais optimize(c(1,1,1,1,1,1),llMix,y=Mix, method="CG") Erro em min(interval) : invalid 'type' (closure) of argument optim...