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

@PausalZ That's actually a nice example although there's a lot of residual variation. But I think this might do the job, thanks!

@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)

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.