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.

______________________________________________
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.

Reply via email to