[R] curve fitting to data
Pascale Weber
pascale.weber at wsl.ch
Fri Dec 4 15:06:27 CET 2009
Hi to all
This is the first time I am quoting a question and I hope, my
question is not too basic...
For the following data, I wish to draw a fitted curve.
x <- c(123,129,141,144,144,145,149,150,158,159,163,174,183,187,242,248)
y <-
c(14.42,26.96,31.3,19.95,36.36,15.4,24.76,35.39,28.07,40.97,26.23,42.83,46.53,14.79,49.18,48.08)
If I plot the data, it looks somehow that a logistic function would
render good results.
My questions are:
How do I use
nls and/or SSlogis (or other)
to fit the curve?
How can I see the summary statistics of the fit?
How do I finally draw the line to my x,y (untransformed data) plot?
Any help would be highly appreciated.
Thank you and cheers
Pascale
--
____________________________________..___________________
Dr. Pascale Weber
Swiss Federal Research Institute WSL
Zuercherstrasse 111
CH-8903 Birmensdorf
Switzerland
More information about the R-help
mailing list