Re: [R] France Model

2012-05-05 Thread Sven Garbade
Given your starting values, there is nothing to optimize: f - function(x, A=10, b=152, T=100, c=100) A*(1-exp(-b*(x-T) - c*(sqrt(x) - sqrt(T f(time) [1] -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf [16] -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf

[R] France Model

2012-05-04 Thread Silvano
Hi, I need fit the France model : y = A{1 - exp[-b(t-T) - c(sqrt(t) - sqrt(T))]} parameters: A, b, T, c variable: t (time) resp: y I tried: time = 1:48 resp = rnorm(48, 200, 10) dados = data.frame(resp, time) attach(dados) f = function(x, A, b, T, c) A*(1-exp(-b*(x-T) - c*(sqrt(x) -