Re: [R] help using optim function

2012-10-24 Thread Ben Bolker
tmuman gmail.com> writes: > Hi, am very new to R and I've written an optim function, but can't > get it to work > least.squares.fitter<-function(start.params,gr, > low.constraints,high.constraints,model.one.stepper,data,scale,ploton=F) > { > result<-optim(par=start.params, meth

[R] help using optim function

2012-10-23 Thread tmuman
Hi, am very new to R and I've written an optim function, but can't get it to work least.squares.fitter<-function(start.params,gr,low.constraints,high.constraints,model.one.stepper,data,scale,ploton=F) { result<-optim(par=start.params,method=c('Nelder-Mead'),fn=least.squares.fit,lower=low.const