Re: [R] nls fits by groups

2007-09-24 Thread Aleksi Lehtonen
Dear Katharine, that for loop solved all my problems, I just added subset=group==i to the nls statement. thank you, Aleksi Katharine Mullen wrote: It is not clear from your post what changes per-group. If only the starting values change (but the data and the model structure are the same),

[R] nls fits by groups

2007-09-23 Thread Aleksi Lehtonen
Dear Colleagues, I am trying to estimate several non-linear models simultaneously. I don't want to use non-linear mixed model, but non-linear model with same form, but it should be estimated separately according to variable group (I have lots of groups that have lots of observations). I would

Re: [R] nls fits by groups

2007-09-23 Thread Katharine Mullen
It is not clear from your post what changes per-group. If only the starting values change (but the data and the model structure are the same), then you can just store the starting values you want to use for each group in a list, and then index into this list in your call to nls. e.g., modifying

Re: [R] nls fits by groups

2007-09-23 Thread Ken Knoblauch
Aleksi Lehtonen lehtonen.aleksi at gmail.com writes: I am trying to estimate several non-linear models simultaneously. I don't want to use non-linear mixed model, but non-linear model with same form, but it should be estimated separately according to variable group (I have lots of groups that