Re: [R] constrainOptim

2009-01-28 Thread Ben Bolker
June Wong hotmail.com> writes: > > > Dear R helpers > > I have a question regarding the constrainOptim. > I'm coding the nested logit and would like to set a bound of rho to (0,1] as an extreme value distribution > where rho = exp(lambda)/1+exp(lambda) > I wonder if I can do that directly in

Re: [R] constrainOptim

2009-01-28 Thread Ravi Varadhan
ary 28, 2009 11:57 am Subject: [R] constrainOptim To: r-help@r-project.org > Dear R helpers > > I have a question regarding the constrainOptim. > I'm coding the nested logit and would like to set a bound of rho to > (0,1] as an extreme value distribution where rho = ex

[R] constrainOptim

2009-01-28 Thread June Wong
Dear R helpers I have a question regarding the constrainOptim. I'm coding the nested logit and would like to set a bound of rho to (0,1] as an extreme value distribution where rho = exp(lambda)/1+exp(lambda) I wonder if I can do that directly in optim (say rho > 0 & <= 1) or need to use const