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 if you use NHANES, I've seen HDL cholesterol as predicted by BMI to be non-linear in a few years
@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.