From enrique.bengoechea at credit-suisse.com  Mon Jul  7 12:39:05 2008
From: enrique.bengoechea at credit-suisse.com (=?iso-8859-1?Q?Bengoechea_Bartolom=E9_Enrique_=28SIES_73=29?=)
Date: Mon, 7 Jul 2008 12:39:05 +0200
Subject: [Rd] Editing the "..." argument
Message-ID: <19811401A1D8174CB3EAD7F6072E9B50016A2670@chsa1025.share.beluni.net>

The 'modifyList' function on package Utils allows to do that in a very compact way:

do.call("optim", modifyList(list(<your default values>), list(...)))

Regards,

Enrique

Mathieu Ribatet wrote:
> Dear all,
> 
> I'd like tweaking the ... arguments that one user can pass in my 
> function for fitting a model. More precisely, my objective function is
> (really) problematic to optimize using the "optim" function. 
> Consequently, I'd like to add in the "control" argument of the latter 
> function a "ndeps = rep(something, #par)" and/or "parscale = something"
> if the user has not specified it already.
> 
> Do you know a way to deal with this point?
> In advance, thanks.
> 
> Mathieu



[Rd] Editing the "..." argument
=?iso-8859-1?Q?Bengoechea_Bartolom=E9_Enrique_=28SIES_73=29?=