What's a publicly available dataset with a pair of variables showing a non-linear relationship. I need a nice case to demonstrate the use of splines in my teaching. Preferably, the variables should be interesting from a public health perspective. #stats #datascience
@stefanforfan here is 2017-2018 with LOESS (x: BMI, y: HDL)
@stefanforfan yeah, unfortunately the residual variation makes it hard to visually see. I suspect most relevant public health examples will have this same issue...
However, you could also view that as a benefit (i.e., we should use splines because a scatterplot may not be enough)
@PausalZ Yeah, that's a good point.
@PausalZ That's actually a nice example although there's a lot of residual variation. But I think this might do the job, thanks!