Dear R users

I have a question about how to fit data to a straight line.
I tried nls to do it, but it didn't work.

The reason I want to fit data to a straight line is that I need to compare
AIC or BIC values of the two models (a straight line model vs a nonlinear
curve model). Fitting data to a nonlinear curve is straightforward, but I
could not figure out how to fit the data to a straight line and therefore, I
could not get the AIC/BIC values of this simple model. If I can get the
AIC/BIC value of the straight line fit without actually doing a fit, that is
also fine.

Thanks in advance.

Young-Jin

	[[alternative HTML version deleted]]

