Pascale,
If you do want an nls fit with the associated error structure
assumptions, check ?SSlogis.
fm <- nls(y ~ SSlogis(x, Asy, xmid, scal))
summary(fm)
xx <- seq(123, 248, length = 101)
yy <- predict(fm, list(x = xx))
plot(x, y)
lines(xx, yy)
-Peter Ehlers
Gabor Grothendieck wrote:
A simple y vs log(x) fit seems to work pretty well here:
fit <- lm(y ~ log(x))
summary(fit)
plot(y ~ log(x))
abline(fit)
On Fri, Dec 4, 2009 at 9:06 AM, Pascale Weber wrote:
> Hi to all
>
> This is the first time I am quoting a question and I hope, my question is
> not too basic...
>
> For the
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.9
3 matches
Mail list logo