I am smoothing the relationship between a binary variable y
and a continuous variable x
. For this I've looked into both GAM and LOESS, but I cannot find a good comparison of the pros and cons of the two methods. Could someone explain when to use one over the other?
I will not be using the smoothing for any predictive modeling, but only as a way of visualizing the relationship. I would of course prefer to find the most interesting aspects of the relationship between the two variables. I am not that interested in this question related to any particular dataset, but more in the general case of when to use one model over the other. That is why I haven't posted any plots or data.