Hello,

I'm trying to make a non-linear regression using the attached data and this model. When I run it I get the following message:

Error in nls(y ~ 1/(a + w * x), data = df, start = list(a = 1, w = 1),  :
  singular gradient



mod <- nls(y~1/(a+w*x),data=df,start=list(a=1,w=1),trace = TRUE)


Any idea what the problem is?

Cheers,
Mat

______________________________________________
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