ace=TRUE)
--
Best, JN
On 07/12/2012 06:00 AM, r-help-requ...@r-project.org wrote:
> From: Jonas Stein
> To:
> Subject: [R] nls problem: singular gradient
> Message-ID:
> Content-Type: text/plain
>
> Why fails nls with "singular gradient&qu
On Jul 11, 2012, at 20:34 , Jonas Stein wrote:
>> Take a look at the predicted values at your starting fit: there's a
>> discontinuity at 0.4, which sure makes it look as though overflow is
>> occurring. I'd recommend expanding tanh() in terms of exponentials and
>> rewrite the prediction in
On 07/12/2012 01:39 AM, Duncan Murdoch wrote:
On 12-07-11 2:34 PM, Jonas Stein wrote:
Take a look at the predicted values at your starting fit: there's a
discontinuity at 0.4, which sure makes it look as though overflow is
occurring. I'd recommend expanding tanh() in terms of exponentials and
re
On 12-07-11 2:34 PM, Jonas Stein wrote:
Take a look at the predicted values at your starting fit: there's a
discontinuity at 0.4, which sure makes it look as though overflow is
occurring. I'd recommend expanding tanh() in terms of exponentials and
rewrite the prediction in a way that won't over
> Take a look at the predicted values at your starting fit: there's a
> discontinuity at 0.4, which sure makes it look as though overflow is
> occurring. I'd recommend expanding tanh() in terms of exponentials and
> rewrite the prediction in a way that won't overflow.
>
> Duncan Murdoch
Hi Du
On 11/07/2012 11:04 AM, Jonas Stein wrote:
Why fails nls with "singular gradient" here?
I post a minimal example on the bottom and would be very
happy if someone could help me.
Take a look at the predicted values at your starting fit: there's a
discontinuity at 0.4, which sure makes it look a
Why fails nls with "singular gradient" here?
I post a minimal example on the bottom and would be very
happy if someone could help me.
Kind regards,
###
# define some constants
smallc <- 0.0001
t <- seq(0,1,0.001)
t0 <- 0.5
tau1 <- 0.02
# generate yy(t)
yy <- 1/2 * ( 1- tanh((t - t0)/sm
7 matches
Mail list logo