a quick google of "fminsearch in R" resulted in this http://www.google.com/search?q=fminsearch+in+R&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
take a look. there appears to be a function called optim that you can look at http://sekhon.berkeley.edu/stats/html/optim.html before you ask a question on r-help I would highly suggest doing at least a small amount of googling. On Thu, Mar 4, 2010 at 3:01 PM, stephen sefick <ssef...@gmail.com> wrote: > I would help, but I don't know matlab. > > Stephen > > On Thu, Mar 4, 2010 at 2:50 PM, hussain abu-saaq <hussain...@hotmail.com> > wrote: > > > > How Can I write this this matlab code in R: > > > > > > > options=optimset('TolFun',1e-9,'TolX',1e-9,'MaxIter',1e8,'MaxFunEvals',1e8); > > c=c/2; > > [alpha, delta, epsilon, nofcup] = ustrs(set_date,mat_date); > > y = fminsearch('pbond',.15,options,p,c,nofcup,delta/epsilon); > > y = 200*y; > > > > > > > > Note > > pbond is a function in Matlab I already wrote in R > > > > > > ustrs is a function in Matlab I already convert into r > > > > > > Thank you > > > > HI > > > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > 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. > > > > > > -- > Stephen Sefick > > Let's not spend our time and resources thinking about things that are > so little or so large that all they really do for us is puff us up and > make us feel like gods. We are mammals, and have not exhausted the > annoying little problems of being mammals. > > -K. Mullis > > ______________________________________________ > 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. > [[alternative HTML version deleted]] ______________________________________________ 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.