Re: [R] how to define the bound between parameters in nls() (Jinsong Zhao)

2011-11-18 Thread John C Nash
Thu, 17 Nov 2011 20:42:12 +0800 > From: Jinsong Zhao > To: "r-help@r-project.org" > Subject: [R] how to define the bound between parameters in nls() > Message-ID: <4ec50124@yeah.net> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi the

[R] how to define the bound between parameters in nls()

2011-11-17 Thread Jinsong Zhao
Hi there, I have read the help page of nls(), there is lower or upper for defining the bounds of parameters. For example, nls(y ~ 1-a*exp(-k1*x)-(1-a)*exp(-k2*x), data=data.1, start=list(a=0.02, k1=0.01, k2=0.0004), upper=c(1,1,1), lower=c(0,0,0)) I hope to define k1 > k2, but I don't find