Re: [R] lm function - strange error

2012-11-09 Thread Tom Shatwell
Hi Tessa, I agree with John. I think you've made a typo, but looking at your data I think the zero concentration should not be there. Try plotting it. conc = c(10, 20, 30, 40, 50) signal = c (4, 22, 44, 60, 82) plot(signal~conc) abline(lm(signal~conc)) 2012/11/9 John Kane > Tessa, > > Would y

[R] Comparing nonlinear, non-nested models

2012-11-08 Thread Tom Shatwell
Dear R users, Could somebody please help me to find a way of comparing nonlinear, non-nested models in R, where the number of parameters is not necessarily different? Here is a sample (growth rates, y, as a function of internal substrate concentration, x): x <- c(0.52, 1.21, 1.45, 1.64, 1.89, 2.1