Skip to content
Prev 33615 / 398506 Next

optim with contraints

On Saturday 21 June 2003 18:20, Spencer Graves wrote:
Spencer, 

thanks for your comments.  What you say is surely appropriate in most
circumstances.  In fact, the original parametrisation of the problem was
unconstrained! and, yes, the function to be optimised is of type 
     deviance =  (-2)*log(likelihood),
However, in this case, there are reasons to reparametrise in this form. 
The essence is that near zero the unconstrained parameter has problems.
I can provide a detailed theoretical explanation of above statements,
but only if you really want it, and surely is not of interest to the whole
R-help list.
(On Monday) I shall see what I manage to understand: my R programming skill is 
definetely not at "R developer" level.  How do I step through the code for "optim" 
line by line?  its core statement is  
     res <- .Internal(optim(par, fn1, gr1, method, con, lower,  upper))
and I do not know how to access the .Internal; probably these questions already 
tell you a lot abut my skill..

I am aware of the fact that R is a volunteer project -- in fact a most appreciated 
and fundamental project of the statistical community.  In writing my earlier
message, I did intended to imply that some member of R-core had to rush looking
at my problem.
 
With best wishes, 

Adelchi