An obvious way to find out whether a relationship between X and Y is linear, is to construct a scatterplot.
But is there any other way, e.g. some statistical test?
My X and Y variables have quite a few data points (e.g. 5K).
An obvious way to find out whether a relationship between X and Y is linear, is to construct a scatterplot.
But is there any other way, e.g. some statistical test?
My X and Y variables have quite a few data points (e.g. 5K).
you can test for that by testing if a model that allows for a non-linear effect (e.g., by including polynomial or spline terms) is statistically significantly better than a model that only has a linear effect, for example by using an F-test.