Re: [R] Using nls or nls.lm with a simulation output

2009-02-12 Thread Dieter Menne
Marc Girondot u-psud.fr> writes: > > We would like to fit parameters using a simulation with stochastic > processes as theoretical values. We generate a simple exemple with nls.lm > to see the logic and the problem: > Example removed ... > pStart <- list(a=0.1) > #non-linear fit > library(min

[R] Using nls or nls.lm with a simulation output

2009-02-12 Thread Marc Girondot
We would like to fit parameters using a simulation with stochastic processes as theoretical values. We generate a simple exemple with nls.lm to see the logic and the problem: First without stochasticity (it is a dummy example, the fited value is simple the mean of a set of 10 numbers): #Ten numbe