Re: [Rpy] rpy2 nls.control

2009-11-13 Thread Laurent Gautier
Guilherme Castelao wrote: > Hello all, > > I'm moving to rpy2 but I still didn't get the new syntax. I have two > simple questions: > > > - I can create the nls with no trouble as below, but I can't figure > out how to create the nls.control with rpy2? > > model=robjects.r.nls(formula,data=data

Re: [Rpy] rpy2 nls.control

2009-11-13 Thread Guilherme Castelao
Hello Laurent, I'm sorry about that. I used to do like this: import rpy start = rpy.r.list(...) lower = rpy.r.list(...) upper = rpy.r.list(...) control = rpy.r.nls_control(maxiter=100,tol = 1e-05,minFactor=1./4096) data = rpy.r.data_frame(x=x, x2=x2,y=y) # x,x2 and y are numpy.array

Re: [Rpy] rpy2 nls.control

2009-11-13 Thread Laurent Gautier
Guilherme Castelao wrote: > Hello Laurent, > > I'm sorry about that. > > I used to do like this: > > import rpy > start = rpy.r.list(...) > lower = rpy.r.list(...) > upper = rpy.r.list(...) > control = rpy.r.nls_control(maxiter=100,tol = 1e-05,minFactor=1./4096) > data = rpy.r.data_frame(x=x, x2

Re: [Rpy] rpy2 nls.control

2009-11-13 Thread Guilherme Castelao
Fabulous! Thank you so much! On Fri, Nov 13, 2009 at 2:32 PM, Laurent Gautier wrote: > Guilherme Castelao wrote: >> >> Hello Laurent, >> >> I'm sorry about that. >> >> I used to do like this: >> >> import rpy >> start = rpy.r.list(...) >> lower = rpy.r.list(...) >> upper = rpy.r.list(...) >> cont