Context: I want to draw a line in a scatterplot that doesn't appear parametric, therefore I am using
R. It automatically returns
geom_smooth: method="auto" and size of largest group is >=1000, so using gam with formula: y ~ s(x, bs = "cs"). Use 'method = x' to change the smoothing method. I gather GAM stands for generalized additive models and it uses a cubic spline.
Are the following perceptions correct?
Loess estimates the response at specific values.
Splines are approximations that connect different piecewise functions that fit the data (which make up the generalized additive model), and cubic splines are the specific type of spline used here.
Lastly, When should splines be used, when should LOESS be used?