I tried to modify the code,thanks for noticing...now i get that the function cannot be evaluated at initial parameters.However I do not know what does that mean..Should I try to modify parameters. I am still not sure of syntax of function. I cannot get that optimize work correctly. I am trying to test that..however I cannot get to a result..In matlab however that works correctly...Did anybody of you tried to succesfully run it ?
Michal -- View this message in context: http://r.789695.n4.nabble.com/optim-function-multi-variables-newbie-tp3242159p3244094.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.