Re: [R] constrOptim and problem with derivative

2011-12-20 Thread Berend Hasselman
Berend Hasselman wrote > > > Michael Griffiths wrote >> >> Dear List, >> >> I am using constrOptim to solve the following >> >> fr1 <- function(x) { >> b0 <- x[1] >> b1 <- x[2] >> ((1/(1+exp(-b0+b1))+(1/(1+exp(-b0)))+(1/(1+exp(-b0-b1)/3 >> } >> >> As you can see, my objective

Re: [R] constrOptim and problem with derivative

2011-12-20 Thread Berend Hasselman
Michael Griffiths wrote > > Dear List, > > I am using constrOptim to solve the following > > fr1 <- function(x) { > b0 <- x[1] > b1 <- x[2] > ((1/(1+exp(-b0+b1))+(1/(1+exp(-b0)))+(1/(1+exp(-b0-b1)/3 > } > > As you can see, my objective function is > ((1/(1+exp(-b0+b1))+(1/(1+ex

[R] constrOptim and problem with derivative

2011-12-20 Thread Michael Griffiths
Dear List, I am using constrOptim to solve the following fr1 <- function(x) { b0 <- x[1] b1 <- x[2] ((1/(1+exp(-b0+b1))+(1/(1+exp(-b0)))+(1/(1+exp(-b0-b1)/3 } As you can see, my objective function is ((1/(1+exp(-b0+b1))+(1/(1+exp(-b0)))+(1/(1+exp(-b0-b1)/3 and I would like to