Re: [R] Maximization of a loglikelihood function with double sums

From: Ravi Varadhan <>
Date: Sat, 14 May 2011 05:27:34 -0400

It should not be very hard to find information on optimization. Have you tried any of the search facilities in R?

?optim # comes with `base'
library(optimx) # you need to install this first from CRAN


From: [] On Behalf Of Klaus Langohr [] Sent: Thursday, May 12, 2011 3:29 PM
Subject: [R] Maximization of a loglikelihood function with double sums

Dear R experts,
Attached you can find the expression of a loglikelihood function which I would like to maximize in R.
So far, I have done maximization with the combined use of the mathematical programming language AMPL ( and the solver SNOPT ( With these tools, maximization is carried out in a few seconds. I wonder if that could possible with R, too. Therefore, I would highly appreciate if any R user with experience in maximization could tell me if a function like that could be maximized using R and if s/he could point me to a package which might be useful for that. Just to give you some more details on the loglikelihood function attached:
* Data vectors:u, zr, s

I'd be very grateful for any helpful information.


 Klaus Langohr
 Departament d'Estadística i Investigació Operativa
 Universitat Politècnica de Catalunya
 Edifici C5 (Campus Nord)
 C/ Jordi Girona, 1-3
 E-08034 Barcelona
 Tel: (+34) 934 054 093
 Fax: (+34) 934 015 855

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 14 May 2011 - 09:31:54 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 14 May 2011 - 09:40:07 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive