I am trying to write a function that fits a sigmoid given a X and Y vector 
guessing the start parameters.
I use nls. What I did (enclosed) seems to work well with many data points but 
if I want to fit small
vectors like :

pressure <- c(5,15,9,35,45)
gas <- c(1000,2000,3000,4000,5000)

it do not work. The help page says that it do no not work on zero residual data.

Massimo Cressoni

______________________________________________
[email protected] 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