[R] nls -- singular gradient problem

kv kaveh.vakili at ulb.ac.be
Wed Oct 26 11:23:58 CEST 2011


Hi list,

i see this question is quiet a regular feature, 
but searching the past instances i could not 
find an answer to my specific problem.

Simply, trying to optimize this model gives 
a singular gradient problem -- tough optim()
seems to be able to solve it  would like to 
do these things in nls().

Treated<-Puromycin[Puromycin$state=="treated",]
weighted.MM<-function(resp,conc,K){
	pred<-K[1]+(1-exp(K[2]))*conc
        (resp-pred)
}
Pur.wt<-nls(~weighted.MM(rate,conc,K),data=Treated,start=list(K=c(0,0.1)))


Please advise,

Best,

--
View this message in context: http://r.789695.n4.nabble.com/nls-singular-gradient-problem-tp3939939p3939939.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list