Also Surv objects are matrices and they share the same problem when
rbind-ing data.frames.
If contained in a data.frame, Surv objects loose their class after
rbind and therefore do not more represent Surv objects afterwards.
Using rbind with Surv objects outside of data.frames shows a similar
pr
Date: Fri, 6 Aug 2010 11:14:37 +0200
From: Christophe Dutang
To: r-devel@r-project.org
Subject: [Rd] on the optim function
Message-ID: <7e004a07-03e1-4ded-a506-6c564edb6...@gmail.com>
Content-Type: text/plain; charset=us-ascii
Dear useRs,
I have just discovered that the R optim function does
> -Original Message-
> From: r-devel-boun...@r-project.org
> [mailto:r-devel-boun...@r-project.org] On Behalf Of Nicholas
> L Crookston
> Sent: Friday, August 06, 2010 8:35 AM
> To: Michael Lachmann
> Cc: r-devel-boun...@r-project.org; r-devel@r-project.org
> Subject: Re: [Rd] rbind on da
OK...I'll put in my 2 cents worth.
It seems to me that the problem is with this line:
b$a=a , where "s" is something other than a vector with
length equal to nrow(b).
I had no idea that a dataframe could hold a dataframe. It is not just
rbind(b,b) that fails, apply(b,1,sum) fails and so does pl
Thanks Ravi for your answer. You convince me!
Regards
Christophe
Le 6 août 2010 à 16:48, Ravi Varadhan a écrit :
> Christophe,
>
> This is a good question. It is conventional that most classical optimization
> schemes (e.g. gradient-descent, quasi-Newton, and Newton-type) methods do
> not retu
Christophe,
This is a good question. It is conventional that most classical optimization
schemes (e.g. gradient-descent, quasi-Newton, and Newton-type) methods do
not return the "iteration" counter, but they do return the number of times
the gradient is computed. These two are equivalent in the s
On 06/08/2010 7:52 AM, Duncan Murdoch wrote:
On 05/08/2010 8:46 PM, David B. Thompson, Ph.D., P.E., D.WRE, CFM wrote:
On Aug 5, 2010, at 5:20 PM, Duncan Murdoch wrote:
On 05/08/2010 7:18 PM, David B. Thompson, Ph.D., P.E., D.WRE, CFM wrote:
I'm running R 2.11.1 (MacBook Pro and OS X 10.6.4) a
On 05/08/2010 8:46 PM, David B. Thompson, Ph.D., P.E., D.WRE, CFM wrote:
On Aug 5, 2010, at 5:20 PM, Duncan Murdoch wrote:
On 05/08/2010 7:18 PM, David B. Thompson, Ph.D., P.E., D.WRE, CFM wrote:
I'm running R 2.11.1 (MacBook Pro and OS X 10.6.4) and am trying to set a line
type in the contou
Dear useRs,
I have just discovered that the R optim function does not return the number of
iterations.
I still wonder why line 632-634 of optim C, the iter variable is not returned
(for the BFGS method for example) ?
Is there any trick to compute the iteration number with function call numbe