[R] optimize integer function parameters

2013-07-23 Thread Christof Kluß
Hi I have observations obs - (11455, 11536, 11582, 11825, 11900, ...) and a simulation function f(A,B,C,D,E,F), so sim - f(A,B,C,D,E,F) e.g. sim = c(11464, 11554, 11603, 11831, 11907, ...) now I would like to fit A,B,C,D,E,F such that obs and f(A,B,C,D,E,F) match as well as possible. A,..,F

Re: [R] optimize integer function parameters

2013-07-23 Thread Enrico Schumann
On Tue, 23 Jul 2013, Christof Kluß ckl...@email.uni-kiel.de writes: I have observations obs - (11455, 11536, 11582, 11825, 11900, ...) and a simulation function f(A,B,C,D,E,F), so sim - f(A,B,C,D,E,F) e.g. sim = c(11464, 11554, 11603, 11831, 11907, ...) now I would like to fit

Re: [R] optimize integer function parameters

2013-07-23 Thread Christof Kluß
Hi the integer values in the vectors sim and obs are dates when I set sim - f(TS0,TS1,TS2,TB0,TB1,TB2) my A,..,F below then TS0 and TB0 are depend (and so on) the main thing in f(...) is something like for (i in c(1:length(temperature))) { Temp - temperature[i] if (DS 0) {

Re: [R] optimize integer function parameters

2013-07-23 Thread Enrico Schumann
On Tue, 23 Jul 2013, Christof Kluß ckl...@email.uni-kiel.de writes: Am 23-07-2013 13:20, schrieb Enrico Schumann: On Tue, 23 Jul 2013, Christof Kluß ckl...@email.uni-kiel.de writes: I have observations obs - (11455, 11536, 11582, 11825, 11900, ...) and a simulation function