Solved – fit nonlinear regression model to data

nonlinearrregression

I was wondering how can I best fit nonlinear regression model to this data, using an R package.

How can I check if model is good fitted since $R^2$ value is not returned in most functions for nonlinear models?

data
(source: tarchomin.pl)

Best Answer

I am not terribly familiar with R but I believe the standard way to perform nonlinear regression is using the nls function. Since you do not say what specific model you are trying to fit to the data, I cannot help you any further. But maybe this small tutorial will help.

Regarding the adequacy of the model, R-squared is indeed not a good statistic. Maybe you can try to compare two or more models using the AIC or BIC values.